Skip to main content

usages_slots

Creates, updates, deletes, gets or lists a usages_slots resource.

Overview

Nameusages_slots
TypeResource
Idazure.app_service.usages_slots

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
nameobjectQuota name.
currentValueinteger (int64)The current value of the resource counter.
limitinteger (int64)The resource limit.
nextResetTimestring (date-time)Next reset time for the resource counter.
unitstringUnits of measurement for the quota resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresourceGroupName, name, slot, subscriptionId$filterDescription for Gets the quota usage information of an app (or deployment slot, if specified).

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
namestringName of the app.
resourceGroupNamestringName of the resource group to which the resource belongs.
slotstringName of the deployment slot. If a slot is not specified, the API will get quota information of the production slot.
subscriptionIdstringYour Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
$filterstringReturn only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'.

SELECT examples

Description for Gets the quota usage information of an app (or deployment slot, if specified).

SELECT
name,
currentValue,
limit,
nextResetTime,
unit
FROM azure.app_service.usages_slots
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND name = '{{ name }}' -- required
AND slot = '{{ slot }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $filter = '{{ $filter }}'
;