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

    Class Tags

    Hierarchy

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      Returns Promise<string[]>

      Retrieves all available tag keys for a specific resource type in the account.

      const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });

      const deviceTags = await resources.tags.getTagKeys("device");
      console.log(deviceTags); // [ 'tag-key1', 'tag-key2', 'tag-key3' ]

      const dashboardTags = await resources.tags.getTagKeys("dashboard");
      console.log(dashboardTags); // [ 'tag-key1', 'tag-key2', 'tag-key3' ]