Skip to content

Commit 9ddcaf0

Browse files
Merge pull request #48 from yoshizzle/accounttransfer
new: Missing /account/transfer endpoint
2 parents aae4890 + 53d422f commit 9ddcaf0

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

src/data/endpoints/account.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,3 +673,19 @@ endpoints:
673673
The PayerID returned by PayPal during the transaction authorization
674674
process.
675675
value: ABCDEFGHIJKLM
676+
/account/transfer:
677+
group: Transfer
678+
type: resource
679+
authenticated: true
680+
description: >
681+
View your network utilization for the current month, in gigabytes.
682+
methods:
683+
GET:
684+
response: transfer
685+
oauth: account:view
686+
description: >
687+
Returns transfer pool statistics based on active Linodes and
688+
NodeBalancers on your account.
689+
examples:
690+
curl: |
691+
curl https://$api_root/$version/account/transfer

src/data/objects/transfer.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Transfer
2+
prefix: transfer
3+
description: >
4+
Transfer pool statistics
5+
schema:
6+
billable:
7+
type: Integer
8+
value: 0
9+
description: The amount of your transfer pool that is billable this billing cycl.
10+
quota:
11+
type: Integer
12+
value: 2000
13+
description: The amount of network usage allowed each billing cycle.
14+
used:
15+
type: Integer
16+
value: 0
17+
description: The amount of network usage you have used this billing cycle.

0 commit comments

Comments
 (0)