-
Notifications
You must be signed in to change notification settings - Fork 6
NetSlice Template API description
The following command allows you to create a Network SLice Template and define which Network Services will compose it by using their uuids.
curl -i -H "Content-Type: application/json" -X POST -d'{"name":"tango_NST", "version":"X.Y", "author":"5gtango", "vendor":"5gTango", "nstNsdIds":[{"nsdID": "<NetServID>","slaID": "<slaID>"},{"nsdID": "<NetServID>","slaID": "<slaID>"}]}' http://pre-int-sp-ath.5gtango.eu:5998/api/nst/v1/descriptors
The following json structure shows the response of the previous curl command and what this module (tng-slice-mngr) returns to the portal with a status code equal to 201.
EXAMPLE
curl -i -H "Content-Type: application/json" -X POST -d'{"name":"Example_NST", "version":"1.0", "author":"Pol Alemany, CTTC", "vendor":"eu.5gTango", "nstNsdIds":[{"nsdID": "ae27790d-640f-4b8e-bdf4-04be24cb5335","slaID": "d8e6c985-1f5f-41f8-85d0-a402f51314cb"}]}' http://pre-int-sp-ath.5gtango.eu:5998/api/nst/v1/descriptors
{
"created_at": "2018-09-07T10:34:54.944+00:00",
"md5": "eb948fc629941a1f68ea30eab763f97d",
"nstd": {
"NSI_list_ref": [],
"author": "To_delete",
"name": "To_delete",
"notificationTypes": "",
"nstNsdIds": [
{
"nsdID": "ae27790d-640f-4b8e-bdf4-04be24cb5335",
"slaID": null
}
],
"onboardingState": "ENABLED",
"operationalState": "ENABLED",
"usageState": "NOT_IN_USE",
"userDefinedData": "",
"vendor": "tango",
"version": "0.1"
},
"signature": null,
"status": "active",
"updated_at": "2018-09-07T10:34:54.944+00:00",
"username": null,
"uuid": "951142b9-b1e8-4391-a03a-44ff597e9cfb"
}
The following command allows you to get the latest information of all existing Network Slice Templates.
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://{base_url}:5998/api/nst/v1/descriptors
The response of this command is a list of json elements like the one returned on the instantiation operation with a status code equal to 200.
The following command allows you to get the latest information of a specific Network Slice Template selected with its "uuid - {nstId}".
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://{base_url}:5998/api/nst/v1/descriptors/{nstId}
The response of this command is a json element like the one returned on the instantiation operation with a status code equal to 200.
The following command allows you to terminate/delete the Network Slice Template by using its nstId (uuid).
curl -X DELETE http://{base_url}:5998/api/nst/v1/descriptors/{nstId}
The response to this command should be empty with a status code equal to 204.