Waiting for engine...
Skip to main content

apiPolicyTemplate

Returns a single policy template by its ID and optional version. Input Parameters:

  • id: Stable identifier of the policy template to retrieve.
  • version: Optional version of the policy template. If not provided or null, the latest version is returned. Response: DeployedApiPolicyTemplate object containing the template details, rules, and usage information. Example Request:
query {
apiPolicyTemplate(id: "<xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx>", version: 2) {
id,
name,
description,
version,
rules {
rules { id, name },
appliedWhen
},
usedBy {
templatePath,
deployedApi { id }
}
}
}

apiPolicyTemplate(
id: ID!
version: Int
): DeployedApiPolicyTemplate!

Arguments

apiPolicyTemplate.id ● ID! non-null scalar miscellaneous {#id}

apiPolicyTemplate.version ● Int scalar miscellaneous {#version}

Type

DeployedApiPolicyTemplate object platform

Represents a reusable policy template that can be applied to multiple API deployments.

On this Page