{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-api-management/json-schema/microsoft-azure-api-management-ai-gateway-telemetry-exporter-resource-list-result-schema.json",
  "title": "AiGatewayTelemetryExporterResourceListResult",
  "description": "The response of a AiGatewayTelemetryExporterResource list operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-api-management-aigatewaytelemetryexporterresources-api-openapi.yml#/components/schemas/AiGatewayTelemetryExporterResourceListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The AiGatewayTelemetryExporterResource items on this page",
      "items": {
        "$ref": "#/$defs/AiGatewayTelemetryExporterResource"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "AiGatewayApplicationInsightsConfiguration": {
      "type": "object",
      "description": "Application Insights export destination.",
      "properties": {
        "connectionString": {
          "type": "string",
          "format": "password",
          "description": "Application Insights connection string. Required when creating this exporter kind.",
          "x-ms-mutability": [
            "update",
            "create"
          ],
          "x-ms-secret": true
        },
        "resourceId": {
          "type": "string",
          "format": "arm-id",
          "description": "Azure resource identifier of the Application Insights component.",
          "x-ms-arm-id-details": {
            "allowedResources": [
              {
                "type": "Microsoft.Insights/components"
              }
            ]
          }
        }
      }
    },
    "AiGatewayOpenTelemetryConfiguration": {
      "type": "object",
      "description": "OpenTelemetry export destinations and authentication.",
      "properties": {
        "metricsEndpoint": {
          "type": "string",
          "format": "uri",
          "description": "Full OTLP metrics endpoint URL, used without appending a signal path."
        },
        "logsEndpoint": {
          "type": "string",
          "format": "uri",
          "description": "Full OTLP logs endpoint URL, used without appending a signal path."
        },
        "tracesEndpoint": {
          "type": "string",
          "format": "uri",
          "description": "Full OTLP traces endpoint URL, used without appending a signal path."
        },
        "headers": {
          "type": "object",
          "format": "password",
          "description": "Legacy secret HTTP headers, mutually exclusive with credentials.",
          "additionalProperties": {
            "type": "string"
          },
          "x-ms-mutability": [
            "update",
            "create"
          ],
          "x-ms-secret": true
        },
        "managedIdentity": {
          "$ref": "#/$defs/AiGatewayTelemetryManagedIdentity",
          "description": "Legacy managed identity settings, mutually exclusive with credentials."
        },
        "credentials": {
          "$ref": "#/$defs/AiGatewayTelemetryCredentials",
          "description": "Authentication settings, mutually exclusive with top-level headers and managedIdentity."
        }
      }
    },
    "AiGatewayProvisioningState": {
      "type": "string",
      "description": "Provisioning state of an AI Gateway resource.",
      "enum": [
        "Succeeded",
        "Failed",
        "Canceled"
      ],
      "x-ms-enum": {
        "name": "AiGatewayProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "The resource is ready."
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "The resource operation failed."
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "The resource operation was canceled."
          }
        ]
      },
      "readOnly": true
    },
    "AiGatewayTelemetryAttributeMapping": {
      "type": "object",
      "description": "A claim mapping to azure.ai_gateway.identity.claims.{claim}.",
      "properties": {
        "source": {
          "$ref": "#/$defs/AiGatewayTelemetryAttributeSource",
          "description": "Claim source. Source claim names must be unique across mappings."
        },
        "signals": {
          "type": "array",
          "description": "Distinct signals to enrich. Omit to select all configured signals.",
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/AiGatewayTelemetrySignal"
          }
        }
      },
      "required": [
        "source"
      ]
    },
    "AiGatewayTelemetryAttributeSource": {
      "type": "object",
      "description": "A request JWT claim observed for telemetry only, not authentication or billing.",
      "properties": {
        "kind": {
          "type": "string",
          "description": "Source kind. Only claims is currently supported.",
          "enum": [
            "claims"
          ],
          "x-ms-enum": {
            "modelAsString": false
          }
        },
        "value": {
          "type": "string",
          "description": "Nonempty, case-sensitive claim name.",
          "minLength": 1
        }
      },
      "required": [
        "kind",
        "value"
      ]
    },
    "AiGatewayTelemetryConfiguration": {
      "type": "object",
      "description": "Optional telemetry enrichment on a native AI Gateway OpenTelemetry exporter.",
      "properties": {
        "attributes": {
          "type": "array",
          "description": "Observed-claim mappings; an empty array removes existing mappings.",
          "items": {
            "$ref": "#/$defs/AiGatewayTelemetryAttributeMapping"
          },
          "x-ms-identifiers": [
            "source/value"
          ]
        }
      }
    },
    "AiGatewayTelemetryCredentials": {
      "type": "object",
      "description": "Authentication settings for an OpenTelemetry exporter.",
      "properties": {
        "headers": {
          "type": "object",
          "format": "password",
          "description": "Secret HTTP headers sent with export requests.",
          "additionalProperties": {
            "type": "string"
          },
          "x-ms-mutability": [
            "update",
            "create"
          ],
          "x-ms-secret": true
        },
        "managedIdentity": {
          "$ref": "#/$defs/AiGatewayTelemetryManagedIdentity",
          "description": "Managed identity authentication for export requests."
        }
      }
    },
    "AiGatewayTelemetryExporterKind": {
      "type": "string",
      "description": "Destination kind for gateway telemetry.",
      "enum": [
        "ApplicationInsights",
        "OpenTelemetry"
      ],
      "x-ms-enum": {
        "name": "AiGatewayTelemetryExporterKind",
        "modelAsString": true,
        "values": [
          {
            "name": "ApplicationInsights",
            "value": "ApplicationInsights",
            "description": "Export to Application Insights."
          },
          {
            "name": "OpenTelemetry",
            "value": "OpenTelemetry",
            "description": "Export over OTLP HTTP/protobuf."
          }
        ]
      }
    },
    "AiGatewayTelemetryExporterProperties": {
      "type": "object",
      "description": "Properties of an AI Gateway telemetry exporter.",
      "properties": {
        "kind": {
          "$ref": "#/$defs/AiGatewayTelemetryExporterKind",
          "description": "Exporter kind, which cannot change after creation.",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        },
        "payloadCapture": {
          "type": "boolean",
          "description": "Capture prompts, completions, and tool input/output; no built-in PII redaction is applied.",
          "default": false
        },
        "applicationInsights": {
          "$ref": "#/$defs/AiGatewayApplicationInsightsConfiguration",
          "description": "Configuration required for the ApplicationInsights exporter kind."
        },
        "openTelemetry": {
          "$ref": "#/$defs/AiGatewayOpenTelemetryConfiguration",
          "description": "Configuration required for the OpenTelemetry exporter kind. At least one signal endpoint is required."
        },
        "telemetry": {
          "$ref": "#/$defs/AiGatewayTelemetryConfiguration",
          "description": "Optional observed-claim mappings, supported on native AI Gateway OpenTelemetry exporters."
        },
        "provisioningState": {
          "$ref": "#/$defs/AiGatewayProvisioningState",
          "description": "Provisioning state of the resource.",
          "readOnly": true
        }
      },
      "required": [
        "kind"
      ]
    },
    "AiGatewayTelemetryExporterResource": {
      "type": "object",
      "description": "A telemetry export destination in the default AI Gateway workspace.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/AiGatewayTelemetryExporterProperties",
          "description": "The resource-specific properties for this resource."
        },
        "eTag": {
          "type": "string",
          "description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention.  Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/ProxyResource"
        }
      ]
    },
    "AiGatewayTelemetryManagedIdentity": {
      "type": "object",
      "description": "Managed identity used to authenticate telemetry export requests.",
      "properties": {
        "resource": {
          "type": "string",
          "description": "Token audience requested for the managed identity."
        },
        "clientId": {
          "type": "string",
          "description": "User-assigned managed identity client ID; omit for the system-assigned identity."
        }
      }
    },
    "AiGatewayTelemetrySignal": {
      "type": "string",
      "description": "Telemetry signal receiving a claim attribute.",
      "enum": [
        "logs",
        "traces",
        "metrics"
      ],
      "x-ms-enum": {
        "name": "AiGatewayTelemetrySignal",
        "modelAsString": true,
        "values": [
          {
            "name": "Logs",
            "value": "logs",
            "description": "Log records."
          },
          {
            "name": "Traces",
            "value": "traces",
            "description": "Trace spans."
          },
          {
            "name": "Metrics",
            "value": "metrics",
            "description": "Token-usage and token-cost metrics."
          }
        ]
      }
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    }
  }
}