Edit Automatically Created Repository Account

You can update a repository account with the specified ID.

Request

To update a repository account settings, send the HTTP PUT request to the /accounts/azure/repository/updateByToken/{accountId} endpoint. {accountId} is a system ID assigned to the repository in the Veeam Backup for Microsoft Azure REST API.

HTTP Request

PUT https://<hostname>/api/v2/accounts/azure/repository/updateByToken/{accountId}

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 update the repository account settings, send the parameters of the CreateRepositoryAccountInfoV2 schema in the request body.

Set the parameter values in the following format:

{

 "repositoryAccount": {

   "name": "string",

   "description": "string"

 },

 "azureAuthenticationResult": {

   "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 204 (No Content).

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

  • application/json
  • application/problem+json

Identifies the media type of the response body message.

Response Body

In the response body, Veeam Backup for Microsoft Azure returns a 204 Code.

Edit Automatically Created Repository AccountExample

The following request updates a repository account with the ID 124.

Request:

PUT https://51.11.247.127/api/v2/accounts/azure/repository/updateByToken/124.

 

Request Header:

Authorization: Bearer <Access-Token>

 

Request Body:

{

  "repositoryAccount":{

     "description":"",

     "name":"Repository Account"

  },

  "azureAuthenticationResult":{

     "authenticatedByCertificate":false,

     "azureEnvironment":"Global",

     "azureAccountPurpose":"Repository",

     "accessTokenCache":"AwAAAAEAAACRAWh0dHBzOi8vbG9naW4ud2luZG93cy5uZXQvZjhjZGVmMzEtYTMxZS00YjRhLTkzZTQtNWY1NzFlOTEyNTVhLzo6Omh0dHBzOi8vbWFuYWdlbWVudC5jb3JlLndp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ZMnQxY0M1RWFYWXpRSFpsWldGdExtTnZiU0lzSW5abGNpSTZJakV1TUNKOS4iLCJUZW5hbnRJZCI6ImY4Y2RlZjMxLWEzMWUtNGI0YS05M2U0LTVmNTcxZTkxMjU1YSIsIlVzZXJJbmZvIjp7IkRpc3BsYXlhYmxlSWQiOiJSRENsb3VkLkJhY2t1cC5EaXYzQHZlZWFtLmNvbSIsIkZhbWlseU5hbWUiOiJZYXN5dWsiLCJHaXZlbk5hbWUiOiJLb3N0eWEiLCJJZGVudGl0eVByb3ZpZGVyIjoibGl2ZS5jb20iLCJQYXNzd29yZENoYW5nZVVybCI6bnVsbCwiUGFzc3dvcmRFeHBpcmVzT24iOm51bGwsIlVuaXF1ZUlkIjoiU1FQVVA1cmNTMWZzQ2pfZkp6VDhqNjdxT1JMcEN0T1BIb1VvYnJJaVhkYyJ9fSwiVXNlckFzc2VydGlvbkhhc2giOm51bGx9",

     "displayableId":"@tech.com",

     "familyName":"Family Name",

     "givenName":"Given Name",

     "identityProvider":"live.com",

     "_links":{

        "self":{

           "href":"https://abc.ukwest.cloudapp.azure.com/api/v1/accounts/created/authenticate?azureEnvironment=Global&userCode=DZX3N4A2B&deviceCode=DAQABAAEAAABeAFzDwllzTYGDLh_qYbH8y_5xN7a9NzxaG7uCgwf_60CcbjsHleZ_rQR_eW0Az377nuGAF0_4q7W1uNjR_6QSJPBsronxfsiApe5l8oPJ41DDRDyG2YJx6zqh1EflPayT1ZbgVWh1sTQKkVvThan_okCZyGP8q0PHSES-BC2FAfPPdN9kXz8JJ9afnvz5r0wgAA&verificationUrl=https%3A%2F%2Fmicrosoft.com%2Fdevicelogin&expiresOn=02%2F04%2F2020%2006%3A51%3A48%20%2B00%3A00&interval=5&message=To%20sign%20in,%20use%20a%20web%20browser%20to%20open%20the%20page%20https%3A%2F%2Fmicrosoft.com%2Fdevicelogin%20and%20enter%20the%20code%20DZX3N4A2B%20to%20authenticate.&clientId=84b03795-8ddb-261a-bbee-02f9e1bf7b46&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&azureTypeConnection=Repository"

        }

     }

  },

 

}

 

Response:

204

I want to report a typo

There is a misspelling right here:

 

I want to let the Veeam Documentation Team know about that.