Add an NF

post

/{versionId}/inventory/nfMgmt/nfs

Use this (POST) method to add a Network Function (NF) with devices to a group that you created. Once the NF is added successfully, the Oracle Communications Session Element Manager plug-in is able to communicate with the devices in the NF.

Request

Path Parameters
Back to Top

Response

200 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

Example of Accessing the API with cURL

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

curl -X POST \
    -b sessionid.txt \
    --header "Accept: application/xml" \
    --header "Content-Type: application/xml" \
    "https://example.com:8443/rest/v1.3/inventory/nfMgmt/nfs"

Example of Accessing the API with Python

The following example shows how to add an NF by submitting a POST request on the REST resource using Python. This example assumes the cookie variable contains a valid authentication cookie. For an example of authenticating with Python, see Authenticate.

import requests
url = "https://example.com:8443/rest/v1.3/inventory/nfMgmt/nfs"
headers = { "Accept":"application/xml", "Cookie":cookie }
resp = requests.post(url, headers=headers)

Example of the Response Body

This endpoint does not return a response body.

Back to Top