Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update instance pool usages operation id
  • Loading branch information
John Paul Kee committed Jun 17, 2019
commit aa07fa3470c195d8f21a9a194b396a8acac07506
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"swagger": "2.0",
"info": {
"version": "2018-06-01-preview",
"title": "SqlManagementClient",
"description": "The Azure SQL Database management API provides a RESTful set of web APIs that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete databases, servers, and other entities."
"title": "2018-06-01-preview"
},
"host": "management.azure.com",
"schemes": [
Expand All @@ -15,143 +14,8 @@
"produces": [
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/usages": {
"get": {
"tags": [
"InstancePoolUsages"
],
"description": "Gets all instance pool usage metrics",
"operationId": "InstancePoolUsages_ListByInstancePool",
"parameters": [
{
"$ref": "#/parameters/ResourceGroupParameter"
},
{
"name": "instancePoolName",
"in": "path",
"description": "The name of the instance pool to be retrieved.",
"required": true,
"type": "string"
},
{
"name": "expandChildren",
"in": "query",
"description": "Optional request parameter to include managed instance usages within the instance pool.",
"required": false,
"type": "boolean"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Successfully retrieved the instance pool usages.",
"schema": {
"$ref": "#/definitions/UsageListResult"
}
},
"default": {
"description": "*** Error Responses: ***\n\n * 400 InstancePoolWrongUsageName - Request for an instance pool's usage has an unsupported usage name\n\n * 400 InstancePoolManagedInstanceInfoUnavailable - Information for managed instances inside this instance pool is not available\n\n * 404 InstancePoolNotFound - An instance pool cannot be found"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"List instance pool usages.": {
"$ref": "./examples/ListInstancePoolUsage.json"
},
"List instance pool usages expanded with children.": {
"$ref": "./examples/ListInstancePoolUsageExpanded.json"
}
}
}
}
},
"definitions": {
"UsageListResult": {
"description": "A list of usages.",
"type": "object",
"properties": {
"value": {
"description": "Array of results.",
"type": "array",
"items": {
"$ref": "#/definitions/Usage"
},
"readOnly": true
},
"nextLink": {
"description": "Link to retrieve next page of results.",
"type": "string",
"readOnly": true
}
}
},
"Usage": {
"description": "ARM usage.",
"type": "object",
"properties": {
"id": {
"description": "Resource ID.",
"type": "string",
"readOnly": true
},
"name": {
"$ref": "#/definitions/Name",
"description": "Resource name.",
"readOnly": true
},
"type": {
"description": "Resource type.",
"type": "string",
"readOnly": true
},
"unit": {
"description": "Usage unit.",
"type": "string",
"readOnly": true
},
"currentValue": {
"format": "int32",
"description": "Usage current value.",
"type": "integer",
"readOnly": true
},
"limit": {
"format": "int32",
"description": "Usage limit.",
"type": "integer",
"readOnly": true
},
"requestedLimit": {
"format": "int32",
"description": "Usage requested limit.",
"type": "integer",
"readOnly": true
}
}
},
"Name": {
"description": "ARM Usage Name",
"type": "object",
"properties": {
"value": {
"description": "Usage name value",
"type": "string"
},
"localizedValue": {
"description": "Usage name localized value.",
"type": "string"
}
}
}
},
"paths": {},
"definitions": {},
"parameters": {
"SubscriptionIdParameter": {
"name": "subscriptionId",
Expand Down