AiGatewayAliasUpdateParameters

Parameters for updating an AI Gateway alias.

A2AAI GatewayAPI CenterAPI GatewayAPI ManagementEnterpriseMCPMicrosoft Azure

Properties

Name Type Description
properties object Alias properties to update.
View JSON Schema on GitHub

JSON Schema

microsoft-azure-api-management-ai-gateway-alias-update-parameters-schema.json Raw ↑
{
  "$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-alias-update-parameters-schema.json",
  "title": "AiGatewayAliasUpdateParameters",
  "description": "Parameters for updating an AI Gateway alias.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-api-management-aigatewayaliasresources-api-openapi.yml#/components/schemas/AiGatewayAliasUpdateParameters",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/AiGatewayAliasUpdateProperties",
      "description": "Alias properties to update."
    }
  },
  "$defs": {
    "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."
          }
        ]
      }
    },
    "AiGatewayAgentHookAuthorizationUpdate": {
      "type": "object",
      "description": "Agent-hook authorization settings to update.",
      "properties": {
        "type": {
          "$ref": "#/$defs/AiGatewayAgentHookAuthorizationType",
          "description": "Authorization kind."
        },
        "identity": {
          "$ref": "#/$defs/AiGatewayAgentHookIdentityUpdate",
          "description": "Managed identity selection."
        },
        "audience": {
          "type": "string",
          "format": "uri",
          "description": "Token audience URI."
        }
      }
    },
    "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."
          }
        ]
      }
    },
    "AiGatewayAgentHookIdentityUpdate": {
      "type": "object",
      "description": "Agent-hook managed identity settings to update.",
      "properties": {
        "type": {
          "$ref": "#/$defs/AiGatewayAgentHookIdentityType",
          "description": "Managed identity kind."
        },
        "clientId": {
          "type": "string",
          "description": "User-assigned identity client ID; omit for a system-assigned identity."
        }
      }
    },
    "AiGatewayAgentHookUpdate": {
      "type": "object",
      "description": "External hook settings to update.",
      "properties": {
        "endpoint": {
          "type": "string",
          "format": "uri",
          "description": "Hook destination HTTPS URL."
        },
        "authorization": {
          "$ref": "#/$defs/AiGatewayAgentHookAuthorizationUpdate",
          "description": "Hook authorization settings."
        },
        "headers": {
          "type": "object",
          "description": "Literal, non-secret HTTP headers.",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "AiGatewayAgentHooksUpdate": {
      "type": "object",
      "description": "Lifecycle hook settings to update.",
      "properties": {
        "preToolCall": {
          "$ref": "#/$defs/AiGatewayAgentHookUpdate",
          "description": "Hook invoked before calling a tool."
        },
        "postToolCall": {
          "$ref": "#/$defs/AiGatewayAgentHookUpdate",
          "description": "Hook invoked after calling a tool."
        }
      }
    },
    "AiGatewayAliasTargetUpdate": {
      "type": "object",
      "description": "A model target to update on an AI Gateway alias.",
      "properties": {
        "resourceId": {
          "type": "string",
          "format": "arm-id",
          "description": "Azure resource identifier of the target model in the default workspace.",
          "x-ms-arm-id-details": {
            "allowedResources": [
              {
                "type": "Microsoft.ApiManagement/aigateways/workspaces/modelProviders/models"
              },
              {
                "type": "Microsoft.ApiManagement/service/workspaces/modelProviders/models"
              }
            ]
          }
        },
        "priority": {
          "type": "integer",
          "format": "int32",
          "description": "Routing priority. Lower values are preferred; the effective default is zero.",
          "minimum": 0,
          "maximum": 100
        },
        "weight": {
          "type": "integer",
          "format": "int32",
          "description": "Relative selection weight within a priority group. The effective default is one.",
          "minimum": 1,
          "maximum": 100
        }
      }
    },
    "AiGatewayAliasUpdateProperties": {
      "type": "object",
      "description": "Properties to update on an AI Gateway alias.",
      "properties": {
        "aliasName": {
          "type": "string",
          "description": "Client-facing routing name sent in the request model field."
        },
        "description": {
          "type": "string",
          "description": "Description of the alias.",
          "maxLength": 1024
        },
        "backendModels": {
          "type": "array",
          "description": "Ordered target models used for routing.",
          "minItems": 1,
          "maxItems": 30,
          "items": {
            "$ref": "#/$defs/AiGatewayAliasTargetUpdate"
          },
          "x-ms-identifiers": []
        },
        "selectionOrder": {
          "type": "array",
          "description": "Ordered routing stages. Only the routing stage is currently supported.",
          "items": {
            "type": "string",
            "enum": [
              "routing"
            ],
            "x-ms-enum": {
              "modelAsString": false
            }
          }
        },
        "policies": {
          "type": "array",
          "description": "Inline policies applied to requests routed through the alias.",
          "items": {
            "$ref": "#/$defs/AiGatewayPolicyUpdate"
          },
          "x-ms-identifiers": []
        }
      }
    },
    "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."
          }
        ]
      }
    },
    "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."
        }
      }
    },
    "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."
          }
        ]
      }
    },
    "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"
              }
            ]
          }
        }
      }
    },
    "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."
          }
        ]
      }
    },
    "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."
          }
        ]
      }
    },
    "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."
          }
        ]
      }
    },
    "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."
          }
        ]
      }
    },
    "AiGatewayPolicyUpdate": {
      "type": "object",
      "description": "An inline policy to update on an AI Gateway model or tool server.",
      "properties": {
        "type": {
          "$ref": "#/$defs/AiGatewayPolicyType",
          "description": "Policy type."
        },
        "scope": {
          "$ref": "#/$defs/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": "#/$defs/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": "#/$defs/AiGatewayCounterDimension"
          }
        },
        "amount": {
          "type": "number",
          "format": "decimal",
          "description": "Cost budget in US dollars."
        },
        "overrides": {
          "type": "array",
          "description": "Ordered cost-budget overrides.",
          "items": {
            "$ref": "#/$defs/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": "#/$defs/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": "#/$defs/AiGatewayAgentHooksUpdate",
          "description": "Lifecycle hooks to update."
        },
        "hateSeverity": {
          "$ref": "#/$defs/AiGatewayContentSafetySeverity",
          "description": "Hate-content severity threshold."
        },
        "violenceSeverity": {
          "$ref": "#/$defs/AiGatewayContentSafetySeverity",
          "description": "Violence-content severity threshold."
        },
        "sexualSeverity": {
          "$ref": "#/$defs/AiGatewayContentSafetySeverity",
          "description": "Sexual-content severity threshold."
        },
        "selfHarmSeverity": {
          "$ref": "#/$defs/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": "#/$defs/AiGatewayFallbackTargetUpdate"
          },
          "x-ms-identifiers": []
        },
        "action": {
          "$ref": "#/$defs/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."
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/microsoft-azure-api-management-ai-gateway-alias-update-parameters"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.