{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-backup/json-schema/microsoft-azure-backup-private-endpoint-connection-resource-schema.json",
  "title": "PrivateEndpointConnectionResource",
  "description": "Private Endpoint Connection Response Properties",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-backup-privateendpointconnectionresources-api-openapi.yml#/components/schemas/PrivateEndpointConnectionResource",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/PrivateEndpointConnection",
      "description": "PrivateEndpointConnectionResource properties"
    },
    "tags": {
      "type": "object",
      "description": "Resource tags.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "location": {
      "$ref": "#/$defs/Azure.Core.azureLocation",
      "description": "The geo-location where the resource lives",
      "x-ms-mutability": [
        "read",
        "create"
      ]
    },
    "eTag": {
      "type": "string",
      "description": "Optional ETag."
    }
  },
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "Azure.Core.azureLocation": {
      "type": "string",
      "description": "Represents an Azure geography region where supported resource providers live."
    },
    "PrivateEndpoint": {
      "type": "object",
      "description": "The Private Endpoint network resource that is linked to the Private Endpoint connection",
      "properties": {
        "id": {
          "type": "string",
          "description": "Gets or sets id"
        }
      }
    },
    "PrivateEndpointConnection": {
      "type": "object",
      "description": "Private Endpoint Connection Response Properties",
      "properties": {
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "Gets or sets provisioning state of the private endpoint connection"
        },
        "privateEndpoint": {
          "$ref": "#/$defs/PrivateEndpoint",
          "description": "Gets or sets private endpoint associated with the private endpoint connection"
        },
        "groupIds": {
          "type": "array",
          "description": "Group Ids for the Private Endpoint",
          "items": {
            "$ref": "#/$defs/VaultSubResourceType"
          }
        },
        "privateLinkServiceConnectionState": {
          "$ref": "#/$defs/PrivateLinkServiceConnectionState",
          "description": "Gets or sets private link service connection state"
        }
      }
    },
    "PrivateEndpointConnectionStatus": {
      "type": "string",
      "description": "Gets or sets the status",
      "enum": [
        "Pending",
        "Approved",
        "Rejected",
        "Disconnected"
      ],
      "x-ms-enum": {
        "name": "PrivateEndpointConnectionStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Pending",
            "value": "Pending"
          },
          {
            "name": "Approved",
            "value": "Approved"
          },
          {
            "name": "Rejected",
            "value": "Rejected"
          },
          {
            "name": "Disconnected",
            "value": "Disconnected"
          }
        ]
      }
    },
    "PrivateLinkServiceConnectionState": {
      "type": "object",
      "description": "Private Link Service Connection State",
      "properties": {
        "status": {
          "$ref": "#/$defs/PrivateEndpointConnectionStatus",
          "description": "Gets or sets the status"
        },
        "description": {
          "type": "string",
          "description": "Gets or sets description"
        },
        "actionsRequired": {
          "type": "string",
          "description": "Gets or sets actions required"
        }
      }
    },
    "ProvisioningState": {
      "type": "string",
      "description": "Gets or sets provisioning state of the private endpoint connection",
      "enum": [
        "Succeeded",
        "Deleting",
        "Failed",
        "Pending"
      ],
      "x-ms-enum": {
        "name": "ProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Succeeded",
            "value": "Succeeded"
          },
          {
            "name": "Deleting",
            "value": "Deleting"
          },
          {
            "name": "Failed",
            "value": "Failed"
          },
          {
            "name": "Pending",
            "value": "Pending"
          }
        ]
      }
    },
    "VaultSubResourceType": {
      "type": "string",
      "description": "GroupId for the PrivateEndpointConnection - AzureBackup, AzureBackup_secondary or AzureSiteRecovery",
      "enum": [
        "AzureBackup",
        "AzureBackup_secondary",
        "AzureSiteRecovery"
      ],
      "x-ms-enum": {
        "name": "VaultSubResourceType",
        "modelAsString": true,
        "values": [
          {
            "name": "AzureBackup",
            "value": "AzureBackup"
          },
          {
            "name": "AzureBackup_secondary",
            "value": "AzureBackup_secondary"
          },
          {
            "name": "AzureSiteRecovery",
            "value": "AzureSiteRecovery"
          }
        ]
      }
    }
  }
}