equinix_fabric_stream_attachments (Data Source)
Fabric V4 API compatible data resource that allow user to fetch Equinix Fabric Stream Attached Assets with filters and pagination details
Additional Documentation:
- Getting Started: https://docs.equinix.com/observability/streaming-data/integratewithsink/
- API: https://docs.equinix.com/api-catalog/fabricv4/#tag/Streams
Example Usage
data "equinix_fabric_stream_attachments" "all" {
pagination = {
limit = 100
offset = 0
}
filters = [{
property = "<filter_property>"
operator = "="
values = ["<list_of_values_to_filter>"]
}]
sort = [{
direction = "<DESC|ASC>"
property = "/uuid"
}]
}
Schema
Required
pagination(Attributes) Pagination details for the returned streams list (see below for nested schema)
Optional
filters(Attributes List) List of filters to apply to the stream attachment get request. Maximum of 8. All will be AND'd together with 1 of the 8 being a possible OR group of 3 (see below for nested schema)sort(Attributes List) The list of sort criteria for the stream assets search request (see below for nested schema)
Read-Only
data(Attributes List) Returned list of stream objects (see below for nested schema)id(String) The unique identifier of the resource
Nested Schema for pagination
Optional:
limit(Number) Maximum number of search results returned per page. Number must be between 1 and 100, and the default is 20offset(Number) Index of the first item returned in the response. The default is 0
Read-Only:
next(String) The URL relative to the next item in the responseprevious(String) The URL relative to the previous item in the responsetotal(Number) The total number of streams available to the user making the request
Nested Schema for filters
Required:
operator(String) Operation applied to the values of the filterproperty(String) Property to apply the filter tovalues(List of String) List of values to apply the operation to for the specified property
Optional:
or(Boolean) Boolean value to specify if this filter is a part of the OR group. Has a maximum of 3 and only counts for 1 of the 8 possible filters
Nested Schema for sort
Required:
direction(String) The sorting direction of the property chosen. ASC or DESCproperty(String) The field name the sorting is performed on
Nested Schema for data
Read-Only:
attachment_status(String) Value representing status for the stream attachmenthref(String) Equinix auto generated URI to the stream attachment in Equinix Portalmetrics_enabled(Boolean) Boolean value indicating enablement of metrics for this asset stream attachmenttype(String) Equinix defined type for the asset stream attachmentuuid(String) Equinix-assigned unique id for the stream attachment