Skip to content

new: Missing /account/transfer endpoint #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/data/endpoints/account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -673,3 +673,19 @@ endpoints:
The PayerID returned by PayPal during the transaction authorization
process.
value: ABCDEFGHIJKLM
/account/transfer:
group: Transfer
type: resource
authenticated: true
description: >
View your network utilization for the current month, in gigabytes.
methods:
GET:
response: transfer
oauth: account:view
description: >
Returns transfer pool statistics based on active Linodes and
NodeBalancers on your account.
examples:
curl: |
curl https://$api_root/$version/account/transfer
17 changes: 17 additions & 0 deletions src/data/objects/transfer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Transfer
prefix: transfer
description: >
Transfer pool statistics
schema:
billable:
type: Integer
value: 0
description: The amount of your transfer pool that is billable this billing cycl.
quota:
type: Integer
value: 2000
description: The amount of network usage allowed each billing cycle.
used:
type: Integer
value: 0
description: The amount of network usage you have used this billing cycle.