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('access')keyValue = await keyRef.version('the-version-id')Nitric.run()
Parameters
- Name
version
- 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('access')key_value = await key_ref.version('the-version-id')Nitric.run()
See Also
Last updated on Oct 11, 2024