Usages - List By Instance Pool
Gets all instance pool usage metrics
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/usages?api-version=2023-08-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/usages?expandChildren={expandChildren}&api-version=2023-08-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
instance
|
path | True |
string |
The name of the instance pool to be retrieved. |
|
resource
|
path | True |
string |
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
|
subscription
|
path | True |
string |
The subscription ID that identifies an Azure subscription. |
|
api-version
|
query | True |
string |
The API version to use for the request. |
|
expand
|
query |
boolean |
Optional request parameter to include managed instance usages within the instance pool. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Successfully retrieved the instance pool usages. |
|
| Other Status Codes |
*** Error Responses: ***
|
Examples
| List instance pool usages expanded with children. |
| List instance pool usages. |
List instance pool usages expanded with children.
Sample request
Sample response
{
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/usages/vcore_utilization",
"name": {
"value": "VCore utilization",
"localizedValue": "VCore utilization"
},
"type": "Microsoft.Sql/instancePools/usages",
"unit": "VCores",
"currentValue": 12,
"limit": 16,
"requestedLimit": 40
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/usages/storage_utilization",
"name": {
"value": "Storage utilization",
"localizedValue": "Storage utilization"
},
"type": "Microsoft.Sql/instancePools/usages",
"unit": "VCores",
"currentValue": 384,
"limit": 8196,
"requestedLimit": null
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/usages/database_utilization",
"name": {
"value": "Database utilization",
"localizedValue": "Database utilization"
},
"type": "Microsoft.Sql/instancePools/usages",
"unit": "Number Of Databases",
"currentValue": 5,
"limit": 100,
"requestedLimit": null
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/managedInstances/managedInstance1/usages/vcore_utilization",
"name": {
"value": "VCore utilization",
"localizedValue": "VCore utilization"
},
"type": "Microsoft.Sql/instancePools/managedInstances/usages",
"unit": "VCores",
"currentValue": null,
"limit": 4,
"requestedLimit": null
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/managedInstances/managedInstance2/usages/vcore_utilization",
"name": {
"value": "VCore utilization",
"localizedValue": "VCore utilization"
},
"type": "Microsoft.Sql/instancePools/managedInstances/usages",
"unit": "VCores",
"currentValue": null,
"limit": 4,
"requestedLimit": 8
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/managedInstances/managedInstance1/usages/storage_utilization",
"name": {
"value": "Storage utilization",
"localizedValue": "Storage utilization"
},
"type": "Microsoft.Sql/instancePools/managedInstances/usages",
"unit": "Gigabytes",
"currentValue": null,
"limit": 128,
"requestedLimit": null
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/managedInstances/managedInstance2/usages/storage_utilization",
"name": {
"value": "VCore utilization",
"localizedValue": "VCore utilization"
},
"type": "Microsoft.Sql/instancePools/managedInstances/usages",
"unit": "Gigabytes",
"currentValue": null,
"limit": 128,
"requestedLimit": 256
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/managedInstances/managedInstance1/usages/database_utilization",
"name": {
"value": "Database utilization",
"localizedValue": "Database utilization"
},
"type": "Microsoft.Sql/instancePools/managedInstances/usages",
"unit": "Number Of Databases",
"currentValue": 2,
"limit": 100,
"requestedLimit": null
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/managedInstances/managedInstance2/usages/database_utilization",
"name": {
"value": "Database utilization",
"localizedValue": "Database utilization"
},
"type": "Microsoft.Sql/instancePools/managedInstances/usages",
"unit": "Number Of Databases",
"currentValue": 3,
"limit": 100,
"requestedLimit": null
}
]
}
List instance pool usages.
Sample request
Sample response
{
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/usages/vcore_utilization",
"name": {
"value": "VCore utilization",
"localizedValue": "VCore utilization"
},
"type": "Microsoft.Sql/instancePools/usages",
"unit": "VCores",
"currentValue": 12,
"limit": 16,
"requestedLimit": 40
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/usages/storage_utilization",
"name": {
"value": "Storage utilization",
"localizedValue": "Storage utilization"
},
"type": "Microsoft.Sql/instancePools/usages",
"unit": "VCores",
"currentValue": 384,
"limit": 8196,
"requestedLimit": null
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/usages/database_utilization",
"name": {
"value": "Database utilization",
"localizedValue": "Database utilization"
},
"type": "Microsoft.Sql/instancePools/usages",
"unit": "Number Of Databases",
"currentValue": 5,
"limit": 100,
"requestedLimit": null
}
]
}
Definitions
| Name | Description |
|---|---|
|
Error |
The resource management error additional info. |
|
Error |
The error detail. |
|
Error |
Error response |
| Name |
ARM Usage Name |
| Usage |
ARM usage. |
|
Usage |
A list of usages. |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
The additional info. |
| type |
string |
The additional info type. |
ErrorDetail
The error detail.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
ErrorResponse
Error response
| Name | Type | Description |
|---|---|---|
| error |
The error object. |
Name
ARM Usage Name
| Name | Type | Description |
|---|---|---|
| localizedValue |
string |
Usage name localized value. |
| value |
string |
Usage name value |
Usage
ARM usage.
| Name | Type | Description |
|---|---|---|
| currentValue |
integer (int32) |
Usage current value. |
| id |
string |
Resource ID. |
| limit |
integer (int32) |
Usage limit. |
| name |
Resource name. |
|
| requestedLimit |
integer (int32) |
Usage requested limit. |
| type |
string |
Resource type. |
| unit |
string |
Usage unit. |
UsageListResult
A list of usages.
| Name | Type | Description |
|---|---|---|
| nextLink |
string |
Link to retrieve next page of results. |
| value |
Usage[] |
Array of results. |