Creates a new secret in the profile with the specified key and value.
https://help.tago.io/portal/en/kb/articles/secrets#Creating_a_Secret Creating a Secret
If receive an error "Authorization Denied", check policy Secrets / Create in Access Management.
const result = await Resources.secrets.create({ key: "API_KEY", value: "my-secret-value"});console.log(result); // { id: 'secret-id-132 } Copy
const result = await Resources.secrets.create({ key: "API_KEY", value: "my-secret-value"});console.log(result); // { id: 'secret-id-132 }
Permanently removes a secret from the profile.
https://help.tago.io/portal/en/kb/articles/secrets Secrets
If receive an error "Authorization Denied", check policy Secrets / delete in Access Management.
const result = await Resources.secrets.delete("secret-id-123");console.log(result); // Successfully Removed Copy
const result = await Resources.secrets.delete("secret-id-123");console.log(result); // Successfully Removed
Modifies the properties of an existing secret.
If receive an error "Authorization Denied", check policy Secrets / Edit in Access Management.
const result = await Resources.secrets.edit("secret-id-123", { value: "new-secret-value", tags: [{ key: "type", value: "user" }]});console.log(result); // Successfully Updated Copy
const result = await Resources.secrets.edit("secret-id-123", { value: "new-secret-value", tags: [{ key: "type", value: "user" }]});console.log(result); // Successfully Updated
Retrieves detailed information about a specific secret using its ID.
If receive an error "Authorization Denied", check policy Secrets / Access in Access Management.
const secretInfo = await Resources.secrets.info("secret-id-123");console.log(secretInfo); // { id: 'secret-id-123', key: 'API_KEY' } Copy
const secretInfo = await Resources.secrets.info("secret-id-123");console.log(secretInfo); // { id: 'secret-id-123', key: 'API_KEY' }
Optional
Retrieves a paginated list of all secrets stored in the profile with filtering and sorting options.
const result = await Resources.secrets.list({ page: 1, fields: ["id", "key"], amount: 20});console.log(result); // [ { id: 'secret-id-123', key: 'API_KEY' } ] Copy
const result = await Resources.secrets.list({ page: 1, fields: ["id", "key"], amount: 20});console.log(result); // [ { id: 'secret-id-123', key: 'API_KEY' } ]
Description
Creates a new secret in the profile with the specified key and value.
See
https://help.tago.io/portal/en/kb/articles/secrets#Creating_a_Secret Creating a Secret
Example
If receive an error "Authorization Denied", check policy Secrets / Create in Access Management.