{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pure-storage/json-schema/pure-storage-api-client-post-schema.json",
  "title": "ApiClientPost",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pure-storage-api-clients-api-openapi.yml#/components/schemas/ApiClientPost",
  "type": "object",
  "properties": {
    "access_policies": {
      "description": "The access policies allowed for ID Tokens issued by this API client.\nThe bearer of an access token will be authorized to perform actions\nwithin the intersection of these policies and those of the array\nuser specified as the JWT `sub` (subject) claim.\n",
      "type": "array",
      "items": {
        "$ref": "#/$defs/_referenceWithType"
      }
    },
    "access_token_ttl_in_ms": {
      "description": "The TTL (Time To Live) length of time for the exchanged access token.\nMeasured in milliseconds. If not specified, defaults to `86400000`.\n",
      "type": "integer",
      "format": "int64",
      "x-minimum": 1000,
      "x-maximum": 86400000
    },
    "issuer": {
      "description": "The name of the identity provider that will be issuing ID Tokens for this API client.\nThe `iss` claim in the JWT issued must match this string.\nIf not specified, defaults to the API client name.\n",
      "type": "string"
    },
    "max_role": {
      "description": "Deprecated. The maximum Admin Access Policy (previously 'role') allowed for ID\nTokens issued by this API client. The bearer of an access token will be\nauthorized to perform actions within the intersection of this policy and\nthat of the array user specified as the JWT `sub` (subject) claim.\n`max_role` is deprecated in favor of `access_policies`, but remains for backwards\ncompatibility. If `max_role` is the name of a valid legacy role, it will be\ninterpreted as the corresponding access policy of the same name.\nOtherwise, it's invalid.\n",
      "type": "string"
    },
    "public_key": {
      "description": "The API client's PEM formatted (Base64 encoded) RSA public key.\nInclude the `-----BEGIN PUBLIC KEY-----` and `-----END PUBLIC KEY-----` lines.\n",
      "type": "string"
    }
  },
  "$defs": {
    "_reference": {
      "type": "object",
      "properties": {
        "id": {
          "description": "A globally unique, system-generated ID.\nThe ID cannot be modified.\n",
          "type": "string"
        },
        "name": {
          "description": "The resource name, such as volume name, pod name,\nsnapshot name, and so on.\n",
          "type": "string"
        }
      },
      "x-aliases": [
        "_referenceWithoutType"
      ]
    },
    "_referenceWithType": {
      "allOf": [
        {
          "$ref": "#/$defs/_reference"
        },
        {
          "type": "object",
          "properties": {
            "resource_type": {
              "description": "Type of the object (full name of the endpoint).\nValid values are `hosts`, `host-groups`, `network-interfaces`, `pods`,\n`ports`, `pod-replica-links`, `subnets`, `volumes`, `volume-snapshots`,\n`volume-groups`, `directories`, `policies/nfs`, `policies/smb`, and\n`policies/snapshot`, etc.\n",
              "type": "string"
            }
          }
        }
      ],
      "x-aliases": [
        "_reference"
      ]
    }
  }
}