Python - secret.version()
Returns a reference to a known version of a secret.
from nitric.resources import secretfrom nitric.application import NitrickeyRef = secret('apiKey').allow('accessing')keyValue = await keyRef.version('the-version-id')Nitric.run()
Parameters
- Name
version
- Required
- Required
- Type
- string
- Description
The version id. This value is returned from secret.put().
Examples
Return a reference to a known secret version
from nitric.resources import secretfrom nitric.application import Nitrickey_ref = secret('apiKey').allow('accessing')key_value = await key_ref.version('the-version-id')Nitric.run()
See Also
Last updated on Dec 24, 2024