Get List of Subscriptions by Token
You can get a list of all subscriptions available for a service account created automatically.
Request
To retrieve a representation of a collection of subscriptions, send the HTTP POST request to the /accounts/azure/service/listSubscriptionsByToken endpoint.
HTTP Request
POST https://<hostname>/api/v2/accounts/azure/service/listSubscriptionsByToken |
Note |
If you authenticate to edit an existing account enter a system ID of an account you want to edit. To do that, specify the editAccount parameter after the endpoint of the request URL: ?editAccount=142. |
Request Headers
The request contains the following headers.
Header | Required | Value | Description |
---|---|---|---|
Authorization | Required | Bearer <Access-Token> | Authenticates a client who sends the request to the server. Must contain the access token for the current logon session in the Bearer <Access-Token> format. |
Request Body
To get a list of all subscriptions, send the parameters of the AzureAuthenticationResultV2 schema in the request body.
Note |
To obtain an accessTokenCache, follow the instructions in section Authenticate Service Account . |
{ "authenticatedByCertificate": true, "azureEnvironment": "Global", "azureAccountPurpose": "Service", "accessTokenCache": "string", "displayableId": "string", "familyName": "string", "givenName": "string", "identityProvider": "string", "tenantId": "string",
} } |
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 202 (Accepted).
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTP headers.
Header | Value | Description |
---|---|---|
Content-length | integer | Identifies the length of the response body message, in bytes. |
Content-type |
| Identifies the media type of the response body message. |
Response Body
In the response body, Veeam Backup for Microsoft Azure returns the operation ID with 202 Code. For the operation log details, see Asynchronous Operations.
Example
The following request returns the operation ID with 202 Code.
|