---
title: "Describe the policy language spec implemented by this service."
method: GET
path: "/system/policy_spec"
tags: ["System"]
---

# Describe the policy language spec implemented by this service.

`GET /system/policy_spec`

Get the policy language spec for this service

## Response `200`

Policy Language Description

- GateSpec[] — List of Gate specifications
  - `name` string — Gate name, as it would appear in a policy document
  - `description` string — Description of the gate
  - `state` 'active' | 'deprecated' | 'eol' — State of the gate and transitively all triggers it contains if not 'active'
  - `superceded_by` string, nullable — The name of another trigger that supercedes this on functionally if this is deprecated
  - `triggers` TriggerSpec[] — List of the triggers that can fire for this Gate
    - `name` string — Name of the trigger as it would appear in a policy document
    - `description` string — Trigger description for what it tests and when it will fire during evaluation
    - `state` 'active' | 'deprecated' | 'eol' — State of the trigger
    - `superceded_by` string, nullable — The name of another trigger that supercedes this on functionally if this is deprecated
    - `parameters` TriggerParamSpec[] — The list of parameters that are valid for this trigger
      - `name` string — Parameter name as it appears in policy document
      - `description` string
      - `example` string, nullable — An example value for the parameter (encoded as a string if the parameter is an object or list type)
      - `state` 'active' | 'deprecated' | 'eol' — State of the trigger parameter
      - `superceded_by` string, nullable — The name of another trigger that supercedes this on functionally if this is deprecated
      - `required` boolean — Is this a required parameter or optional
      - `validator` object — If present, a definition for validation of input. Typically a jsonschema object that can be used to validate an input against.

---

[API](https://skmtc.net/anchore/apis/anchore-engine-api-server.md) · [All operations](https://skmtc.net/anchore/apis/anchore-engine-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/anchore/anchore-engine-api-server/revisions/afb4f60ab44a/schema)
