{
  "name": "ListPolicies",
  "plane": "control",
  "terraformEligible": false,
  "protocol": {
    "kind": "rest",
    "method": "GET",
    "path": "/auth/policies",
    "query": [],
    "headers": [
      "authorization"
    ],
    "body": false
  },
  "requestBody": "explicitlyEmpty",
  "responseBody": "json",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "title": "ListPoliciesRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
      "PolicyResponse": {
        "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"
        ],
        "type": "object"
      }
    },
    "properties": {
      "policies": {
        "items": {
          "$ref": "#/definitions/PolicyResponse"
        },
        "type": "array"
      },
      "policyEpoch": {
        "format": "int64",
        "type": "integer"
      }
    },
    "required": [
      "policies",
      "policyEpoch"
    ],
    "title": "ListPoliciesResponse",
    "type": "object"
  }
}
