{ "swagger": "2.0", "info": { "title": "HDInsightManagementClient", "description": "The HDInsight Management Client.", "version": "2018-06-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}/providers/Microsoft.HDInsight/locations/{location}/usages": { "get": { "tags": [ "Regions" ], "operationId": "Locations_ListUsages", "description": "Lists the usages for the specified location.", "x-ms-examples": { "Get the subscription usages for specific location": { "$ref": "./examples/GetHDInsightUsages.json" } }, "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/LocationParameter" }, { "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "./operations.json#/definitions/ErrorResponse" } }, "200": { "description": "OK response definition.", "schema": { "$ref": "#/definitions/UsagesListResult" } } } } } }, "definitions": { "LocalizedName": { "description": "The details about the localizable name of a type of usage.", "properties": { "value": { "description": "The name of the used resource.", "type": "string" }, "localizedValue": { "description": "The localized name of the used resource.", "type": "string" } }, "readOnly": true }, "Usage": { "description": "The details about the usage of a particular limited resource.", "properties": { "unit": { "description": "The type of measurement for usage.", "type": "string" }, "currentValue": { "description": "The current usage.", "type": "integer" }, "limit": { "description": "The maximum allowed usage.", "type": "integer" }, "name": { "description": "The details about the localizable name of the used resource.", "$ref": "#/definitions/LocalizedName" } }, "readOnly": true }, "UsagesListResult": { "description": "The response for the operation to get regional usages for a subscription.", "properties": { "value": { "description": "The list of usages.", "type": "array", "items": { "$ref": "#/definitions/Usage" } } }, "readOnly": true } }, "parameters": { "SubscriptionIdParameter": { "name": "subscriptionId", "in": "path", "required": true, "type": "string", "description": "The subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." }, "LocationParameter": { "name": "location", "in": "path", "required": true, "type": "string", "description": "The location to get capabilities for.", "x-ms-parameter-location": "method" }, "ApiVersionParameter": { "name": "api-version", "in": "query", "required": true, "type": "string", "description": "The HDInsight client API Version." } } }