{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pure-storage/json-schema/pure-storage-admin-post-schema.json",
  "title": "AdminPost",
  "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",
  "type": "object",
  "properties": {
    "management_access_policies": {
      "description": "List of management access policies to associate with the administrator.\nPolicies can be specified by the `name` or `ID` parameter, but they cannot be set together.\n",
      "type": "array",
      "items": {
        "$ref": "#/$defs/_referenceWithType"
      }
    },
    "password": {
      "description": "Password associated with the account.\n",
      "type": "string"
    },
    "role": {
      "$ref": "#/$defs/_adminRole"
    }
  },
  "$defs": {
    "_adminRole": {
      "allOf": [
        {
          "$ref": "#/$defs/_referenceNoId"
        },
        {
          "description": "This field has been deprecated. Predecessor to management access policies.\n",
          "type": "object"
        }
      ]
    },
    "_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"
      ]
    },
    "_referenceNoId": {
      "type": "object",
      "properties": {
        "name": {
          "description": "The resource name, such as volume name, pod name, snapshot name, and so on.\n",
          "type": "string"
        }
      }
    },
    "_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"
      ]
    }
  }
}