...
For Jobstatus api, the internal NSSMF needs to update db table resource_operation_status, the external NSSMF needs to provide this api.
External NSSMF
Allocate NSSI(create NSSI with service)
Method | URL |
---|
POST | /api/rest/provMns/{apiVersion}/NSS/SliceProfiles |
...
JSON Viewer |
---|
|
{"nssiId": "NSSI-C-001-HDBNJ-NSSMF-01-A-ZX","jobId":"db245365e79c47ed88fcd60caa8f6549"} |
deallocateNSSI (deallocate NSSI with service)
Method | URL |
---|
DELETE | /api/rest/provMns/{apiVersion}/NSS/SliceProfiles /{sliceProfileId} |
...
JSON Viewer |
---|
|
{
"nsiId" : "4115d3c8-dd59-45d6-b09d-e756dee9b518",
"nssiId" : "1a636c4d-5e76-427e-bfd6-241a947224b0",
"snssaiList" : [ "01-6A106175" ],
"terminateNssiOption": 0,
"scriptName": "CN1"
} |
Response status:202
Code Block |
---|
language | text |
---|
theme | RDark |
---|
title | Response example: |
---|
collapse | true |
---|
|
{
|
JSON Viewer |
---|
|
{"jobId": "db245365e79c47ed88fcd60caa8f6549"
} |
activateNSSI(activate NSSI)
Method | URL |
---|
PUT | /api/rest/provMns/{apiVersion}/NSS/{snssai}/activation |
Code Block |
---|
language | text |
---|
title | REQ example: |
---|
|
JSON Viewer |
---|
|
|
{
"nsiId" : "ed76c0a0-582d-4885-b75e-b544924addf8",
"nssiId": "NSSI-C-001-HDBNJ-NSSMF-01-A-ZX"
}
|
Response status:202
Code Block |
---|
language | text |
---|
theme | RDark |
---|
title | Response example: |
---|
collapse | true |
---|
|
{
"jobId": "db245365e79c47ed88fcd60caa8f6549"
} |
deactivateNSSI(slice proflice(S-NSSAI) deactivate)
Method | URL |
---|
PUT | /api/rest/provMns/{apiVersion}/NSS/{snssai}/deactivation |
Code Block |
---|
language | text |
---|
title | REQ example: |
---|
|
JSON Viewer |
---|
|
|
{
"nsiId" : "ed76c0a0-582d-4885-b75e-b544924addf8",
"nssiId": "NSSI-C-001-HDBNJ-NSSMF-01-A-ZX"
}
|
Response status:202
Code Block |
---|
language | text |
---|
theme | RDark |
---|
title | Response example: |
---|
collapse | true |
---|
|
{
"jobId": "db245365e79c47ed88fcd60caa8f6549"
} |
getJobStatus (query the operation progress)
Method | URL |
---|
GET | /api/rest/provMns/{apiVersion}/NSS/jobs/{jobId}?responseId={responseId} |
...