Policy

Reads a policy.

get/approval/policy/{id}

Request

  • Base URL
    https://api.nullplatform.com
  • URL
    https://api.nullplatform.com/approval/policy/{id}
  • Auth
    HTTP bearer

Path parameters

idinteger required

The ID of the policy.

Response

The operation was successful.

idinteger required

A unique identifier for the policy.

nrnstring required

A resource identifier (NRN) specifying where the policy applies.

namestring required

The name of the policy.

slugstring

A URL-friendly identifier derived from the policy name. Generated automatically on creation.

status'active' | 'deleted'

The current status of the policy.

conditionsobject required

A JSON object defining the conditions under which this policy applies. Uses MongoDB query syntax.

selectorobject

A JSON object that acts as a pre-filter. If the selector does not match the request context, the policy is skipped entirely and its conditions are not evaluated. Useful when multiple policies are attached to the same action and each should apply only to a specific subset of requests.

Example response

{
  "id": 5678,
  "nrn": "organization=1:account=2:namespace=3:application=4",
  "name": "Crypto Kong Policies",
  "slug": "crypto-kong-policies",
  "status": "active",
  "conditions": {
    "scope.requested_spec.memory_in_gb": {
      "$lte": 4
    }
  },
  "selector": {
    "service.spec.id": {
      "$eq": 2
    }
  }
}

Changes

    • breaking

      the response property became optional for the status

    • breaking

      the response property became optional for the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • info

      media type application/json was changed to a more specific media type application/problem+json for the response status

    • info

      media type application/json was changed to a more specific media type application/problem+json for the response status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      response property message deprecated

    • info

      response property message deprecated

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status