Veritas NetBackup™ WebSocket Service (NBWSS) Reference Guide
- Using the NetBackup WebSocket Service (NBWSS) for communication with a cloud application
- Configuring WebSocket endpoints for NBWSS
- About NetBackup connections to WebSocket endpoints
- WebSocket endpoint details and their formatting
- Saving NetBackup credentials for a WebSocket server endpoint
- WebSocket Server dialog
- Removing NetBackup credentials for a WebSocket server endpoint
- Configuring the properties of the NetBackup WebSocket Service (NBWSS)
- Starting a NetBackup connection to a cloud application
- Troubleshooting NBWSS
- NBWSS logging
- NBWSS issues
- Problems validating the endpoint server in the WebSocket Server dialog
- Problems saving the NetBackup endpoint credentials in the WebSocket Server dialog
- Problems deleting the WebSocket server endpoint from NetBackup
- Problems displaying the list of WebSocket servers that were added in NetBackup
- Problems activating or deactivating the endpoint server
- Additional NBWSS issues
API calls over NBWSS
The NetBackup WebSocket Service (NBWSS) allows a cloud-based application to make REST API calls to NetBackup over a secure connection. The cloud application sends messages to NBWSS in JavaScript Object Notation (JSON). The JSON messages contain the REST API call that the cloud application wants to execute. NBWSS then makes the API call on the cloud application's behalf and sends back a response to the application.
The following is an example request to make a NetBackup REST API call:
{
"version": "1.0",
"id": "9CD2B69F-0BBF-3F60-974D-C1F2EF37B872",
"type": "COMMAND",
"subType": "REQUEST",
"timeStamp": 1444806222,
"payload": {
"uri": "/netbackup/config/servers/vmservers/vCenter1.domain
.com",
"method": "GET",
"headers": {
"Content-Type": "application/vnd.netbackup+json;version=1.0"
}
}
}Note the following:
To make an API call, the
"type"field must be"COMMAND"and the"subType"field must be"REQUEST".The
"payload"field depends on the type of API to be called.In this example, the
"uri"field contains the URI of the REST API call. NBWSS makes sure that the host name and port are properly included in the full REST request.The
"method"field indicates the type of API call to be made. In this example, it is"GET"(a request to get information about vCenter1).The
"headers"field contains any HTTP headers to include with the API call. In this example,"Content-Type"is set to"application/vnd.netbackup+json;version=1.0", to indicate that the request is sent in JSON format.The format of the
"Content-Type"is the following:"Content-Type": "application/vnd.netbackup+media;version=<major>.<minor>"
Note:
The version number in the
"Content-Type"(version=<major>. <minor>) may change in future releases, depending on whether the changes are major or minor.
The following topic contains examples of NBWSS messages: