/
CPS-TBDMT Templates for CPS APIs

CPS-TBDMT Templates for CPS APIs

Note: Please validate the TBDMT APIs with the mentioned templates 

S.No

ConfigDB API

yang model

HTTP Method

Xpath Query

Template id

Schema

TBDMT Template

Payload

S.No

ConfigDB API

yang model

HTTP Method

Xpath Query

Template id

Schema

TBDMT Template

Payload

1

/api/sdnc-config-db/v4/cell-list/{trackingArea}

cps-cavsta-onap-internal

GET

/ran-coverage-area/pLMNIdList[@mcc=%27310%27%20and%20@mnc=%27410%27]/coverage-area[@coverageArea=%27Chennai%27]/coverageAreaTAList[@nRTAC=%27101%27]&include-descendants=true

get-cells-list

cps-cavsta-onap-internal

/ran-coverage-area/pLMNIdList[mcc={{mcc}}][mnc={{mnc}}]/coverage-area[coverageArea={{coverageArea}}]/coverageAreaTAList[nRTAC={{nRTAC}}]



2

/api​/sdnc-config-db​/v4​/nearrtric-list​/{trackingArea}

cps-cavsta-onap-internal, cps-ran-schema-model



GET

a) Run the API (1) to get the list of cells (idNRCellDU)

b) /NRCellDU[@idNRCellDU=15289]/ancestor::NearRTRIC

get-nearrtric-by-cellid

ran-network

Multiple queries support is required

a) API (1)

b) /NRCellDU[@idNRCellDU={{idNRCellDU}}]/ancestor::NearRTRIC



3

/api/sdnc-config-db/v4/nearRTRIC

ran-network



/ran-network/NearRTRIC[@idNearRTRIC=%2711%27]/attributes/pLMNInfoList[@mcc=%27310%27%20and%20@mnc=%27410%27]

put-nearrtric

ran-network

{
"templateId": "put-nearrtric",
"model": "ran-network",
"requestType": "post",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/attributes/pLMNInfoList[@mcc='\''{{mcc}}'\'' and @mnc='\''{{mnc}}'\'']",
"includeDescendants": true
}

This field is applicable for the PUT APIs. send the payload data to be persisted in this field

4

/api/sdnc-config-db/v4/gNBCUCP

ran-network

PUT

/ran-network/NearRTRIC[@idNearRTRIC=%2711%27]/GNBCUCPFunction[@idGNBCUCPFunction=%27cucpserver1%27]/NRCellCU[@idNRCellCU=%2715289%27]/attributes/pLMNInfoList[@mcc=%27310%27%20and%20@mnc=%27410%27]

put-gnbcucpfunction

ran-network

curl -k -H "Content-Type: application/json" --request PUT 'http://10.31.4.14:8080/templates' --data-raw '{
"templateId": "put-nrcellcu",
"model": "ran-network",
"requestType": "post",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/GNBCUCPFunction[@idGNBCUCPFunction='\''{{idGNBCUCPFunction}}'\'']/NRCellCU[@idNRCellCU='\''{{idNRCellCU}}'\'']/attributes/pLMNInfoList[@mcc='\''{{mcc}}'\'' and @mnc='\''{{mnc}}'\'']",
"includeDescendants": true
}'

same as above

5

/api/sdnc-config-db/v4/gNBCUUP

ran-network

PUT

/cps-ran-schema/NearRTRIC[@idNearRTRIC=11]/GNBCUUPFunction

put-gnbcuupfunction

ran-network

/cps-ran-schema/NearRTRIC[@idNearRTRIC={{idNearRTRIC}}]/GNBCUUPFunction

same as above

6

/api/sdnc-config-db/v4/gNBDU

ran-network

PUT

/cps-ran-schema/NearRTRIC[@idNearRTRIC=11]/GNBDUFunction

put-gnbdufunction

ran-network

/cps-ran-schema/NearRTRIC[@idNearRTRIC={{idNearRTRIC}}]/GNBDUFunction

same as above

7

/api/sdnc-config-db/v4/rrmPolicy

ran-network

PUT

1) /cps-ran-schema/NearRTRIC[@idNearRTRIC=11]/GNBCUCPFunction[@idGNBCUCPFunction='cucpserver1']/NRCellCU[@idNRCellCU=15289]/attributes/RRMPolicyRatio

2) /cps-ran-schema/NearRTRIC[@idNearRTRIC=11]/GNBCUUPFunction[@idGNBCUUPFunction=1111]/attributes/RRMPolicyRatio

3) /cps-ran-schema/NearRTRIC[@idNearRTRIC=11]/GNBDUFunction[@idGNBDUFunction=110]/NRCellDU[@idNRCellDU=15700]/attributes/RRMPolicyRatio

1) put-nrcellcu-rrm-policy

2) put-cuup-rrm-policy

3) put-nrcelldu-rrm-policy

ran-network

1) /cps-ran-schema/NearRTRIC[@idNearRTRIC={{idNearRTRIC}}]/GNBCUCPFunction[@idGNBCUCPFunction={{idGNBCUCPFunction}}]/NRCellCU[@idNRCellCU={{idNRCellCU}}]/attributes/RRMPolicyRatio

2) /cps-ran-schema/NearRTRIC[@idNearRTRIC={{idNearRTRIC}}]/GNBCUUPFunction[@idGNBCUUPFunction={{idGNBCUUPFunction}}]/attributes/RRMPolicyRatio

3) /cps-ran-schema/NearRTRIC[@idNearRTRIC={{idNearRTRIC}}]/GNBDUFunction[@idGNBDUFunction=[[idGNBDUFunction}}]/NRCellDU[@idNRCellDU={{idNRCellDU}}]/attributes/RRMPolicyRatio

same as above

8

/api/sdnc-config-db/v4/ranslice-details

cps-ran-inventory

PUT

/ran-inventory/ran-slices

update-ran-inventory

cps-ran-inventory

/ran-inventory/ran-slices

same as above

9

/api/sdnc-config-db/v4/du-list/{sNSSAI}

ran-network

GET

/NRCellDU[idNRCellDU=15700]/pLMNInfoList[@mcc="31"][@mnc="42"]/sNSSAIList[@sNssai="01-101010"]/ancestor::GNBDUFunction

get-gnbdufunction-by-snssai

ran-network

/NRCellDU[idNRCellDU={{idNRCellDU}}]/pLMNInfoList[mcc={{mcc}}][mnc={{mnc}}]/sNSSAIList[@sNssai={{sNssai}}]/ancestor::GNBDUFunction



10

/api/sdnc-config-db/v4/du-cell-list/{sNSSAI}

ran-network

GET

/sNSSAIList[@sNssai="01-101010"]/ancestor::NRCellDU

get-nrcelldu-by-snssai

ran-network

/sNSSAIList[@sNssai={{sNssai}}]/ancestor::NRCellDU



11

/api/sdnc-config-db/v4/slice-config/{sNSSAI}

ran-network

GET

/NearRTRIC[@idNearRTRIC=11]/pLMNInfoList[@mcc="31"][@mnc="42"]/sNSSAIList[@sNssai="01-101010"]/configData

get-nearrtric-config

ran-network

/NearRTRIC[idNearRTRIC={{idNearRTRIC}}]/pLMNInfoList[mcc={{mcc}}][mnc={{mnc}}]/sNSSAIList[sNssai={{sNssai}}]/configData



12

api/sdnc-config-db/v4/nearrtric/{ranNFNSSIId}

ran-network

GET

//attributes/ranNFNSSIIdList/element[text()="ac8ca1a9-e1ec-4480-8720-c74e92566885"]/ancestor::NearRTRIC

get-nearrtric-by-rannfnssi

ran-network

//attributes/ranNFNSSIIdList/element[text()={{ranNFNSSIId}}]/ancestor::NearRTRIC



13

/api/sdnc-config-db/v4/plmn/{sliceProfileId}

cps-ran-inventory

GET

/ran-inventory/ran-slices/sliceProfilesList[@sliceProfileId="314aab80-1754-446c-bfd9-6aae5b1ae348"]/pLMNIdList

get-plmn-id

cps-ran-inventory

/ran-inventory/ran-slices/sliceProfilesList[sliceProfileId={{sliceProfileId}}]/pLMNIdList



14

/api/sdnc-config-db/v4/ta-list/{mcc}/{mnc}/{coverageArea}

cps-cavsta-onap-internal

GET

/ran-coverage-area/pLMNIdList[@mcc="31"][@mnc="42"]/coverage-area[@coverageArea="Chennai"]/coverageAreaTAList

get-tracking-area-list

cps-cavsta-onap-internal

/ran-coverage-area/pLMNIdList[mcc={{mcc}}][mnc={{mnc}}]/coverage-area[coverageArea={{coverageArea}}]/coverageAreaTAList



15

/api/sdnc-config-db/v4//rrmPolicy/{resourceType}/{resourceId}

ran-network

GET

1) /cps-ran-schema/NearRTRIC[@idNearRTRIC=11]/GNBCUCPFunction[@idGNBCUCPFunction='cucpserver1']/NRCellCU[@idNRCellCU=15289]/attributes/RRMPolicyRatio

2) /cps-ran-schema/NearRTRIC[@idNearRTRIC=11]/GNBCUUPFunction[@idGNBCUUPFunction=1111]/attributes/RRMPolicyRatio

3) /cps-ran-schema/NearRTRIC[@idNearRTRIC=11]/GNBDUFunction[@idGNBDUFunction=110]/NRCellDU[@idNRCellDU=15700]/attributes/RRMPolicyRatio

1) get-nrcellcu-rrm-policy

2) get-cuup-rrm-policy

3) get-nrcelldu-rrm-policy

ran-network

1) /cps-ran-schema/NearRTRIC[@idNearRTRIC={{idNearRTRIC}}]/GNBCUCPFunction[@idGNBCUCPFunction={{idGNBCUCPFunction}}]/NRCellCU[@idNRCellCU={{idNRCellCU}}]/attributes/RRMPolicyRatio

2) /cps-ran-schema/NearRTRIC[@idNearRTRIC={{idNearRTRIC}}]/GNBCUUPFunction[@idGNBCUUPFunction={{idGNBCUUPFunction}}]/attributes/RRMPolicyRatio

3) /cps-ran-schema/NearRTRIC[@idNearRTRIC={{idNearRTRIC}}]/GNBDUFunction[@idGNBDUFunction=[[idGNBDUFunction}}]/NRCellDU[@idNRCellDU={{idNRCellDU}}]/attributes/RRMPolicyRatio