利用度数を登録します。
リクエストボディ
《要素》
要素名 | 項目 | 項目説明 |
---|---|---|
Request | 説明 | リクエスト情報を持つ要素 |
型 | なし | |
出現回数 | 1 | |
param | 説明 | パラメーター。 |
型 | string ASCII | |
出現回数 | 1以上 | |
Body | 説明 | ボディ |
型 | なし | |
出現回数 | 1 | |
systems | 説明 | L-Platform一覧の情報を持つ要素。 |
型 | なし | |
出現回数 | 1以上 | |
system | 説明 | L-Platform情報の一式。以下のどれかになります。 |
型 | string ASCII | |
出現回数 | systemsの数分(それぞれに対して0以上) | |
servers | 説明 | L-Platform一覧の情報を持つ要素。 |
型 | なし | |
出現回数 | systemの数分(それぞれに対して0または1) | |
server | 説明 | L-Server情報の一式。固定。 |
型 | string ASCII | |
出現回数 | 0以上 | |
disks | 説明 | ディスク一覧の情報を持つ要素。 |
型 | なし | |
出現回数 | 固定。 systemの数分(それぞれに対して0または1) | |
disk | 説明 | ディスク情報の一式。固定。 |
型 | string ASCII | |
出現回数 | 0以上 | |
accountingItems | 説明 | 課金情報一覧の情報を持つ要素 |
型 | なし | |
出現回数 | systemまたはserverまたはdiskの数分(それぞれに対して0または1) | |
accountingItem | 説明 | 課金情報の一式 |
型 | なし | |
出現回数 | accountingItemsの数分(それぞれに対して1以上) | |
products | 説明 | 商品情報一覧の情報を持つ要素 |
型 | なし | |
出現回数 | accountingItemの数分(それぞれに対して0または1) | |
product | 説明 | 商品情報の一式。以下のどれかを指定します。 注1) とりうる値は商品マスタの使用に準じます。商品が登録されていない場合は、属性は省略せず、空を設定します。 注2) 商品ごとに性能値などを設定します。 - template : 1 (固定) |
型 | なし | |
出現回数 | productsの数分(それぞれに対して0以上) | |
usagePoint | 説明 | 利用度数 |
型 | decimal | |
出現回数 | productsの数分(それぞれに対して1) | |
usagePointUnit | 説明 | 度数単位 |
型 | string ASCII | |
出現回数 | productsの数分(それぞれに対して1) |
サンプルリクエストボディ
<?xml version="1.0" encoding="UTF-8"?> <Request> <param name="action">RegisterUsagePoint</param> <Body> <systems date="2012-01-02"> <system id="Tenant1-IYHPD30VJ" name="lplatform001" tenantName="Tenant1" tenantDisplayName="" tenantDeleteDate=""> <accountingItems> <accountingItem> <products> <product id="PID-TMP-001" category="template" resource="template-135562b98d2" usageUnit="month" unitPrice="1000.000" unitNum="1"> <usagePoint>1</usagePoint> <usagePointUnit>month</usagePointUnit> </product> </products> </accountingItem> </accountingItems> <servers> <server id="Tenant1-IYHPD30VJ-S-0001" name="lserver001"> <accountingItems> <accountingItem> <products> <product id="PID-VIM-001" category="vm" resource="/VMHostPool" usageUnit="month" unitPrice="800.000" unitNum="1"> <usagePoint>1</usagePoint> <usagePointUnit>month</usagePointUnit> </product> </products> </accountingItem> <accountingItem> <products> <product id="PID-CPU-001" category="cpu" resource="/VMHostPool" usageUnit="hour" unitPrice="0.150" unitNum="2"> <usagePoint>630</usagePoint> <usagePointUnit>minute</usagePointUnit> </product> <product id="PID-CLK-001" category="cpu_clock" resource="/VMHostPool" usageUnit="hour" unitPrice="0.100" unitNum="10"> <usagePoint>630</usagePoint> <usagePointUnit>minute</usagePointUnit> </product> </products> </accountingItem> <accountingItem> <products> <product id="PID-MEM-001" category="memory" resource="/VMHostPool" usageUnit="hour" unitPrice="0.100" unitNum="40"> <usagePoint>150</usagePoint> <usagePointUnit>minute</usagePointUnit> </product> </products> </accountingItem> </accountingItems> <disks> <disk id="Tenant1-IYHPD30VJ-D-0001" name="disk001"> <accountingItems> <accountingItem> <products> <product id="PID-DSK-001" category="disk" resource="/VMStoragePool" usageUnit="month" unitPrice="1.000" unitNum="200"> <usagePoint>1</usagePoint> <usagePointUnit>month</usagePointUnit> </product> </products> </accountingItem> </accountingItems> </disk> </disks> </server> </servers> </system> </systems> </Body> </Request>
レスポンス
《ステータスコード》
正常に終了した場合に"200 OK"を返します。
《XML》
<?xml version="1.0" encoding="UTF-8"?> <RegisterUsagePointResponse> <responseMessage>[メッセージ]</responseMessage> <responseStatus>[ステータス]</responseStatus> <version>[バージョン]</version> </RegisterUsagePointResponse>
《要素》
要素名 | 項目 | 項目説明 |
---|---|---|
RegisterUsagePointResponse | 説明 | レスポンスの情報を持つ要素 |
型 | なし | |
出現回数 | 1 | |
responseMessage | 説明 | メッセージ。リクエストが正しく処理されたかどうかを表します。 |
型 | string UTF-8 | |
出現回数 | 1 | |
responseStatus | 説明 | ステータス。リクエストが正常に処理されたかどうかを表します。正常に処理された場合は "SUCCESS" が返却されます。それ以外の場合はエラーコードが返却されます。 |
型 | string ASCII | |
出現回数 | 1 | |
version | 説明 | APIのバージョン |
型 | string ASCII | |
出現回数 | 1 |
サンプルレスポンス
<?xml version="1.0" encoding="UTF-8"?> <RegisterUsagePointResponse> <responseMessage>PAPI00000 Process completed.</responseMessage> <responseStatus>SUCCESS</responseStatus> <version>1.0</version> </RegisterUsagePointResponse>