Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Microsoft Azure Api Management API Operation API
version: '2024-05-01'
description: 'Operations tagged ApiOperation across 2 of this provider''s published API definitions: microsoft-azure-api-management-apimanagement-resource-manager-Microsoft.ApiManagement-ApiManagement-stable-2024-05-01-apimapis.json, microsoft-azure-api-management-apimanagement-resource-manager-Microsoft.ApiManagement-ApiManagement-stable-2024-05-01-apimworkspaces.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://management.azure.com
security:
- azure_auth:
- user_impersonation
tags:
- name: ApiOperation
paths:
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations
: get:
tags:
- ApiOperation
operationId: ApiOperation_ListByApi
description: Lists a collection of the operations for the specified API.
parameters:
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- $ref: '#/components/parameters/ServiceNameParameter'
- $ref: '#/components/parameters/ApiIdRevParameter'
- name: $filter
in: query
required: false
description: '| Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>'
schema:
type: string
- $ref: '#/components/parameters/TopQueryParameter'
- $ref: '#/components/parameters/SkipQueryParameter'
- name: tags
in: query
required: false
description: Include tags in the response.
schema:
type: string
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
responses:
'200':
description: A collection of operation summary entities at the API level.
content:
application/json:
schema:
$ref: '#/components/schemas/OperationCollection'
default:
description: Error response describing why the operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-pageable:
nextLinkName: nextLink
x-ms-odata: ./definitions.json#/definitions/OperationContract
summary: Api operation list by api
x-summary-source: derived
servers:
- url: https://management.azure.com
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}
: head:
tags:
- ApiOperation
operationId: ApiOperation_GetEntityTag
description: Gets the entity state (Etag) version of the API operation specified by its identifier.
parameters:
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- $ref: '#/components/parameters/ServiceNameParameter'
- $ref: '#/components/parameters/ApiIdRevParameter'
- $ref: '#/components/parameters/OperationIdParameter'
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
responses:
'200':
description: Specified API operation entity exists and current entity state version is present in the ETag header.
headers:
ETag:
description: Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.
schema:
type: string
default:
description: Error response describing why the operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Api operation get entity tag
x-summary-source: derived
get:
tags:
- ApiOperation
operationId: ApiOperation_Get
description: Gets the details of the API Operation specified by its identifier.
parameters:
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- $ref: '#/components/parameters/ServiceNameParameter'
- $ref: '#/components/parameters/ApiIdRevParameter'
- $ref: '#/components/parameters/OperationIdParameter'
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
responses:
'200':
description: The response body contains the specified Operation entity.
headers:
ETag:
description: Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/OperationContract'
default:
description: Error response describing why the operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Api operation get
x-summary-source: derived
put:
tags:
- ApiOperation
operationId: ApiOperation_CreateOrUpdate
description: Creates a new operation in the API or updates an existing one.
parameters:
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- $ref: '#/components/parameters/ServiceNameParameter'
- $ref: '#/components/parameters/ApiIdRevParameter'
- $ref: '#/components/parameters/OperationIdParameter'
- $ref: '#/components/parameters/IfMatchOptionalParameter'
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
responses:
'201':
description: Operation was successfully created.
headers:
ETag:
description: Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/OperationContract'
'200':
description: Operation was successfully updated.
headers:
ETag:
description: Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/OperationContract'
default:
description: Error response describing why the operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/OperationContract'
description: Create parameters.
required: true
summary: Api operation create or update
x-summary-source: derived
patch:
tags:
- ApiOperation
operationId: ApiOperation_Update
description: Updates the details of the operation in the API specified by its identifier.
parameters:
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- $ref: '#/components/parameters/ServiceNameParameter'
- $ref: '#/components/parameters/ApiIdRevParameter'
- $ref: '#/components/parameters/OperationIdParameter'
- $ref: '#/components/parameters/IfMatchRequiredParameter'
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
responses:
'200':
description: Operation was successfully updated.
headers:
ETag:
description: Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/OperationContract'
default:
description: Error response describing why the operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/OperationUpdateContract'
description: API Operation Update parameters.
required: true
summary: Api operation update
x-summary-source: derived
delete:
tags:
- ApiOperation
operationId: ApiOperation_Delete
description: Deletes the specified operation in the API.
parameters:
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- $ref: '#/components/parameters/ServiceNameParameter'
- $ref: '#/components/parameters/ApiIdRevParameter'
- $ref: '#/components/parameters/OperationIdParameter'
- $ref: '#/components/parameters/IfMatchRequiredParameter'
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
responses:
'200':
description: API operation successfully removed
'204':
description: API operation successfully removed by previous request or does not exist
default:
description: Error response describing why the operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Api operation delete
x-summary-source: derived
servers:
- url: https://management.azure.com
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations
: get:
tags:
- ApiOperation
operationId: WorkspaceApiOperation_ListByApi
description: Lists a collection of the operations for the specified API.
parameters:
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- $ref: '#/components/parameters/ServiceNameParameter'
- $ref: '#/components/parameters/WorkspaceIdParameter'
- $ref: '#/components/parameters/ApiIdRevParameter'
- name: $filter
in: query
required: false
description: '| Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>'
schema:
type: string
- $ref: '#/components/parameters/TopQueryParameter'
- $ref: '#/components/parameters/SkipQueryParameter'
- name: tags
in: query
required: false
description: Include tags in the response.
schema:
type: string
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
responses:
'200':
description: A collection of operation summary entities at the API level.
content:
application/json:
schema:
$ref: '#/components/schemas/OperationCollection'
default:
description: Error response describing why the operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-pageable:
nextLinkName: nextLink
x-ms-odata: ./definitions.json#/definitions/OperationContract
summary: Workspace api operation list by api
x-summary-source: derived
servers:
- url: https://management.azure.com
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}
: head:
tags:
- ApiOperation
operationId: WorkspaceApiOperation_GetEntityTag
description: Gets the entity state (Etag) version of the API operation specified by its identifier.
parameters:
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- $ref: '#/components/parameters/ServiceNameParameter'
- $ref: '#/components/parameters/WorkspaceIdParameter'
- $ref: '#/components/parameters/ApiIdRevParameter'
- $ref: '#/components/parameters/OperationIdParameter'
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
responses:
'200':
description: Specified API operation entity exists and current entity state version is present in the ETag header.
headers:
ETag:
description: Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.
schema:
type: string
default:
description: Error response describing why the operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Workspace api operation get entity tag
x-summary-source: derived
get:
tags:
- ApiOperation
operationId: WorkspaceApiOperation_Get
description: Gets the details of the API Operation specified by its identifier.
parameters:
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- $ref: '#/components/parameters/ServiceNameParameter'
- $ref: '#/components/parameters/WorkspaceIdParameter'
- $ref: '#/components/parameters/ApiIdRevParameter'
- $ref: '#/components/parameters/OperationIdParameter'
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
responses:
'200':
description: The response body contains the specified Operation entity.
headers:
ETag:
description: Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/OperationContract'
default:
description: Error response describing why the operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Workspace api operation get
x-summary-source: derived
put:
tags:
- ApiOperation
operationId: WorkspaceApiOperation_CreateOrUpdate
description: Creates a new operation in the API or updates an existing one.
parameters:
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- $ref: '#/components/parameters/ServiceNameParameter'
- $ref: '#/components/parameters/WorkspaceIdParameter'
- $ref: '#/components/parameters/ApiIdRevParameter'
- $ref: '#/components/parameters/OperationIdParameter'
- $ref: '#/components/parameters/IfMatchOptionalParameter'
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
responses:
'201':
description: Operation was successfully created.
headers:
ETag:
description: Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/OperationContract'
'200':
description: Operation was successfully updated.
headers:
ETag:
description: Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/OperationContract'
default:
description: Error response describing why the operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/OperationContract'
description: Create parameters.
required: true
summary: Workspace api operation create or update
x-summary-source: derived
patch:
tags:
- ApiOperation
operationId: WorkspaceApiOperation_Update
description: Updates the details of the operation in the API specified by its identifier.
parameters:
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- $ref: '#/components/parameters/ServiceNameParameter'
- $ref: '#/components/parameters/WorkspaceIdParameter'
- $ref: '#/components/parameters/ApiIdRevParameter'
- $ref: '#/components/parameters/OperationIdParameter'
- $ref: '#/components/parameters/IfMatchRequiredParameter'
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
responses:
'200':
description: Operation was successfully updated.
headers:
ETag:
description: Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/OperationContract'
default:
description: Error response describing why the operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/OperationUpdateContract'
description: API Operation Update parameters.
required: true
summary: Workspace api operation update
x-summary-source: derived
delete:
tags:
- ApiOperation
operationId: WorkspaceApiOperation_Delete
description: Deletes the specified operation in the API.
parameters:
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- $ref: '#/components/parameters/ServiceNameParameter'
- $ref: '#/components/parameters/WorkspaceIdParameter'
- $ref: '#/components/parameters/ApiIdRevParameter'
- $ref: '#/components/parameters/OperationIdParameter'
- $ref: '#/components/parameters/IfMatchRequiredParameter'
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
responses:
'200':
description: API operation successfully removed
'204':
description: API operation successfully removed by previous request or does not exist
default:
description: Error response describing why the operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Workspace api operation delete
x-summary-source: derived
servers:
- url: https://management.azure.com
components:
parameters:
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
OperationIdParameter:
name: operationId
in: path
required: true
description: Operation identifier within an API. Must be unique in the current API Management service instance.
x-ms-parameter-location: method
schema:
type: string
maxLength: 80
minLength: 1
TopQueryParameter:
name: $top
in: query
required: false
description: Number of records to return.
x-ms-parameter-location: method
schema:
type: integer
format: int32
minimum: 1
ServiceNameParameter:
name: serviceName
in: path
required: true
description: The name of the API Management service.
x-ms-parameter-location: method
schema:
type: string
maxLength: 50
minLength: 1
pattern: ^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$
ApiIdRevParameter:
name: apiId
in: path
required: true
description: API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
x-ms-parameter-location: method
schema:
type: string
maxLength: 256
minLength: 1
pattern: ^[^*#&+:<>?]+$
SkipQueryParameter:
name: $skip
in: query
required: false
description: Number of records to skip.
x-ms-parameter-location: method
schema:
type: integer
format: int32
minimum: 0
ApiVersionParameter:
name: api-version
in: query
description: The API version to use for this operation.
required: true
schema:
type: string
minLength: 1
IfMatchRequiredParameter:
name: If-Match
in: header
required: true
description: ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
x-ms-parameter-location: method
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
IfMatchOptionalParameter:
name: If-Match
in: header
required: false
description: ETag of the Entity. Not required when creating an entity, but required when updating an entity.
x-ms-parameter-location: method
schema:
type: string
WorkspaceIdParameter:
name: workspaceId
in: path
required: true
description: Workspace identifier. Must be unique in the current API Management service instance.
x-ms-parameter-location: method
schema:
type: string
maxLength: 80
minLength: 1
pattern: ^[^*#&+:<>?]+$
schemas:
OperationUpdateContract:
type: object
properties:
properties:
x-ms-client-flatten: true
$ref: '#/components/schemas/OperationUpdateContractProperties'
description: Properties of the API Operation entity that can be updated.
description: API Operation Update Contract details.
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.
OperationCollection:
type: object
properties:
value:
type: array
items:
$ref: '#/components/schemas/OperationContract'
description: Page values.
readOnly: true
count:
type: integer
format: int64
description: Total record count number across all pages.
nextLink:
type: string
description: Next page link if any.
readOnly: true
description: Paged Operation list representation.
OperationContract:
type: object
properties:
properties:
x-ms-client-flatten: true
$ref: '#/components/schemas/OperationContractProperties'
description: Properties of the Operation Contract.
allOf:
- $ref: '#/components/schemas/ProxyResource'
description: API Operation details.
ProxyResource:
title: Proxy Resource
description: The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
type: object
allOf:
- $ref: '#/components/schemas/Resource'
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.
x-refined-from:
- microsoft-azure-api-management-apimanagement-resource-manager-Microsoft.ApiManagement-ApiManagement-stable-2024-05-01-apimapis.json
- microsoft-azure-api-management-apimanagement-resource-manager-Microsoft.ApiManagement-ApiManagement-stable-2024-05-01-apimworkspaces.json