{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pure-storage/json-schema/pure-storage-array-connection-patch-schema.json",
  "title": "ArrayConnectionPatch",
  "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/ArrayConnectionPatch",
  "allOf": [
    {
      "$ref": "#/$defs/_throttle_deprecated"
    },
    {
      "type": "object",
      "properties": {
        "connection_key": {
          "description": "The connection key of the target array.\nIt is required when `encryption` is changed,\nor when `type` is changed from `async-replication` to `sync-replication`.\n",
          "type": "string"
        },
        "encryption": {
          "description": "If `encrypted`, encryption will be enabled for all traffic over this array connection.\nIf `unencrypted`, encryption will be disabled for all traffic over this array connection.\n`connection_key` must be specified when encryption is changed.\nIf not specified, the current encryption option for the array connection will remain\nunchanged.\n",
          "type": "string"
        },
        "management_address": {
          "description": "Management IP address of the target array.\n",
          "type": "string"
        },
        "replication_addresses": {
          "description": "IP addresses and FQDNs of the target arrays. Configurable only when\n`replication_transport` is set to `ip`.\n",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "throttle": {
          "$ref": "#/$defs/_throttle"
        },
        "type": {
          "description": "The type of replication.\nValid values are `async-replication` and `sync-replication`.\n",
          "type": "string"
        }
      }
    }
  ],
  "$defs": {
    "_throttle": {
      "description": "The bandwidth throttling for an array connection. Configurable on PATCH only.\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"
        }
      }
    },
    "_throttle_deprecated": {
      "type": "object",
      "properties": {
        "default_limit": {
          "description": "Deprecated. Default maximum bandwidth threshold for outbound traffic in bytes. Once\nexceeded, bandwidth throttling occurs.\n",
          "type": "integer",
          "format": "int64"
        },
        "window": {
          "description": "Deprecated. The time during which the `window_limit` threshold is in effect.",
          "title": "Time_window",
          "allOf": [
            {
              "$ref": "#/$defs/_time_window"
            }
          ]
        },
        "window_limit": {
          "description": "Deprecated. 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"
        }
      }
    }
  }
}