{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pure-storage/json-schema/pure-storage-api-clients-post-schema.json",
  "title": "ApiClientsPost",
  "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/ApiClientsPost",
  "type": "object",
  "required": [
    "public_key"
  ],
  "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/_referenceWritable"
      }
    },
    "access_token_ttl_in_ms": {
      "description": "The TTL (Time To Live) duration for which the exchanged access token is valid.\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 a client has exactly one access policy which corresponds to a\nvalid legacy role of the same name, `max_role` will be a reference to that role.\nOtherwise, it will be `null`.\n",
      "title": "ReferenceWritable",
      "allOf": [
        {
          "$ref": "#/$defs/_referenceWritable"
        }
      ]
    },
    "public_key": {
      "description": "The API client's PEM formatted (Base64 encoded) RSA public key.\nIt must include the `-----BEGIN PUBLIC KEY-----` and `-----END PUBLIC KEY-----` lines.\n",
      "type": "string"
    }
  },
  "$defs": {
    "_referenceWithoutType": {
      "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"
        }
      }
    },
    "_referenceWritable": {
      "allOf": [
        {
          "$ref": "#/$defs/_referenceWithoutType"
        },
        {
          "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`, `policies/snapshot`, etc.\n",
              "type": "string"
            }
          }
        }
      ],
      "x-aliases": [
        "_reference"
      ]
    }
  }
}