Skip to content

subscription Subscriptions_List requires nextLink #17621

@cataggar

Description

@cataggar

In the subscription service, the Subscriptions_List operation returns a SubscriptionListResult which says nextLink is required. The service is not returning a nextLink when there are not enough results for paging. The API version for that operation is 2016-06-01 which is used by these tags:

  • package-2021-10
  • package-2020-09
  • package-2019-10-preview
  • package-2019-03-preview
  • package-2018-11-preview
  • package-2018-03-preview
  • package-2016-06-01

cc @Ochirkhuyag, @navysingla, @mjfrb

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/subscription/resource-manager/readme.md

"/subscriptions": {
"get": {
"tags": [
"Subscriptions"
],
"operationId": "Subscriptions_List",
"description": "Gets all subscriptions for a tenant.",
"x-ms-examples": {
"listSubscriptions": {
"$ref": "./examples/listSubscriptions.json"
}
},
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK - Returns an array of subscriptions.",
"schema": {
"$ref": "#/definitions/SubscriptionListResult"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},

"SubscriptionListResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Subscription"
},
"description": "An array of subscriptions."
},
"nextLink": {
"type": "string",
"description": "The URL to get the next set of results."
}
},
"required": [
"nextLink"
],
"description": "Subscription list operation response."
},

This is a swagger quality issue. Tools like the Azure SDK for Rust rely on the service specification matching the service implementation. Azure/azure-sdk-for-rust#650

Metadata

Metadata

Assignees

No one assigned

    Labels

    Service AttentionWorkflow: This issue is responsible by Azure service team.Subscription

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions