@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api ApiManagementClient
@base https://management.azure.com
@version 2018-01-01
@auth OAuth2
@common_fields {resourceGroupName: any # The name of the resource group., serviceName: any # The name of the API Management service., api-version: any # Version of the API to be used with the client request., subscriptionId: any # Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.}
@endpoints 7
@toc subscriptions(7)

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies
@desc Lists all the Global Policy definitions of the Api Management service.
@optional {scope: any # Policy scope.}
@returns(200) Returns an array of Policy Contracts.

@endpoint HEAD /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}
@desc Gets the entity state (Etag) version of the Global policy definition in the Api Management service.
@required {policyId: any # The identifier of the Policy.}
@returns(200) The current entity state version is present in the ETag header.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}
@desc Get the Global policy definition of the Api Management service.
@required {policyId: any # The identifier of the Policy.}
@returns(200) Returns the Policy Contracts.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}
@desc Creates or updates the global policy configuration of the Api Management service.
@required {policyId: any # The identifier of the Policy., parameters: any # The policy contents to apply.}
@returns(200) Global policy configuration of the Api Management service was successfully updated.
@returns(201) Global policy configuration was successfully created.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}
@desc Deletes the global policy configuration of the Api Management Service.
@required {policyId: any # The identifier of the Policy., If-Match: any # 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.}
@returns(200) Successfully deleted the policy configuration at the Global level.
@returns(204) Successfully deleted the policy configuration at the Global level.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policySnippets
@desc Lists all policy snippets.
@optional {scope: any # Policy scope.}
@returns(200) Returns an array of Policy Contracts.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/regions
@desc Lists all azure regions in which the service exists.
@returns(200) Lists of Regions in which the service is deployed.

@end
