Paginate
As the name suggests, paginate slices the data into pages and returns the amount of data the user is interested in. The following shows a sample paginate modifier:
curl - b“aruba-cookie”- x -我的https://10.4.248.227:4343/v1/configuration/object/
Parameters |
Description |
---|---|
This conveys the number of the entry from which we should start the next data set. For example, offset value of 21 means that out of all the instances of an object, give me data from 21st object. Currently, we support |
|
The maximum number if instances of an object that should be put in a single request. |
|
The total number of instances of that object existing in system at that given configuration node. It should be set to 0 when first query is done and the count field specified in the result should be put here (optionally) for subsequent queries. This is an optional field and is explained below. |
|
Session ID for this session. |
For example, let's assume that there are 260VLANsVirtual Local Area Network. In computer networking, a single Layer 2 network may be partitioned to create multiple distinct broadcast domains, which are mutually isolated so that packets can only pass between them through one or more routers; such a domain is referred to as a Virtual Local Area Network, Virtual LAN, or VLAN.configured on a system and you want to query 50VLANsVirtual Local Area Network. In computer networking, a single Layer 2 network may be partitioned to create multiple distinct broadcast domains, which are mutually isolated so that packets can only pass between them through one or more routers; such a domain is referred to as a Virtual Local Area Network, Virtual LAN, or VLAN.at one time. So, for first request, you will set
The last query will return only 10VLANsVirtual Local Area Network. In computer networking, a single Layer 2 network may be partitioned to create multiple distinct broadcast domains, which are mutually isolated so that packets can only pass between them through one or more routers; such a domain is referred to as a Virtual Local Area Network, Virtual LAN, or VLAN.which signals to user that no moreVLANsVirtual Local Area Network. In computer networking, a single Layer 2 network may be partitioned to create multiple distinct broadcast domains, which are mutually isolated so that packets can only pass between them through one or more routers; such a domain is referred to as a Virtual Local Area Network, Virtual LAN, or VLAN.are available. If user requests for
If top-level object is multi-instance and more than one instance exists in query data, paginate will apply to it.
If top-level object is multi-instance, and you have only one instance in query data, paginate will run on multi-instances of the sub_objects.
If top-level command is single-instance, paginate will run on multi-instance sub_objects only.
The following is a sample paginate request:
Request on Section "vlansVirtual Local Area Network. In computer networking, a single Layer 2 network may be partitioned to create multiple distinct broadcast domains, which are mutually isolated so that packets can only pass between them through one or more routers; such a domain is referred to as a Virtual Local Area Network, Virtual LAN, or VLAN.", where we query for all sub-objs ofvlanVirtual Local Area Network. In computer networking, a single Layer 2 network may be partitioned to create multiple distinct broadcast domains, which are mutually isolated so that packets can only pass between them through one or more routers; such a domain is referred to as a Virtual Local Area Network, Virtual LAN, or VLAN.97 and any multi-instance subobject (like int_vlanVirtual Local Area Network. In computer networking, a single Layer 2 network may be partitioned to create multiple distinct broadcast domains, which are mutually isolated so that packets can only pass between them through one or more routers; such a domain is referred to as a Virtual Local Area Network, Virtual LAN, or VLAN._ip_helper) should only return 3 total objects:
curl - b“aruba-cookie”- x -我的https://10.4.248.227:4343/v1/configuration/object/
The following is the response to the above request:
{
"_data": {
"int_vlan": [
{
"id": 97,
"int_vlan_ip_helper": [
{
"address": "1.1.1.1"
},
{
"address": "2.1.1.1"
},
{
"address": "3.1.1.1"
}
]
}
]
},
"_status": "Data Dirty",
"_count": {
"int_vlan.int_vlan_ip_helper": 4
}
}
So, you see that the total count of "int_vlanVirtual Local Area Network. In computer networking, a single Layer 2 network may be partitioned to create multiple distinct broadcast domains, which are mutually isolated so that packets can only pass between them through one or more routers; such a domain is referred to as a Virtual Local Area Network, Virtual LAN, or VLAN..int_vlanVirtual Local Area Network. In computer networking, a single Layer 2 network may be partitioned to create multiple distinct broadcast domains, which are mutually isolated so that packets can only pass between them through one or more routers; such a domain is referred to as a Virtual Local Area Network, Virtual LAN, or VLAN._ip_helper" sub-object is 4 but only 3 records are returned. The status is marked "Data Dirty" as we didn't send any