TagoIO SDK for JavaScript and TypeScript
    Preparing search index...

    Class Secrets

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Permanently removes a secret from the profile.

      Parameters

      • secretID: string

      Returns Promise<string>

      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.

      Parameters

      Returns Promise<string>

      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