{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-cache-for-redis/json-schema/microsoft-azure-cache-for-redis-redis-linked-server-with-properties-list-schema.json",
  "title": "RedisLinkedServerWithPropertiesList",
  "description": "List of linked servers (with properties) of a Redis cache.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-cache-for-redis-linkedserver-api-openapi.yml#/components/schemas/RedisLinkedServerWithPropertiesList",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The RedisLinkedServerWithProperties items on this page",
      "items": {
        "$ref": "#/$defs/RedisLinkedServerWithProperties"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "RedisLinkedServerCreateProperties": {
      "type": "object",
      "description": "Create properties for a linked server",
      "properties": {
        "linkedRedisCacheId": {
          "type": "string",
          "description": "Fully qualified resourceId of the linked redis cache."
        },
        "linkedRedisCacheLocation": {
          "type": "string",
          "description": "Location of the linked redis cache.",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        },
        "serverRole": {
          "$ref": "#/$defs/ReplicationRole",
          "description": "Role of the linked server."
        },
        "geoReplicatedPrimaryHostName": {
          "type": "string",
          "description": "The unchanging DNS name which will always point to current geo-primary cache among the linked redis caches for seamless Geo Failover experience.",
          "readOnly": true
        },
        "primaryHostName": {
          "type": "string",
          "description": "The changing DNS name that resolves to the current geo-primary cache among the linked redis caches before or after the Geo Failover.",
          "readOnly": true
        }
      },
      "required": [
        "linkedRedisCacheId",
        "linkedRedisCacheLocation",
        "serverRole"
      ]
    },
    "RedisLinkedServerProperties": {
      "type": "object",
      "description": "Properties of a linked server to be returned in get/put response",
      "properties": {
        "provisioningState": {
          "type": "string",
          "description": "Terminal state of the link between primary and secondary redis cache.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/RedisLinkedServerCreateProperties"
        }
      ]
    },
    "RedisLinkedServerWithProperties": {
      "type": "object",
      "description": "Response to put/get linked server (with properties) for Redis cache.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/RedisLinkedServerProperties",
          "description": "Properties of the linked server.",
          "x-ms-client-flatten": true
        }
      },
      "allOf": [
        {
          "$ref": "../../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource"
        }
      ]
    },
    "ReplicationRole": {
      "type": "string",
      "description": "Role of the linked server.",
      "enum": [
        "Primary",
        "Secondary"
      ],
      "x-ms-enum": {
        "name": "ReplicationRole",
        "modelAsString": false,
        "values": [
          {
            "name": "Primary",
            "value": "Primary",
            "description": "The linked server is in the writable primary role"
          },
          {
            "name": "Secondary",
            "value": "Secondary",
            "description": "The linked server is in the read-only replica role"
          }
        ]
      }
    }
  }
}