{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cockroach-labs/json-schema/cockroach-labs-list-egress-private-endpoints-response-schema.json",
  "title": "ListEgressPrivateEndpointsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cockroach-labs-egress-private-endpoints-api-openapi.yml#/components/schemas/ListEgressPrivateEndpointsResponse",
  "type": "object",
  "properties": {
    "egress_private_endpoints": {
      "description": "egress_private_endpoints are the egress private endpoints associated with the given cluster.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/EgressPrivateEndpoint"
      }
    },
    "pagination": {
      "$ref": "#/$defs/KeysetPaginationResponse"
    }
  },
  "required": [
    "egress_private_endpoints"
  ],
  "$defs": {
    "EgressPrivateEndpoint": {
      "type": "object",
      "properties": {
        "domain_names": {
          "description": "domain_names are the domain names associated with the egress private endpoint.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "domain_names_state": {
          "$ref": "#/$defs/EgressPrivateEndpointDomainNamesState.Type"
        },
        "endpoint_address": {
          "type": "string",
          "title": "endpoint_address is the cloud-provider generated address (either\nIP address or DNS name) through which the endpoint is accessible"
        },
        "endpoint_connection_id": {
          "description": "endpoint_connection_id is the cloud-specific id for egress private endpoints.\nThis connection ID is visible in CRL and CSP consoles as \"VPC endpoint ID\" and\nis used to uniquely identify the endpoint in external configurations.",
          "type": "string"
        },
        "id": {
          "description": "A generated ID that uniquely identifies the egress_private_endpoint\nfor use with the CockroachDB Cloud API. This ID is generic and not specific\nto the cloud provider.",
          "type": "string"
        },
        "region": {
          "description": "region represents the cloud region that the endpoint was created in.",
          "type": "string"
        },
        "state": {
          "$ref": "#/$defs/EgressPrivateEndpointState.Type"
        },
        "target_service_identifier": {
          "description": "target_service_identifier represents the identifier of the target service.\nUser-visible in CRL and CSP consoles as the \"thing\" the user is telling us to connect to,\ni.e. Service Name for AWS, Service Attachment for GCP, or ARN for AWS MSK.",
          "type": "string"
        },
        "target_service_type": {
          "$ref": "#/$defs/EgressPrivateEndpointTargetServiceType.Type"
        }
      },
      "required": [
        "id",
        "endpoint_connection_id",
        "region",
        "target_service_identifier",
        "target_service_type",
        "endpoint_address",
        "state",
        "domain_names"
      ],
      "title": "EgressPrivateEndpoint"
    },
    "EgressPrivateEndpointDomainNamesState.Type": {
      "type": "string",
      "enum": [
        "EMPTY",
        "PENDING",
        "AVAILABLE",
        "FAILED"
      ],
      "title": "- EMPTY: EMPTY indicates that there are no egress private endpoint domain names on the cluster\n - PENDING: PENDING indicates that the domain names are currently being applied on the cluster\n - AVAILABLE: AVAILABLE indicates that the domain names have been applied on the cluster\n - FAILED: FAILED indicates that the domain names have failed to apply on the cluster"
    },
    "EgressPrivateEndpointState.Type": {
      "type": "string",
      "enum": [
        "PENDING",
        "PENDING_ACCEPTANCE",
        "AVAILABLE",
        "DELETING",
        "DELETED",
        "REJECTED",
        "FAILED",
        "EXPIRED"
      ]
    },
    "EgressPrivateEndpointTargetServiceType.Type": {
      "type": "string",
      "enum": [
        "PRIVATE_SERVICE",
        "MSK_SASL_SCRAM",
        "MSK_SASL_IAM",
        "MSK_TLS"
      ],
      "title": "- PRIVATE_SERVICE: PRIVATE_SERVICE represents any private service, such as a GCP service attachment, or an AWS VPC endpoint service.\n - MSK_SASL_SCRAM: MSK_SASL_SCRAM represents the managed Kafka service in AWS, with SASL/SCRAM auth\n - MSK_SASL_IAM: MSK_SASL_IAM represents the managed Kafka service in AWS, with SASL/IAM auth\n - MSK_TLS: MSK_TLS represents the managed Kafka service in AWS, with TLS auth"
    },
    "KeysetPaginationResponse": {
      "type": "object",
      "properties": {
        "next_page": {
          "type": "string"
        },
        "previous_page": {
          "type": "string"
        }
      }
    }
  }
}