VaultsOperations Class
VaultsOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectVaultsOperations
Constructor
VaultsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| begin_purge_deleted |
Permanently deletes the specified vault. aka Purges the deleted Azure key vault. |
| check_name_availability |
Checks that the vault name is valid and is not already in use. |
| create_or_update |
Create or update a key vault in the specified subscription. |
| delete |
Deletes the specified Azure key vault. |
| get |
Gets the specified Azure key vault. |
| get_deleted |
Gets the deleted Azure key vault. |
| list |
The List operation gets information about the vaults associated with the subscription. |
| list_by_resource_group |
The List operation gets information about the vaults associated with the subscription and within the specified resource group. |
| list_by_subscription |
The List operation gets information about the vaults associated with the subscription. |
| list_deleted |
Gets information about the deleted vaults in a subscription. |
| update |
Update a key vault in the specified subscription. |
| update_access_policy |
Update access policies in a key vault in the specified subscription. |
begin_purge_deleted
Permanently deletes the specified vault. aka Purges the deleted Azure key vault.
async begin_purge_deleted(vault_name: str, location: str, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[None]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or AsyncPollingMethod
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of AsyncLROPoller that returns either None or the result of cls(response)
Return type
Exceptions
check_name_availability
Checks that the vault name is valid and is not already in use.
async check_name_availability(vault_name: azure.mgmt.keyvault.v2016_10_01.models._models_py3.VaultCheckNameAvailabilityParameters, **kwargs: Any) -> azure.mgmt.keyvault.v2016_10_01.models._models_py3.CheckNameAvailabilityResult
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
CheckNameAvailabilityResult, or the result of cls(response)
Return type
Exceptions
create_or_update
Create or update a key vault in the specified subscription.
async create_or_update(resource_group_name: str, vault_name: str, parameters: azure.mgmt.keyvault.v2016_10_01.models._models_py3.VaultCreateOrUpdateParameters, **kwargs: Any) -> azure.mgmt.keyvault.v2016_10_01.models._models_py3.Vault
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Vault, or the result of cls(response)
Return type
Exceptions
delete
Deletes the specified Azure key vault.
async delete(resource_group_name: str, vault_name: str, **kwargs: Any) -> None
Parameters
- 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 the specified Azure key vault.
async get(resource_group_name: str, vault_name: str, **kwargs: Any) -> azure.mgmt.keyvault.v2016_10_01.models._models_py3.Vault
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Vault, or the result of cls(response)
Return type
Exceptions
get_deleted
Gets the deleted Azure key vault.
async get_deleted(vault_name: str, location: str, **kwargs: Any) -> azure.mgmt.keyvault.v2016_10_01.models._models_py3.DeletedVault
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
DeletedVault, or the result of cls(response)
Return type
Exceptions
list
The List operation gets information about the vaults associated with the subscription.
list(top: Optional[int] = None, **kwargs: Any) -> AsyncIterable[azure.mgmt.keyvault.v2016_10_01.models._models_py3.ResourceListResult]
Parameters
- filter
- str
The filter to apply on the operation. Default value is "resourceType eq 'Microsoft.KeyVault/vaults'". Note that overriding this default value may result in unsupported behavior.
- api_version
- str
Azure Resource Manager Api Version. Default value is "2015-11-01". Note that overriding this default value may result in unsupported behavior.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ResourceListResult or the result of cls(response)
Return type
Exceptions
list_by_resource_group
The List operation gets information about the vaults associated with the subscription and within the specified resource group.
list_by_resource_group(resource_group_name: str, top: Optional[int] = None, **kwargs: Any) -> AsyncIterable[azure.mgmt.keyvault.v2016_10_01.models._models_py3.VaultListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either VaultListResult or the result of cls(response)
Return type
Exceptions
list_by_subscription
The List operation gets information about the vaults associated with the subscription.
list_by_subscription(top: Optional[int] = None, **kwargs: Any) -> AsyncIterable[azure.mgmt.keyvault.v2016_10_01.models._models_py3.VaultListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either VaultListResult or the result of cls(response)
Return type
Exceptions
list_deleted
Gets information about the deleted vaults in a subscription.
list_deleted(**kwargs: Any) -> AsyncIterable[azure.mgmt.keyvault.v2016_10_01.models._models_py3.DeletedVaultListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either DeletedVaultListResult or the result of cls(response)
Return type
Exceptions
update
Update a key vault in the specified subscription.
async update(resource_group_name: str, vault_name: str, parameters: azure.mgmt.keyvault.v2016_10_01.models._models_py3.VaultPatchParameters, **kwargs: Any) -> azure.mgmt.keyvault.v2016_10_01.models._models_py3.Vault
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Vault, or the result of cls(response)
Return type
Exceptions
update_access_policy
Update access policies in a key vault in the specified subscription.
async update_access_policy(resource_group_name: str, vault_name: str, operation_kind: Union[str, azure.mgmt.keyvault.v2016_10_01.models._key_vault_management_client_enums.AccessPolicyUpdateKind], parameters: azure.mgmt.keyvault.v2016_10_01.models._models_py3.VaultAccessPolicyParameters, **kwargs: Any) -> azure.mgmt.keyvault.v2016_10_01.models._models_py3.VaultAccessPolicyParameters
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
VaultAccessPolicyParameters, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.keyvault.v2016_10_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\keyvault\\v2016_10_01\\models\\__init__.py'>
Feedback
Submit and view feedback for