Class StreamAssetsImpl
java.lang.Object
com.eqixiac.equinix.fabric.client.implementation.StreamAssetsImpl
- All Implemented Interfaces:
StreamAssets
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
StreamAssetsImpl
public StreamAssetsImpl()
-
-
Method Details
-
get
Description copied from interface:StreamAssetsRetrieves a single asset attached to a stream.- Specified by:
getin interfaceStreamAssets- 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
Description copied from interface:StreamAssetsAttaches an asset to a stream (enabling telemetry).- Specified by:
attachin interfaceStreamAssets- 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
Description copied from interface:StreamAssetsDetaches an asset from a stream.- Specified by:
detachin interfaceStreamAssets- 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
Description copied from interface:StreamAssetsSearches stream assets (POST /fabric/v4/streamAssets/search), for example by/uuid,/streamUuidor/attachmentStatus.- Specified by:
searchin interfaceStreamAssets- Parameters:
filter- the filter, ornullsort- the sort, ornull- Returns:
- a paginated, filtered list of stream assets
-
getDevice
Description copied from interface:StreamAssetsRetrieves a Network Edge device attached to a stream (GET /fabric/v4/streams/{streamId}/devices/{deviceId}).- Specified by:
getDevicein interfaceStreamAssets- Parameters:
streamId- the stream uuiddeviceId- the Network Edge device uuid- Returns:
- the device asset with its streamed interfaces
-
attachDevice
Description copied from interface:StreamAssetsStreams a Network Edge device (PUT /fabric/v4/streams/{streamId}/devices/{deviceId}). The interface ids are the complete desired set: interfaces not listed are detached.- Specified by:
attachDevicein interfaceStreamAssets- 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
Description copied from interface:StreamAssetsStops streaming a Network Edge device (DELETE /fabric/v4/streams/{streamId}/devices/{deviceId}).- Specified by:
detachDevicein interfaceStreamAssets- Parameters:
streamId- the stream uuiddeviceId- the Network Edge device uuid- Returns:
- the device asset (typically
DETACHING), ornullon an empty response
-