{"_id":"563a2dbd1846790d0089531d","editedParams2":true,"version":{"_id":"563a2dba1846790d00895309","__v":3,"project":"54d4ecb5f6c48a0d00f0f041","createdAt":"2015-11-04T16:09:30.844Z","releaseDate":"2015-11-04T16:09:30.844Z","categories":["563a2dbb1846790d0089530a","563a2dbb1846790d0089530b","563a2dbb1846790d0089530c","56620e60f183880d004d3217","5702e5b8f2d6f336005e9025"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"No Mashape","version_clean":"1.1.0","version":"1.1"},"category":{"_id":"563a2dbb1846790d0089530b","project":"54d4ecb5f6c48a0d00f0f041","pages":["563a2dbd1846790d00895318","563a2dbd1846790d00895319","563a2dbd1846790d0089531a","563a2dbd1846790d0089531b","563a2dbd1846790d0089531c","563a2dbd1846790d0089531d","563a2dbd1846790d0089531e"],"version":"563a2dba1846790d00895309","__v":1,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-02-06T16:37:55.318Z","from_sync":false,"order":3,"slug":"endpoints","title":"API Endpoints"},"editedParams":true,"__v":0,"user":"54d4ec36f6c48a0d00f0f040","project":"54d4ecb5f6c48a0d00f0f041","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-04-09T02:50:09.789Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"method":"get","results":{"codes":[{"status":201,"language":"json","code":"{\n  \"meta\": {\n    \":::at:::self\": {\n      \"href\": \"https://api.instacount.io/sharded_counters/counter-abc/shards/0/operations/42063f66-b28b-4d1e-a859-ee426a2f2936\"\n    }\n  },\n  \"id\": \"42063f66-b28b-4d1e-a859-ee426a2f2936\",\n  \"shardIndex\": 0,\n  \"type\": \"DECREMENT\",\n  \"amount\": 1,\n  \"created\": \"2015-08-08T23:41:17.068Z\"\n}","name":""},{"status":404,"language":"json","code":"{\n  \"errors\": [\n    {\n      \"message\": \"What you requested does not exist.\",\n      \"developerMessage\": \"The resource you requests was not found!\",\n      \"moreInfo\": \"https://instacount.readme.io\"\n    }\n  ]\n}"}]},"settings":"","auth":"required","params":[{"_id":"5525e97f1bd55c0d00509054","ref":"","in":"path","required":true,"desc":"An optionally supplied unique name for the counter to be retrieved.","default":"test-counter","type":"string","name":"name"},{"_id":"5525e97f1bd55c0d00509053","ref":"","in":"path","required":true,"desc":"A zero-based index for the shard of the counter operation to retrieve (up to num-shards - 1)","default":"0","type":"string","name":"shard_index"},{"_id":"5525e97f1bd55c0d00509052","ref":"","in":"path","required":true,"desc":"A unique identifier for the counter operation on a particular counter shard.","default":"508e9fdf-3335-4ab8-970c-181d24c0bfc4","type":"string","name":"operation_id"}],"url":"/sharded_counters/:name/shards/:shard_index/operations/:operation_id"},"isReference":false,"order":5,"body":"","excerpt":"Retrieve a counter increment/decrement operation.","slug":"get-counter-operation","type":"endpoint","title":"Get Counter Operation"}

getGet Counter Operation

Retrieve a counter increment/decrement operation.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

name:
required
stringtest-counter
An optionally supplied unique name for the counter to be retrieved.
shard_index:
required
string0
A zero-based index for the shard of the counter operation to retrieve (up to num-shards - 1)
operation_id:
required
string508e9fdf-3335-4ab8-970c-181d24c0bfc4
A unique identifier for the counter operation on a particular counter shard.

Result Format


User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}