openapi: 3.0.3 info: title: Azure API Management Gateway AI PolicyFragment API description: The AI gateway capabilities in Azure API Management provide specialized features for managing, securing, and observing AI backend APIs including Azure OpenAI, OpenAI-compatible LLMs, MCP servers, and A2A agent APIs. Includes token rate limiting, semantic caching, load balancing across AI backends, and content safety enforcement. version: '2024-05-01' contact: name: Microsoft Azure url: https://learn.microsoft.com/en-us/azure/api-management/genai-gateway-capabilities servers: - url: https://{service-name}.azure-api.net tags: - name: PolicyFragment paths: ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments : get: summary: Microsoft Azure API Management WorkspacePolicyFragment_ListByService operationId: WorkspacePolicyFragment_ListByService description: Gets all policy fragments defined within a workspace. responses: '200': description: Success tags: - PolicyFragment ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id} : head: summary: Microsoft Azure API Management WorkspacePolicyFragment_GetEntityTag operationId: WorkspacePolicyFragment_GetEntityTag description: Gets the entity state (Etag) version of a policy fragment. responses: '200': description: Success tags: - PolicyFragment get: summary: Microsoft Azure API Management WorkspacePolicyFragment_Get operationId: WorkspacePolicyFragment_Get description: Gets a policy fragment. responses: '200': description: Success tags: - PolicyFragment put: summary: Microsoft Azure API Management WorkspacePolicyFragment_CreateOrUpdate operationId: WorkspacePolicyFragment_CreateOrUpdate description: Creates or updates a policy fragment. responses: '200': description: Success tags: - PolicyFragment delete: summary: Microsoft Azure API Management WorkspacePolicyFragment_Delete operationId: WorkspacePolicyFragment_Delete description: Deletes a policy fragment. responses: '200': description: Success tags: - PolicyFragment externalDocs: description: Documentation url: https://learn.microsoft.com/en-us/azure/api-management/genai-gateway-capabilities x-generated-from: documentation