UNSOLVED

vlyamtsev

updated

11 years ago

V

vlyamtsev

2 Posts

0

1107

February 4th, 2016 13:00

string marker in metering API?

Hello,

Anybody can explain what is in metering API, for example - to get usage for all buckets in namespace

GET /object/billing/namespace/{namespace_name}/info?marker= &include_bucket_detail= &sizeunit=

Thank you

  • vlyamtsev

    2 Posts

    586

    0

    Posted February 5th, 2016 07:00

    Don't really understand this: would my first call include marker as empty string:

    /object/billing/namespace/{namespace_name}/info?marker=""&include_bucket_detail= &sizeunit=

    Or, would it just omit it?

    /object/billing/namespace/{namespace_name}/info?include_bucket_detail= &sizeunit=

  • benschumacher

    1 Rookie

    75 Posts

    586

    0

    Posted February 5th, 2016 07:00

    On you first call, the marker querystring will be empty.  However, you will notice in the response (of the firs call) that a value is returned in a field called next_marker.  Pass the next_marker value as your marker in subsequent requests to continue traversing the list.

    -Ben

  • benschumacher

    1 Rookie

    75 Posts

    586

    0

    Posted February 5th, 2016 08:00

    You can just omit the marker querystring on your first call as this field is optional.

    -Ben