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

    Class Secrets

    Hierarchy

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • secretID: string

      Returns Promise<string>

      Permanently removes a secret from the profile.

      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
    • Parameters

      • secretID: string
      • secretObj: Partial

      Returns Promise<string>

      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
    • Parameters

      • secretID: string

      Returns Promise<SecretsInfo>

      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' }