Skip to main content
Infrastructure/Infrastructure Misc

SearchResourceLabels

Search for resources by label key/value criteria across the resource inventory.

GET/api/v1/resource-labels/search

Operation ID

SearchResourceLabels

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

Query Parameters

  • key
    String

    Label key to search by Label key to search by

  • value
    String

    Label value to filter by; empty matches all values for the given key Label value to filter by; empty matches all values for the given key

  • resourceType
    String

    Resource type to restrict search to; empty searches across all resource types Resource type to restrict search to; empty searches across all resource types

  • page
    Integer

    Page number (1-based) for pagination Page number (1-based) for pagination

    Example: 0

    {"format":"int32"}

  • size
    Integer

    Number of records per page Number of records per page

    Example: 0

    {"format":"int32"}

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