{"restSchemaVersion":"1.0","errors":[{"error_id":"INTERNAL_ERROR","description":"Internal server error.","http_status":"500"},{"error_id":"AUTH_REQUIRED","description":"The requested resource requires authentication.","http_status":"401"},{"error_id":"AUTH_INVALID_CREDENTIALS","description":"Invalid username and\/or password.","http_status":"401"},{"error_id":"AUTH_INVALID_SESSION","description":"Session ID is invalid.","http_status":"401"},{"error_id":"AUTH_EXPIRED_PASSWORD","description":"The password must be changed. Access only to password change resources.","http_status":"403"},{"error_id":"AUTH_DISABLED_ACCOUNT","description":"Account is either temporarily or permanently disabled.","http_status":"403"},{"error_id":"AUTH_FORBIDDEN","description":"User is not authorized to access the requested resource.","http_status":"403"},{"error_id":"AUTH_INVALID_TOKEN","description":"OAuth access token is invalid.","http_status":"401"},{"error_id":"AUTH_EXPIRED_TOKEN","description":"OAuth access token is expired.","http_status":"401"},{"error_id":"AUTH_INVALID_CODE","description":"OAuth access code is invalid.","http_status":"401"},{"error_id":"AUTH_EXPIRED_CODE","description":"OAuth access code is expired.","http_status":"401"},{"error_id":"RESOURCE_NOT_FOUND","description":"Requested resource was not found.","http_status":"404"},{"error_id":"HTTP_INVALID_METHOD","description":"Requested method is not available for this resource.","http_status":"405"},{"error_id":"HTTP_INVALID_HEADER","description":"An HTTP header was malformed.","http_status":"400"},{"error_id":"REQUEST_INVALID_INPUT","description":"Malformed input structure.","http_status":"400"},{"error_id":"URI_INVALID_PARAMETER","description":"URI parameter is not supported or malformed.","http_status":"400"},{"error_id":"URI_MISSING_PARAMETER","description":"Missing required parameter.","http_status":"400"}],"name":"npm.azure_config","title":"Azure Integration API.","version":"1.0","schemas":[],"defaultAuthorization":"required","servicePath":"\/api\/npm.azure_config\/1.0","resources":{"Sync":{"methods":{"Enable\/Disable All Azure Accounts":{"description":"Enable\/Disable All Azure Accounts.","request":{"properties":{"status":{"description":"Value to enable or disable the accounts.","required":true,"type":"string","enum":["ENABLED","DISABLED"]}},"description":"Object containing information to enable or disable the accounts.","type":"object","id":"SyncStatus","example":{"status":"ENABLED"}},"httpmethod":"PUT","authorization_methods":["BASIC","COOKIE","OAUTH_2_0"],"path":"sync\/status","authorization":"required"},"Sync All Azure Accounts":{"description":"Sync All Azure Accounts.","httpmethod":"POST","authorization_methods":["BASIC","COOKIE","OAUTH_2_0"],"path":"sync","authorization":"required"}}},"Auth_Codes":{"methods":{"Delete Azure Accounts":{"description":"Delete Azure Accounts.","request":{"description":"List of Accid Objects.","items":{"properties":{"acc_id":{"description":"Account name\/ID.","required":true,"type":"string"}},"description":"Object representing and account name\/ID.","required":false,"type":"object","id":"Accid"},"type":"array","id":"Accids","example":[{"acc_id":"acc_1"},{"acc_id":"acc_2"}]},"httpmethod":"DELETE","authorization_methods":["BASIC","COOKIE","OAUTH_2_0"],"path":"auth_codes","authorization":"required"},"Get the authorization information of the Azure Accounts":{"description":"Delete Azure Accounts.","response":{"description":"List of Auth code Objects.","items":{"properties":{"tenant_id":{"description":"Account tenant id.","required":true,"type":"string"},"subscription_id":{"description":"Account subscription id.","required":true,"type":"string"},"acc_id":{"description":"Acount name\/ID.","required":true,"type":"string"},"app_id":{"description":"Account app id.","required":true,"type":"string"}},"description":"Object representing an account name\/ID and it's authorization information.","required":false,"type":"object","id":"AuthcodeAzure"},"type":"array","id":"AuthcodesAzure","example":[{"tenant_id":"tenant_1","subscription_id":"subscr_1","acc_id":"acc_1","app_id":"app_1"},{"tenant_id":"tenant_2","subscription_id":"subscr_2","acc_id":"acc_2","app_id":"app_2"}]},"httpmethod":"GET","formats":["xml","json"],"authorization_methods":["BASIC","COOKIE","OAUTH_2_0"],"path":"auth_codes","authorization":"required"},"Create\/Update Azure Accounts":{"description":"Delete Azure Accounts.","request":{"description":"List of Auth code Objects.","items":{"properties":{"tenant_id":{"description":"Account tenant id.","required":true,"type":"string"},"subscription_id":{"description":"Account subscription id.","required":true,"type":"string"},"acc_id":{"description":"Acount name\/ID.","required":true,"type":"string"},"app_id":{"description":"Account app id.","required":true,"type":"string"},"app_passwd":{"description":"Account app password.","required":true,"type":"string"}},"description":"Object representing an account name\/ID, it's authorization information.","required":false,"type":"object","id":"AuthcodeAzureupd"},"type":"array","id":"AuthcodesAzureupd","example":[{"app_passwd":"app_1_passwd","tenant_id":"tenant_1","subscription_id":"subscr_1","acc_id":"acc_1","app_id":"app_1"},{"app_passwd":"app_2_passwd","tenant_id":"tenant_2","subscription_id":"subscr_2","acc_id":"acc_2","app_id":"app_2"}]},"httpmethod":"PUT","authorization_methods":["BASIC","COOKIE","OAUTH_2_0"],"path":"auth_codes","authorization":"required"}}},"Status":{"methods":{"Azure status":{"description":"Get Azure Status.","response":{"properties":{"enabled":{"description":"Flag indicating if synchronization is enabled.","required":true,"type":"string"},"error_text":{"description":"Error description.","required":true,"type":"string"},"last_sync_ts":{"description":"Last attempted synchronization time.","required":true,"type":"number"},"last_success_ts":{"description":"Last successful synchronization time.","required":true,"type":"number"},"error_id":{"description":"Error ID.","required":true,"type":"number"},"state":{"description":"Synchronization status.","required":true,"type":"string","enum":["SYNC_INITIALIZING","SYNC_FAILED","SYNC_SUCCEEDED","SYNC_SUCCEEDED_WITH_WARNING","SYNC_DISABLED","SYNC_NA"]}},"description":"Object containing synchronization information.","type":"object","id":"CloudStatus","example":{"last_sync_ts":1606234492,"enabled":true,"last_success_ts":1606234492,"state":"SYNC_SUCCEEDED","error_id":0,"error_text":"OK"}},"httpmethod":"GET","formats":["xml","json"],"authorization_methods":["BASIC","COOKIE","OAUTH_2_0"],"path":"status","authorization":"required"}}}},"description":""}