Skip to main content
Infrastructure/Infrastructure Misc

BatchResourceLabels

Apply label changes to multiple resources of the same type in a single request.

POST/api/v1/resources/{resourceType}/batch-labels

Operation ID

BatchResourceLabels

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 resources to apply labels to (e.g. vm, host, volume)

Body Fields

  • resourceUuids
    List

    Resource UUIDs

  • mode
    String

    Label application mode: append adds new labels, overwrite replaces all existing labels

    Example: append

  • 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