Usages interface
Interface representing a Usages.
Methods
get(string, string, Usages |
Get the current usage of a resource. |
list(string, Usages |
Get a list of current usage for all resources for the scope specified. |
Method Details
get(string, string, UsagesGetOptionalParams)
Get the current usage of a resource.
function get(resourceName: string, scope: string, options?: UsagesGetOptionalParams): Promise<UsagesGetResponse>
Parameters
- resourceName
-
string
Resource name for a given resource provider. For example: - SKU name for Microsoft.Compute - SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses.
- scope
-
string
The target Azure resource URI. For example,
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/
.
This is the target Azure resource URI for the List GET operation. If a {resourceName}
is added
after /quotas
, then it's the target Azure resource URI in the GET operation for the specific
resource.
- options
- UsagesGetOptionalParams
The options parameters.
Returns
Promise<UsagesGetResponse>
list(string, UsagesListOptionalParams)
Get a list of current usage for all resources for the scope specified.
function list(scope: string, options?: UsagesListOptionalParams): PagedAsyncIterableIterator<CurrentUsagesBase, CurrentUsagesBase[], PageSettings>
Parameters
- scope
-
string
The target Azure resource URI. For example,
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/
.
This is the target Azure resource URI for the List GET operation. If a {resourceName}
is added
after /quotas
, then it's the target Azure resource URI in the GET operation for the specific
resource.
- options
- UsagesListOptionalParams
The options parameters.