Skip to main content
Infrastructure/Infrastructure Misc

SetResourceLabels

Replace all labels on the specified resource with the provided label set.

PUT/api/v1/resources/{resourceType}/{resourceUuid}/labels

Operation ID

SetResourceLabels

Since

1.0.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

application/json

Path Parameters

  • resourceType
    StringRequired

    Type of the resource to set labels on (e.g. vm, host, volume)

  • resourceUuid
    StringRequired

    UUID of the specific resource to set labels on

Body Fields

  • labels
    Object

    Key-value labels attached to this resource

Responses

200 OK

Successful response

Content-Type: application/json

Response body root type: object

============================================================================ Common Messages ============================================================================ StructResponse wraps google.protobuf.Struct for dynamic/polymorphic payloads.

  • data
    Object

    The data value