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": "e7cf3019-3c26-47b6-91d4-8e0445a49bef", "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": "f19d761d-778b-41cd-a1f0-7edfe1e08042", "AccountID": "1dd358c9-55d4-46b8-97ba-d38a5e7b1901", "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>1dd358c9-55d4-46b8-97ba-d38a5e7b1901</AccountID> <Destination>sample string 3</Destination> <DestinationDisplayName>sample string 4</DestinationDisplayName> <DestinationID>f19d761d-778b-41cd-a1f0-7edfe1e08042</DestinationID> </DestinationOfAccount>