CnsVolumeMetadataUpdateSpec

CnsVolumeMetadataUpdateSpec
CnsVolumeMetadataUpdateSpec

Specifications for volume metadata update operation.

The update is performed based on the specified entity metadata in volume metadata.

For metadata add/update - if CNS already had entity metadata associated, then this update will replace it. Else, it will associate the entity metadata with the volume.

For metadata deletion - CNS will delete the speficied entity metadata.

Update operation should be called for at least one update. If an empty spec is passed without any volume properties to be updated, the operation will fail.

This structure may be used only with operations rendered under /vsan.

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "volumeId": {
        "_typeName": "string",
        "id": "string"
    },
    "metadata": {
        "_typeName": "string",
        "containerCluster": {
            "_typeName": "string",
            "clusterType": "string",
            "clusterId": "string",
            "vSphereUser": "string",
            "clusterFlavor": "string",
            "clusterDistribution": "string",
            "delete": false
        },
        "entityMetadata": [
            {
                "_typeName": "string",
                "entityName": "string",
                "labels": [
                    {
                        "_typeName": "string",
                        "key": "string",
                        "value": "string"
                    }
                ],
                "delete": false,
                "clusterId": "string"
            }
        ],
        "containerClusterArray": [
            {
                "_typeName": "string",
                "clusterType": "string",
                "clusterId": "string",
                "vSphereUser": "string",
                "clusterFlavor": "string",
                "clusterDistribution": "string",
                "delete": false
            }
        ]
    }
}
volumeId
Required

Unique identifier for the volume.

metadata
Required

Metadata for the container volume.