The following example assumes that the user has successfully logged onto the unit, received the session ID,
and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
change the IP to the specific unit IP in use. The following example sets Program Entry ID 1 to ON.
curl -X POST -i
-H "Accept: application/json" -H "X-SESSION-ID:$token" -k
"https://192.168.0.1/ws/v2/service_cfg/ca/pe?peid=1&cidecrypt=ON"
GET Examples:
Example 2: Retrieve the PE Settings
The following example assumes that the user has successfully logged onto the unit, received the session ID,
and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
change the IP to the specific unit IP in use.
curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/ca/pe"
If successful, the following is an example of the return body:
{
"ca": {
"pe": [
{
"peid": "1",
"cidecrypt": "ON",
"cislot": "TOP",
"cipe1slot": "TOP"
},
…
{
"peid": "16",
"cidecrypt": "ON",
"cislot": "TOP",
"cipe1slot": "AUTO"
}
]
}
}
CICOMP CA Configuration Command
Table 205: Command Details
Description
Command Detail
https://192.168.0.1/ws/v2/service_cfg/ca/cicomp
Command URL
Allows set or get of Conditional Access CI Component level
configuration.
Command Information
GET, POST
HTTP Methods
Read, Write
Access Type
User, Admin
Access Level
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
241
API Definitions
CA (Conditonal Access) Configuration Commands