...
Name | Parent | Type | Example Value | Optional/Compulsory | Notes | |
---|---|---|---|---|---|---|
1 | action | url path | String | execute | Required | The policy action. Currently supported value: |
2 | Authorization | request (authorization header) | String | Bearer edaa8e7ce30f8904 | Required | required for tracking/ (future) authentication and to identify the source (rApp) of the request |
3 |
| body | String | permit | Required | currently supported value: permit |
4 |
| body | Object[] Array | Required | ||
5 |
| requests[n] | String | cps:org.onap.cps.ncmp.ploicy-executor:ncmp-create-schema:1.0.0 | Required | the schema name can also be used to determine the type of operation as each ncmp operation has its won schema (but can have similar/identical) content |
6 |
| object | String | Required | Defined by schema above |
Create Schema
Name | Parent | Type | Example Value | Optional/Compulsory | Notes | |
---|---|---|---|---|---|---|
1 |
| payload | String | F811AF64F5146DFC545EC60B73DE948E | Optional | Can be sent while cmHandle is used instead of alternateId NCMP will populate when available |
2 |
| payload | String | ManagedElement=Kista/GNBDUFunction=1/UECC=1 | Optional | Remainder of FDN NCMP will populate when available |
3 |
| payload | String | /Subnetwork=22/MeContext=Kista/ManagedElement=Kista/GNBDUFunction=1/UECC=1 | Required | Complete FDN representing the cm handle and the resource identifier ie point to the target of the change to 'CM-Handle' ?! |
4 |
| payload | Object | {"Cell":[{"id":"Cell-id","attributes":{"administrativeState":"UNLOCKED"}}]} | Required | CM Change Request |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "urn:cps:org.onap.cps.ncmp.policy-executor:ncmp-create-schema:1.0.0",
"$ref": "#/definitions/NcmpCreate",
"definitions": {
"NcmpCreate": {
"javaType": "org.onap.cps.ncmp.impl.data.policyexecutor.NcmpCreate",
"type": "object",
"additionalProperties": false,
"properties": {
"cmHandleId": {
"type": "string"
},
"resourceIdentifier": {
"type": "string"
},
"targetIdentifier": {
"type": "string"
},
"cmChangeRequest": {
"type": "object"
}
},
"required": [
"targetIdentifier",
"cmChangeRequest"
],
"title": "NCMP Create"
}
}
} |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "payloadType": "CM_Write", "decisionType": "Allow", "payload": [ { "cmHandleId": "F811AF64F5146DFC545EC60B73DE948E", "resourceIdentifier": "GNBDUFunction=1/UECC=1", "targetFdn": "/Subnetwork=22/MeContext=Kista/ManagedElement=Kista/GNBDUFunction=1/UECC=1", "cmChangeRequest": { "Cell": [ { "id": "Cell-id", "attributes": { "administrativeState": "UNLOCKED" } } ] } } ] } |
...