Create Azure Storage Profile

Create Azure Storage Profile

Create Azure storage profile

Request
URI
POST
https://vra-interop-222-139.lvn.broadcom.net/iaas/api/storage-profiles-azure
COPY
Query Parameters
string
apiVersion
Optional

The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about


Request Body

StorageProfileAzureSpecification instance

StorageProfileAzureSpecification of type(s) application/json
Required

Show optional properties

{
    "name": "string",
    "regionId": "31186"
}
{
    "name": "string",
    "description": "string",
    "defaultItem": true,
    "supportsEncryption": false,
    "tags": [
        {
            "key": "tier",
            "value": "silver"
        }
    ],
    "diskType": "Standard_LRS / Premium_LRS",
    "osDiskCaching": "None / ReadOnly / ReadWrite",
    "dataDiskCaching": "None / ReadOnly / ReadWrite",
    "diskEncryptionSetId": "/subscriptions/b8ef63/resourceGroups/DiskEncryptionSets/providers/Microsoft.Compute/diskEncryptionSets/MyDES",
    "storageAccountId": "aaa82",
    "regionId": "31186"
}
string
name
Required

A human-friendly name used as an identifier in APIs that support this option.

string
description
Optional

A human-friendly description.

boolean
defaultItem
Optional

Indicates if a storage policy contains default storage properties.

boolean
supportsEncryption
Optional

Indicates whether this storage policy should support encryption or not.

array of object
tags
Optional

A set of tag keys and optional values for a storage policy which define set of specifications for creating a disk.

string
diskType
Optional

Indicates the performance tier for the storage type. Premium disks are SSD backed and Standard disks are HDD backed.

string
osDiskCaching
Optional

Indicates the caching mechanism for OS disk. Default policy for OS disks is Read/Write.

string
dataDiskCaching
Optional

Indicates the caching mechanism for additional disk.

string
diskEncryptionSetId
Optional

Indicates the id of disk encryption set.

string
storageAccountId
Optional

Id of a storage account where in the disk is placed.

string
regionId
Required

The If of the region that is associated with the storage profile.

Authentication
This operation uses the following authentication methods.
Responses
201

Created

Returns AzureStorageProfile of type(s) application/json
"AzureStorageProfile Object"
string
id
Required

The id of this resource instance

string
createdAt
Optional

Date when the entity was created. The date is in ISO 8601 and UTC.

string
updatedAt
Optional

Date when the entity was last updated. The date is ISO 8601 and UTC.

string
owner
Optional

Email of the user or display name of the group that owns the entity.

string
ownerType
Optional

Type of a owner(user/ad_group) that owns the entity.

string
orgId
Optional

The id of the organization this entity belongs to.

object
_links
Required

HATEOAS of the entity

string
name
Optional

A human-friendly name used as an identifier in APIs that support this option.

string
description
Optional

A human-friendly description.

boolean
defaultItem
Required

Indicates if a storage profile contains default storage properties.

boolean
supportsEncryption
Optional

Indicates whether this storage profile should support encryption or not.

array of object
tags
Optional

A list of tags that represent the capabilities of this storage profile

string
diskType
Optional

Indicates the performance tier for the storage type. Premium disks are SSD backed and Standard disks are HDD backed.

string
osDiskCaching
Optional

Indicates the caching mechanism for OS disk. Default policy for OS disks is Read/Write.

string
dataDiskCaching
Optional

Indicates the caching mechanism for additional disk.

string
diskEncryptionSetId
Optional

Indicates the id of disk encryption set.

string
externalRegionId
Optional

The id of the region for which this profile is defined

string
cloudAccountId
Optional

Id of the cloud account this storage profile belongs to.


400

Invalid request - bad data

Returns ServiceErrorResponse of type(s) application/json
"ServiceErrorResponse Object"
string
message
Optional

message

string
messageId
Optional

messageId

array of string
stackTrace
Optional

stackTrace

integer As int32 As int32
statusCode
Optional

statusCode

integer As int32 As int32
errorCode
Optional

errorCode

array of string
details
Optional

details

string
serverErrorId
Optional

serverErrorId

string
documentKind
Optional

documentKind

integer As int32 As int32
internalErrorCode
Optional

internalErrorCode


403

Forbidden

Returns ServiceErrorResponse of type(s) application/json
"ServiceErrorResponse Object"
string
message
Optional

message

string
messageId
Optional

messageId

array of string
stackTrace
Optional

stackTrace

integer As int32 As int32
statusCode
Optional

statusCode

integer As int32 As int32
errorCode
Optional

errorCode

array of string
details
Optional

details

string
serverErrorId
Optional

serverErrorId

string
documentKind
Optional

documentKind

integer As int32 As int32
internalErrorCode
Optional

internalErrorCode


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string","regionId:"string"}' https://{api_host}/iaas/api/storage-profiles-azure