Share via


LocationOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ContainerInstanceManagementClient's

<xref:location> attribute.

Constructor

LocationOperations(*args, **kwargs)

Methods

list_cached_images

Get the list of cached images.

Get the list of cached images on specific OS type for a subscription in a region.

list_capabilities

Get the list of capabilities of the location.

Get the list of CPU/memory/GPU capabilities of a region.

list_usage

Get the usage for a subscription.

list_cached_images

Get the list of cached images.

Get the list of cached images on specific OS type for a subscription in a region.

list_cached_images(location: str, **kwargs: Any) -> Iterable[CachedImages]

Parameters

Name Description
location
Required
str

The identifier for the physical azure location. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either CachedImages or the result of cls(response)

Exceptions

Type Description

list_capabilities

Get the list of capabilities of the location.

Get the list of CPU/memory/GPU capabilities of a region.

list_capabilities(location: str, **kwargs: Any) -> Iterable[Capabilities]

Parameters

Name Description
location
Required
str

The identifier for the physical azure location. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either Capabilities or the result of cls(response)

Exceptions

Type Description

list_usage

Get the usage for a subscription.

list_usage(location: str, **kwargs: Any) -> Iterable[Usage]

Parameters

Name Description
location
Required
str

The identifier for the physical azure location. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

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.containerinstance.models' from 'C:\\ToolCache\\Python\\3.11.9\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv96\\Lib\\site-packages\\azure\\mgmt\\containerinstance\\models\\__init__.py'>