Followers

Tuesday, 31 January 2017

Azure Rest Api List container : Parameter Marker

Source: stackoverflow.com --- Monday, January 30, 2017
Hi Guys I am building a Client which Interact with Azure Storage Rest API. I was going through documentation https://docs.Microsoft.com/ru-ru/rest/api/storageservices/fileservices/list-containers2 : And didn't understood the use of parameter prefix and marker which can be send along with Azure request. It says: prefix Optional. Filters the results to return only containers whose name begins with the specified prefix. marker Optional. A string value that identifies the portion of the list of containers to be returned with the next listing operation. The operation returns the NextMarker value within the response body if the listing operation did not return all containers remaining to be listed with the current page. The NextMarker value can be used as the value for the marker parameter in a subsequent call to request the next page of list items. The marker value is opaque to the client. With Prefix, I think: If i have dir structure: file01.txt images/image01.jpg images/folder/image001.jpg fightVideo/subFolder/current/video001.mpg fightVideo/subFolder/current/video002.mpg If I give prefix container name as "fight". It should return fightVideo. But I am not sure. And for Marker I don't understand whats its use? Please can someone explain the use of Prefix and Marker with examples? ...



from Microsoft http://ift.tt/2kav3J1

No comments:

Post a Comment