{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pure-storage/json-schema/pure-storage-active-directory-post-2-schema.json",
  "title": "ActiveDirectoryPost_2",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pure-storage-active-directory-api-openapi.yml#/components/schemas/ActiveDirectoryPost_2",
  "allOf": [
    {
      "$ref": "#/$defs/ActiveDirectoryDirectoryServers"
    },
    {
      "type": "object",
      "required": [
        "domain",
        "password",
        "user"
      ],
      "properties": {
        "computer_name": {
          "description": "The common name of the computer account to be created in the Active Directory\ndomain.\nIf not specified, defaults to the name of the Active Directory\nconfiguration.\n",
          "type": "string"
        },
        "directory_servers": {
          "description": "A list of directory servers that will be used for lookups related to user authorization.\nAccepted server formats are IP address and DNS name.\nAll specified servers must be registered to the domain appropriately in the array's\nconfigured DNS and will only be communicated with over the secure LDAP (LDAPS) protocol.\nIf not specified, servers are resolved for the domain in DNS.\nThe specified list can have a maximum length of 5.\n",
          "type": "array",
          "maxItems": 5,
          "items": {
            "type": "string"
          }
        },
        "domain": {
          "description": "The Active Directory domain to join.",
          "type": "string"
        },
        "encryption_types": {
          "description": "The encryption types that will be supported for use by clients for Kerberos\nauthentication.\nDefaults to `aes256-cts-hmac-sha1-96`.\nValid values include `aes256-cts-hmac-sha1-96`, `aes128-cts-hmac-sha1-96`, and\n`arcfour-hmac`.\nCannot be provided if using an existing machine account.\n",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "fqdns": {
          "description": "A list of fully qualified domain names to use to register service principal\nnames for the machine account. If specified, every service principal that\nis supported by the array will be registered for each fully qualified domain\nname specified. If neither `fqdns` nor `service_principal_names` is specified,\nthe default `service_principal_names` are constructed using\nthe `computer_name` and `domain` fields.\nCannot be provided in combination with `service_principal_names`.\nCannot be provided if using an existing machine account.\n",
          "type": "array",
          "maxItems": 32,
          "items": {
            "type": "string"
          }
        },
        "join_ou": {
          "description": "The relative distinguished name of the organizational unit in which the\ncomputer account should be created when joining the domain.\nCannot be provided if using an existing machine account.\nIf not specified, defaults to `CN=Computers`.\n",
          "type": "string"
        },
        "kerberos_servers": {
          "description": "A list of key distribution servers to use for Kerberos protocol.\nAccepted server formats are IP address and DNS name.\nAll specified servers must be registered to the domain appropriately in the array's\nconfigured DNS.\nIf not specified, servers are resolved for the domain in DNS.\nThe specified list can have a maximum length of 5.\n",
          "type": "array",
          "maxItems": 5,
          "items": {
            "type": "string"
          }
        },
        "password": {
          "description": "The login password of the user with privileges to create the computer account\nin the domain. If using an existing computer account, the user must have privileges to\nread attributes from the computer account and reset the password on that account.\nThis is not persisted on the array.\n",
          "type": "string"
        },
        "service_principal_names": {
          "description": "A list of service principal names to register for the machine account,\nwhich can be used for the creation of keys for Kerberos authentication.\nIf neither `service_principal_names` nor `fqdns` is specified,\nthe default `service_principal_names` are constructed using\nthe `computer_name` and `domain` fields.\nCannot be provided in combination with `fqdns`.\nCannot be provided if using an existing machine account.\n",
          "type": "array",
          "maxItems": 32,
          "items": {
            "pattern": "(service)/(fqdn)",
            "type": "string"
          }
        },
        "user": {
          "description": "The login name of the user with privileges to create the computer account in\nthe domain. If using an existing computer account, the user must have privileges to\nread attributes from the computer account and reset the password on that account.\nThis is not persisted on the array.\n",
          "type": "string"
        }
      }
    }
  ],
  "$defs": {
    "ActiveDirectoryDirectoryServers": {
      "type": "object",
      "properties": {
        "directory_servers": {
          "description": "A list of directory servers that will be used for lookups related to user authorization.\nAccepted server formats are IP address and DNS name with optional @domain suffix.\nIf the suffix is ommited, the joined domain is assumed.\nAll specified servers must be registered to the domain appropriately in the array's\nconfigured DNS and will only be communicated with over the secure LDAP (LDAPS) protocol.\nThe specified list can have a maximum length of 50.\n",
          "type": "array",
          "maxItems": 50,
          "items": {
            "type": "string"
          }
        },
        "global_catalog_servers": {
          "description": "A list of global catalog servers that will be used for lookups related to user authorization.\nAccepted server formats are IP address and DNS name with optional @domain suffix.\nIf the suffix is ommited, the joined domain is assumed.\nAll specified servers must be registered to the domain appropriately in the array's\nconfigured DNS and will only be communicated with over the secure LDAP (LDAPS) protocol.\nThe specified list can have a maximum length of 50.\n",
          "type": "array",
          "maxItems": 50,
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}