REST API Credentials
Ensure you include the following credential information in REST API requisition:
-
User name: admin
-
Password: password for admin
The payload in request can be in XML or JSON format. The headers (Content-Type and Accept) must be set accordingly.
XML |
Content-Type:application/vnd.yang.data+xml Accept:application/vnd.yang.data+xml |
JSON |
Content-Type:application/vnd.yang.data+json Accept:application/vnd.yang.data+json |
API Request Methods
The following are the supported REST API request methods:
HTTP Request Method |
Description |
||
---|---|---|---|
GET |
Retrieves the specified resource or representation. GET is a read-only operation that does not change the engine state or have any side effects.
|
||
POST |
Submits data to be processed to the specified resource. The data to be processed is included in the request body. A POST operation can create a new resource. |
||
PUT |
Updates the specified resource with new information. The data that is included in the PUT operation replaces the previous data.
|
||
DELETE |
Deletes a resource. If you delete a resource that has already been deleted, a 404 Not Found response is returned. |
![]() Note |
You can use any command line tool, such as curl, that supports transferring of data using the HTTPS protocol. All REST API commands must be preceded by https://<host_server_ip> . This is the Cisco Enterprise NFVIS host IP address. |