POST API/Accounts/AddDestination

Adds destinations to existing storage accounts. You can add multiple destinations (buckets) to each storage account.

Use the Destination field to specify a bucket name. The bucket must be existent.

Note that the POST API/Account/AddDestination method is not compatible with FileShare storage accounts (AccountType code 21). These accounts enable only one destination that is specified at the moment of creation using the POST API/Accounts method.

Request Information

URI Parameters

None.

Body Parameters

Structure of destination | Name | Description | Type | Additional Information | | :--- | :--- | :--- | :--- | | AccountID | Storage Account ID | Globally Unique Identifier | Required | | Destination | Storage Destination Name | string | Required | | DestinationDisplayName | Displayed Destination Name| string | None |

Request Formats

application/json, text/json

{
  "AccountID": "2da56775-bc76-4027-82e8-1f22f276f737",
  "Destination": "sample string 2",
  "DestinationDisplayName": "sample string 3"
}

application/xml, text/xml

<DestinationOfAccountCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBSAPImvc.Engine.Models">
  <AccountID>2da56775-bc76-4027-82e8-1f22f276f737</AccountID>
  <Destination>sample string 2</Destination>
  <DestinationDisplayName>sample string 3</DestinationDisplayName>
</DestinationOfAccountCreate>

Response Information

Resource Description

IHttpActionResult None.

Response Formats

  • application/json
  • text/json
  • application/xml
  • text/xml.