{ "swagger": "2.0", "info": { "title": "NetworkManagementClient", "description": "The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.", "version": "2019-07-01" }, "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.Network/locations/{location}/usages": { "get": { "tags": [ "Usages" ], "operationId": "Usages_List", "description": "List network usages for a subscription.", "parameters": [ { "name": "location", "in": "path", "required": true, "type": "string", "description": "The location where resource usage is queried.", "pattern": "^[-\\w\\._ ]+$" }, { "$ref": "./network.json#/parameters/ApiVersionParameter" }, { "$ref": "./network.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { "description": "Request successful. The operation returns a list of Usage resources.", "schema": { "$ref": "#/definitions/UsagesListResult" } } }, "x-ms-examples": { "List usages": { "$ref": "./examples/UsageList.json" }, "List usages spaced location": { "$ref": "./examples/UsageListSpacedLocation.json" } }, "x-ms-pageable": { "nextLinkName": "nextLink" } } } }, "definitions": { "UsageName": { "properties": { "value": { "type": "string", "description": "A string describing the resource name." }, "localizedValue": { "type": "string", "description": "A localized string describing the resource name." } }, "description": "The usage names." }, "Usage": { "properties": { "id": { "type": "string", "readOnly": true, "description": "Resource identifier." }, "unit": { "type": "string", "description": "An enum describing the unit of measurement.", "enum": [ "Count" ], "x-ms-enum": { "name": "UsageUnit", "modelAsString": true } }, "currentValue": { "type": "integer", "format": "int64", "description": "The current value of the usage." }, "limit": { "type": "integer", "format": "int64", "description": "The limit of usage." }, "name": { "$ref": "#/definitions/UsageName", "description": "The name of the type of usage." } }, "required": [ "unit", "currentValue", "limit", "name" ], "description": "Describes network resource usage." }, "UsagesListResult": { "properties": { "value": { "type": "array", "items": { "$ref": "#/definitions/Usage" }, "description": "The list network resource usages." }, "nextLink": { "type": "string", "description": "URL to get the next set of results." } }, "description": "The list usages operation response." } } }