Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pager not work #512

Open
terryfth opened this issue Oct 10, 2022 · 3 comments
Open

pager not work #512

terryfth opened this issue Oct 10, 2022 · 3 comments

Comments

@terryfth
Copy link

terryfth commented Oct 10, 2022

  • Execution Command: aliyun vpc DescribeVSwitches -o cols=VSwitchId rows=VSwitches.VSwitch[] --pager

  • Output:
    VSwitchId
    =======
    vsw-<record 1>
    vsw-<record 2>
    vsw-<record 3>
    vsw-<record 4>
    vsw-<record 5>
    vsw-<record 6>
    vsw-<record 7>
    vsw-<record 8>
    vsw-<record 9>
    vsw-<record 10>

--pager doesn't work, I have over 10+ vswitch, --pager not get them out, but --PageSize 50 does

@generals-space
Copy link

generals-space commented Oct 10, 2022

Yeah, same like ecs DescribeImages, and --PageSize can not larger than 100.

$ aliyun ecs DescribeImages --PageSize 101
ERROR: SDK.ServerError
ErrorCode: InvalidParameter
Recommend: https://next.api.aliyun.com/troubleshoot?q=InvalidParameter&product=Ecs
RequestId:
Message: The specified parameter "PageSize" is not valid.
RespHeaders: map[Access-Control-Allow-Origin:[*] Connection:[keep-alive] Content-Length:[278] Content-Type:[application/json;charset=utf-8] Date:[Mon, 10 Oct 2022 14:35:46 GMT] X-Acs-Request-Id:[] X-Acs-Trace-Id:[]]

But --PageSize 100 works well, maybe you can add this to documents

@terryfth
Copy link
Author

terryfth commented Oct 10, 2022

--pager is the issue. expect the command merge the pages into single output as it stated:
#aliyun help | grep pager
use --pager to merge pages for pageable APIs

@terryfth
Copy link
Author

terryfth commented Oct 10, 2022

--pager 3.0.82 still works. since 3.0.83, it fails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants