Skip to main content
Monitoring & Collection/Monitoring Misc
POSTMonitoringSince 1.0SynchronousAuth Required

ValidateIsolationQuery

Validate that a PromQL query complies with tenant isolation boundaries

Execution Availability

Try It Out

Submit a mock request using the current auth context and example-driven inputs.

Request Inputs

Body Fields

  • tenantIdStringRequired

    Tenant ID to validate the query against

    Example: tenant-001-xyz

  • queryStringRequired

    PromQL query string to validate

    Example: cpu_usage_percent{job="node"}

Responses

200 OK

On success, this API returns the following response structure.

  • validBoolean

    Whether the query passes tenant isolation validation

    Example: true

  • originalQueryString

    The original submitted query string

    Example: cpu_usage_percent{job="node"}

  • filteredQueryString

    The query after tenant filter injection

    Example: cpu_usage_percent{job="node",tenant_id="tenant-001"}

  • tenantIdString

    Tenant identifier used for validation

    Example: tenant-001-xyz

  • violationsList

    Violations for this resource

    Example: item1,item2

  • errorCodeString

    Machine-readable error code if validation failed

    Example: INVALID_CONFIG

  • messageString

    Human-readable validation result message

    Example: Query is compliant with tenant isolation policy

Endpoint

POST/api/v1/monitoring/isolation/validate

/api/v1/monitoring/isolation/validate

Operation ID

ValidateIsolationQuery

Permalink

Request Example

curl -X POST '{host}/api/v1/monitoring/isolation/validate' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"tenantId":"tenant-001-xyz","query":"cpu_usage_percent{job=\"node\"}"}'

Response Example

200
{
  "valid": true,
  "originalQuery": "cpu_usage_percent{job=\"node\"}",
  "filteredQuery": "cpu_usage_percent{job=\"node\",tenant_id=\"tenant-001\"}",
  "tenantId": "tenant-001-xyz",
  "violations": [],
  "errorCode": "INVALID_CONFIG",
  "message": "Query is compliant with tenant isolation policy"
}

Change History

This API has no change history records yet.

View all change history