Microsoft Azure API Management AI Gateway Workspace Resources API

The AiGatewayWorkspaceResources API from Microsoft Azure API Management — 1 operation(s) for aigatewayworkspaceresources.

GitHub OpenAPI

Operations 3

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/aigateways/{aiGatewayName}/workspaces/{workspaceName} Ai gateway workspace resources get #
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/aigateways/{aiGatewayName}/workspaces/{workspaceName} Ai gateway workspace resources update #
HEAD /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/aigateways/{aiGatewayName}/workspaces/{workspaceName} Ai gateway workspace resources check existence #

Documentation

Specifications

SDKs

Code Examples

Schemas & Data

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-aigatewayworkspaceresources-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-aigatewayworkspaceresources-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AIGatewayClient AI Gateway Workspace 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: AiGatewayWorkspaceResources
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/aigateways/{aiGatewayName}/workspaces/{workspaceName}
  : get:
      operationId: AiGatewayWorkspaceResources_Get
      tags:
      - AiGatewayWorkspaceResources
      description: Get a 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/AiGatewayWorkspaceResource'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Ai gateway workspace resources get
      x-summary-source: derived
    patch:
      operationId: AiGatewayWorkspaceResources_Update
      tags:
      - AiGatewayWorkspaceResources
      description: Update a 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$
      - $ref: '#/components/parameters/If-Match'
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiGatewayWorkspaceResource'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AiGatewayWorkspaceUpdateParameters'
        description: The resource properties to be updated.
        required: true
      summary: Ai gateway workspace resources update
      x-summary-source: derived
    head:
      operationId: AiGatewayWorkspaceResources_CheckExistence
      tags:
      - AiGatewayWorkspaceResources
      description: Check for the existence of a 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: 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 workspace resources check existence
      x-summary-source: derived
