你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

UsageOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ComputeManagementClient's

<xref:usage> attribute.

Constructor

UsageOperations(*args, **kwargs)

Methods

list

Gets, for the specified ___location, the current compute resource usage information as well as the limits for compute resources under the subscription.

list

Gets, for the specified ___location, the current compute resource usage information as well as the limits for compute resources under the subscription.

list(___location: str, **kwargs: Any) -> Iterable[Usage]

Parameters

Name Description
___location
Required
str

The ___location for which resource usage is queried. Required.

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.compute.v2024_11_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv86\\Lib\\site-packages\\azure\\mgmt\\compute\\v2024_11_01\\models\\__init__.py'>