Skip to main content

Streaming Subscription API

IBX SmartView's subscription API allows users to subscribe to near real-time message feeds for events occurring within an IBX. Users can specify the types of messages to receive for each IBX. Users are able to view all subscriptions within their organization and update any subscription to modify the message feed being received.

Each subscription delivers messages through exactly one channel, set in channel.channelType, with its settings in the matching *ChannelConfiguration object. The channel type determines where the message feed is delivered:

  • AWS_IOT_CORE: Equinix pushes messages to your Amazon AWS IoT Core endpoint. Provide the endpoint in awsIotCoreChannelConfiguration.url.
  • AZURE: Equinix pushes messages to your Azure Event Hub. Optional delivery tuning (numberOfRetries, numberOfConcurrentCalls, batchSize) is set in azureChannelConfiguration.
  • WEBHOOK: Equinix pushes messages over HTTPS to a webhook collector that you host. Provide the endpoint in webhookChannelConfiguration.url, and optionally an SSL certificate and delivery tuning options.
  • REST: Equinix hosts the feed and you retrieve it through the Equinix API, so you don't need to run a collector. Set restChannelConfiguration to an empty object. The ID of the new subscription is returned in the Location header of the response, and you use it to consume the real-time feed.

An organization can use only one channel type. After you create a subscription with one channel type, you can't create subscriptions that use a different one. For setup steps and examples, see the Create a Subscription guide.

Retrieve all subscriptions

Request

This endpoint allows users to fetch details for all streaming subscriptions for a given organization.

Security
BearerAuth
Payload
// No request payload

Responses

OK

Bodyapplication/json
Array [
idstring
statusstring
Enum:"PENDING""ACTIVE""FAILED""DELETE_IN_PROGRESS""DELETED"
messageTypeobject(MessageType)

Message type for a given subscription

channelobject(Channel)

Subscription can be created using one channel.

orgIdstring
createdBystring
createdDateTimestring, (date-time)
updatedBystring
updatedDateTimestring, (date-time)
]
Response
[ { "id": "string", "status": "PENDING", "messageType": { … }, "channel": { … }, "orgId": "string", "createdBy": "string", "createdDateTime": "2019-08-24T14:15:22Z", "updatedBy": "string", "updatedDateTime": "2019-08-24T14:15:22Z" } ]
Was this page helpful?