Microsoft Azure API Management AI Gateway Model Provider Resources API

The AiGatewayModelProviderResources API from Microsoft Azure API Management — 3 operation(s) for aigatewaymodelproviderresources.

GitHub OpenAPI

Operations 7

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/aigateways/{aiGatewayName}/workspaces/{workspaceName}/modelProviders Ai gateway model provider resources list by workspace #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/aigateways/{aiGatewayName}/workspaces/{workspaceName}/modelProviders/{modelProviderName} Ai gateway model provider resources get #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/aigateways/{aiGatewayName}/workspaces/{workspaceName}/modelProviders/{modelProviderName} Ai gateway model provider resources create or update #
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/aigateways/{aiGatewayName}/workspaces/{workspaceName}/modelProviders/{modelProviderName} Ai gateway model provider resources update #
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/aigateways/{aiGatewayName}/workspaces/{workspaceName}/modelProviders/{modelProviderName} Ai gateway model provider resources delete #
HEAD /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/aigateways/{aiGatewayName}/workspaces/{workspaceName}/modelProviders/{modelProviderName} Ai gateway model provider resources check existence #
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/aigateways/{aiGatewayName}/workspaces/{workspaceName}/modelProviders/{modelProviderName}/listCredentials Ai gateway model provider resources list credentials #

Documentation

Specifications

SDKs

Code Examples

Schemas & Data

📊
JSONStructure
https://artifacts.apis.io/microsoft-azure-api-management/json-structure/ai-gateway-chat-completion-request-structure.json
📊
JSONStructure
https://artifacts.apis.io/microsoft-azure-api-management/json-structure/ai-gateway-chat-completion-response-structure.json
📊
JSONStructure
https://artifacts.apis.io/microsoft-azure-api-management/json-structure/ai-gateway-completion-request-structure.json
📊
JSONStructure
https://artifacts.apis.io/microsoft-azure-api-management/json-structure/ai-gateway-completion-response-structure.json
📊
JSONStructure
https://artifacts.apis.io/microsoft-azure-api-management/json-structure/ai-gateway-embedding-request-structure.json
📊
JSONStructure
https://artifacts.apis.io/microsoft-azure-api-management/json-structure/ai-gateway-embedding-response-structure.json
📊
JSONStructure
https://artifacts.apis.io/microsoft-azure-api-management/json-structure/ai-gateway-mcp-request-structure.json
📊
JSONStructure
https://artifacts.apis.io/microsoft-azure-api-management/json-structure/ai-gateway-mcp-response-structure.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-azure-api-management/json-schema/microsoft-azure-api-management-ai-gateway-model-provider-resource-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-azure-api-management/json-schema/microsoft-azure-api-management-ai-gateway-model-provider-resource-list-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-azure-api-management/json-schema/microsoft-azure-api-management-ai-gateway-model-provider-update-parameters-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-azure-api-management/json-schema/microsoft-azure-api-management-ai-gateway-credential-value-schema.json

Other Resources

