URI | Description |
---|---|
<base_URI>/config/running/interface/{interface-type}/{interface-name}/sflow | Configures sFlow. Valid interface type: Ethernet. |
GET URIs | Description |
---|---|
<base_URI>/config/running/interface/{interface-type}/{interface-name}/sflow | Configures sFlow. Valid interface type: Ethernet. |
<base_URI>/config/running/interface/{interface-type}/{interface-name}/sflow/enable | Retrieves information on whether sFlow is enabled on an interface. Valid interface type: Ethernet. |
<base_URI>/config/running/interface/{interface-type}/{interface-name}/sflow/polling-interval | Retrieves information on sFlow polling interval. Valid interface type: Ethernet. |
<base_URI>/config/running/interface/{interface-type}/{interface-name}/sflow/sample-rate | Retrieves information on sFlow sampling rate. Valid interface type: Ethernet. |
PATCH URIs | Payload | Description |
---|---|---|
<base_URI>/config/running/interface/{interface-type}/{interface-name}/sflow | <sflow><enable>true</enable></sflow> | Enables sFlow. Valid interface type: Ethernet. |
<base_URI>/config/running/interface/{interface-type}/{interface-name}/sflow | <sflow><polling-interval>{uint32}</polling-interval></sflow> | Configures sFlow polling interval. Valid interface type: Ethernet. |
<base_URI>/config/running/interface/{interface-type}/{interface-name}/sflow | <sflow><sample-rate>{uint32}</sample-rate></sflow> | Configures sFlow sampling rate. Valid interface type: Ethernet. |
PUT URIs | Payload | Description |
---|---|---|
<base_URI>/config/running/interface/{interface-type}/{interface-name}/sflow | <sflow><enable>true</enable></sflow> | Enables sFlow. Valid interface type: Ethernet. |
<base_URI>/config/running/interface/{interface-type}/{interface-name}/sflow | <sflow><polling-interval>{uint32}</polling-interval></sflow> | Configures sFlow polling interval. Valid interface type: Ethernet. |
<base_URI>/config/running/interface/{interface-type}/{interface-name}/sflow | <sflow><sample-rate>{uint32}</sample-rate></sflow> | Configures sFlow sampling rate. Valid interface type: Ethernet. |
DELETE URIs |
---|
<base_URI>/config/running/interface/{interface-type}/{interface-name}/sflow |
<base_URI>/config/running/interface/{interface-type}/{interface-name}/sflow/polling-interval |
<base_URI>/config/running/interface/{interface-type}/{interface-name}/sflow/sample-rate |
GET, PUT, PATCH, DELETE, OPTIONS, and HEAD operations are supported. .
The following example uses the GET option to retrieve the configuration details.
http://host:80/rest/config/running/interface/{interface-type}/{interface-name}/sflow/polling-interval
None
<polling-intervalurn:brocade.com:mgmt:brocade-sflow"" xmlns:y=""http://brocade.com/ns/rest"" y:self=""/rest/config/running/interface/Ethernet/%221/42%22/sflow/polling-interval"">56</polling-interval>
The following example uses the PATCH option to configure the sampling rate.
http://host:80/rest/config/running/interface/{interface-type}/{interface-name}/sflow/sampling-rate
None
<sample-rate>30</sample-rate>
The following example uses the DELETE option to remove polling interval.
http://host:80/rest/config/running/interface/{interface-type}/{interface-name}/sflow/polling-interval
None
None