POST api/Accounts/AddDestination
Add existing destination to account
Request Information
URI Parameters
None.
Body Parameters
Structure of destination
DestinationOfAccountCreateName | Description | Type | Additional 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": "34a110da-f44d-473a-b7ac-853f22cd5ac5", "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>34a110da-f44d-473a-b7ac-853f22cd5ac5</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
DestinationOfAccountName | Description | Type | Additional 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": "5c04be1c-b65b-4def-bf04-edcc33648ffc", "AccountID": "d6f65486-bd54-4406-bda4-925e1c37f890", "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>d6f65486-bd54-4406-bda4-925e1c37f890</AccountID> <Destination>sample string 3</Destination> <DestinationDisplayName>sample string 4</DestinationDisplayName> <DestinationID>5c04be1c-b65b-4def-bf04-edcc33648ffc</DestinationID> </DestinationOfAccount>