Configures IP source guard.
URI | Description |
---|---|
<base_URI>/config/running/interface/Ethernet/%220/3%22/ip/source-guard |
Configures IP source guard. |
GET URI | Description |
---|---|
<base_URI>/config/running/interface/Ethernet/%220/3%22/ip/source-guard |
Retrieves IP source guard configuration information. |
PATCH URI | Payload | Description |
---|---|---|
<base_URI>/config/running/interface/Ethernet/%220/3%22/ip/source-guard |
<source-guard><enable>true</enable></source-guard> |
Enables IP source guard. |
DELETE URI |
---|
<base_URI>/config/running/interface/Ethernet/%220/3%22/ip/source-guard |
GET, PATCH, DELETE, OPTIONS, and HEAD operations are supported.
<source-guard xmlns="urn:brocade.com:mgmt:brocade-interface" xmlns:y="http://brocade.com/ns/rest" y:self="/rest/config/running/interface/ Ethernet/%220/4%22/ip/source-guard"> <enable>true</enable> </source-guard>
root@ubuntu:~# curl -v -X PATCH -d "<source-guard><enable>true</enable></source-guard>" -u admin:password http://10.20.163.63:80///rest/config/running/interface/Ethernet/%220/4%22/ip/source-guard -H "Accept: application/vnd.configuration.resource+xml" -k -v * Trying 10.20.163.63... * TCP_NODELAY set * Connected to 10.20.163.63 (10.20.163.63) port 80 (#0) * Server auth using Basic with user 'admin' > PATCH ///rest/config/running/interface/Ethernet/%220/4%22/ip/source-guard HTTP/1.1 > Host: 10.20.163.63 > Authorization: Basic YWRtaW46cGFzc3dvcmQ= > User-Agent: curl/7.58.0 > Accept: application/vnd.configuration.resource+xml > Content-Length: 50 > Content-Type: application/x-www-form-urlencoded > * upload completely sent off: 50 out of 50 bytes < HTTP/1.1 204 No Content < Date: Mon, 22 Jun 2020 10:49:46 GMT < Server: SLX-OS WWW < Authentication-Token: Q09IdTB9XTRtdjdEekZ0aVZbNWJHdVpdfGt6SEQ3YjA= < Cache-Control: private, no-cache, must-revalidate, proxy-revalidate < Etag: 1592-822986-907509 < Content-Type: text/html < Pragma: no-cache < X-Forwarded-Proto: http < * Connection #0 to host 10.20.163.63 left intact root@ubuntu:~#
root@ubuntu:~# curl -v -X GET -u admin:password http://10.20.163.63:80 ///rest/config/running/interface/Ethernet/%220/4%22/ip/source-guard -H "Accept: application/vnd.configuration.resource+xml" -k -v Note: Unnecessary use of -X or --request, GET is already inferred. * Trying 10.20.163.63... * TCP_NODELAY set * Connected to 10.20.163.63 (10.20.163.63) port 80 (#0) * Server auth using Basic with user 'admin' > GET ///rest/config/running/interface/Ethernet/%220/4%22/ip/source-guard HTTP/1.1 > Host: 10.20.163.63 > Authorization: Basic YWRtaW46cGFzc3dvcmQ= > User-Agent: curl/7.58.0 > Accept: application/vnd.configuration.resource+xml > < HTTP/1.1 200 OK < Date: 2020-06-22 10:50:18 < Server: SLX-OS Wave WWW < Authentication-Token: Q1ZkYllkPXtgTntBX2x3akt9NVlYVC84O3ZTZ3pqYj0= < Cache-control: private, no-cache, must-revalidate, proxy-revalidate < Content-Type: application/vnd.configuration.resource+xml < X-Forwarded-Proto: http < Transfer-Encoding: chunked < <source-guard xmlns="urn:brocade.com:mgmt:brocade-interface" xmlns:y="http://brocade.com/ns/rest" y:self="/rest/config/running/interface/Ethernet/%220/4%22/ip/source-guard"> <enable>true</enable> </source-guard> * Connection #0 to host 10.20.163.63 left intact root@ubuntu:~#
root@ubuntu:~# curl -v -X DELETE -u admin:password http://10.20.163.63:80/// rest/config/running/interface/Ethernet/%220/4%22/ip/source-guard/enable -H "Accept: application/vnd.configuration.resource+xml" -k -v * Trying 10.20.163.63... * TCP_NODELAY set * Connected to 10.20.163.63 (10.20.163.63) port 80 (#0) * Server auth using Basic with user 'admin' > DELETE ///rest/config/running/interface/Ethernet/%220/4%22/ip/source-guard/enable HTTP/1.1 > Host: 10.20.163.63 > Authorization: Basic YWRtaW46cGFzc3dvcmQ= > User-Agent: curl/7.58.0 > Accept: application/vnd.configuration.resource+xml > < HTTP/1.1 204 No Content < Date: Mon, 22 Jun 2020 10:50:54 GMT < Server: SLX-OS WWW < Authentication-Token: dEk+Z0FePmFzNFNaYns3eUxmZ2JFXWpTUDJuX2EySGM= < Cache-Control: private, no-cache, must-revalidate, proxy-revalidate < Etag: 1592-823054-358045 < Content-Type: text/html < Pragma: no-cache < X-Forwarded-Proto: http < * Connection #0 to host 10.20.163.63 left intact root@ubuntu:~#