POST api/Accounts/CreateDestination
Create storage account destination
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": "5ab4f64a-23de-4553-b2af-af19ab2afc72", "DisplayName": "sample string 2", "DestinationSettings": { "GoogleCloudPlatform": { "StorageClass": 0, "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, text/xml
Sample:
<AccountDestinationCreateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBSAPImvc.Engine.Models"> <AccountID>5ab4f64a-23de-4553-b2af-af19ab2afc72</AccountID> <DestinationSettings> <AmazonS3> <BucketName>sample string 3</BucketName> <UseImmutability>true</UseImmutability> <Region>sample string 2</Region> <UseS3TransferAcceleration>true</UseS3TransferAcceleration> </AmazonS3> <Azure> <BucketName>sample string 1</BucketName> <UseImmutability>true</UseImmutability> </Azure> <B2> <BucketName>sample string 1</BucketName> <UseImmutability>true</UseImmutability> </B2> <GoogleCloudPlatform> <BucketName>sample string 1</BucketName> <UseImmutability>true</UseImmutability> <RegionalLocation>US</RegionalLocation> <StorageClass>STANDARD</StorageClass> </GoogleCloudPlatform> <S3Compatible> <BucketName>sample string 1</BucketName> <UseImmutability>true</UseImmutability> </S3Compatible> <Wasabi> <BucketName>sample string 2</BucketName> <UseImmutability>true</UseImmutability> <Region>sample string 1</Region> </Wasabi> </DestinationSettings> <DisplayName>sample string 2</DisplayName> </AccountDestinationCreateModel>
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": "937e7e97-bb10-4281-806e-823354190212", "AccountID": "b2086af5-c5d8-49d4-b864-fea25c5cd9b1", "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>b2086af5-c5d8-49d4-b864-fea25c5cd9b1</AccountID> <Destination>sample string 3</Destination> <DestinationDisplayName>sample string 4</DestinationDisplayName> <DestinationID>937e7e97-bb10-4281-806e-823354190212</DestinationID> </DestinationOfAccount>