@@ -5545,6 +5545,83 @@ paths:
5545
5545
- lang: CLI
5546
5546
source: >
5547
5547
linode-cli linodes transfer-view 123
5548
+ /linode/instances/{linodeId}/transfer/{year}/{month}:
5549
+ parameters:
5550
+ - name: linodeId
5551
+ in: path
5552
+ description: ID of the Linode to look up.
5553
+ required: true
5554
+ schema:
5555
+ type: integer
5556
+ - name: year
5557
+ in: path
5558
+ description: Numeric value representing the year to look up.
5559
+ required: true
5560
+ schema:
5561
+ type: integer
5562
+ minimum: 2000
5563
+ maximum: 2037
5564
+ - name: month
5565
+ in: path
5566
+ description: Numeric value representing the month to look up.
5567
+ required: true
5568
+ schema:
5569
+ type: integer
5570
+ minimum: 1
5571
+ maximum: 12
5572
+ x-linode-cli-command: linodes
5573
+ get:
5574
+ x-linode-grant: read_only
5575
+ tags:
5576
+ - Linode Instances
5577
+ summary: View Network Transfer (year/month)
5578
+ description: >
5579
+ Returns a Linode's network transfer statistics for a specific month. The year/month
5580
+ values must be either a date in the past, or the current month.
5581
+ operationId: getLinodeTransferByYearMonth
5582
+ x-linode-cli-skip: true
5583
+ x-linode-cli-action: transfer-month
5584
+ security:
5585
+ - personalAccessToken: []
5586
+ - oauth:
5587
+ - linodes:read_only
5588
+ responses:
5589
+ '200':
5590
+ description: >
5591
+ A collection of the specified Linode's network transfer statistics for the requested
5592
+ month.
5593
+ content:
5594
+ application/json:
5595
+ schema:
5596
+ properties:
5597
+ bytes_in:
5598
+ type: integer
5599
+ description: >
5600
+ The amount of inbound public network traffic received by this Linode, in
5601
+ bytes, for a specific year/month.
5602
+ example: 30471077120
5603
+ readOnly: true
5604
+ bytes_out:
5605
+ type: integer
5606
+ description: >
5607
+ The amount of outbound public network traffic sent by this Linode, in bytes,
5608
+ for a specific year/month.
5609
+ example: 22956600198
5610
+ readOnly: true
5611
+ bytes_total:
5612
+ type: integer
5613
+ description: >
5614
+ The total amount of public network traffic sent and received by this Linode,
5615
+ in bytes, for a specific year/month.
5616
+ example: 53427677318
5617
+ readOnly: true
5618
+ default:
5619
+ $ref: '#/components/responses/ErrorResponse'
5620
+ x-code-samples:
5621
+ - lang: Shell
5622
+ source: >
5623
+ curl -H "Authorization: Bearer $TOKEN" \
5624
+ https://api.linode.com/v4/linode/instances/123/transfer/2018/01
5548
5625
/linode/instances/{linodeId}/stats:
5549
5626
parameters:
5550
5627
- name: linodeId
0 commit comments