Segments (Beta)

Segment management endpoints

Get available segment filter fields and values

get

Returns the valid filter fields and their possible values for building segment filter parameters. Field names in the response can be used directly as the 'field' value in filter expressions.

Path parameters
org_idstring · uuidRequired
Query parameters
providerstring · enumRequired

Cloud provider (aws, azure, gcp)

Example: awsPossible values:
Responses
chevron-right
200

OK

application/json
integration_idstring[]Optional

Available integration IDs

account_idstring[]Optional

Available cloud account IDs

servicestring[]Optional

Available cloud service names

regionstring[]Optional

Available cloud regions

operating_systemstring[]Optional

Available operating systems (AWS only)

tenancystring[]Optional

Available tenancy types (AWS only)

instance_familystring[]Optional

Available instance families (AWS only)

get
/beta/v1/org/{org_id}/segments/filters

List segments

get

Returns all segments for the specified provider with pre-aggregated monthly metrics.

Path parameters
org_idstring · uuidRequired
Query parameters
providerstring · enumRequired

Cloud provider (aws, azure, gcp)

Example: awsPossible values:
Responses
chevron-right
200

OK

application/json
idstringOptional

Unique segment identifier

namestringOptional

Segment name

providerstring · enumOptional

Cloud provider (aws, azure, gcp)

Possible values:
is_system_generatedbooleanOptional

True if this segment was created automatically by the system (e.g. the provider-resources default segment). Describes origin, not role — system-generated segments are immutable.

descriptionstring · nullableOptional

Human-readable description of the segment

statusstring · enumOptional

Segment status: 'new' means the segment was just created and metrics data is not yet available; 'completed' means data has been populated and the segment can be used with daily metrics endpoints.

Possible values:
filtersanyRead-onlyOptional

The segment's filter configuration, in the same format accepted by create_segment. Excludes the provider filter (already shown in the provider field).

get
/beta/v1/org/{org_id}/segments

Create a new segment

post

Creates a new segment with the specified filter configuration. The provider filter is injected automatically — only include filters for resource attributes you want to narrow on.

Path parameters
org_idstring · uuidRequired
Body
namestringRequired

Segment name

providerstring · enumRequired

Cloud provider (aws, azure, gcp)

Possible values:
descriptionstring · nullableOptional

Human-readable description

Default: null
Responses
post
/beta/v1/org/{org_id}/segments

Get segment details

get

Returns details for a single segment including monthly metrics.

Path parameters
org_idstring · uuidRequired
segment_idstring · uuidRequired
Responses
chevron-right
200

OK

application/json
idstringOptional

Unique segment identifier

namestringOptional

Segment name

providerstring · enumOptional

Cloud provider (aws, azure, gcp)

Possible values:
is_system_generatedbooleanOptional

True if this segment was created automatically by the system (e.g. the provider-resources default segment). Describes origin, not role — system-generated segments are immutable.

descriptionstring · nullableOptional

Human-readable description of the segment

statusstring · enumOptional

Segment status: 'new' means the segment was just created and metrics data is not yet available; 'completed' means data has been populated and the segment can be used with daily metrics endpoints.

Possible values:
filtersanyRead-onlyOptional

The segment's filter configuration, in the same format accepted by create_segment. Excludes the provider filter (already shown in the provider field).

get
/beta/v1/org/{org_id}/segments/{segment_id}

Last updated

Was this helpful?