Create Virtual Datacenter Storage Policies

Create Virtual Datacenter Storage Policies

Creates new Virtual Datacenter Storage Policies in a Virtual Datacenter. The request will fail if more than one Virtual Datacenter is specified or the list of Virtual Datacenter Storage Policies is empty.

Request
URI
POST
https://{api_host}/cloudapi/vcf/virtualDatacenterStoragePolicies
COPY
Request Body

The new VDC Storage Policies to create.

VirtualDatacenterStoragePolicies of type(s) application/json
Required
This request body class requires all of the following: InlineVirtualDatacenterStoragePolicies0 , InlineVirtualDatacenterStoragePolicies1
{
    "resultTotal": 0,
    "pageCount": 0,
    "page": 0,
    "pageSize": 0,
    "associations": [
        {
            "entityId": "string",
            "associationId": "string"
        }
    ],
    "values": [
        {
            "id": "urn:vcloud:virtualDatacenterStoragePolicy:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
            "name": "Virtual Datacenter Storage Sample Name",
            "virtualDatacenter": {
                "name": "string",
                "id": "string"
            },
            "regionStoragePolicy": {
                "name": "string",
                "id": "string"
            },
            "storageUsedMiB": 0,
            "storageLimitMiB": 0
        }
    ]
}
Authentication
This operation uses the following authentication methods.
Responses
202

The request have been accepted and the task to monitor the request is in the Location header.

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/cloudapi/vcf/virtualDatacenterStoragePolicies