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",
"filter_tags": [
{
"filterKey": "appName",
"filterValue": [
"app1",
"app2"
]
}
]
}
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.
Filter tag is optional and used only for flows filtering. Please reach out to VMware support to enable filtering functionality in Databus.
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.
Filter tag is optional and used only for flows filtering. Please reach out to VMware support to enable filtering functionality in Databus.
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}/api/ni/settings/databus/subscribers