🔗
SDKs
https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/apimanagement
🔗
SDKs
https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/apimanagement
🔗
SDKs
https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/apimanagement
🔗
SDKs
https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement
🔗
SDKs
https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/apimanagement
🔗
Tutorials
https://learn.microsoft.com/en-us/azure/api-management/transform-api
🔗
PolicySnippets
https://github.com/Azure/api-management-policy-snippets
🔗
Tools
https://github.com/Azure/azure-api-management-policy-toolkit
🔗
HelmChart
https://github.com/Azure/api-management-self-hosted-gateway/tree/main/helm-charts/azure-api-management-gateway
🔗
MCPServerOverview
https://learn.microsoft.com/en-us/azure/api-management/mcp-server-overview
🔗
ExportRESTToMCP
https://learn.microsoft.com/en-us/azure/api-management/export-rest-mcp-server
🔗
ProxyExistingMCP
https://learn.microsoft.com/en-us/azure/api-management/expose-existing-mcp-server
🔗
A2AAgentAPI
https://learn.microsoft.com/en-us/azure/api-management/agent-to-agent-api
🔗
TokenLimitPolicy
https://learn.microsoft.com/en-us/azure/api-management/llm-token-limit-policy
🔗
SemanticCaching
https://learn.microsoft.com/en-us/azure/api-management/azure-openai-enable-semantic-caching
🔗
ContentSafetyPolicy
https://learn.microsoft.com/en-us/azure/api-management/llm-content-safety-policy
🔗
ReferenceArchitecture
https://github.com/Azure-Samples/ai-hub-gateway-solution-accelerator
🔗
JSONLD
https://artifacts.apis.io/microsoft-azure-api-management/json-ld/microsoft-azure-api-management-ai-gateway-context.jsonld
🔗
Examples
https://artifacts.apis.io/microsoft-azure-api-management/examples/ai-gateway-chat-completion-request-example.json
🔗
Examples
https://artifacts.apis.io/microsoft-azure-api-management/examples/ai-gateway-chat-completion-response-example.json
🔗
Examples
https://artifacts.apis.io/microsoft-azure-api-management/examples/ai-gateway-completion-request-example.json
🔗
Examples
https://artifacts.apis.io/microsoft-azure-api-management/examples/ai-gateway-completion-response-example.json
🔗
Examples
https://artifacts.apis.io/microsoft-azure-api-management/examples/ai-gateway-embedding-request-example.json
🔗
Examples
https://artifacts.apis.io/microsoft-azure-api-management/examples/ai-gateway-embedding-response-example.json
🔗
Examples
https://artifacts.apis.io/microsoft-azure-api-management/examples/ai-gateway-mcp-request-example.json
🔗
Examples
https://artifacts.apis.io/microsoft-azure-api-management/examples/ai-gateway-mcp-response-example.json
🔗
Tutorials
https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-developer-portal-customize

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure-api-management:microsoft-azure-api-management-aigatewaymodelproviderresources-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-api-management-aigatewaymodelproviderresources-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AIGatewayClient AI Gateway Model Provider Resources API
  version: '2026-11-01'
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: AiGatewayModelProviderResources
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/aigateways/{aiGatewayName}/workspaces/{workspaceName}/modelProviders
  : get:
      operationId: AiGatewayModelProviderResources_ListByWorkspace
      tags:
      - AiGatewayModelProviderResources
      description: List AiGatewayModelProviderResource resources by AiGatewayWorkspaceResource
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: aiGatewayName
        in: path
        description: The name of the AiGatewayResource
        required: true
        schema:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{1,22}[a-z0-9]$
      - name: workspaceName
        in: path
        description: The name of the AiGatewayWorkspaceResource
        required: true
        schema:
          type: string
          pattern: ^default$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiGatewayModelProviderResourceListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Ai gateway model provider resources list by workspace
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/aigateways/{aiGatewayName}/workspaces/{workspaceName}/modelProviders/{modelProviderName}
  : get:
      operationId: AiGatewayModelProviderResources_Get
      tags:
      - AiGatewayModelProviderResources
      description: Get a AiGatewayModelProviderResource
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: aiGatewayName
        in: path
        description: The name of the AiGatewayResource
        required: true
        schema:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{1,22}[a-z0-9]$
      - name: workspaceName
        in: path
        description: The name of the AiGatewayWorkspaceResource
        required: true
        schema:
          type: string
          pattern: ^default$
      - name: modelProviderName
        in: path
        description: The name of the AiGatewayModelProviderResource
        required: true
        schema:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiGatewayModelProviderResource'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Ai gateway model provider resources get
      x-summary-source: derived
    put:
      operationId: AiGatewayModelProviderResources_CreateOrUpdate
      tags:
      - AiGatewayModelProviderResources
      description: Create a AiGatewayModelProviderResource
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: aiGatewayName
        in: path
        description: The name of the AiGatewayResource
        required: true
        schema:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{1,22}[a-z0-9]$
      - name: workspaceName
        in: path
        description: The name of the AiGatewayWorkspaceResource
        required: true
        schema:
          type: string
          pattern: ^default$
      - name: modelProviderName
        in: path
        description: The name of the AiGatewayModelProviderResource
        required: true
        schema:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$
      - name: If-Match
        in: header
        description: ETag of the resource. Required for an update.
        required: false
        x-ms-client-name: ifMatch
        schema:
          type: string
      responses:
        '200':
          description: Resource 'AiGatewayModelProviderResource' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiGatewayModelProviderResource'
        '201':
          description: Resource 'AiGatewayModelProviderResource' create operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiGatewayModelProviderResource'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AiGatewayModelProviderResource'
        description: Resource create parameters.
        required: true
      summary: Ai gateway model provider resources create or update
      x-summary-source: derived
    patch:
      operationId: AiGatewayModelProviderResources_Update
      tags:
      - AiGatewayModelProviderResources
      description: Update a AiGatewayModelProviderResource
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: aiGatewayName
        in: path
        description: The name of the AiGatewayResource
        required: true
        schema:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{1,22}[a-z0-9]$
      - name: workspaceName
        in: path
        description: The name of the AiGatewayWorkspaceResource
        required: true
        schema:
          type: string
          pattern: ^default$
      - name: modelProviderName
        in: path
        description: The name of the AiGatewayModelProviderResource
        required: true
        schema:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$
      - $ref: '#/components/parameters/If-Match'
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiGatewayModelProviderResource'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AiGatewayModelProviderUpdateParameters'
        description: The resource properties to be updated.
        required: true
      summary: Ai gateway model provider resources update
      x-summary-source: derived
    delete:
      operationId: AiGatewayModelProviderResources_Delete
      tags:
      - AiGatewayModelProviderResources
      description: Delete a AiGatewayModelProviderResource
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: aiGatewayName
        in: path
        description: The name of the AiGatewayResource
        required: true
        schema:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{1,22}[a-z0-9]$
      - name: workspaceName
        in: path
        description: The name of the AiGatewayWorkspaceResource
        required: true
        schema:
          type: string
          pattern: ^default$
      - name: modelProviderName
        in: path
        description: The name of the AiGatewayModelProviderResource
        required: true
        schema:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$
      - $ref: '#/components/parameters/If-Match'
      responses:
        '200':
          description: Resource deleted successfully.
        '204':
          description: Resource does not exist.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Ai gateway model provider resources delete
      x-summary-source: derived
    head:
      operationId: AiGatewayModelProviderResources_CheckExistence
      tags:
      - AiGatewayModelProviderResources
      description: Check for the existence of a AiGatewayModelProviderResource
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: aiGatewayName
        in: path
        description: The name of the AiGatewayResource
        required: true
        schema:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{1,22}[a-z0-9]$
      - name: workspaceName
        in: path
        description: The name of the AiGatewayWorkspaceResource
        required: true
        schema:
          type: string
          pattern: ^default$
      - name: modelProviderName
        in: path
        description: The name of the AiGatewayModelProviderResource
        required: true
        schema:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$
      responses:
        '200':
          description: A successful existence check, with no response body.
          headers:
            ETag:
              description: Entity tag of the resource.
              schema:
                type: string
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Ai gateway model provider resources check existence
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/aigateways/{aiGatewayName}/workspaces/{workspaceName}/modelProviders/{modelProviderName}/listCredentials
  : post:
      operationId: AiGatewayModelProviderResources_ListCredentials
      tags:
      - AiGatewayModelProviderResources
      description: Returns the stored model-provider credential value, including the secret.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: aiGatewayName
        in: path
        description: The name of the AiGatewayResource
        required: true
        schema:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{1,22}[a-z0-9]$
      - name: workspaceName
        in: path
        description: The name of the AiGatewayWorkspaceResource
        required: true
        schema:
          type: string
          pattern: ^default$
      - name: modelProviderName
        in: path
        description: The name of the AiGatewayModelProviderResource
        required: true
        schema:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiGatewayCredentialValue'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Ai gateway model provider resources list credentials
      x-summary-source: derived
