question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

API: `GET` data limit

See original GitHub issue

Currently the API can only PUT or DELETE a data limit. This makes it difficult to track the actual data limit being enforced to the server or an access key. We should allow GET on /access-keys/{id}/data-limit and /experimental/access-key-data-limit.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
database64128commented, May 15, 2021

@parsalotfy It’s the path in the API URL. For example, if your API URL is https://example.com/secret, you can GET https://example.com/secret/access-keys to list the access keys.

2reactions
JonathanDCohencommented, Jan 13, 2021

Hey there! Thanks for bringing up the issue. I agree that the API for individual access keys is a bit clunky, but thankfully you don’t need it to get the information you need.

You can currently get the data limit enforced on each key either through the UI

Screen Shot 2021-01-13 at 12 46 47 PM

Or using GET /server, which returns a JSON blob looking something like

{
  ...
  "accessKeyDataLimit": {
    "bytes": 5000000000
  },
  ...
}

To get programmatic access to information about individual access keys using the API, you could use something like jq:

$ curl -k https://my.server:address/$PREFIX/access-keys | jq '.accessKeys[] | select(.id == "1")'

{
  "id": "1",
  "name": "Key Name",
  "password": "somePassword",
  "port": 12345,
  "method": "chacha20-ietf-poly1305",
  "accessUrl": "ss://..."
}

We have a Help Article about data limits which might also help you out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

REST API Limits
By default, when you perform a synchronous GET request with this API, the maximum number of objects returned is 500. Some GET APIs...
Read more >
How to limit the data recieved from an API? - Stack Overflow
Limiting often depends on what the server supports. Check whether the api request has a limit or a paging parameter: in your case...
Read more >
Limits and Quotas on API Requests | Analytics Core Reporting ...
In the API Console, there is a similar quota referred to as Requests per 100 seconds per user. By default, it is set...
Read more >
Retrieving large volumes of data - Oracle Help Center
This tutorial will walk you through how to retrieve data surpassing the limit of 50,000 per request, including example HTTP requests and cURL....
Read more >
Everything You Need To Know About API Rate Limiting
API owners typically measure processing limits in Transactions Per Second (TPS). Some systems may have physical limitations on data ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found