latestOpenAPI 3.0.02026-08-2045003.8 MB

72813baf8d47

Elastigroup Azure Stateful

Attach Data Disk to Stateful Node

Create a new data disk and attaches it to the stateful node.

put/azure/compute/statefulNode/{nodeId}/dataDisk/attach

Parameters

#/paths/~1azure~1costs/get/parameters/0 — unresolved $ref
#/paths/~1azure~1compute~1statefulNode~1%7BnodeId%7D/get/parameters/1 — unresolved $ref

Request body

dataDiskNamestring required

The name of the created data disk.

dataDiskResourceGroupNamestring required

The resource group name in which the data disk will be created.

sizeGBinteger required

The size of the data disk in GB, Required if dataDisks is specified.

luninteger

The LUN of the data disk. If not defined, the LUN will be set in order.

storageAccountType'Standard_LRS' | 'Premium_LRS' | 'StandardSSD_LRS' | 'UltraSSD_LRS' | 'StandardSSD_ZRS' | 'Premium_ZRS' | 'PremiumV2_LRS' required

The type of the data disk.

zone'1' | '2' | '3'

The Availability Zone in which the data disk will be created. If not defined, the data disk will be created regionally.

caching'None' | 'ReadOnly' | 'ReadWrite'

Specifies the host caching requirements. With disk caching enabled, VMs can achieve higher levels of performance.

  • If not specified, the Azure default behavior will be applied.

Example request

{
  "dataDiskName": "MyDisk",
  "dataDiskResourceGroupName": "dataDiskResourceGroup",
  "sizeGB": 1,
  "lun": 1,
  "storageAccountType": "Standard_LRS",
  "zone": "1",
  "caching": "ReadOnly"
}