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
Modifies the properties of an existing secret.
https://help.tago.io/portal/en/kb/articles/secrets Secrets
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
Retrieves detailed information about a specific secret using its ID.
https://help.tago.io/portal/en/kb/articles/secrets Secrets
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' }
Optional
queryObj: SecretsQueryRetrieves a paginated list of all secrets stored in the profile with filtering and sorting options.
https://help.tago.io/portal/en/kb/articles/secrets Secrets
If receive an error "Authorization Denied", check policy Secrets / Access in Access Management.
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.