components:
  schemas:
    AiGatewayModelProviderProperties:
      type: object
      description: Properties of an AI Gateway model provider.
      properties:
        kind:
          $ref: '#/components/schemas/AiGatewayModelProviderKind'
          description: Model provider type. This value cannot be changed after creation.
          x-ms-mutability:
          - read
          - create
        name:
          type: string
          description: Display name of the model provider.
          x-ms-client-name: displayName
        description:
          type: string
          description: Description of the model provider.
        foundry:
          $ref: '#/components/schemas/AiGatewayFoundryProviderConfiguration'
          description: Foundry configuration. Required when kind is Foundry.
        custom:
          $ref: '#/components/schemas/AiGatewayCustomProviderConfiguration'
          description: Custom provider configuration. Required when kind is Custom.
        provisioningState:
          $ref: '#/components/schemas/AiGatewayProvisioningState'
          description: Provisioning state of the resource.
          readOnly: true
      required:
      - kind
      - name
    AiGatewayManagedIdentityAuthentication:
      type: object
      description: Managed identity settings for a model provider.
      properties:
        resource:
          type: string
          description: Token audience requested for managed identity authentication.
        clientId:
          type: string
          description: Client ID of a user-assigned managed identity.
    AiGatewayModelProviderResource:
      type: object
      description: An AI Gateway model provider resource.
      properties:
        properties:
          $ref: '#/components/schemas/AiGatewayModelProviderProperties'
          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: '#/components/schemas/ProxyResource'
    ErrorResponse:
      type: object
      title: Error response
      description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
          description: The error object.
    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: '#/components/schemas/Resource'
    AiGatewayCustomAuthentication:
      type: object
      description: Authentication configuration for a custom model provider.
      properties:
        kind:
          type: string
          description: Authentication type.
          enum:
          - ApiKey
          x-ms-enum:
            modelAsString: false
        apiKey:
          $ref: '#/components/schemas/AiGatewayApiKeyCredential'
          description: API key configuration.
      required:
      - kind
      - apiKey
    AiGatewayCustomProviderConfiguration:
      type: object
      description: Custom model provider configuration.
      properties:
        endpoint:
          type: string
          format: uri
          description: Provider base endpoint.
        authentication:
          $ref: '#/components/schemas/AiGatewayCustomAuthentication'
          description: Authentication configuration.
      required:
      - endpoint
      - authentication
    AiGatewayFoundryAuthenticationUpdate:
      type: object
      description: Foundry authentication settings to update.
      properties:
        kind:
          $ref: '#/components/schemas/AiGatewayModelProviderAuthenticationKind'
          description: Authentication type.
        managedIdentity:
          $ref: '#/components/schemas/AiGatewayManagedIdentityAuthentication'
          description: Managed identity settings.
        apiKey:
          $ref: '#/components/schemas/AiGatewayApiKeyCredentialUpdate'
          description: API key configuration.
    AiGatewayModelProviderUpdateProperties:
      type: object
      description: Properties for updating an AI Gateway model provider.
      properties:
        name:
          type: string
          description: Display name of the model provider.
          x-ms-client-name: displayName
        description:
          type: string
          description: Description of the model provider.
        foundry:
          $ref: '#/components/schemas/AiGatewayFoundryProviderConfigurationUpdate'
          description: Foundry configuration.
        custom:
          $ref: '#/components/schemas/AiGatewayCustomProviderConfigurationUpdate'
          description: Custom provider configuration.
    AiGatewayFoundryAuthentication:
      type: object
      description: Authentication configuration for a Foundry model provider.
      properties:
        kind:
          $ref: '#/components/schemas/AiGatewayModelProviderAuthenticationKind'
          description: Authentication type.
        managedIdentity:
          $ref: '#/components/schemas/AiGatewayManagedIdentityAuthentication'
          description: Managed identity settings. Applicable when kind is ManagedIdentity.
        apiKey:
          $ref: '#/components/schemas/AiGatewayApiKeyCredential'
          description: API key configuration. Required when kind is ApiKey.
      required:
      - kind
    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
    AiGatewayCredentialValue:
      type: object
      description: Credential returned for a model provider.
      properties:
        value:
          type: string
          format: password
          description: Stored credential value.
          x-ms-secret: true
    AiGatewayApiKeyCredentialUpdate:
      type: object
      description: API key credentials for updating an upstream service.
      properties:
        headerName:
          type: string
          description: Name of the HTTP header that carries the API key.
        value:
          type: string
          format: password
          description: Secret API key value.
          x-ms-mutability:
          - update
          - create
          x-ms-secret: true
    AiGatewayModelProviderKind:
      type: string
      description: The type of an AI model provider.
      enum:
      - Foundry
      - Custom
      x-ms-enum:
        name: AiGatewayModelProviderKind
        modelAsString: true
        values:
        - name: Foundry
          value: Foundry
          description: Azure AI Foundry provider.
        - name: Custom
          value: Custom
          description: Custom model provider.
    AiGatewayCustomAuthenticationUpdate:
      type: object
      description: Custom model provider authentication settings to update.
      properties:
        kind:
          type: string
          description: Authentication type.
          enum:
          - ApiKey
          x-ms-enum:
            modelAsString: false
        apiKey:
          $ref: '#/components/schemas/AiGatewayApiKeyCredentialUpdate'
          description: API key configuration.
    AiGatewayModelProviderAuthenticationKind:
      type: string
      description: Authentication type used by an AI model provider.
      enum:
      - ManagedIdentity
      - ApiKey
      x-ms-enum:
        name: AiGatewayModelProviderAuthenticationKind
        modelAsString: true
        values:
        - name: ManagedIdentity
          value: ManagedIdentity
          description: Authenticate using a managed identity.
        - name: ApiKey
          value: ApiKey
          description: Authenticate using an API key.
    AiGatewayFoundryProviderConfiguration:
      type: object
      description: Foundry model provider configuration.
      properties:
        endpoint:
          type: string
          format: uri
          description: Foundry endpoint.
        resourceIds:
          type: array
          description: Cognitive Services account resource identifiers available to this provider.
          items:
            type: string
            format: arm-id
            description: A type definition that refers the id to an Azure Resource Manager resource.
            x-ms-arm-id-details:
              allowedResources:
              - type: Microsoft.CognitiveServices/accounts
        authentication:
          $ref: '#/components/schemas/AiGatewayFoundryAuthentication'
          description: Authentication configuration.
      required:
      - resourceIds
      - authentication
    AiGatewayApiKeyCredential:
      type: object
      description: API key credentials for an upstream service.
      properties:
        headerName:
          type: string
          description: Name of the HTTP header that carries the API key.
        value:
          type: string
          format: password
          description: Secret API key value. This value is not returned by read operations.
          x-ms-mutability:
          - update
          - create
          x-ms-secret: true
      required:
      - headerName
    AiGatewayModelProviderResourceListResult:
      type: object
      description: The response of a AiGatewayModelProviderResource list operation.
      properties:
        value:
          type: array
          description: The AiGatewayModelProviderResource items on this page
          items:
            $ref: '#/components/schemas/AiGatewayModelProviderResource'
        nextLink:
          type: string
          format: uri
          description: The link to the next page of items
      required:
      - value
    AiGatewayFoundryProviderConfigurationUpdate:
      type: object
      description: Foundry model provider settings to update.
      properties:
        endpoint:
          type: string
          format: uri
          description: Foundry endpoint.
        resourceIds:
          type: array
          description: Cognitive Services account resource identifiers available to this provider.
          items:
            type: string
            format: arm-id
            description: A type definition that refers the id to an Azure Resource Manager resource.
            x-ms-arm-id-details:
              allowedResources:
              - type: Microsoft.CognitiveServices/accounts
        authentication:
          $ref: '#/components/schemas/AiGatewayFoundryAuthenticationUpdate'
          description: Authentication configuration.
    AiGatewayCustomProviderConfigurationUpdate:
      type: object
      description: Custom model provider settings to update.
      properties:
        endpoint:
          type: string
          format: uri
          description: Provider base endpoint.
        authentication:
          $ref: '#/components/schemas/AiGatewayCustomAuthenticationUpdate'
          description: Authentication configuration.
    AiGatewayModelProviderUpdateParameters:
      type: object
      description: Parameters for updating an AI Gateway model provider.
      properties:
        properties:
          $ref: '#/components/schemas/AiGatewayModelProviderUpdateProperties'
          description: Model provider properties to update.
  parameters:
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The ID of the target subscription. The value must be an UUID.
      required: true
      schema:
        type: string
        format: uuid
    If-Match:
      name: If-Match
      in: header
      description: The If-Match header that makes a request conditional.
      required: true
      x-ms-parameter-location: method
      x-ms-client-name: ifMatch
      schema:
        type: string
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      description: The name of the resource group. The name is case insensitive.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow.