location
Creates, updates, deletes, gets or lists a location resource.
Overview
| Name | location |
| Type | Resource |
| Id | azure.container_instance.location |
Fields
The following fields are returned by SELECT queries:
- list_usage
| Name | Datatype | Description |
|---|---|---|
id | string | Id of the usage result. |
name | object | The name object of the resource. |
currentValue | integer | The current usage of the resource. |
limit | integer | The maximum permitted usage of the resource. |
unit | string | Unit of the usage result. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_usage | select | location, subscription_id | Get the usage for a subscription. | |
list_cached_images | exec | location, subscription_id | Get the list of cached images. Get the list of cached images on specific OS type for a subscription in a region. | |
list_capabilities | exec | location, subscription_id | Get the list of capabilities of the location. Get the list of CPU/memory/GPU capabilities of a region. |
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.
| Name | Datatype | Description |
|---|---|---|
location | string | The location name. Required. |
subscription_id | string |
SELECT examples
- list_usage
Get the usage for a subscription.
SELECT
id,
name,
currentValue,
limit,
unit
FROM azure.container_instance.location
WHERE location = '{{ location }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Lifecycle Methods
- list_cached_images
- list_capabilities
Get the list of cached images. Get the list of cached images on specific OS type for a subscription in a region.
EXEC azure.container_instance.location.list_cached_images
@location='{{ location }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Get the list of capabilities of the location. Get the list of CPU/memory/GPU capabilities of a region.
EXEC azure.container_instance.location.list_capabilities
@location='{{ location }}' --required,
@subscription_id='{{ subscription_id }}' --required
;