Create Subscriber
Create subscription to receive data related to a 'message group' from 'Databus'. All the data related to the message group will be sent to the registered 'receiver url'.
Databus Subscriber Request
{
"id": "9c488c91-692e-4992-a83f-ee33a0f9a6c6",
"message_group": "problems",
"url": "https://data-pipeline.vmware.com/vrni/events"
}
Success
"DatabusSubscriber Object"
unique id assigned for the receiver by Operations for Networks. This is not required while creating the subscription
Message-group name for receiving the data from. Message group of a subscription cannot be changed after creation. Supported message groups - application, flows, problems, metrics, vms, hosts, nics, switchports, vms-metrics, hosts-metrics, flows-metrics, nics-metrics, switchports-metrics
URL where the data will be posted to. All the messages from the message group will be posted to this url. If multiple receivers are present behind a load balancer, this can be the url of the load balancer. The url of the subscription can be changed after the creation of the subscription.
Bad Request
"ApiError Object"
code
message
details
Unauthorized
"ApiError Object"
code
message
details
Forbidden
"ApiError Object"
code
message
details
Internal Error
"ApiError Object"
code
message
details
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/ni/api/ni/settings/databus/subscribers