{
  "name": "GetPolicy",
  "plane": "control",
  "terraformEligible": false,
  "protocol": {
    "kind": "rest",
    "method": "GET",
    "path": "/auth/policies/{policyId}",
    "query": [],
    "headers": [
      "authorization"
    ],
    "body": false
  },
  "requestBody": "explicitlyEmpty",
  "responseBody": "json",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "policyId": {
        "type": "string"
      }
    },
    "required": [
      "policyId"
    ],
    "title": "GetPolicyRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "properties": {
      "attachedTo": {
        "items": {
          "type": "string"
        },
        "type": [
          "array",
          "null"
        ]
      },
      "createdAt": {
        "type": "string"
      },
      "description": {
        "type": [
          "string",
          "null"
        ]
      },
      "policy": {
        "type": "string"
      },
      "policyEpoch": {
        "format": "int64",
        "type": "integer"
      },
      "policyId": {
        "type": "string"
      },
      "status": {
        "type": "string"
      },
      "updatedAt": {
        "type": "string"
      }
    },
    "required": [
      "createdAt",
      "policy",
      "policyEpoch",
      "policyId",
      "status",
      "updatedAt"
    ],
    "title": "PolicyResponse",
    "type": "object"
  }
}
