@opentdf/sdk
    Preparing search index...

    Function listAttributes

    • Returns all active attributes available on the platform, auto-paginating through all results. An optional namespace name or ID may be provided to filter results.

      Use this before calling createZTDF() to see what attributes are available for data tagging.

      Parameters

      • platformUrl: string

        The platform base URL.

      • authProvider: AuthProvider

        An auth provider for the request.

      • Optionalnamespace: string

        Optional namespace name or ID to filter results.

      Returns Promise<Attribute[]>

      All active Attribute objects on the platform.

      const attrs = await listAttributes(platformUrl, authProvider);
      for (const a of attrs) {
      console.log(a.fqn);
      }