Secret demo
Tags: #naas #secret #snippet
Author: Jeremy Ravenel
Read the doc: https://naas.gitbook.io/naas/features/secret
Tags: #naas #secret

Input

Import library

1
import naas
Copied!

Model

Variable for the secret

1
API_NAME = "HUBSPOT"
2
API_KEY = "123456789"
Copied!

Output

Add the secret

1
naas.secret.add(name="API_NAME", secret="API_KEY")
Copied!
Copy link
Edit on GitHub