Skip to content

Commit

Permalink
Support nextLink for list container request. (#5562)
Browse files Browse the repository at this point in the history
* Add nextLink in list container response; support $prefix, $maxpagesize and $skipToken query parameters.

* Addressing CR comment: mark next-link as readOnly
  • Loading branch information
huizlAzure authored and dsgouda committed May 6, 2019
1 parent e129012 commit 9cfc970
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,24 @@
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"name": "$skipToken",
"in": "query",
"type": "string",
"description": "Optional. Continuation token for the list operation."
},
{
"name": "$maxpagesize",
"in": "query",
"type": "string",
"description": "Optional. Specified maximum number of containers that can be included in the list."
},
{
"name": "$filter",
"in": "query",
"type": "string",
"description": "Optional. When specified, only container names starting with the filter will be listed."
}
],
"responses": {
Expand Down Expand Up @@ -1054,10 +1072,16 @@
"items": {
"$ref": "#/definitions/ListContainerItem"
},
"description": "The list of blob containers."
"description": "List of blobs containers returned.",
"readOnly": true
},
"nextLink": {
"type": "string",
"description": "Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed maximum page size.",
"readOnly": true
}
},
"description": "The list of blob containers."
"description": "Response schema. Contains list of blobs returned, and if paging is requested or required, a URL to next page of containers."
},
"BlobServiceProperties": {
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"hasLegalHold": false
}
}
]
],
"nextLink": "https://sto1590endpoint/subscriptions/{subscription-id}/resourceGroups/res9290/providers/Microsoft.Storage/storageAccounts/sto1590/blobServices/default/containers?api-version=2019-04-01&$maxpagesize=2&$skipToken=/sto1590/container5103"
}
}
}
Expand Down

0 comments on commit 9cfc970

Please sign in to comment.