Interface StreamAssets
- All Known Implementing Classes:
StreamAssetsImpl
public interface StreamAssets
Client interface for attaching and detaching assets (ports, connections, routers, etc.) to and
from Equinix Fabric streams for telemetry.
-
Method Summary
Modifier and TypeMethodDescriptionAttaches an asset to a stream (enabling telemetry).attachDevice(String streamId, String deviceId, List<Integer> interfaceIds) Streams a Network Edge device (PUT /fabric/v4/streams/{streamId}/devices/{deviceId}).Detaches an asset from a stream.detachDevice(String streamId, String deviceId) Stops streaming a Network Edge device (DELETE /fabric/v4/streams/{streamId}/devices/{deviceId}).Retrieves a single asset attached to a stream.Retrieves a Network Edge device attached to a stream (GET /fabric/v4/streams/{streamId}/devices/{deviceId}).search(FilterPropertyList filter, SortPropertyList sort) Searches stream assets (POST /fabric/v4/streamAssets/search), for example by/uuid,/streamUuidor/attachmentStatus.
-
Method Details
-
get
Retrieves a single asset attached to a stream.- Parameters:
streamId- the unique identifier of the streamasset- the asset type segment (for exampleconnections,ports,routers)assetId- the unique identifier of the asset- Returns:
- the stream asset
-
attach
Attaches an asset to a stream (enabling telemetry).- Parameters:
streamId- the unique identifier of the streamasset- the asset type segment (for exampleconnections,ports,routers)assetId- the unique identifier of the assetmetricsEnabled- whether metrics are enabled for the attached asset- Returns:
- the attached stream asset
-
detach
Detaches an asset from a stream.- Parameters:
streamId- the unique identifier of the streamasset- the asset type segment (for exampleconnections,ports,routers)assetId- the unique identifier of the asset- Returns:
trueif the detach was accepted
-
search
Searches stream assets (POST /fabric/v4/streamAssets/search), for example by/uuid,/streamUuidor/attachmentStatus.- Parameters:
filter- the filter, ornullsort- the sort, ornull- Returns:
- a paginated, filtered list of stream assets
-
getDevice
Retrieves a Network Edge device attached to a stream (GET /fabric/v4/streams/{streamId}/devices/{deviceId}).- Parameters:
streamId- the stream uuiddeviceId- the Network Edge device uuid- Returns:
- the device asset with its streamed interfaces
-
attachDevice
Streams a Network Edge device (PUT /fabric/v4/streams/{streamId}/devices/{deviceId}). The interface ids are the complete desired set: interfaces not listed are detached.- Parameters:
streamId- the stream uuiddeviceId- the Network Edge device uuidinterfaceIds- the device interface ids to stream (non-empty)- Returns:
- the device asset (typically
ATTACHING)
-
detachDevice
Stops streaming a Network Edge device (DELETE /fabric/v4/streams/{streamId}/devices/{deviceId}).- Parameters:
streamId- the stream uuiddeviceId- the Network Edge device uuid- Returns:
- the device asset (typically
DETACHING), ornullon an empty response
-