Condividi tramite


UsagesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

SqlManagementClient's

<xref:usages> attribute.

Constructor

UsagesOperations(*args, **kwargs)

Methods

list_by_instance_pool

Gets all instance pool usage metrics.

list_by_instance_pool

Gets all instance pool usage metrics.

list_by_instance_pool(resource_group_name: str, instance_pool_name: str, expand_children: bool | None = None, **kwargs: Any) -> AsyncItemPaged[Usage]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required.

instance_pool_name
Required
str

The name of the instance pool to be retrieved. Required.

expand_children

Optional request parameter to include managed instance usages within the instance pool. Default value is None.

Default value: None

Returns

Type Description

An iterator like instance of either Usage or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.sql.models' from 'C:\\ToolCache\\Python\\3.12.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv268\\Lib\\site-packages\\azure\\mgmt\\sql\\models\\__init__.py'>