RI management
RI管理のAPIリファレンスは以下の通りです。

Get RI purchased list

RI管理データの取得
Role actions
  • ReadRi
  • ModifyRi
Request
1
GET /ri/purchased?vendor={vendor} HTTP1.1
2
Authorization: Bearer {token}
Copied!
リクエストパラーメータの{vendor}のサポートベンダー: aws,azure
Response
1
HTTP 200
2
3
[
4
{
5
"billinggroup_id":"billinggroup1",
6
"billinggroup_name":"billinggroup1",
7
"customer_id":"012345678912",
8
"customer_name":"customer1",
9
"dest_customer_id":"",
10
"end":"2021-12-03T00:00:00Z",
11
"id":"ATEcVTAzVDA4pbnN6YW5jZXXFZbRmNGFlMTAtYWV",
12
"arn":"arn:aws:ec2:ap-northeast-1:012345678912:reserved-instances\/adbcderf-cdef-xwcs-ecqx-5vfbk2767xxs",
13
"instance_type":"t2.large",
14
"modification_status":"Original",
15
"normalization_factor":4,
16
"number":1,
17
"offer_class":"standard",
18
"paid_by":"PaidByOwner",
19
"payment_option":"All Upfront",
20
"platform":"Linux\/UNIX",
21
"region":"ap-northeast-1",
22
"remove":false,
23
"scope":"Region",
24
"service":"AmazonEC2",
25
"start":"2020-12-03T00:00:00Z",
26
"tenancy":"Shared",
27
"term_length":"1yr",
28
"unblended_rate":0,
29
"upfront_value":672,
30
"usage_type":"APN1-HeavyUsage:t2.large",
31
"vendor":"aws",
32
"zone":"",
33
"disabled":false
34
},
35
...
36
]
Copied!

Move RI purchased

RI管理データの移動
Role actions
  • ModifyRi
Request
1
POST /ri/purchased/{ri_id} HTTP1.1
2
Authorization: Bearer {token}
3
Content-Type: application/json
4
5
{request body}
Copied!
リクエストパラーメータの{ri_id} GET /ri/purchased?vendor={vendor}から取得したid
以下に{request body}のリクエストペイロードの例を示します。
{request body}
1
{
2
"customer_id":"123456789123",
3
"number":1,
4
"vendor":"aws"
5
}
Copied!
{request body} description
Field
Type
Required
Validation
Description
customer_id
string
Yes
-
移動先の顧客ID
number
integer
Yes
-
移動する数
vendor
string
Yes
サポート: aws
ベンダー
Response
1
HTTP 200
2
3
{"status":"success"}
Copied!

Remove RI purchased

移動先のRI管理データを元のデータへ戻す
Role actions
  • ModifyRi
Request
1
POST /ri/purchased/{ri_id}/remove?vendor={vendor} HTTP1.1
2
Authorization: Bearer {token}
Copied!
リクエストパラーメータの{ri_id} GET /ri/purchased?vendor={vendor}から取得したid リクエストパラーメータの{vendor}のサポートベンダー: aws
Response
1
HTTP 200
2
3
{"status":"success"}
Copied!