swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector ApiOperationPolicy API schemes: - https tags: - name: ApiOperationPolicy paths: ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies : get: tags: - ApiOperationPolicy operationId: microsoftAzureWorkspaceapioperationpolicyListbyoperation description: Get the list of policy configuration at the API Operation level. x-ms-examples: ApiManagementListWorkspaceApiOperationPolicies: $ref: ./examples/ApiManagementListWorkspaceApiOperationPolicies.json parameters: - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter - $ref: ./apimanagement.json#/parameters/ServiceNameParameter - $ref: ./apimanagement.json#/parameters/WorkspaceIdParameter - $ref: ./apimanagement.json#/parameters/ApiIdRevParameter - $ref: ./apimanagement.json#/parameters/OperationIdParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter responses: '200': description: Api Operations Policy Collection. schema: $ref: ./definitions.json#/definitions/PolicyCollection default: description: Error response describing why the operation failed. schema: $ref: ./apimanagement.json#/definitions/ErrorResponse x-ms-pageable: nextLinkName: nextLink summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Apis Apiid Operations Operationid Policies ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies/{policyId} : head: tags: - ApiOperationPolicy operationId: microsoftAzureWorkspaceapioperationpolicyGetentitytag description: Gets the entity state (Etag) version of the API operation policy specified by its identifier. x-ms-examples: ApiManagementHeadWorkspaceApiOperationPolicy: $ref: ./examples/ApiManagementHeadWorkspaceApiOperationPolicy.json parameters: - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter - $ref: ./apimanagement.json#/parameters/ServiceNameParameter - $ref: ./apimanagement.json#/parameters/WorkspaceIdParameter - $ref: ./apimanagement.json#/parameters/ApiIdRevParameter - $ref: ./apimanagement.json#/parameters/OperationIdParameter - $ref: ./apimanagement.json#/parameters/PolicyIdParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter responses: '200': description: Specified API operation policy 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. type: string default: description: Error response describing why the operation failed. schema: $ref: ./apimanagement.json#/definitions/ErrorResponse summary: Microsoft Azure Head Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Apis Apiid Operations Operationid Policies Policyid get: tags: - ApiOperationPolicy operationId: microsoftAzureWorkspaceapioperationpolicyGet description: Get the policy configuration at the API Operation level. x-ms-examples: ApiManagementGetWorkspaceApiOperationPolicy: $ref: ./examples/ApiManagementGetWorkspaceApiOperationPolicy.json parameters: - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter - $ref: ./apimanagement.json#/parameters/ServiceNameParameter - $ref: ./apimanagement.json#/parameters/WorkspaceIdParameter - $ref: ./apimanagement.json#/parameters/ApiIdRevParameter - $ref: ./apimanagement.json#/parameters/OperationIdParameter - $ref: ./apimanagement.json#/parameters/PolicyExportFormat - $ref: ./apimanagement.json#/parameters/PolicyIdParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter responses: '200': description: Api Operation Policy information. schema: $ref: ./definitions.json#/definitions/PolicyContract headers: ETag: description: Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. type: string default: description: Error response describing why the operation failed. schema: $ref: ./apimanagement.json#/definitions/ErrorResponse summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Apis Apiid Operations Operationid Policies Policyid put: tags: - ApiOperationPolicy operationId: microsoftAzureWorkspaceapioperationpolicyCreateorupdate description: Creates or updates policy configuration for the API Operation level. x-ms-examples: ApiManagementCreateWorkspaceApiOperationPolicy: $ref: ./examples/ApiManagementCreateWorkspaceApiOperationPolicy.json parameters: - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter - $ref: ./apimanagement.json#/parameters/ServiceNameParameter - $ref: ./apimanagement.json#/parameters/WorkspaceIdParameter - $ref: ./apimanagement.json#/parameters/ApiIdRevParameter - $ref: ./apimanagement.json#/parameters/OperationIdParameter - $ref: ./apimanagement.json#/parameters/PolicyIdParameter - name: parameters in: body required: true schema: $ref: ./definitions.json#/definitions/PolicyContract description: The policy contents to apply. - $ref: ./apimanagement.json#/parameters/IfMatchOptionalParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter responses: '200': description: Api Operation policy configuration of the tenant was successfully updated. schema: $ref: ./definitions.json#/definitions/PolicyContract headers: ETag: description: Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. type: string '201': description: Api Operation policy configuration was successfully created. schema: $ref: ./definitions.json#/definitions/PolicyContract headers: ETag: description: Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. type: string default: description: Error response describing why the operation failed. schema: $ref: ./apimanagement.json#/definitions/ErrorResponse summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Apis Apiid Operations Operationid Policies Policyid delete: tags: - ApiOperationPolicy operationId: microsoftAzureWorkspaceapioperationpolicyDelete description: Deletes the policy configuration at the Api Operation. x-ms-examples: ApiManagementDeleteWorkspaceApiOperationPolicy: $ref: ./examples/ApiManagementDeleteWorkspaceApiOperationPolicy.json parameters: - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter - $ref: ./apimanagement.json#/parameters/ServiceNameParameter - $ref: ./apimanagement.json#/parameters/WorkspaceIdParameter - $ref: ./apimanagement.json#/parameters/ApiIdRevParameter - $ref: ./apimanagement.json#/parameters/OperationIdParameter - $ref: ./apimanagement.json#/parameters/PolicyIdParameter - $ref: ./apimanagement.json#/parameters/IfMatchRequiredParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter responses: '200': description: Policy successfully removed '204': description: Policy successfully removed by previous request or does not exist default: description: Error response describing why the operation failed. schema: $ref: ./apimanagement.json#/definitions/ErrorResponse summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Apis Apiid Operations Operationid Policies Policyid x-ms-parameterized-host: hostTemplate: '{endpoint}' useSchemePrefix: false parameters: - $ref: '#/parameters/Endpoint'