Usages interface
表示 Usages 的接口。
方法
| get(string, string, Usages |
获取资源的当前使用情况。 |
| list(string, Usages |
获取指定范围的所有资源的当前使用情况列表。 |
方法详细信息
get(string, string, UsagesGetOptionalParams)
获取资源的当前使用情况。
function get(resourceName: string, scope: string, options?: UsagesGetOptionalParams): Promise<UsagesGetResponse>
参数
- resourceName
-
string
给定资源提供程序的资源名称。 例如: - Microsoft.Compute 的 SKU 名称 - Microsoft.MachineLearningServices for Microsoft.Network PublicIPAddresses 的 SKU 或 TotalLowPriorityCores。
- scope
-
string
目标 Azure 资源 URI。 例如,/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/。
这是列表 GET作的目标 Azure 资源 URI。 如果在 {resourceName}后添加了 /quotas,则它是特定资源的 GET作中的目标 Azure 资源 URI。
- options
- UsagesGetOptionalParams
选项参数。
返回
Promise<UsagesGetResponse>
list(string, UsagesListOptionalParams)
获取指定范围的所有资源的当前使用情况列表。
function list(scope: string, options?: UsagesListOptionalParams): PagedAsyncIterableIterator<CurrentUsagesBase, CurrentUsagesBase[], PageSettings>
参数
- scope
-
string
目标 Azure 资源 URI。 例如,/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/。
这是列表 GET作的目标 Azure 资源 URI。 如果在 {resourceName}后添加了 /quotas,则它是特定资源的 GET作中的目标 Azure 资源 URI。
- options
- UsagesListOptionalParams
选项参数。