Submit a Request to Resynchronize an NF

post

/rest/{versionId}/inventory/nfMgmt/nfs/{nfId}/action

Use this (POST) method to synchronize Network Function (NF) high-availability (HA) devices.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : nfAction
Type: object
Show Source
Back to Top

Response

400 Response

The user input is invalid.

401 Response

The session ID is invalid.

404 Response

The object (resource URI, device, and so on) of your input request cannot be found.
Back to Top

Examples

The following example shows how to perform an action on the specified NF by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL

<curl>

Example of cURL Data

The following shows an example of cURL data sent with the request.

curl -v -b sessionid.txt -X POST -d@nf/resyncNf.xml -H"Content-Type: application/xml" -H"Accept: application/xml" http://localhost:8080/rest/v1.1/inventory/nfMgmt/nfs/action

Example of Request Body

The following shows an example of the user request body input in XML format.

<?xml version="1.0" encoding="UTF-8"?>
<nfAction>
   <type>Resync</type>
</nfAction>

Example of Response Body

The following example shows the contents of the response body in XML format.

<?xml version="1.0"?>
<errorResponse>
  <httpStatusCode>404</httpStatusCode>
  <errorCode>100101</errorCode>
  <errorLabel>RS_REQ_NF_ACTION_NOT_SUPPORT_REQ</errorLabel>
  <message>The action request type 'Resync' is not supported.</message>
</errorResponse>
Back to Top