{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pure-storage/json-schema/pure-storage-admin-post-2-schema.json",
  "title": "AdminPost_2",
  "description": "An administrative user, who has rights to login and manage the array in some capacity.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pure-storage-administrators-api-openapi.yml#/components/schemas/AdminPost_2",
  "type": "object",
  "properties": {
    "admin_type": {
      "description": "The type of admin account. Set to `service-account` to create a REST-only service account. Service accounts\ndo not have passwords and cannot have associated public keys. If not specified, defaults to `local-user`.\n",
      "type": "string"
    },
    "management_access_policies": {
      "description": "List of management access policies associated with the administrator.\n",
      "type": "array",
      "items": {
        "$ref": "#/$defs/_referenceWritable"
      }
    },
    "password": {
      "description": "New user password.",
      "type": "string"
    },
    "public_key": {
      "description": "Public key for SSH access. Supported key types include `Ed25519` and `RSA`.",
      "type": "string"
    },
    "role": {
      "description": "Deprecated.\n`role` is deprecated in favor of `management_access_policies`, but remains for\nbackwards compatibility. If an administrator has exactly one access policy which\ncorresponds to a valid legacy role of the same name, `role` will be a\nreference to that role.\nOtherwise, it will be `null`.\n",
      "title": "ReferenceWritable",
      "allOf": [
        {
          "$ref": "#/$defs/_referenceWritable"
        }
      ]
    }
  },
  "$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"
      ]
    }
  }
}