POST api/Accounts/AddDestination

Add existing destination to account

Request Information

URI Parameters

None.

Body Parameters

Structure of destination

DestinationOfAccountCreate
NameDescriptionTypeAdditional information
AccountID

Storage account ID

globally unique identifier

Required

Destination

Destination name

string

Required

DestinationDisplayName

Destination name to display

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountID": "f2e93d76-0e8f-4ca6-a4fa-7d4330bcde45",
  "Destination": "sample string 2",
  "DestinationDisplayName": "sample string 3"
}

application/xml, text/xml

Sample:
<DestinationOfAccountCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBSAPImvc.Engine.Models">
  <AccountID>f2e93d76-0e8f-4ca6-a4fa-7d4330bcde45</AccountID>
  <Destination>sample string 2</Destination>
  <DestinationDisplayName>sample string 3</DestinationDisplayName>
</DestinationOfAccountCreate>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

DestinationOfAccount
NameDescriptionTypeAdditional information
DestinationID

Destination ID

globally unique identifier

Required

AccountID

Storage account ID

globally unique identifier

Required

Destination

Destination name

string

Required

DestinationDisplayName

Destination name to display

string

None.

Response Formats

application/json, text/json

Sample:
{
  "DestinationID": "5272ca55-ada4-475f-a7d7-a67dc5b540d6",
  "AccountID": "4aa29c34-d664-40bb-94c9-8123bf454972",
  "Destination": "sample string 3",
  "DestinationDisplayName": "sample string 4"
}

application/xml, text/xml

Sample:
<DestinationOfAccount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBSAPImvc.Engine.Models">
  <AccountID>4aa29c34-d664-40bb-94c9-8123bf454972</AccountID>
  <Destination>sample string 3</Destination>
  <DestinationDisplayName>sample string 4</DestinationDisplayName>
  <DestinationID>5272ca55-ada4-475f-a7d7-a67dc5b540d6</DestinationID>
</DestinationOfAccount>