{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-arc/json-schema/microsoft-azure-arc-credential-results-schema.json",
  "title": "CredentialResults",
  "description": "The list of credential result response.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-arc-connectedclusters-api-openapi.yml#/components/schemas/CredentialResults",
  "type": "object",
  "properties": {
    "hybridConnectionConfig": {
      "$ref": "#/$defs/HybridConnectionConfig",
      "description": "Contains the REP (rendezvous endpoint) and “Sender” access token.",
      "readOnly": true
    },
    "kubeconfigs": {
      "type": "array",
      "description": "Base64-encoded Kubernetes configuration file.",
      "items": {
        "$ref": "#/$defs/CredentialResult"
      },
      "readOnly": true,
      "x-ms-identifiers": [
        "name"
      ]
    }
  },
  "$defs": {
    "CredentialResult": {
      "type": "object",
      "description": "The credential result response.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the credential.",
          "readOnly": true
        },
        "value": {
          "type": "string",
          "format": "byte",
          "description": "Base64-encoded Kubernetes configuration file.",
          "readOnly": true
        }
      }
    },
    "HybridConnectionConfig": {
      "type": "object",
      "description": "Contains the REP (rendezvous endpoint) and “Sender” access token.",
      "properties": {
        "expirationTime": {
          "type": "integer",
          "format": "int64",
          "description": "Timestamp when this token will be expired.",
          "readOnly": true
        },
        "hybridConnectionName": {
          "type": "string",
          "description": "Name of the connection",
          "readOnly": true
        },
        "relay": {
          "type": "string",
          "description": "Name of the relay.",
          "readOnly": true
        },
        "token": {
          "type": "string",
          "description": "Sender access token",
          "readOnly": true
        },
        "relayTid": {
          "type": "string",
          "description": "TenantID of the relay",
          "readOnly": true
        },
        "relayType": {
          "type": "string",
          "description": "Type of relay",
          "readOnly": true
        }
      }
    }
  }
}