Dell N3200-ON Networking N-Series Switches RESTful API User Guide version 6.8. - Page 52
Update dot1sinterfaces Request Example, Response Example, dot1sinterfaces Error Request Example
View all Dell N3200-ON manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 52 highlights
Internal Error Codes The possible error codes for OpEN API are shown in the following table. Table 4-27. dot1sinterfaces UPDATE Internal Error Codes Error Code 0 -21 -22 -26 Code Name OPEN_E_NONE OPEN_E_INTERNAL OPEN_E_PARAM OPEN_E_FAIL Description Success. Internal error. Invalid parameter. Operation Fail. Update dot1sinterfaces Request Example The following example updates the Spanning Tree BPDU Filter mode and Gets Spanning Tree Guard mode for an interface located in slot 0, port 1. curl -GET -XPUT -d "interface=0/1&bpduFilterMode= enabled&intfGuardMode=loop" 10.10.10.1:8080/open/v1/dot1sinterfaces browser http://10.10.10.1:8080/open/v1/dot1sinterfaces?method= put&interface=0/1&bpduFilterMode=enabled&intfGuardMode=loop Response Example { "status": { "response_code": 200, "msg": "OK", "more_info": "", "error_code": 0 } } dot1sinterfaces Error Request Example The following example shows the request with an invalid parameter. curl -GET -XPUT -d "forceVersion=802.1s" 10.10.10.1:8080/open/v1/dot1sinterfaces 52 Rest API Reference