{ "swagger": "2.0", "info": { "title": "ApiManagementClient", "description": "Use these REST APIs for performing retrieving a collection of policy snippets available in Azure API Management deployment.", "version": "2019-12-01-preview" }, "host": "management.azure.com", "schemes": [ "https" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "security": [ { "azure_auth": [ "user_impersonation" ] } ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", "description": "Azure Active Directory OAuth2 Flow.", "scopes": { "user_impersonation": "impersonate your user account" } } }, "paths": { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyDescriptions": { "get": { "tags": [ "PolicyDescription" ], "operationId": "PolicyDescription_ListByService", "description": "Lists all policy descriptions.", "x-ms-examples": { "ApiManagementListPolicyDescriptions": { "$ref": "./examples/ApiManagementListPolicyDescriptions.json" } }, "parameters": [ { "$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "./apimanagement.json#/parameters/ServiceNameParameter" }, { "name": "scope", "in": "query", "required": false, "type": "string", "description": "Policy scope.", "enum": [ "Tenant", "Product", "Api", "Operation", "All" ], "x-ms-enum": { "name": "PolicyScopeContract", "modelAsString": false } }, { "$ref": "./apimanagement.json#/parameters/ApiVersionParameter" }, { "$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { "description": "Returns an array of policy descriptions.", "schema": { "$ref": "./definitions.json#/definitions/PolicyDescriptionCollection" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "./apimanagement.json#/definitions/ErrorResponse" } } } } } }, "definitions": {}, "parameters": {} }