KeyVaultSecretIdentifier Class
Information about a KeyVaultSecret parsed from a secret ID.
- Inheritance
-
builtins.objectKeyVaultSecretIdentifier
Constructor
KeyVaultSecretIdentifier(source_id: str)
Parameters
Examples
Parse a secret's ID
secret = client.get_secret(secret_name)
parsed_secret_id = KeyVaultSecretIdentifier(secret.id)
print(parsed_secret_id.name)
print(parsed_secret_id.vault_url)
print(parsed_secret_id.version)
print(parsed_secret_id.source_id)
Attributes
name
source_id
vault_url
version
Feedback
Submit and view feedback for