{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pure-storage/json-schema/pure-storage-bucket-replica-link-get-response-schema.json",
  "title": "BucketReplicaLinkGetResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pure-storage-bucket-replica-links-api-openapi.yml#/components/schemas/BucketReplicaLinkGetResponse",
  "allOf": [
    {
      "$ref": "#/$defs/PageInfo"
    },
    {
      "$ref": "#/$defs/_errorContextResponse"
    },
    {
      "$ref": "#/$defs/BucketReplicaLinkResponse"
    }
  ],
  "$defs": {
    "BucketReplicaLink": {
      "allOf": [
        {
          "$ref": "#/$defs/_replicaLinkBuiltIn"
        },
        {
          "$ref": "#/$defs/_context"
        },
        {
          "type": "object",
          "properties": {
            "cascading_enabled": {
              "description": "If set to `true`, objects replicated to this bucket via a replica\nlink from another array will also be replicated by this link to\nthe remote bucket.\nDefaults to `false`.\n",
              "type": "boolean",
              "readOnly": true
            },
            "local_bucket": {
              "description": "Reference to a local bucket.\n",
              "title": "FixedReference",
              "allOf": [
                {
                  "$ref": "#/$defs/_fixedReference"
                }
              ]
            },
            "object_backlog": {
              "description": "The number of pending operations and their size that are currently in the backlog.\n",
              "title": "ObjectBacklog",
              "allOf": [
                {
                  "$ref": "#/$defs/_objectBacklog"
                }
              ]
            },
            "paused": {
              "description": "Is the replica link paused?",
              "type": "boolean"
            },
            "recovery_point": {
              "description": "Time, in milliseconds since UNIX epoch, where all object changes before this time are\nguaranteed to have been replicated. Changes after this time may have been replicated.\n",
              "type": "integer",
              "format": "int64",
              "readOnly": true
            },
            "remote": {
              "description": "Reference to the associated remote, which can either be a `target` or remote `array`.\nIf it is an `array`, then the `resource-type` field will not be populated.\n",
              "title": "FixedReference",
              "allOf": [
                {
                  "$ref": "#/$defs/_fixedReference"
                }
              ]
            },
            "remote_bucket": {
              "description": "Reference to a remote bucket.",
              "title": "FixedReferenceNameOnly",
              "allOf": [
                {
                  "$ref": "#/$defs/_fixedReferenceNameOnly"
                }
              ]
            },
            "remote_credentials": {
              "description": "Reference to a remote-credentials object to access the remote bucket.\n",
              "title": "ReferenceWritable",
              "allOf": [
                {
                  "$ref": "#/$defs/_referenceWritable"
                }
              ]
            },
            "status": {
              "description": "Status of the replica link.\nValues include `replicating`, `paused`, and `unhealthy`.\n",
              "type": "string",
              "readOnly": true
            }
          }
        }
      ]
    },
    "BucketReplicaLinkResponse": {
      "type": "object",
      "properties": {
        "items": {
          "description": "A list of object store bucket replica link objects.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/BucketReplicaLink"
          }
        },
        "total": {
          "description": "If `total_only` query param is `true`, then it will be a total of\nall records after filtering and no items will be returned.\nIf `total_only` is `false`, then it will be a total of all records\non this page.\n",
          "title": "BucketReplicaLink",
          "allOf": [
            {
              "$ref": "#/$defs/BucketReplicaLink"
            }
          ]
        }
      }
    },
    "PageInfo": {
      "type": "object",
      "properties": {
        "continuation_token": {
          "description": "Continuation token that can be provided in the `continuation_token` query\nparam to get the next page of data.\nIf you use the `continuation_token` to page through data you\nare guaranteed to get all items exactly once regardless of\nhow items are modified. If an item is added or deleted during\nthe pagination then it may or may not be returned.\nThe `continuation_token` is generated if the `limit` is less\nthan the remaining number of items, and the default sort is used\n(no sort is specified).\n",
          "type": "string"
        },
        "total_item_count": {
          "description": "Total number of items after applying `filter` params.",
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "_builtInRelationship": {
      "type": "object",
      "properties": {
        "id": {
          "description": "A non-modifiable, globally unique ID chosen by the system.\n",
          "type": "string",
          "readOnly": true
        }
      }
    },
    "_context": {
      "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"
            }
          ]
        }
      }
    },
    "_direction": {
      "type": "string",
      "description": "The direction of replication. Valid values are `inbound` and\n`outbound`.\n",
      "readOnly": true,
      "x-read-only": true
    },
    "_errorContextResponse": {
      "type": "object",
      "properties": {
        "errors": {
          "description": "The list of errors encountered when attempting to perform an operation.",
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/_errorContextResponseErrors"
          }
        }
      }
    },
    "_errorContextResponseErrors": {
      "type": "object",
      "properties": {
        "context": {
          "description": "Contains information relating to the cause of this error,\nor the name of the object that was being processed when the error was encountered.\nThis may be `null` for more general errors.\n",
          "type": "string"
        },
        "location_context": {
          "description": "Contains information relating to the context in which the request was executing\nwhen the error occurred.\nFor example, this may be the name of an array in the same fleet.\nThis may be `null` for more general errors, or if no explicit `context` parameter\nwas provided with the request.\n",
          "title": "FixedReference",
          "allOf": [
            {
              "$ref": "#/$defs/_fixedReference"
            }
          ]
        },
        "message": {
          "description": "A description of the error which occurred.",
          "type": "string"
        }
      }
    },
    "_fixedReference": {
      "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
            }
          }
        }
      ]
    },
    "_fixedReferenceNameOnly": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "readOnly": true
        }
      },
      "x-readOnly": true
    },
    "_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
    },
    "_objectBacklog": {
      "type": "object",
      "properties": {
        "bytes_count": {
          "description": "The size of the objects in bytes that need to be replicated.\nThis does not include the size of custom metadata.\n",
          "type": "integer",
          "format": "int64",
          "readOnly": true
        },
        "delete_ops_count": {
          "description": "The number of DELETE operations that need to be replicated.\n",
          "type": "integer",
          "format": "int64",
          "readOnly": true
        },
        "other_ops_count": {
          "description": "The number of other operations that need to be replicated.\n",
          "type": "integer",
          "format": "int64",
          "readOnly": true
        },
        "put_ops_count": {
          "description": "The number of PUT operations that need to be replicated.\n",
          "type": "integer",
          "format": "int64",
          "readOnly": true
        }
      }
    },
    "_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"
      ]
    },
    "_replicaLinkBuiltIn": {
      "allOf": [
        {
          "$ref": "#/$defs/_builtInRelationship"
        },
        {
          "type": "object",
          "properties": {
            "direction": {
              "$ref": "#/$defs/_direction"
            },
            "lag": {
              "description": "Duration in milliseconds that represents how far\nbehind the replication target is from the source.\nThis is the time difference between current time and `recovery_point`.\n",
              "type": "integer",
              "format": "int64",
              "readOnly": true
            },
            "status_details": {
              "description": "Detailed information about the status of the replica link when it is\nunhealthy.\n",
              "type": "string",
              "readOnly": true
            }
          }
        }
      ]
    }
  }
}