POST api/Accounts/CreateDestination
Create a destination bucket for existing storage accounts
Request Information
URI Parameters
None.
Body Parameters
Structure of account destination
AccountDestinationCreateModelName | Description | Type | Additional information |
---|---|---|---|
AccountID |
Storage account ID |
globally unique identifier |
Required |
DisplayName |
Destination display name |
string |
Required |
DestinationSettings |
Destination settings |
StorageDestinationSettings |
Required |
Request Formats
application/json, text/json
Sample:
{ "AccountID": "ec88dfdb-f5c5-416b-81b8-c3cc89faa7c6", "DisplayName": "sample string 2", "DestinationSettings": { "GoogleCloudPlatform": { "StorageClass": null, "RegionalLocation": 0, "BucketName": "sample string 1", "UseImmutability": true }, "AmazonS3": { "UseS3TransferAcceleration": true, "Region": "sample string 2", "BucketName": "sample string 3", "UseImmutability": true }, "Wasabi": { "Region": "sample string 1", "BucketName": "sample string 2", "UseImmutability": true }, "S3Compatible": { "BucketName": "sample string 1", "UseImmutability": true }, "Azure": { "BucketName": "sample string 1", "UseImmutability": true }, "B2": { "BucketName": "sample string 1", "UseImmutability": true } } }
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.
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": "a4e37f91-93a4-4d07-b122-3bba88bd7e28", "AccountID": "f62174a6-aed0-489e-84d2-77e7dcd0b4e5", "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>f62174a6-aed0-489e-84d2-77e7dcd0b4e5</AccountID> <Destination>sample string 3</Destination> <DestinationDisplayName>sample string 4</DestinationDisplayName> <DestinationID>a4e37f91-93a4-4d07-b122-3bba88bd7e28</DestinationID> </DestinationOfAccount>