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
    ListRequired

    Resource UUIDs

    Example: item1,item2

  • mode
    StringRequired

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

    Example: append

  • labels
    ObjectRequired

    Key-value labels attached to this resource

    Example: (nested object)

Responses

200 OK
200 OK

On success, this API returns the following response structure.

  • data
    Object

    The data value

    Example: (nested object)