Count parameter
The
count
parameter of the GET method returns the number of entries that match the specified URI. The count parameter can be useful when specifying resource collections or for getting statistical information.
You can specify the count parameter as either of the following:
count
count=true
Examples:
Use the
count
parameter to get the total number of VLANs:GET "https://192.0.2.5/rest/v1/system/bridge/vlans?count=true"
Use the
count
parameter with thefilter
parameter to get the total number of interfaces in adown
administrative state:GET "https://192.0.2.5/rest/v1/system/interfaces?count&filter=admin_state:down"