interface/{interface-type}/{interface-name}/sflow

Configures, modifies, or retrieves sFlow configuration.

Resource URIs

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

Parameters

interface-type
Valid interface type:Ethernet only.
polling-interval
Specifies polling interval value. The value can range from 1 through 65535. The default value is 20.
sample-rate
Specifies sampling rate value. The value can range from 2 through 16777215. The default value is 32768.

Usage Guidelines

GET, PUT, PATCH, DELETE, OPTIONS, and HEAD operations are supported. .

Examples

URI

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>

URI

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>

URI

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