ImagesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ComputeManagementClient's

<xref:images> attribute.

Inheritance
builtins.object
ImagesOperations

Constructor

ImagesOperations(*args, **kwargs)

Methods

begin_create_or_update

Create or update an image.

begin_delete

Deletes an Image.

begin_update

Update an image.

get

Gets an image.

list

Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images.

list_by_resource_group

Gets the list of images under a resource group. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images.

begin_create_or_update

Create or update an image.

begin_create_or_update(resource_group_name: str, image_name: str, parameters: _models.Image, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.Image]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

image_name
Required
str

The name of the image. Required.

parameters
Required
Image or IO[bytes]

Parameters supplied to the Create Image operation. Is either a Image type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns either Image or the result of cls(response)

Exceptions

Type Description

begin_delete

Deletes an Image.

begin_delete(resource_group_name: str, image_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

image_name
Required
str

The name of the image. Required.

Returns

Type Description

An instance of LROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

begin_update

Update an image.

begin_update(resource_group_name: str, image_name: str, parameters: _models.ImageUpdate, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.Image]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

image_name
Required
str

The name of the image. Required.

parameters
Required

Parameters supplied to the Update Image operation. Is either a ImageUpdate type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns either Image or the result of cls(response)

Exceptions

Type Description

get

Gets an image.

get(resource_group_name: str, image_name: str, *, expand: str | None = None, **kwargs: Any) -> Image

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

image_name
Required
str

The name of the image. Required.

Keyword-Only Parameters

Name Description
expand
str

The expand expression to apply on the operation. Default value is None.

Returns

Type Description

Image or the result of cls(response)

Exceptions

Type Description

list

Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images.

list(**kwargs: Any) -> Iterable[Image]

Returns

Type Description

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

Exceptions

Type Description

list_by_resource_group

Gets the list of images under a resource group. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[Image]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.compute.v2023_09_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\compute\\v2023_09_01\\models\\__init__.py'>