Skip to main content
Alerting & Response/Alert Rules

ListAlertRuleScopeFields

List allowed alert scope fields for the selected product/resource/metric context

GET/api/v1/alerting/rules/scope-fields

Operation ID

ListAlertRuleScopeFields

Since

1.2.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

  • productType
    String

    Product type used to select scope metadata

  • resourceType
    String

    Resource type used to narrow available scope fields

  • metricName
    String

    Metric name used to narrow available scope fields

  • platformUuid
    String

    Platform UUID used for platform-specific scope metadata

Header Parameters

  • Accept-Language
    String

    Preferred display locale. Supports zh-CN, zh_CN, en-US, and weighted Accept-Language values.

Responses

200 OK

Localized scope displayName and description; keys, operators and value contracts remain unchanged

Content-Type: application/json

Response body root type: object

Response Headers

  • Content-Language
    String

    Actual locale used for scope display

  • Vary
    String

    Indicates that the response varies by Accept-Language

  • items
    List

    List of available scope fields

    • key
      String

      Machine-readable scope field key

      Example: zone

    • displayName
      String

      Human-readable scope field name

      Example: Zone

    • source
      String

      Metadata source for this scope field

      Example: platform

    • valueType
      String

      Value type used by the filter expression

      Example: label_text

    • operators
      List

      Supported filter operators for this field

    • valueMode
      String

      How clients should obtain values for this field

      Example: enum

    • requiredContext
      List

      Context keys required before querying values

    • description
      String

      Business description of this scope field

      Example: Filter alert rules by resource zone

  • total
    Integer

    Total number of available scope fields

    Example: 8

    {"format":"int32"}

  • limit
    Integer

    Maximum items returned in this response

    Example: 8

    {"format":"int32"}

  • offset
    Integer

    Offset from start of result set

    Example: 20

    {"format":"int32"}

  • Change Time

    AddedRequest parameters Accept-Language
    View API