Configure NSSF using REST Interface
Before configuring NSSF using REST APIs, ensure that the NSSF is installed. For information on how to install NSSF, see the OCNSSF Cloud Native Installation Guide.
To Configure NSSF using REST APIs:
- Configure the NSI-Profile
managed object: NSI-Profile consists of network slice name and ID and NRF-ID
,Target AMF lists which are associated to the slice.
- Request_Type: POST
- URL: http://{apiRoot}/nssf-configuration/v1/nsiprofiles
- Body : Refer to Sample NSI-Profile-Body section for sample message/s and OpenApi for schema.
REST message sample - NSI Profiles
https://host:port/v1/nssf/configurations/nsiprofiles POST Content-Type: application/json BODY { "name": "NSI001", "nrfUri": "https://nrf.oracle.com", "nsiId": "1", "targetAmfSets": [ { "regionId": "01", "setId": "001", "setFqdn": "set001.region01.amfset.5gc.mnc311.mcc282.3gppnetwork.org" }, { "regionId": "01", "setId": "002", "setFqdn": "set002.region01.amfset.5gc.mnc311.mcc282.3gppnetwork.org" } ] }
- Configure the Time Profile
managed object: NSI-Profile consists of network slice name and ID and NRF-ID
,Target AMF lists which are associated to the slice.
- Request_Type: POST
- URL: http://host:port/nssf-configuration/v1/timeprofiles
- Body : Refer to Sample TimeProfile-Body section for sample message/s and OpenApi for schema.
REST message sample - Time Profiles
http://host:port/nssf-configuration/v1/timeprofiles POST Content-Type: application/json BODY { "name": "WEEKDAY-BUSY", "startDate": "2019-01-01", "endDate": "2019-01-01", "daysOfWeek": [ "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY" ] "timeSpans": [ { "startTime": "09:00:00", "endTime": "12:00:00" }, { "startTime": "16:00:00", "endTime": "21:00:00" } ] }
- Configure the Nssai Auth
managed object:
- Request_Type: POST
- URL: http://localhost:5755/nssf-configuration/v1/nssaiauth/
- Body : Refer to Sample Nssai Auth -Body section for sample message/s and OpenApi for schema.
REST message sample - Nssai Auth
http://localhost:5755/nssf-configuration/v1/nssaiauth/ POST { "name": "NSSAI-ATH-1", "plmnId": { "mcc": "100", "mnc": "101" }, "tac": "100002", "snssai": { "sst": "1", "sd": "EMBB02" }, "grant": "ALLOWED" }
- Configure the NSS Rule
managed object: NSS Rules are policy rules which enable operator to
ALLOW/REJECT a request for Network Slice Selection request and If allowed then
map to a Network Slice.
- Request_Type: POST
- URL: http://{apiRoot}/nssf-configuration/v1/nssrules
- Body : Refer to Sample NSS-Rule -Body section for sample message/s and OpenApi for schema.
REST message sample - NSS Rules
https://host:port/v1/nssf/configurations/nssrules POST Content-Type: application/json BODY { "name": "NSSRULE01", "amfId": "1", "plmnId": { "mcc": "311", "mnc": "282", }, "tac": "123", "snssai": { "sst": "1", "sd": "EMBB01" }, "salience": "0", "behavior": { "grant": "ALLOWED", "accessType": "3GPP_ACCESS", "nsiProfiles": [ { "name": "NSI001", "timeProfile": "WEEKDAY-BUSY", "salience": 1 }, { "name": "NSI002", "salience": 0 } ] } }
- Configure the Configured
NSSAI managed object: Configured NSSAI enables customer to configure default
configures NSSAI based on one or more of the following parameters PLMN, TAC,
AMF-ID .
- Request_Type: POST
- URL: http://{apiRoot}/nssf-configuration/v1/configuredsnssais
- Body : Refer to Sample Configured-NSSAI-Body section for sample message/s and OpenApi for schema.
REST message sample - Configured NSSAIs
https://host:port/v1/nssf/configurations/configuredsnssais POST Content-Type: application/json BODY { "amfId": "1", "plmn": { "mcc": "1", "mnc": "1", }, "tac": "1", "salience": 0 "nssai": [ { "sst": 1, "sd": "EMBB01" }, { "sst": 2, "sd": "EMBB02" } ] }
- Configure the AMF Resolution
managed object: AMF Resolution enables customer to configure mapping candidate
amf list to a Target AMF set ID and Region ID.
- Request_Type: POST
- URL: http://{apiRoot}/nssf-configuration/v1/amfresolutions
- Body : Refer to Sample AMF Resolution-Body section for sample message/s and OpenApi for schema.
REST message sample - AMF Resolutions
https://host:port/v1/nssf/configurations/amfresolutions POST Content-Type: application/json BODY { "regionId": "1", "setId": "1", "candidateAmfList": [ { "fqdn": "pt01.set001.region01.amfset.5gc.mnc311.mcc282.3gppnetwork.org", "instanceId": "01.102.01" }, { "fqdn": "pt02.set001.region01.amfset.5gc.mnc311.mcc282.3gppnetwork.org", "instanceId": "01.102.02" } ] }
For more information on APIs and managed object parameters, see unresolvable-reference.htm#GUID-154F1F12-A363-477E-A314-B31EF75592E2.