{
  "name": "GetWorkloadKey",
  "plane": "control",
  "terraformEligible": false,
  "protocol": {
    "kind": "rest",
    "method": "GET",
    "path": "/auth/workload-keys/{principalId}",
    "query": [],
    "headers": [
      "authorization"
    ],
    "body": false
  },
  "requestBody": "explicitlyEmpty",
  "responseBody": "json",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "principalId": {
        "type": "string"
      }
    },
    "required": [
      "principalId"
    ],
    "title": "GetWorkloadKeyRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
      "WorkloadKey": {
        "properties": {
          "abacScope": {
            "type": "string"
          },
          "accessKeyId": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "principalId": {
            "type": "string"
          },
          "rotatedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "abacScope",
          "accessKeyId",
          "createdAt",
          "principalId",
          "status"
        ],
        "type": "object"
      }
    },
    "properties": {
      "keys": {
        "items": {
          "$ref": "#/definitions/WorkloadKey"
        },
        "type": "array"
      },
      "principalId": {
        "type": "string"
      }
    },
    "required": [
      "keys",
      "principalId"
    ],
    "title": "GetWorkloadKeyResponse",
    "type": "object"
  }
}