components:
  schemas:
    AiGatewayIpFilterAction:
      type: string
      description: Action performed by an IP filtering policy.
      enum:
      - Allow
      - Deny
      x-ms-enum:
        name: AiGatewayIpFilterAction
        modelAsString: true
        values:
        - name: Allow
          value: Allow
          description: Allow matching addresses.
        - name: Deny
          value: Deny
          description: Deny matching addresses.
    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.
    AiGatewayCostLimitOverride:
      type: object
      description: An ordered cost-budget override; exactly one selector must be specified.
      properties:
        claims:
          type: object
          description: Authenticated token claims that must all match; dictionary keys are case-sensitive claim names.
          additionalProperties:
            type: string
        apiKeyResourceId:
          type: string
          format: arm-id
          description: Azure resource identifier of the API key selecting this override.
          x-ms-arm-id-details:
            allowedResources:
            - type: Microsoft.ApiManagement/aigateways/apiKeys
            - type: Microsoft.ApiManagement/service/apiKeys
        amount:
          type: number
          format: decimal
          description: Override budget in US dollars.
      required:
      - amount
    AiGatewayAgentHookAuthorizationUpdate:
      type: object
      description: Agent-hook authorization settings to update.
      properties:
        type:
          $ref: '#/components/schemas/AiGatewayAgentHookAuthorizationType'
          description: Authorization kind.
        identity:
          $ref: '#/components/schemas/AiGatewayAgentHookIdentityUpdate'
          description: Managed identity selection.
        audience:
          type: string
          format: uri
          description: Token audience URI.
    AiGatewayAgentHooks:
      type: object
      description: Lifecycle hooks supported on tool servers.
      properties:
        preToolCall:
          $ref: '#/components/schemas/AiGatewayAgentHook'
          description: Hook invoked before calling a tool.
        postToolCall:
          $ref: '#/components/schemas/AiGatewayAgentHook'
          description: Hook invoked after calling a tool.
    AiGatewayWorkspaceUpdateProperties:
      type: object
      description: Properties for updating an AI Gateway workspace.
      properties:
        policies:
          type: array
          description: Inline governance policies to replace on the default workspace.
          items:
            $ref: '#/components/schemas/AiGatewayPolicyUpdate'
          x-ms-identifiers: []
    AiGatewayAgentHookUpdate:
      type: object
      description: External hook settings to update.
      properties:
        endpoint:
          type: string
          format: uri
          description: Hook destination HTTPS URL.
        authorization:
          $ref: '#/components/schemas/AiGatewayAgentHookAuthorizationUpdate'
          description: Hook authorization settings.
        headers:
          type: object
          description: Literal, non-secret HTTP headers.
          additionalProperties:
            type: string
    AiGatewayAgentHookAuthorizationType:
      type: string
      description: Authorization kind for an agent hook.
      enum:
      - anonymous
      - managedIdentity
      x-ms-enum:
        name: AiGatewayAgentHookAuthorizationType
        modelAsString: true
        values:
        - name: Anonymous
          value: anonymous
          description: Call without authentication.
        - name: ManagedIdentity
          value: managedIdentity
          description: Authenticate using a managed identity.
    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
    AiGatewayAgentHook:
      type: object
      description: External hook settings; omitted fields inherit policy-level settings.
      properties:
        endpoint:
          type: string
          format: uri
          description: Hook destination HTTPS URL.
        authorization:
          $ref: '#/components/schemas/AiGatewayAgentHookAuthorization'
          description: Hook authorization settings.
        headers:
          type: object
          description: Literal, non-secret HTTP headers, returned by read operations.
          additionalProperties:
            type: string
    AiGatewayAgentHookAuthorization:
      type: object
      description: Authorization settings for an external agent hook.
      properties:
        type:
          $ref: '#/components/schemas/AiGatewayAgentHookAuthorizationType'
          description: Authorization kind.
        identity:
          $ref: '#/components/schemas/AiGatewayAgentHookIdentity'
          description: Managed identity selection, required for managedIdentity authorization.
        audience:
          type: string
          format: uri
          description: Absolute token audience URI, required for managedIdentity authorization.
      required:
      - type
    AiGatewayWorkspaceResource:
      type: object
      description: An AI Gateway workspace resource.
      properties:
        properties:
          $ref: '#/components/schemas/AiGatewayWorkspaceProperties'
          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'
    AiGatewayPolicyPeriod:
      type: string
      description: Counter period. Token limits support minute/hour/day; cost limits support hour/day/week/month/year.
      enum:
      - minute
      - hour
      - day
      - week
      - month
      - year
      x-ms-enum:
        name: AiGatewayPolicyPeriod
        modelAsString: true
        values:
        - name: Minute
          value: minute
          description: One minute.
        - name: Hour
          value: hour
          description: One hour.
        - name: Day
          value: day
          description: One day.
        - name: Week
          value: week
          description: One week, for cost limits only.
        - name: Month
          value: month
          description: One month, for cost limits only.
        - name: Year
          value: year
          description: One year, for cost limits only.
    AiGatewayPolicyUpdate:
      type: object
      description: An inline policy to update on an AI Gateway model or tool server.
      properties:
        type:
          $ref: '#/components/schemas/AiGatewayPolicyType'
          description: Policy type.
        scope:
          $ref: '#/components/schemas/AiGatewayPolicyScope'
          description: Aggregation scope supported by the policy and its parent resource.
        id:
          type: string
          description: Stable identifier for costLimit or agentHooks.
        count:
          type: integer
          format: int32
          description: Token count allowed during a token limit period.
          minimum: 1
        period:
          $ref: '#/components/schemas/AiGatewayPolicyPeriod'
          description: Counter period. Token limits support minute/hour/day; cost limits support hour/day/week/month/year.
        counterKey:
          type: array
          description: Public dimensions used to partition a token, cost, or request counter.
          items:
            $ref: '#/components/schemas/AiGatewayCounterDimension'
        amount:
          type: number
          format: decimal
          description: Cost budget in US dollars.
        overrides:
          type: array
          description: Ordered cost-budget overrides.
          items:
            $ref: '#/components/schemas/AiGatewayCostLimitOverrideUpdate'
          x-ms-identifiers: []
        preInvocation:
          type: boolean
          description: Whether to check tool requests for threats.
        postInvocation:
          type: boolean
          description: Whether to check tool responses for threats.
        endpoint:
          type: string
          format: uri
          description: Default HTTPS destination for agent hooks.
        authorization:
          $ref: '#/components/schemas/AiGatewayAgentHookAuthorizationUpdate'
          description: Default authorization for agent hooks.
        headers:
          type: object
          description: Literal non-secret default HTTP headers for agent hooks.
          additionalProperties:
            type: string
        hooks:
          $ref: '#/components/schemas/AiGatewayAgentHooksUpdate'
          description: Lifecycle hooks to update.
        hateSeverity:
          $ref: '#/components/schemas/AiGatewayContentSafetySeverity'
          description: Hate-content severity threshold.
        violenceSeverity:
          $ref: '#/components/schemas/AiGatewayContentSafetySeverity'
          description: Violence-content severity threshold.
        sexualSeverity:
          $ref: '#/components/schemas/AiGatewayContentSafetySeverity'
          description: Sexual-content severity threshold.
        selfHarmSeverity:
          $ref: '#/components/schemas/AiGatewayContentSafetySeverity'
          description: Self-harm-content severity threshold.
        threshold:
          type: integer
          format: int32
          description: Consecutive failure count that opens a fallback circuit.
        tripDurationSeconds:
          type: integer
          format: int32
          description: Duration for which the fallback circuit remains open.
        fallbackTargets:
          type: array
          description: Ordered fallback model targets.
          items:
            $ref: '#/components/schemas/AiGatewayFallbackTargetUpdate'
          x-ms-identifiers: []
        action:
          $ref: '#/components/schemas/AiGatewayIpFilterAction'
          description: IP filtering action.
        cidrRanges:
          type: array
          description: CIDR ranges to allow or deny.
          items:
            type: string
        callsPerPeriod:
          type: integer
          format: int32
          description: Request count allowed during the configured period.
          minimum: 1
        periodSeconds:
          type: integer
          format: int32
          description: Request rate limit period in seconds.
        allowedOrigins:
          type: array
          description: Origins allowed by a CORS policy.
          items:
            type: string
        allowedMethods:
          type: array
          description: HTTP methods allowed by a CORS policy.
          items:
            type: string
        allowedHeaders:
          type: array
          description: HTTP headers allowed by a CORS policy.
          items:
            type: string
        exposeHeaders:
          type: array
          description: Response headers exposed to the browser.
          items:
            type: string
        allowCredentials:
          type: boolean
          description: Whether browsers may send credentials.
        terminateUnmatchedRequest:
          type: boolean
          description: Whether unmatched CORS requests are terminated.
        preflightResultMaxAge:
          type: integer
          format: int32
          description: Browser preflight cache duration in seconds.
    AiGatewayAgentHookIdentityType:
      type: string
      description: Managed identity kind selected for an agent hook.
      enum:
      - systemAssigned
      - userAssigned
      x-ms-enum:
        name: AiGatewayAgentHookIdentityType
        modelAsString: true
        values:
        - name: SystemAssigned
          value: systemAssigned
          description: Use the gateway's system-assigned identity.
        - name: UserAssigned
          value: userAssigned
          description: Use a user-assigned identity.
    AiGatewayAgentHookIdentity:
      type: object
      description: Managed identity selected to authorize an agent hook.
      properties:
        type:
          $ref: '#/components/schemas/AiGatewayAgentHookIdentityType'
          description: Managed identity kind.
        clientId:
          type: string
          description: User-assigned identity client ID; omit for a system-assigned identity.
      required:
      - type
    AiGatewayPolicy:
      type: object
      description: An inline policy. Supported policy types and scopes depend on the parent resource.
      properties:
        type:
          $ref: '#/components/schemas/AiGatewayPolicyType'
          description: Policy type.
        scope:
          $ref: '#/components/schemas/AiGatewayPolicyScope'
          description: Policy scope. Workspace counter policies use workspace; other policies use resource. Agent hooks require an explicit resource scope.
        id:
          type: string
          description: Stable identifier, required for costLimit and agentHooks policies.
        count:
          type: integer
          format: int32
          description: Token count allowed during a token limit period.
          minimum: 1
        period:
          $ref: '#/components/schemas/AiGatewayPolicyPeriod'
          description: Counter period. Token limits support minute/hour/day; cost limits support hour/day/week/month/year.
        counterKey:
          type: array
          description: Unique public dimensions used to partition a token, cost, or request counter.
          items:
            $ref: '#/components/schemas/AiGatewayCounterDimension'
        amount:
          type: number
          format: decimal
          description: Cost budget in US dollars.
        overrides:
          type: array
          description: Ordered cost-budget overrides; supported only for counterKey [identity]. The first match wins.
          items:
            $ref: '#/components/schemas/AiGatewayCostLimitOverride'
          x-ms-identifiers: []
        preInvocation:
          type: boolean
          description: Whether to check tool requests for threats.
        postInvocation:
          type: boolean
          description: Whether to check tool responses for threats.
        endpoint:
          type: string
          format: uri
          description: Default HTTPS destination for agent hooks.
        authorization:
          $ref: '#/components/schemas/AiGatewayAgentHookAuthorization'
          description: Default authorization for agent hooks.
        headers:
          type: object
          description: Literal non-secret default HTTP headers for agent hooks.
          additionalProperties:
            type: string
        hooks:
          $ref: '#/components/schemas/AiGatewayAgentHooks'
          description: Lifecycle hooks; requires agent-hook authoring to be enabled on the gateway.
        hateSeverity:
          $ref: '#/components/schemas/AiGatewayContentSafetySeverity'
          description: Hate-content severity threshold.
        violenceSeverity:
          $ref: '#/components/schemas/AiGatewayContentSafetySeverity'
          description: Violence-content severity threshold.
        sexualSeverity:
          $ref: '#/components/schemas/AiGatewayContentSafetySeverity'
          description: Sexual-content severity threshold.
        selfHarmSeverity:
          $ref: '#/components/schemas/AiGatewayContentSafetySeverity'
          description: Self-harm-content severity threshold.
        threshold:
          type: integer
          format: int32
          description: Consecutive failure count that opens a fallback circuit.
        tripDurationSeconds:
          type: integer
          format: int32
          description: Duration for which the fallback circuit remains open.
        fallbackTargets:
          type: array
          description: Ordered fallback model targets.
          items:
            $ref: '#/components/schemas/AiGatewayFallbackTarget'
          x-ms-identifiers:
          - modelId
        action:
          $ref: '#/components/schemas/AiGatewayIpFilterAction'
          description: IP filtering action.
        cidrRanges:
          type: array
          description: CIDR ranges to allow or deny.
          items:
            type: string
        callsPerPeriod:
          type: integer
          format: int32
          description: Request count allowed during the configured period.
          minimum: 1
        periodSeconds:
          type: integer
          format: int32
          description: Request rate limit period in seconds.
        allowedOrigins:
          type: array
          description: Origins allowed by a CORS policy.
          items:
            type: string
        allowedMethods:
          type: array
          description: HTTP methods allowed by a CORS policy.
          items:
            type: string
        allowedHeaders:
          type: array
          description: HTTP headers allowed by a CORS policy.
          items:
            type: string
        exposeHeaders:
          type: array
          description: Response headers exposed to the browser.
          items:
            type: string
        allowCredentials:
          type: boolean
          description: Whether browsers may send credentials.
        terminateUnmatchedRequest:
          type: boolean
          description: Whether unmatched CORS requests are terminated.
        preflightResultMaxAge:
          type: integer
          format: int32
          description: Browser preflight cache duration in seconds.
      required:
      - type
    AiGatewayContentSafetySeverity:
      type: string
      description: Severity threshold used by a content safety policy.
      enum:
      - Low
      - Medium
      - High
      - None
      x-ms-enum:
        name: AiGatewayContentSafetySeverity
        modelAsString: true
        values:
        - name: Low
          value: Low
          description: Low severity.
        - name: Medium
          value: Medium
          description: Medium severity.
        - name: High
          value: High
          description: High severity.
        - name: None
          value: None
          description: Do not filter this category.
    AiGatewayFallbackTargetUpdate:
      type: object
      description: A fallback target to update on a model policy.
      properties:
        modelId:
          type: string
          format: arm-id
          description: Resource identifier of a model in the same workspace.
          x-ms-arm-id-details:
            allowedResources:
            - type: Microsoft.ApiManagement/aigateways/workspaces/modelProviders/models
            - type: Microsoft.ApiManagement/service/workspaces/modelProviders/models
    AiGatewayAgentHookIdentityUpdate:
      type: object
      description: Agent-hook managed identity settings to update.
      properties:
        type:
          $ref: '#/components/schemas/AiGatewayAgentHookIdentityType'
          description: Managed identity kind.
        clientId:
          type: string
          description: User-assigned identity client ID; omit for a system-assigned identity.
    AiGatewayWorkspaceUpdateParameters:
      type: object
      description: Parameters for updating an AI Gateway workspace.
      properties:
        properties:
          $ref: '#/components/schemas/AiGatewayWorkspaceUpdateProperties'
          description: Workspace properties to update.
    AiGatewayWorkspaceProperties:
      type: object
      description: Properties of an AI Gateway workspace.
      properties:
        name:
          type: string
          description: Display name of the workspace.
          readOnly: true
          x-ms-client-name: displayName
        description:
          type: string
          description: Description of the workspace.
          readOnly: true
        policies:
          type: array
          description: Inline governance policies for the default workspace.
          items:
            $ref: '#/components/schemas/AiGatewayPolicy'
          x-ms-identifiers: []
        provisioningState:
          $ref: '#/components/schemas/AiGatewayProvisioningState'
          description: Provisioning state of the resource.
          readOnly: true
      required:
      - name
      - description
    AiGatewayPolicyType:
      type: string
      description: The type of an inline AI Gateway policy.
      enum:
      - tokenLimit
      - contentSafety
      - fallback
      - ipFilter
      - requestRateLimit
      - cors
      - costLimit
      - toolThreatProtection
      - agentHooks
      x-ms-enum:
        name: AiGatewayPolicyType
        modelAsString: true
        values:
        - name: TokenLimit
          value: tokenLimit
          description: Limit consumed tokens.
        - name: ContentSafety
          value: contentSafety
          description: Filter unsafe content.
        - name: Fallback
          value: fallback
          description: Route to fallback models after failures.
        - name: IpFilter
          value: ipFilter
          description: Filter clients by IP address.
        - name: RequestRateLimit
          value: requestRateLimit
          description: Limit requests over time.
        - name: Cors
          value: cors
          description: Configure cross-origin resource sharing.
        - name: CostLimit
          value: costLimit
          description: Limit cumulative spending in US dollars.
        - name: ToolThreatProtection
          value: toolThreatProtection
          description: Check tool requests and responses for threats.
        - name: AgentHooks
          value: agentHooks
          description: Invoke external pre-tool-call and post-tool-call hooks when authoring is enabled.
    AiGatewayCounterDimension:
      type: string
      description: Public request dimension used to partition a policy counter.
      enum:
      - identity
      - ipAddress
      x-ms-enum:
        name: AiGatewayCounterDimension
        modelAsString: true
        values:
        - name: Identity
          value: identity
          description: Authenticated request identity.
        - name: IpAddress
          value: ipAddress
          description: Request source IP address.
    AiGatewayFallbackTarget:
      type: object
      description: A fallback target for a model policy.
      properties:
        modelId:
          type: string
          format: arm-id
          description: Resource identifier of a model in the same workspace.
          x-ms-arm-id-details:
            allowedResources:
            - type: Microsoft.ApiManagement/aigateways/workspaces/modelProviders/models
            - type: Microsoft.ApiManagement/service/workspaces/modelProviders/models
      required:
      - modelId
    AiGatewayPolicyScope:
      type: string
      description: Aggregation scope of an inline policy.
      enum:
      - resource
      - workspace
      x-ms-enum:
        name: AiGatewayPolicyScope
        modelAsString: true
        values:
        - name: Resource
          value: resource
          description: Apply the policy to its resource.
        - name: Workspace
          value: workspace
          description: Aggregate counters across the workspace. Supported for workspace counter policies only.
    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'
    AiGatewayAgentHooksUpdate:
      type: object
      description: Lifecycle hook settings to update.
      properties:
        preToolCall:
          $ref: '#/components/schemas/AiGatewayAgentHookUpdate'
          description: Hook invoked before calling a tool.
        postToolCall:
          $ref: '#/components/schemas/AiGatewayAgentHookUpdate'
          description: Hook invoked after calling a tool.
    AiGatewayCostLimitOverrideUpdate:
      type: object
      description: An ordered cost-budget override to update.
      properties:
        claims:
          type: object
          description: Authenticated token claims that must all match; dictionary keys are case-sensitive claim names.
          additionalProperties:
            type: string
        apiKeyResourceId:
          type: string
          format: arm-id
          description: Azure resource identifier of the API key selecting this override.
          x-ms-arm-id-details:
            allowedResources:
            - type: Microsoft.ApiManagement/aigateways/apiKeys
            - type: Microsoft.ApiManagement/service/apiKeys
        amount:
          type: number
          format: decimal
          description: Override budget in US dollars.
  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.