swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector WorkspacePolicy API schemes: - https tags: - name: WorkspacePolicy paths: ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies : get: tags: - WorkspacePolicy operationId: microsoftAzureWorkspacepolicyListbyapi description: Get the policy configuration at the workspace level. x-ms-examples: ApiManagementListWorkspacePolicies: $ref: ./examples/ApiManagementListWorkspacePolicies.json parameters: - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter - $ref: ./apimanagement.json#/parameters/ServiceNameParameter - $ref: ./apimanagement.json#/parameters/WorkspaceIdParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter responses: '200': description: Workspace 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 Policies ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies/{policyId} : head: tags: - WorkspacePolicy operationId: microsoftAzureWorkspacepolicyGetentitytag description: Gets the entity state (Etag) version of the workspace policy specified by its identifier. x-ms-examples: ApiManagementHeadWorkspacePolicy: $ref: ./examples/ApiManagementHeadWorkspacePolicy.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/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 workspace 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 Policies Policyid get: tags: - WorkspacePolicy operationId: microsoftAzureWorkspacepolicyGet description: Get the policy configuration at the API level. x-ms-examples: ApiManagementGetWorkspacePolicy: $ref: ./examples/ApiManagementGetWorkspacePolicy.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/PolicyIdParameter - $ref: ./apimanagement.json#/parameters/PolicyExportFormat - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter responses: '200': description: Workspace 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 Policies Policyid put: tags: - WorkspacePolicy operationId: microsoftAzureWorkspacepolicyCreateorupdate description: Creates or updates policy configuration for the workspace. x-ms-examples: ApiManagementCreateWorkspacePolicy: $ref: ./examples/ApiManagementCreateWorkspacePolicy.json ApiManagementCreateWorkspacePolicyNonXmlEncoded: $ref: ./examples/ApiManagementCreateWorkspacePolicyNonXmlEncoded.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/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: Workspace 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: Workspace 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 Policies Policyid delete: tags: - WorkspacePolicy operationId: microsoftAzureWorkspacepolicyDelete description: Deletes the policy configuration at the workspace. x-ms-examples: ApiManagementDeleteWorkspacePolicy: $ref: ./examples/ApiManagementDeleteWorkspacePolicy.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/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: Successfully deleted the policy configuration at the workspace level. '204': description: Successfully deleted the policy configuration at the workspace level. 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 Policies Policyid x-ms-parameterized-host: hostTemplate: '{endpoint}' useSchemePrefix: false parameters: - $ref: '#/parameters/Endpoint'