Adding Service Account
This section explains how to add a new Azure service account to the Veeam Backup for Microsoft Azure environment.
Request
POST https://<hostname>/api/v1/accounts/imported/azure |
Request Headers
The request header must contain an authorization token of the current session.
Request Parameters
None.
Request Body
Property | Type | Description |
repositoryAccount | Sets the Azure environment. | |
clientLoginParameters | Sets the identification number of the application. |
Property | Type | Description |
name | string | Sets the name for the service account. |
description | string | Sets the description for the service account. |
Property | Type | Description |
azureEnvironment | string | Sets the Azure environment. |
applicationId | string | Sets the identification number of the application. |
applicationPassword | string | Sets the password for the specified application. |
tenantId | string | Sets the identification number of the tenant. |
applicationCertificate | string | Sets the application certificate. |
certificatePassword | string | Sets the password for the application certificate. |
useType | string | Sets the user type. |
|
Make sure to use either applicationId or applicationCertificate. Using both parameters at the same time is not possible. |
Request Example
Request: POST https://<hostname>/api/v1/accounts/imported/azure
Request Header: Authorization: Bearer <Access-Token>
Request Body: { "serviceAccount": { "name": "Azure Connection", "description": "Azure Connection Added via REST" }, "clientLoginParameters": { "azureEnvironment": "Global", "applicationId": "79p0fe30-6b85-44c3-94df-39a748c1dlb1", "applicationPassword": "R.F@aJc1w00]CZ-9--86U=r/k4lDgSfc", "tenantId": "3e924ba9-93bc-40d5-8a47-33f07b239a52", "useType": "Service" } } |
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 200 (OK).
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
Header | Description |
Content-length | The length of the response body. |
Content-type | The media type and syntax of the response body message: application/json; charset=utf-8 |
Response Body
None.