ImagesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:images> attribute.
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
|
The name of the resource group. The name is case insensitive. Required. |
|
image_name
Required
|
The name of the image. Required. |
|
parameters
Required
|
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
|
The name of the resource group. The name is case insensitive. Required. |
|
image_name
Required
|
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
|
The name of the resource group. The name is case insensitive. Required. |
|
image_name
Required
|
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
|
The name of the resource group. The name is case insensitive. Required. |
|
image_name
Required
|
The name of the image. Required. |
|
expand
|
The expand expression to apply on the operation. Default value is None. Default value: 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) -> ItemPaged[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) -> ItemPaged[Image]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. 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.models' from 'C:\\ToolCache\\Python\\3.11.9\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv89\\Lib\\site-packages\\azure\\mgmt\\compute\\models\\__init__.py'>