Segment is a datatype for information about a single segment specified by its identifier. It's used by the query field, segment().

Table: Segment

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
Some input parameters may be required, as indicated in the Required column. For return values, this indicates that you are assured a value if the field is requested for the results. 
Table last updated: Oct 14, 2026 
currentHostsClusterNodeyes Short-Term Information about the cluster's hosts that have this segment in local storage. This field isn't necessarily populated in such case the segment can still be found in bucket. See NoCurrentsForBucketSegments of FeatureFlag. See also ClusterNode.
datasourceDatasourceyes Short-Term This is the datasource. See Datasource.
deletedAtLong  Short-Term When the segment was deleted.
endLongyes Short-Term When the segment ended.
idStringyes Short-Term The unique identifier of the segment.
organizationOrganizationyes Short-Term The organization for the segment. See Organization.
repositoryRepositoryyes Short-Term The repository for the segment. See Repository.
startLongyes Short-Term When the segment started.