DiskEncryptionSetsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:disk_encryption_sets> attribute.
Constructor
DiskEncryptionSetsOperations(*args, **kwargs)
Methods
| begin_create_or_update |
Creates or updates a disk encryption set. |
| begin_delete |
Deletes a disk encryption set. |
| begin_update |
Updates (patches) a disk encryption set. |
| get |
Gets information about a disk encryption set. |
| list |
Lists all the disk encryption sets under a subscription. |
| list_associated_resources |
Lists all resources that are encrypted with this disk encryption set. |
| list_by_resource_group |
Lists all the disk encryption sets under a resource group. |
begin_create_or_update
Creates or updates a disk encryption set.
begin_create_or_update(resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: _models.DiskEncryptionSet, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.DiskEncryptionSet]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
disk_encryption_set_name
Required
|
The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters. Required. |
|
disk_encryption_set
Required
|
disk encryption set object supplied in the body of the Put disk encryption set operation. Is one of the following types: DiskEncryptionSet, JSON, IO[bytes] Required. |
Returns
| Type | Description |
|---|---|
|
An instance of LROPoller that returns DiskEncryptionSet. The DiskEncryptionSet is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
begin_delete
Deletes a disk encryption set.
begin_delete(resource_group_name: str, disk_encryption_set_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. |
|
disk_encryption_set_name
Required
|
The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of LROPoller that returns None |
Exceptions
| Type | Description |
|---|---|
begin_update
Updates (patches) a disk encryption set.
begin_update(resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: _models.DiskEncryptionSetUpdate, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.DiskEncryptionSet]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
disk_encryption_set_name
Required
|
The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters. Required. |
|
disk_encryption_set
Required
|
disk encryption set object supplied in the body of the Patch disk encryption set operation. Is one of the following types: DiskEncryptionSetUpdate, JSON, IO[bytes] Required. |
Returns
| Type | Description |
|---|---|
|
An instance of LROPoller that returns DiskEncryptionSet. The DiskEncryptionSet is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
get
Gets information about a disk encryption set.
get(resource_group_name: str, disk_encryption_set_name: str, **kwargs: Any) -> DiskEncryptionSet
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
disk_encryption_set_name
Required
|
The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters. Required. |
Returns
| Type | Description |
|---|---|
|
DiskEncryptionSet. The DiskEncryptionSet is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
list
Lists all the disk encryption sets under a subscription.
list(**kwargs: Any) -> ItemPaged[DiskEncryptionSet]
Returns
| Type | Description |
|---|---|
|
An iterator like instance of DiskEncryptionSet |
Exceptions
| Type | Description |
|---|---|
list_associated_resources
Lists all resources that are encrypted with this disk encryption set.
list_associated_resources(resource_group_name: str, disk_encryption_set_name: str, **kwargs: Any) -> ItemPaged[str]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
disk_encryption_set_name
Required
|
The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters. Required. |
Returns
| Type | Description |
|---|---|
|
An iterator like instance of str |
Exceptions
| Type | Description |
|---|---|
list_by_resource_group
Lists all the disk encryption sets under a resource group.
list_by_resource_group(resource_group_name: str, **kwargs: Any) -> ItemPaged[DiskEncryptionSet]
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 DiskEncryptionSet |
Exceptions
| Type | Description |
|---|---|