Protected Port

Configures, modifies, and retrieves protected port configurations. The URI to configure data for protected port is:

restconf/data/protectedport

Supported HTTP Operations

POST method

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

PATCH method

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    

GET method

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
         }
       }
}

PUT method

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

DELETE

URL: https://<host>/restconf/data/protectedport/interfaces/interface=ethernet%201%2F1%2F9
Request body: None    
Response body: None