swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector Subscription API schemes: - https tags: - name: Subscription paths: ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions : get: tags: - Subscription operationId: microsoftAzureWorkspacesubscriptionList description: Lists all subscriptions of the workspace in an API Management service instance. x-ms-examples: ApiManagementListWorkspaceSubscriptions: $ref: ./examples/ApiManagementListWorkspaceSubscriptions.json parameters: - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter - $ref: ./apimanagement.json#/parameters/ServiceNameParameter - $ref: ./apimanagement.json#/parameters/WorkspaceIdParameter - name: $filter in: query required: false type: string description: '| Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| user | expand | | |
' - $ref: ./apimanagement.json#/parameters/TopQueryParameter - $ref: ./apimanagement.json#/parameters/SkipQueryParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter responses: '200': description: A collection of the Subscription entities for the specified workspace in an API Management service instance. schema: $ref: ./definitions.json#/definitions/SubscriptionCollection default: description: Error response describing why the operation failed. schema: $ref: ./apimanagement.json#/definitions/ErrorResponse x-ms-pageable: nextLinkName: nextLink x-ms-odata: ./definitions.json#/definitions/SubscriptionContract summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Subscriptions ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid} : head: tags: - Subscription operationId: microsoftAzureWorkspacesubscriptionGetentitytag description: Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. x-ms-examples: ApiManagementHeadWorkspaceSubscription: $ref: ./examples/ApiManagementHeadWorkspaceSubscription.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/SubscriptionEntityIdParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter responses: '200': description: Specified apimanagement subscription 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 Subscriptions Sid get: tags: - Subscription operationId: microsoftAzureWorkspacesubscriptionGet description: Gets the specified Subscription entity. x-ms-examples: ApiManagementGetWorkspaceSubscription: $ref: ./examples/ApiManagementGetWorkspaceSubscription.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/SubscriptionEntityIdParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter responses: '200': description: The response body contains the specified Subscription entity. schema: $ref: ./definitions.json#/definitions/SubscriptionContract 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 Subscriptions Sid put: tags: - Subscription operationId: microsoftAzureWorkspacesubscriptionCreateorupdate description: Creates or updates the subscription of specified user to the specified product. x-ms-examples: ApiManagementCreateWorkspaceSubscription: $ref: ./examples/ApiManagementCreateWorkspaceSubscription.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/SubscriptionEntityIdParameter - name: parameters in: body required: true schema: $ref: ./definitions.json#/definitions/SubscriptionCreateParameters description: Create parameters. - $ref: ./apimanagement.json#/parameters/NotifySubscriptionStateChangeParameter - $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 - $ref: ./apimanagement.json#/parameters/AppTypeParameter responses: '200': description: The user already subscribed to the product. headers: ETag: description: Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. type: string schema: $ref: ./definitions.json#/definitions/SubscriptionContract '201': description: The user was successfully subscribed to the product. headers: ETag: description: Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. type: string schema: $ref: ./definitions.json#/definitions/SubscriptionContract 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 Subscriptions Sid patch: tags: - Subscription operationId: microsoftAzureWorkspacesubscriptionUpdate description: Updates the details of a subscription specified by its identifier. x-ms-examples: ApiManagementUpdateWorkspaceSubscription: $ref: ./examples/ApiManagementUpdateWorkspaceSubscription.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/SubscriptionEntityIdParameter - name: parameters in: body required: true schema: $ref: ./definitions.json#/definitions/SubscriptionUpdateParameters description: Update parameters. - $ref: ./apimanagement.json#/parameters/NotifySubscriptionStateChangeParameter - $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 - $ref: ./apimanagement.json#/parameters/AppTypeParameter responses: '200': description: The subscription details were successfully updated. headers: ETag: description: Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. type: string schema: $ref: ./definitions.json#/definitions/SubscriptionContract default: description: Error response describing why the operation failed. schema: $ref: ./apimanagement.json#/definitions/ErrorResponse summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Subscriptions Sid delete: tags: - Subscription operationId: microsoftAzureWorkspacesubscriptionDelete description: Deletes the specified subscription. x-ms-examples: ApiManagementDeleteWorkspaceSubscription: $ref: ./examples/ApiManagementDeleteWorkspaceSubscription.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/SubscriptionEntityIdParameter - $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: The subscription details were successfully deleted. '204': description: The subscription details were successfully deleted. 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 Subscriptions Sid ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}/regeneratePrimaryKey : post: tags: - Subscription operationId: microsoftAzureWorkspacesubscriptionRegenerateprimarykey description: Regenerates primary key of existing subscription of the workspace in an API Management service instance. x-ms-examples: ApiManagementWorkspaceSubscriptionRegeneratePrimaryKey: $ref: ./examples/ApiManagementWorkspaceSubscriptionRegeneratePrimaryKey.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/SubscriptionEntityIdParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter responses: '204': description: The primary key was successfully regenerated. default: description: Error response describing why the operation failed. schema: $ref: ./apimanagement.json#/definitions/ErrorResponse summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Subscriptions Sid Regenerateprimarykey ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}/regenerateSecondaryKey : post: tags: - Subscription operationId: microsoftAzureWorkspacesubscriptionRegeneratesecondarykey description: Regenerates secondary key of existing subscription of the workspace in an API Management service instance. x-ms-examples: ApiManagementWorkspaceSubscriptionRegenerateSecondaryKey: $ref: ./examples/ApiManagementWorkspaceSubscriptionRegenerateSecondaryKey.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/SubscriptionEntityIdParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter responses: '204': description: The secondary key was successfully regenerated. default: description: Error response describing why the operation failed. schema: $ref: ./apimanagement.json#/definitions/ErrorResponse summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Subscriptions Sid Regeneratesecondarykey ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}/listSecrets : post: tags: - Subscription operationId: microsoftAzureWorkspacesubscriptionListsecrets description: Gets the specified Subscription keys. x-ms-examples: ApiManagementWorkspaceSubscriptionListSecrets: $ref: ./examples/ApiManagementWorkspaceSubscriptionListSecrets.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/SubscriptionEntityIdParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter responses: '200': description: The response body contains subscription keys. schema: $ref: ./definitions.json#/definitions/SubscriptionKeysContract 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 Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Subscriptions Sid Listsecrets x-ms-parameterized-host: hostTemplate: '{endpoint}' useSchemePrefix: false parameters: - $ref: '#/parameters/Endpoint'