SnapshotsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ContainerServiceClient's

<xref:snapshots> attribute.

Inheritance
builtins.object
SnapshotsOperations

Constructor

SnapshotsOperations(*args, **kwargs)

Methods

create_or_update

Creates or updates a snapshot.

Creates or updates a snapshot.

delete

Deletes a snapshot.

Deletes a snapshot.

get

Gets a snapshot.

Gets a snapshot.

list

Gets a list of snapshots in the specified subscription.

Gets a list of snapshots in the specified subscription.

list_by_resource_group

Lists snapshots in the specified subscription and resource group.

Lists snapshots in the specified subscription and resource group.

update_tags

Updates tags on a snapshot.

Updates tags on a snapshot.

create_or_update

Creates or updates a snapshot.

Creates or updates a snapshot.

create_or_update(resource_group_name: str, resource_name: str, parameters: azure.mgmt.containerservice.v2022_01_01.models._models_py3.Snapshot, **kwargs: Any) -> azure.mgmt.containerservice.v2022_01_01.models._models_py3.Snapshot

Parameters

resource_group_name
str
Required

The name of the resource group.

resource_name
str
Required

The name of the managed cluster resource.

parameters
Snapshot
Required

The snapshot to create or update.

cls
callable

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

Returns

Snapshot, or the result of cls(response)

Return type

Exceptions

delete

Deletes a snapshot.

Deletes a snapshot.

delete(resource_group_name: str, resource_name: str, **kwargs: Any) -> None

Parameters

resource_group_name
str
Required

The name of the resource group.

resource_name
str
Required

The name of the managed cluster resource.

cls
callable

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

Returns

None, or the result of cls(response)

Return type

Exceptions

get

Gets a snapshot.

Gets a snapshot.

get(resource_group_name: str, resource_name: str, **kwargs: Any) -> azure.mgmt.containerservice.v2022_01_01.models._models_py3.Snapshot

Parameters

resource_group_name
str
Required

The name of the resource group.

resource_name
str
Required

The name of the managed cluster resource.

cls
callable

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

Returns

Snapshot, or the result of cls(response)

Return type

Exceptions

list

Gets a list of snapshots in the specified subscription.

Gets a list of snapshots in the specified subscription.

list(**kwargs: Any) -> Iterable[azure.mgmt.containerservice.v2022_01_01.models._models_py3.SnapshotListResult]

Parameters

cls
callable

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

Returns

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

Return type

Exceptions

list_by_resource_group

Lists snapshots in the specified subscription and resource group.

Lists snapshots in the specified subscription and resource group.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[azure.mgmt.containerservice.v2022_01_01.models._models_py3.SnapshotListResult]

Parameters

resource_group_name
str
Required

The name of the resource group.

cls
callable

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

Returns

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

Return type

Exceptions

update_tags

Updates tags on a snapshot.

Updates tags on a snapshot.

update_tags(resource_group_name: str, resource_name: str, parameters: azure.mgmt.containerservice.v2022_01_01.models._models_py3.TagsObject, **kwargs: Any) -> azure.mgmt.containerservice.v2022_01_01.models._models_py3.Snapshot

Parameters

resource_group_name
str
Required

The name of the resource group.

resource_name
str
Required

The name of the managed cluster resource.

parameters
TagsObject
Required

Parameters supplied to the Update snapshot Tags operation.

cls
callable

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

Returns

Snapshot, or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.containerservice.v2022_01_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\containerservice\\v2022_01_01\\models\\__init__.py'>