azure.mgmt.keyvault.v2023_02_01.operations module
- class azure.mgmt.keyvault.v2023_02_01.operations.KeysOperations(*args, **kwargs)[source]
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
KeyVaultManagementClient’skeysattribute.- create_if_not_exist(resource_group_name: str, vault_name: str, key_name: str, parameters: KeyCreateParameters | IO[bytes], **kwargs: Any) Key[source]
Creates the first version of a new key if it does not exist. If it already exists, then the existing key is returned without any write operations being performed. This API does not create subsequent versions, and does not update existing keys.
- Parameters:
resource_group_name (str) – The name of the resource group which contains the specified key vault. Required.
vault_name (str) – The name of the key vault which contains the key to be created. Required.
key_name (str) – The name of the key to be created. The value you provide may be copied globally for the purpose of running the service. The value provided should not include personally identifiable or sensitive information. Required.
parameters (KeyCreateParameters or IO[bytes]) – The parameters used to create the specified key. Is either a KeyCreateParameters type or a IO[bytes] type. Required.
- Returns:
Key or the result of cls(response)
- Return type:
- Raises:
- get(resource_group_name: str, vault_name: str, key_name: str, **kwargs: Any) Key[source]
Gets the current version of the specified key from the specified key vault.
- Parameters:
- Returns:
Key or the result of cls(response)
- Return type:
- Raises:
- get_version(resource_group_name: str, vault_name: str, key_name: str, key_version: str, **kwargs: Any) Key[source]
Gets the specified version of the specified key in the specified key vault.
- Parameters:
resource_group_name (str) – The name of the resource group which contains the specified key vault. Required.
vault_name (str) – The name of the vault which contains the key version to be retrieved. Required.
key_name (str) – The name of the key version to be retrieved. Required.
key_version (str) – The version of the key to be retrieved. Required.
- Returns:
Key or the result of cls(response)
- Return type:
- Raises:
- list(resource_group_name: str, vault_name: str, **kwargs: Any) Iterable[Key][source]
Lists the keys in the specified key vault.
- Parameters:
- Returns:
An iterator like instance of either Key or the result of cls(response)
- Return type:
- Raises:
- list_versions(resource_group_name: str, vault_name: str, key_name: str, **kwargs: Any) Iterable[Key][source]
Lists the versions of the specified key in the specified key vault.
- Parameters:
- Returns:
An iterator like instance of either Key or the result of cls(response)
- Return type:
- Raises:
- models = <module 'azure.mgmt.keyvault.v2023_02_01.models' from '/mnt/vss/_work/1/s/sdk/keyvault/azure-mgmt-keyvault/.tox/sphinx/lib/python3.13/site-packages/azure/mgmt/keyvault/v2023_02_01/models/__init__.py'>
- class azure.mgmt.keyvault.v2023_02_01.operations.MHSMPrivateEndpointConnectionsOperations(*args, **kwargs)[source]
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
KeyVaultManagementClient’smhsm_private_endpoint_connectionsattribute.- begin_delete(resource_group_name: str, name: str, private_endpoint_connection_name: str, **kwargs: Any) LROPoller[MHSMPrivateEndpointConnection][source]
Deletes the specified private endpoint connection associated with the managed hsm pool.
- Parameters:
- Returns:
An instance of LROPoller that returns either MHSMPrivateEndpointConnection or the result of cls(response)
- Return type:
- Raises:
- get(resource_group_name: str, name: str, private_endpoint_connection_name: str, **kwargs: Any) MHSMPrivateEndpointConnection[source]
Gets the specified private endpoint connection associated with the managed HSM Pool.
- Parameters:
- Returns:
MHSMPrivateEndpointConnection or the result of cls(response)
- Return type:
- Raises:
- list_by_resource(resource_group_name: str, name: str, **kwargs: Any) Iterable[MHSMPrivateEndpointConnection][source]
The List operation gets information about the private endpoint connections associated with the managed HSM Pool.
- Parameters:
- Returns:
An iterator like instance of either MHSMPrivateEndpointConnection or the result of cls(response)
- Return type:
- Raises:
- put(resource_group_name: str, name: str, private_endpoint_connection_name: str, properties: MHSMPrivateEndpointConnection | IO[bytes], **kwargs: Any) MHSMPrivateEndpointConnection[source]
Updates the specified private endpoint connection associated with the managed hsm pool.
- Parameters:
resource_group_name (str) – Name of the resource group that contains the managed HSM pool. Required.
name (str) – Name of the managed HSM Pool. Required.
private_endpoint_connection_name (str) – Name of the private endpoint connection associated with the managed hsm pool. Required.
properties (MHSMPrivateEndpointConnection or IO[bytes]) – The intended state of private endpoint connection. Is either a MHSMPrivateEndpointConnection type or a IO[bytes] type. Required.
- Returns:
MHSMPrivateEndpointConnection or the result of cls(response)
- Return type:
- Raises:
- models = <module 'azure.mgmt.keyvault.v2023_02_01.models' from '/mnt/vss/_work/1/s/sdk/keyvault/azure-mgmt-keyvault/.tox/sphinx/lib/python3.13/site-packages/azure/mgmt/keyvault/v2023_02_01/models/__init__.py'>
- class azure.mgmt.keyvault.v2023_02_01.operations.MHSMPrivateLinkResourcesOperations(*args, **kwargs)[source]
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
KeyVaultManagementClient’smhsm_private_link_resourcesattribute.- list_by_mhsm_resource(resource_group_name: str, name: str, **kwargs: Any) MHSMPrivateLinkResourceListResult[source]
Gets the private link resources supported for the managed hsm pool.
- Parameters:
- Returns:
MHSMPrivateLinkResourceListResult or the result of cls(response)
- Return type:
- Raises:
- models = <module 'azure.mgmt.keyvault.v2023_02_01.models' from '/mnt/vss/_work/1/s/sdk/keyvault/azure-mgmt-keyvault/.tox/sphinx/lib/python3.13/site-packages/azure/mgmt/keyvault/v2023_02_01/models/__init__.py'>
- class azure.mgmt.keyvault.v2023_02_01.operations.MHSMRegionsOperations(*args, **kwargs)[source]
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
KeyVaultManagementClient’smhsm_regionsattribute.- list_by_resource(resource_group_name: str, name: str, **kwargs: Any) Iterable[MHSMGeoReplicatedRegion][source]
The List operation gets information about the regions associated with the managed HSM Pool.
- Parameters:
- Returns:
An iterator like instance of either MHSMGeoReplicatedRegion or the result of cls(response)
- Return type:
- Raises:
- models = <module 'azure.mgmt.keyvault.v2023_02_01.models' from '/mnt/vss/_work/1/s/sdk/keyvault/azure-mgmt-keyvault/.tox/sphinx/lib/python3.13/site-packages/azure/mgmt/keyvault/v2023_02_01/models/__init__.py'>
- class azure.mgmt.keyvault.v2023_02_01.operations.ManagedHsmKeysOperations(*args, **kwargs)[source]
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
KeyVaultManagementClient’smanaged_hsm_keysattribute.- create_if_not_exist(resource_group_name: str, name: str, key_name: str, parameters: ManagedHsmKeyCreateParameters | IO[bytes], **kwargs: Any) ManagedHsmKey[source]
Creates the first version of a new key if it does not exist. If it already exists, then the existing key is returned without any write operations being performed. This API does not create subsequent versions, and does not update existing keys.
- Parameters:
resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.
name (str) – The name of the Managed HSM Pool within the specified resource group. Required.
key_name (str) – The name of the key to be created. The value you provide may be copied globally for the purpose of running the service. The value provided should not include personally identifiable or sensitive information. Required.
parameters (ManagedHsmKeyCreateParameters or IO[bytes]) – The parameters used to create the specified key. Is either a ManagedHsmKeyCreateParameters type or a IO[bytes] type. Required.
- Returns:
ManagedHsmKey or the result of cls(response)
- Return type:
- Raises:
- get(resource_group_name: str, name: str, key_name: str, **kwargs: Any) ManagedHsmKey[source]
Gets the current version of the specified key from the specified managed HSM.
- Parameters:
resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.
name (str) – The name of the Managed HSM Pool within the specified resource group. Required.
key_name (str) – The name of the key to be created. The value you provide may be copied globally for the purpose of running the service. The value provided should not include personally identifiable or sensitive information. Required.
- Returns:
ManagedHsmKey or the result of cls(response)
- Return type:
- Raises:
- get_version(resource_group_name: str, name: str, key_name: str, key_version: str, **kwargs: Any) ManagedHsmKey[source]
Gets the specified version of the specified key in the specified managed HSM.
- Parameters:
resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.
name (str) – The name of the Managed HSM Pool within the specified resource group. Required.
key_name (str) – The name of the key to be created. The value you provide may be copied globally for the purpose of running the service. The value provided should not include personally identifiable or sensitive information. Required.
key_version (str) – The version of the key to be retrieved. Required.
- Returns:
ManagedHsmKey or the result of cls(response)
- Return type:
- Raises:
- list(resource_group_name: str, name: str, **kwargs: Any) Iterable[ManagedHsmKey][source]
Lists the keys in the specified managed HSM.
- Parameters:
- Returns:
An iterator like instance of either ManagedHsmKey or the result of cls(response)
- Return type:
- Raises:
- list_versions(resource_group_name: str, name: str, key_name: str, **kwargs: Any) Iterable[ManagedHsmKey][source]
Lists the versions of the specified key in the specified managed HSM.
- Parameters:
resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.
name (str) – The name of the Managed HSM Pool within the specified resource group. Required.
key_name (str) – The name of the key to be created. The value you provide may be copied globally for the purpose of running the service. The value provided should not include personally identifiable or sensitive information. Required.
- Returns:
An iterator like instance of either ManagedHsmKey or the result of cls(response)
- Return type:
- Raises:
- models = <module 'azure.mgmt.keyvault.v2023_02_01.models' from '/mnt/vss/_work/1/s/sdk/keyvault/azure-mgmt-keyvault/.tox/sphinx/lib/python3.13/site-packages/azure/mgmt/keyvault/v2023_02_01/models/__init__.py'>
- class azure.mgmt.keyvault.v2023_02_01.operations.ManagedHsmsOperations(*args, **kwargs)[source]
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
KeyVaultManagementClient’smanaged_hsmsattribute.- begin_create_or_update(resource_group_name: str, name: str, parameters: ManagedHsm | IO[bytes], **kwargs: Any) LROPoller[ManagedHsm][source]
Create or update a managed HSM Pool in the specified subscription.
- Parameters:
resource_group_name (str) – Name of the resource group that contains the managed HSM pool. Required.
name (str) – Name of the managed HSM Pool. Required.
parameters (ManagedHsm or IO[bytes]) – Parameters to create or update the managed HSM Pool. Is either a ManagedHsm type or a IO[bytes] type. Required.
- Returns:
An instance of LROPoller that returns either ManagedHsm or the result of cls(response)
- Return type:
- Raises:
- begin_delete(resource_group_name: str, name: str, **kwargs: Any) LROPoller[None][source]
Deletes the specified managed HSM Pool.
- Parameters:
- Returns:
An instance of LROPoller that returns either None or the result of cls(response)
- Return type:
LROPoller[None]
- Raises:
- begin_purge_deleted(name: str, location: str, **kwargs: Any) LROPoller[None][source]
Permanently deletes the specified managed HSM.
- Parameters:
- Returns:
An instance of LROPoller that returns either None or the result of cls(response)
- Return type:
LROPoller[None]
- Raises:
- begin_update(resource_group_name: str, name: str, parameters: ManagedHsm | IO[bytes], **kwargs: Any) LROPoller[ManagedHsm][source]
Update a managed HSM Pool in the specified subscription.
- Parameters:
resource_group_name (str) – Name of the resource group that contains the managed HSM pool. Required.
name (str) – Name of the managed HSM Pool. Required.
parameters (ManagedHsm or IO[bytes]) – Parameters to patch the managed HSM Pool. Is either a ManagedHsm type or a IO[bytes] type. Required.
- Returns:
An instance of LROPoller that returns either ManagedHsm or the result of cls(response)
- Return type:
- Raises:
- check_mhsm_name_availability(mhsm_name: CheckMhsmNameAvailabilityParameters | IO[bytes], **kwargs: Any) CheckMhsmNameAvailabilityResult[source]
Checks that the managed hsm name is valid and is not already in use.
- Parameters:
mhsm_name (CheckMhsmNameAvailabilityParameters or IO[bytes]) – The name of the managed hsm. Is either a CheckMhsmNameAvailabilityParameters type or a IO[bytes] type. Required.
- Returns:
CheckMhsmNameAvailabilityResult or the result of cls(response)
- Return type:
- Raises:
- get(resource_group_name: str, name: str, **kwargs: Any) ManagedHsm | None[source]
Gets the specified managed HSM Pool.
- Parameters:
- Returns:
ManagedHsm or None or the result of cls(response)
- Return type:
ManagedHsm or None
- Raises:
- get_deleted(name: str, location: str, **kwargs: Any) DeletedManagedHsm[source]
Gets the specified deleted managed HSM.
- Parameters:
- Returns:
DeletedManagedHsm or the result of cls(response)
- Return type:
- Raises:
- list_by_resource_group(resource_group_name: str, top: int | None = None, **kwargs: Any) Iterable[ManagedHsm][source]
The List operation gets information about the managed HSM Pools associated with the subscription and within the specified resource group.
- Parameters:
- Returns:
An iterator like instance of either ManagedHsm or the result of cls(response)
- Return type:
- Raises:
- list_by_subscription(top: int | None = None, **kwargs: Any) Iterable[ManagedHsm][source]
The List operation gets information about the managed HSM Pools associated with the subscription.
- Parameters:
top (int) – Maximum number of results to return. Default value is None.
- Returns:
An iterator like instance of either ManagedHsm or the result of cls(response)
- Return type:
- Raises:
- list_deleted(**kwargs: Any) Iterable[DeletedManagedHsm][source]
The List operation gets information about the deleted managed HSMs associated with the subscription.
- Returns:
An iterator like instance of either DeletedManagedHsm or the result of cls(response)
- Return type:
- Raises:
- models = <module 'azure.mgmt.keyvault.v2023_02_01.models' from '/mnt/vss/_work/1/s/sdk/keyvault/azure-mgmt-keyvault/.tox/sphinx/lib/python3.13/site-packages/azure/mgmt/keyvault/v2023_02_01/models/__init__.py'>
- class azure.mgmt.keyvault.v2023_02_01.operations.Operations(*args, **kwargs)[source]
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
KeyVaultManagementClient’soperationsattribute.- list(**kwargs: Any) Iterable[Operation][source]
Lists all of the available Key Vault Rest API operations.
- Returns:
An iterator like instance of either Operation or the result of cls(response)
- Return type:
- Raises:
- models = <module 'azure.mgmt.keyvault.v2023_02_01.models' from '/mnt/vss/_work/1/s/sdk/keyvault/azure-mgmt-keyvault/.tox/sphinx/lib/python3.13/site-packages/azure/mgmt/keyvault/v2023_02_01/models/__init__.py'>
- class azure.mgmt.keyvault.v2023_02_01.operations.PrivateEndpointConnectionsOperations(*args, **kwargs)[source]
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
KeyVaultManagementClient’sprivate_endpoint_connectionsattribute.- begin_delete(resource_group_name: str, vault_name: str, private_endpoint_connection_name: str, **kwargs: Any) LROPoller[PrivateEndpointConnection][source]
Deletes the specified private endpoint connection associated with the key vault.
- Parameters:
- Returns:
An instance of LROPoller that returns either PrivateEndpointConnection or the result of cls(response)
- Return type:
- Raises:
- get(resource_group_name: str, vault_name: str, private_endpoint_connection_name: str, **kwargs: Any) PrivateEndpointConnection | None[source]
Gets the specified private endpoint connection associated with the key vault.
- Parameters:
- Returns:
PrivateEndpointConnection or None or the result of cls(response)
- Return type:
PrivateEndpointConnection or None
- Raises:
- list_by_resource(resource_group_name: str, vault_name: str, **kwargs: Any) Iterable[PrivateEndpointConnection][source]
The List operation gets information about the private endpoint connections associated with the vault.
- Parameters:
- Returns:
An iterator like instance of either PrivateEndpointConnection or the result of cls(response)
- Return type:
- Raises:
- put(resource_group_name: str, vault_name: str, private_endpoint_connection_name: str, properties: PrivateEndpointConnection | IO[bytes], **kwargs: Any) PrivateEndpointConnection[source]
Updates the specified private endpoint connection associated with the key vault.
- Parameters:
resource_group_name (str) – Name of the resource group that contains the key vault. Required.
vault_name (str) – The name of the key vault. Required.
private_endpoint_connection_name (str) – Name of the private endpoint connection associated with the key vault. Required.
properties (PrivateEndpointConnection or IO[bytes]) – The intended state of private endpoint connection. Is either a PrivateEndpointConnection type or a IO[bytes] type. Required.
- Returns:
PrivateEndpointConnection or the result of cls(response)
- Return type:
- Raises:
- models = <module 'azure.mgmt.keyvault.v2023_02_01.models' from '/mnt/vss/_work/1/s/sdk/keyvault/azure-mgmt-keyvault/.tox/sphinx/lib/python3.13/site-packages/azure/mgmt/keyvault/v2023_02_01/models/__init__.py'>
- class azure.mgmt.keyvault.v2023_02_01.operations.PrivateLinkResourcesOperations(*args, **kwargs)[source]
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
KeyVaultManagementClient’sprivate_link_resourcesattribute.- list_by_vault(resource_group_name: str, vault_name: str, **kwargs: Any) PrivateLinkResourceListResult[source]
Gets the private link resources supported for the key vault.
- Parameters:
- Returns:
PrivateLinkResourceListResult or the result of cls(response)
- Return type:
- Raises:
- models = <module 'azure.mgmt.keyvault.v2023_02_01.models' from '/mnt/vss/_work/1/s/sdk/keyvault/azure-mgmt-keyvault/.tox/sphinx/lib/python3.13/site-packages/azure/mgmt/keyvault/v2023_02_01/models/__init__.py'>
- class azure.mgmt.keyvault.v2023_02_01.operations.SecretsOperations(*args, **kwargs)[source]
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
KeyVaultManagementClient’ssecretsattribute.- create_or_update(resource_group_name: str, vault_name: str, secret_name: str, parameters: SecretCreateOrUpdateParameters | IO[bytes], **kwargs: Any) Secret[source]
Create or update a secret in a key vault in the specified subscription. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
- Parameters:
resource_group_name (str) – The name of the Resource Group to which the vault belongs. Required.
vault_name (str) – Name of the vault. Required.
secret_name (str) – Name of the secret. The value you provide may be copied globally for the purpose of running the service. The value provided should not include personally identifiable or sensitive information. Required.
parameters (SecretCreateOrUpdateParameters or IO[bytes]) – Parameters to create or update the secret. Is either a SecretCreateOrUpdateParameters type or a IO[bytes] type. Required.
- Returns:
Secret or the result of cls(response)
- Return type:
- Raises:
- get(resource_group_name: str, vault_name: str, secret_name: str, **kwargs: Any) Secret[source]
Gets the specified secret. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
- Parameters:
- Returns:
Secret or the result of cls(response)
- Return type:
- Raises:
- list(resource_group_name: str, vault_name: str, top: int | None = None, **kwargs: Any) Iterable[Secret][source]
The List operation gets information about the secrets in a vault. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
- Parameters:
- Returns:
An iterator like instance of either Secret or the result of cls(response)
- Return type:
- Raises:
- update(resource_group_name: str, vault_name: str, secret_name: str, parameters: SecretPatchParameters | IO[bytes], **kwargs: Any) Secret[source]
Update a secret in the specified subscription. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
- Parameters:
resource_group_name (str) – The name of the Resource Group to which the vault belongs. Required.
vault_name (str) – Name of the vault. Required.
secret_name (str) – Name of the secret. Required.
parameters (SecretPatchParameters or IO[bytes]) – Parameters to patch the secret. Is either a SecretPatchParameters type or a IO[bytes] type. Required.
- Returns:
Secret or the result of cls(response)
- Return type:
- Raises:
- models = <module 'azure.mgmt.keyvault.v2023_02_01.models' from '/mnt/vss/_work/1/s/sdk/keyvault/azure-mgmt-keyvault/.tox/sphinx/lib/python3.13/site-packages/azure/mgmt/keyvault/v2023_02_01/models/__init__.py'>
- class azure.mgmt.keyvault.v2023_02_01.operations.VaultsOperations(*args, **kwargs)[source]
Bases:
VaultsOperations- list(top: int | None = None, **kwargs: Any) Iterable[Resource][source]
The List operation gets information about the vaults associated with the subscription.
- Parameters:
top (int) – Maximum number of results to return. Default value is None.
- Returns:
An iterator like instance of either Resource or the result of cls(response)
- Return type:
- Raises: