Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Assets API - Filter by tag #197

@BrianFanning

Description

@BrianFanning

In the CloudHealth Assets console, it's very easy to use the Smart Filters to only show resources that have a particular tag key (and optionally a specific value). I haven't been able to emulate the same filtering with the Assets API. There is a tags field for most AWS resources but the docs aren't clear on whether you can filter down by a specific tag. I can filter all S3 buckets down to the ones that have no tags whatsoever with this query:

curl -H 'Authorization: Bearer my-token' "https://chapi.cloudhealthtech.com/api/search?&name=AwsS3Bucket&api_version=2&query=tags=''"

But how would I get all S3 buckets that have an Environment tag, for example? Or show all buckets that do not have a particular tag?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions