Filter parameter
Thefilter
parameter of the GET method reduces the returned data to include only those entries that match the filter criteria. Specify the filter criteria in a comma-separated list of attributename:value
pairs.
Examples:
Use the
filter
parameter to get only the static VLANS:GET "https://192.0.2.5/rest/v1/system/vlans?filter=type:static"
Use the
filter
parameter to get the BGP routes that have 1.1.1.1 as a peer:GET "https://192.0.2.5/rest/v1/系统/多联机/违约/ bgp_routes ?过滤器=同行:1.1.1。1"