Protected Port
Configures, modifies, and retrieves protected port configurations. The URI to configure data for protected port is:
restconf/data/protectedport
Supported HTTP Operations
URL: https://<host>/restconf/data/protectedport
Request body: {
"interfaces": {
"interface": {
"name": "ethernet 1/1/7",
"config": {
"name": "ethernet 1/1/7",
"protectedport": true
}
}
}
}
Response body: None
URL: https://<host>/restconf/data/protectedport
Request body: {
"protectedport": {
"interfaces": {
"interface": {
"name": "ethernet 1/1/9",
"config": {
"name": "ethernet 1/1/9",
"protectedport": true
}
}
}
}
}
Response body: None
URL: https://<host>/restconf/data/protectedport
Request body: None
Response body: {
{
"name": "ethernet 1/1/7",
"config": {
"name": "ethernet 1/1/7",
"protectedport": true
}
},
{
"name": "ethernet 1/1/9",
"config": {
"name": "ethernet 1/1/9",
"protectedport": true
}
}
}
URL: https://<host>/restconf/data/protectedport
Request body:
{
"protectedport": {
"interfaces": {
"interface": {
"name": "ethernet 1/1/9",
"config": {
"name": "ethernet 1/1/9",
"protectedport": true
}
}
}
}
}
Response body: None
URL: https://<host>/restconf/data/protectedport/interfaces/interface=ethernet%201%2F1%2F9
Request body: None Response body: None