Move an NF to Another Device Group Parent
put
/rest/{versionId}/inventory/nfMgmt/nfs/{nfId}
Use this (PUT) method to move a Network Function (NF) to another group. You cannot move the NF if it is locked unless you are the owner of the lock or an administrator overrides the lock. An error message appears in both situations.
Request
Supported Media Types
- application/xml
- application/json
Path Parameters
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.
Examples
The following example shows how to update a device group for an NF by submitting a PUT request on the REST resource using cURL. For more information about cURL, see Use cURL
Example of cURL Data
The following shows an example of cURL data sent with the request.
curl -v -b sessionid.txt -X PUT -d@nf/moveNf.xml -H"Content-Type: application/xml" -H"Accept: application/xml" http://localhost:8080/rest/v1.1/inventory/nfMgmt/nfs/ID18
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"?> <nfConfig> <parentGroupFullName>HG3/HG4</parentGroupFullName> </nfConfig>
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 204 No Content Date: Thu, 07 Sep 2017 14:03:33 GMT Server: Apache X-Frame-Options: SAMEORIGIN