Skip to content

Support for paging using az devops invoke when continuation token is in header #1112

@Tiberriver256

Description

@Tiberriver256

Example command:

az devops invoke --area distributedtask --resource jobrequests --route-parameters poolId={myPoolId} --organization {myOrg} --query-parameters `$top=1

will translation to the following URL:

{myOrg}/_apis/distributedtask/pools/{myPoolId}/jobrequests?$top=1

This works as expected and returns a JSON response to the console. The problem is that, if I need to get to the next page, the server sends the continuation token as a header instead of embedded in the JSON body response and az devops invoke doesn't expose response headers at all, that I can see.

Metadata

Metadata

Assignees

Labels

FeatureFeature Work required.Requires API upgradeThe fix for the issue requires the new higher version of Rest APIs.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions