本文へジャンプします。

ニフティクラウド APIリファレンス

nifty-describe-usage

処理概要

API「DescribeUsage」が実行されます。
ユーザーの利用明細情報を取得します。存在する情報のみ返却されます。

オプション「--charge」を指定した場合、レスポンスの各リソースに対して利用料金が返却されます。

コマンド構文

nifty-describe-usage [オプション]

オプション

オプション 短縮 説明 必須
--year-month -y 取得対象年月を指定します。  
--region-name REGION   リージョンを指定します。
指定がない場合は共通情報を取得します。
 
--charge   利用料金を取得する場合、指定します。  

出力要素

※ニフティクラウドAPIの応答フィールド名を記述します。

  • yearMonth
  • INSTANCE / accountingType
  • INSTANCE / status
  • INSTANCE / type
  • INSTANCE / unit
  • INSTANCE / value
  • INSTANCE / charge
  • DYNAMIC_IP / accountingType
  • DYNAMIC_IP / unit
  • DYNAMIC_IP / value
  • DYNAMIC_IP / charge
  • OS / accountingType
  • OS / type
  • OS / unit
  • OS / value
  • OS / charge
  • MULTI_IP / accountingType
  • MULTI_IP / unit
  • MULTI_IP / value
  • MULTI_IP / charge
  • COPY / unit
  • COPY / value
  • COPY / charge
  • CREATE_IMAGE / unit
  • CREATE_IMAGE / value
  • CREATE_IMAGE / charge
  • KEEP_IMAGE / type
  • KEEP_IMAGE / unit
  • KEEP_IMAGE / value
  • KEEP_IMAGE / charge
  • VOLUME / accountingType
  • VOLUME / type
  • VOLUME / unit
  • VOLUME / value
  • VOLUME / charge
  • IMPORT_VOLUME / accountingType
  • IMPORT_VOLUME / unit
  • IMPORT_VOLUME / value
  • IMPORT_VOLUME / charge
  • NETWORK / type
  • NETWORK / unit
  • NETWORK / value
  • NETWORK / charge
  • GROUP / unit
  • GROUP / value
  • GROUP / charge
  • GROUP_OPTION / type
  • GROUP_OPTION / unit
  • GROUP_OPTION / value
  • GROUP_OPTION / charge
  • LOAD_BALANCER / accountingType
  • LOAD_BALANCER / type
  • LOAD_BALANCER / unit
  • LOAD_BALANCER / value
  • LOAD_BALANCER / charge
  • LOAD_BALANCER_OPTION / type
  • LOAD_BALANCER_OPTION / unit
  • LOAD_BALANCER_OPTION / value
  • LOAD_BALANCER_OPTION / charge
  • ELASTIC_IP / type
  • ELASTIC_IP / unit
  • ELASTIC_IP / value
  • ELASTIC_IP / charge
  • AUTO-SCALING / accountingType
  • AUTO-SCALING / status
  • AUTO-SCALING / type
  • AUTO-SCALING / unit
  • AUTO-SCALING / value
  • AUTO-SCALING / charge
  • AUTO-SCALING-OS / accountingType
  • AUTO-SCALING-OS / status
  • AUTO-SCALING-OS / type
  • AUTO-SCALING-OS / unit
  • AUTO-SCALING-OS / value
  • AUTO-SCALING-OS / charge
  • CERTIFICATE / type
  • CERTIFICATE / unit
  • CERTIFICATE / value
  • CERTIFICATE / charge
  • PRIVATE_LAN / unit
  • PRIVATE_LAN / value
  • PRIVATE_LAN / charge
  • CHARGE_INFO / value
  • CHARGE_INFO / charge
  • PREMIUM_SUPPORT / type
  • PREMIUM_SUPPORT / value
  • PREMIUM_SUPPORT / charge
  • MULTI_ACCOUNT / unit
  • MULTI_ACCOUNT / value
  • MULTI_ACCOUNT / charge
  • PATTERN_AUTH / type
  • PATTERN_AUTH / unit
  • PATTERN_AUTH / value
  • PATTERN_AUTH / charge
  • CLOUD_STORAGE / accountingType
  • CLOUD_STORAGE / type
  • CLOUD_STORAGE / unit
  • CLOUD_STORAGE / value
  • CLOUD_STORAGE / charge
  • MAIL_SEND / accountingType
  • MAIL_SEND / type
  • MAIL_SEND / unit
  • MAIL_SEND / value
  • MAIL_SEND / charge
  • MAIL_SEND_OPTION / type
  • MAIL_SEND_OPTION / value
  • MAIL_SEND_OPTION / charge
  • OS_OPTION / accountingType
  • OS_OPTION / type
  • OS_OPTION / unit
  • OS_OPTION / value
  • OS_OPTION / charge
  • EXTRA / accountingType
  • EXTRA / type
  • EXTRA / unit
  • EXTRA / value
  • EXTRA / charge
  • LICENSE / type
  • LICENSE / unit
  • LICENSE / value
  • (追加オプション大分類名) / type
  • (追加オプション大分類名) / unit
  • (追加オプション大分類名) / value
  • (追加オプション大分類名) / charge
  • INTERNET_VPN_INITIAL / value
  • INTERNET_VPN_INITIAL / charge
  • INTERNET_VPN / accountingType
  • INTERNET_VPN / type
  • INTERNET_VPN / value
  • INTERNET_VPN / charge
  • SNAPSHOT / unit
  • SNAPSHOT / value
  • SNAPSHOT / charge
  • SECURENET / accountingType
  • SECURENET / value
  • SECURENET / charge
  • SECURENET_VPNCONNECT / type
  • SECURENET_VPNCONNECT / unit
  • SECURENET_VPNCONNECT / value
  • SECURENET_VPNCONNECT / charge
  • PRIVATE_NETWORK / accountingType
  • PRIVATE_NETWORK / unit
  • PRIVATE_NETWORK / value
  • PRIVATE_NETWORK / charge
  • ROUTER / accountingType
  • ROUTER / type
  • ROUTER / unit
  • ROUTER / value
  • ROUTER / charge
  • VPNGATEWAY / accountingType
  • VPNGATEWAY / type
  • VPNGATEWAY / unit
  • VPNGATEWAY / value
  • VPNGATEWAY / charge

実行サンプル

リージョン別情報の取得
PROMPT>nifty-describe-usage -y 2011/10 -region-name east-1
201110
INSTANCE monthly mini machine 1
INSTANCE measured running mini hour 10
INSTANCE measured stopped mini hour 10
DYNAMIC_IP monthly machine 10
DYNAMIC_IP measured hour 10
OS monthly windows vCPU 10
OS monthly redhat vCPU 4
OS measured windows hour 10
OS measured redhat hour vCPU 10

COPY times 10
CREATE_IMAGE times 10
KEEP_IMAGE windows image 10
KEEP_IMAGE volume 100GB 1
VOLUME monthly High-Speed Storage A 100GB 100
VOLUME measured High-Speed Storage A hour 10
IMPORT_VOLUME monthly 100GB 25
IMPORT_VOLUME measured hour 10
NETWORK charge GB 10000
NETWORK free GB 100
GROUP hour 10
GROUP_OPTION group 10groups 3
GROUP_OPTION log 100000
LOAD_BALANCER monthly 10 VIP 2
LOAD_BALANCER monthly 20 VIP 1
LOAD_BALANCER measured 10 hour 2
LOAD_BALANCER measured 20 hour 1
LOAD_BALANCER_OPTION session hour 1
LOAD_BALANCER_OPTION sorry 1
ELASTIC_IP public IP 2
ELASTIC_IP private IP 3
AUTO-SCALING config 1
AUTO-SCALING measured running mini hour 1
AUTO-SCALING measured stopped mini hour 3
AUTO-SCALING-OS measured running windows hour 1
AUTO-SCALING-OS measured running redhat hour 5
AUTO-SCALING-OS measured stopped windows hour 2
AUTO-SCALING-OS measured stoped redhat hour 1
CHARGE_INFO 1
PREMIUM_SUPPORT システム監視 1
CLOUD_STORAGE measured GB 10
OS_OPTION monthly Microsoft SQLServer 2008 R2 machine 2
PRIVATE_RACK - hour 1
INTERNET_VPN_INITIAL 1
INTERNET_VPN monthly 30 1
SNAPSHOT snapshot 1
SECURENET monthly 1
SECURENET_VPNCONNECT connect hour 1
PRIVATE_NETWORK monthly 2
ROUTER monthly router.small(10Rule) machine 2
VPNGATEWAY monthly vpngw.small(1Connection) machine 2
共通情報と東日本リージョン固有情報の取得
PROMPT>nifty-describe-usage -y 2011/10
201110
INSTANCE monthly mini machine 1
INSTANCE measured running mini hour 10
INSTANCE measured stopped mini hour 10
DYNAMIC_IP monthly machine 10
DYNAMIC_IP measured hour 10
OS monthly windows vCPU 10
OS monthly redhat vCPU 4
OS measured windows hour 10
OS measured redhat hour vCPU 10
MULTI_IP monthly IP 2
COPY times 10
CREATE_IMAGE times 10
KEEP_IMAGE windows image 10
KEEP_IMAGE volume 100GB 1
VOLUME monthly High-Speed Storage A 100GB 100
VOLUME measured High-Speed Storage A hour 10
IMPORT_VOLUME monthly 100GB 25
IMPORT_VOLUME measured hour 10
NETWORK charge GB 10000
NETWORK free GB 100
GROUP hour 10
GROUP_OPTION group 10groups 3
GROUP_OPTION log 100000
LOAD_BALANCER monthly 10 VIP 2
LOAD_BALANCER monthly 20 VIP 1
LOAD_BALANCER measured 10 hour 2
LOAD_BALANCER measured 20 hour 1
LOAD_BALANCER_OPTION session hour 1
LOAD_BALANCER_OPTION sorry 1
ELASTIC_IP public IP 2
ELASTIC_IP private IP 3
AUTO-SCALING config 1
AUTO-SCALING measured running mini hour 1
AUTO-SCALING measured stopped mini hour 3
AUTO-SCALING-OS measured running windows hour 1
AUTO-SCALING-OS measured running redhat hour 5
AUTO-SCALING-OS measured stopped windows hour 2
AUTO-SCALING-OS measured stoped redhat hour 1
CERTIFICATE 6 cert 3
CERTIFICATE g12 day 3
PRIVATE_LAN LAN 1
PREMIUM_SUPPORT ヘルプデスク 1
PREMIUM_SUPPORT OSパッチ適用 1
MULTI_ACCOUNT account 1
PATTERN_AUTH parent account 1
CLOUD_STORAGE 10TB 1
CLOUD_STORAGE measured GB 10
MAIL_SEND 1
MAIL_SEND measured mail 100
MAIL_SEND monthly_exceeded mail 100
MAIL_SEND_OPTION initial.decomail 1
MAIL_SEND_OPTION decomail 1
EXTRA monthly Oracle11g machine 2
LICENSE RDS license 20
HARDWARE physical_servers times 10
PRIVATE_RACK - hour 1
INTERNET_VPN monthly 30 1
INTERNET_VPN_INITIAL 1
SNAPSHOT snapshot 1
SECURENET monthly 1
SECURENET_VPNCONNECT connect hour 1
PRIVATE_NETWORK monthly 2
ROUTER monthly router.small(10Rule) machine 2
VPNGATEWAY monthly vpngw.small(1Connection) machine 2

ニフティクラウド サイト内検索

APIメニュー

  • ツイッターでフォローしてください
  • ニフティクラウド公式フェイスブックページ

推奨画面サイズ 1024×768 以上