回复 3# openstack_walk 借鉴另外一个帖子里对分页的回复问题2:相关的参考链接:http://developer.openstack.org/api-ref-compute-v2.html可以利用limit和marker配合,在前端做出分页效果,但是并不像传统的paginate一样,OpenStack Nova接口中并没有提供从多少到多少的接口limit...
显示全部回复 3# openstack_walk 借鉴另外一个帖子里对分页的回复
问题2:相关的参考链接:
http://developer.openstack.org/api-ref-compute-v2.html可以利用limit和marker配合,在前端做出分页效果,但是并不像传统的paginate一样,OpenStack Nova接口中并没有提供从多少到多少的接口
limit (Optional) query xsd:int
Requests a specified page size of returned items from the query. Returns a number of items up to the specified limit value. Use the limit parameter to make an initial limited request and use the ID of the last-seen item from the response as the marker parameter value in a subsequent limited request.
marker (Optional) query xsd:string
Specifies the ID of the last-seen item. Use the limit parameter to make an initial limited request and use the ID of the last-seen item from the response as the marker parameter value in a subsequent limited request.
收起