Skip to content

Support pagination for resources listing commands #25638

@gaoyp830

Description

@gaoyp830

Related command

az reservations list

Resource Provider

Microsoft.Capacity

Description of Feature or Work Requested

Currently listing resources command will return all resources, e.g. if a user has a total of 1000 reservations, the listing command will return 1000 of them instead of only the first 50 items. We would like the command to have a default behavior that, without specifying the number of items to take, command will only return 50 items unless it's specified with the number of items to take(e.g. --take 100).

Minimum API Version Required

2022-11-01

Swagger PR link / SDK link

Azure/azure-rest-api-specs#21565

Request Example

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/GetReservations.json

Target Date

2023-05-01

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions