{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pure-storage/json-schema/pure-storage-array-connection-post-2-schema.json",
  "title": "ArrayConnectionPost_2",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pure-storage-array-connections-api-openapi.yml#/components/schemas/ArrayConnectionPost_2",
  "allOf": [
    {
      "$ref": "#/$defs/ArrayConnection_2"
    },
    {
      "type": "object",
      "properties": {
        "connection_key": {
          "description": "The connection key of the target array. Settable on POST only.\n",
          "type": "string"
        },
        "encrypted": {
          "description": "If this is set to `true`, then all customer data replicated over\nthe connection will be sent over an encrypted connection using TLS,\nor will not be sent if a secure connection cannot be\nestablished.\nIf this is set to `false`, then all customer data replicated over\nthe connection will be sent over an unencrypted connection.\nDefaults to `false`.\n",
          "type": "boolean"
        },
        "throttle": {
          "$ref": "#/$defs/_throttle_2"
        }
      }
    }
  ],
  "$defs": {
    "ArrayConnection_2": {
      "allOf": [
        {
          "$ref": "#/$defs/_builtInRelationship"
        },
        {
          "$ref": "#/$defs/_context_2"
        },
        {
          "description": "Connection to a target array.\n",
          "type": "object",
          "properties": {
            "ca_certificate_group": {
              "description": "The group of CA certificates that can be used, in addition to\nwell-known Certificate Authority certificates, in order to\nestablish a secure connection to the target array.\nDefaults to a reference to the `_default_replication_certs` group\nif `secure_connection` is `true`, or `null` otherwise.\n",
              "title": "FixedReference",
              "allOf": [
                {
                  "$ref": "#/$defs/_fixedReference_2"
                }
              ]
            },
            "encrypted": {
              "description": "If this is set to `true`, then all customer data replicated over\nthe connection will be sent over an encrypted connection using TLS,\nor will not be sent if a secure connection cannot be\nestablished.\nIf this is set to `false`, then all customer data replicated over\nthe connection will be sent over an unencrypted connection.\nDefaults to `false`.\n",
              "type": "boolean"
            },
            "management_address": {
              "description": "Management address of the target array. Settable on POST only.\n",
              "type": "string"
            },
            "os": {
              "description": "The operating system of the connected array.\n",
              "type": "string",
              "readOnly": true
            },
            "remote": {
              "description": "The remote array.\n",
              "title": "FixedReference",
              "allOf": [
                {
                  "$ref": "#/$defs/_fixedReference_2"
                }
              ]
            },
            "replication_addresses": {
              "description": "IP addresses and/or FQDNs of the target arrays. Settable on POST only.\nIf not set on POST, will be set to all the replication addresses\navailable on the target array at the time of the POST.\n",
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "status": {
              "description": "Status of the connection.\nValid values include `connected`, `partially_connected`, `connecting`,\nand `incompatible`.\n`connected` - The connection is OK.\n`partially_connected` - Some replication addresses are working,\nbut others are not.\n`connecting` - No connection exists and the array is trying to\nreconnect.\n`incompatible` - The target array is not compatible.\n",
              "type": "string",
              "readOnly": true
            },
            "throttle": {
              "$ref": "#/$defs/_throttle_2"
            },
            "type": {
              "description": "The type of connection. Valid values include `async-replication` and `fleet-management`.\n",
              "type": "string",
              "readOnly": true
            },
            "version": {
              "description": "The version of the target array.",
              "type": "string",
              "readOnly": true
            }
          }
        }
      ]
    },
    "_builtInRelationship": {
      "type": "object",
      "properties": {
        "id": {
          "description": "A non-modifiable, globally unique ID chosen by the system.\n",
          "type": "string",
          "readOnly": true
        }
      }
    },
    "_context_2": {
      "type": "object",
      "properties": {
        "context": {
          "description": "The context in which the operation was performed.\n\nValid values include a reference to any array which is a member of the same fleet\nor to the fleet itself.\n\nOther parameters provided with the request, such as names of volumes or snapshots,\nare resolved relative to the provided `context`.\n",
          "readOnly": true,
          "title": "FixedReference",
          "allOf": [
            {
              "$ref": "#/$defs/_fixedReference_2"
            }
          ]
        }
      }
    },
    "_fixedReferenceWithoutType": {
      "type": "object",
      "properties": {
        "id": {
          "description": "A globally unique, system-generated ID.\nThe ID cannot be modified.\n",
          "type": "string",
          "readOnly": true
        },
        "name": {
          "description": "The resource name, such as volume name, file system name,\nsnapshot name, and so on.\n",
          "type": "string",
          "readOnly": true
        }
      },
      "x-readOnly": true
    },
    "_fixedReference_2": {
      "allOf": [
        {
          "$ref": "#/$defs/_fixedReferenceWithoutType"
        },
        {
          "type": "object",
          "properties": {
            "resource_type": {
              "description": "Type of the object (full name of the endpoint).\nValid values are the unique part of the resource's REST endpoint.\nFor example, a reference to a file system would have a\n`resource_type` of `file-systems`.\n",
              "type": "string",
              "readOnly": true
            }
          }
        }
      ]
    },
    "_throttle_2": {
      "description": "The bandwidth throttling for an array connection or target.\n",
      "type": "object",
      "properties": {
        "default_limit": {
          "description": "Default maximum bandwidth threshold for outbound traffic in bytes. Once\nexceeded, bandwidth throttling occurs.\n",
          "type": "integer",
          "format": "int64"
        },
        "window": {
          "description": "The time during which the window_limit threshold is in effect.",
          "title": "Time_window",
          "allOf": [
            {
              "$ref": "#/$defs/_time_window"
            }
          ]
        },
        "window_limit": {
          "description": "Maximum bandwidth threshold for outbound traffic during the specified\n`window_limit` time range in bytes. Once exceeded, bandwidth throttling\noccurs.\n",
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "_time_window": {
      "type": "object",
      "properties": {
        "end": {
          "description": "The window end time. Measured in milliseconds since midnight. The time must be set on the hour. (e.g., `28800000`, which is equal to 8:00 AM).",
          "type": "integer",
          "format": "int64"
        },
        "start": {
          "description": "The window start time. Measured in milliseconds since midnight. The time must be set on the hour. (e.g., `18000000`, which is equal to 5:00 AM).",
          "type": "integer",
          "format": "int64"
        }
      }
    }
  }
}