任意のクラシック・インフラストラクチャー API エンドポイントの呼び出し (ibmcloud sl call-api)

IBM Cloud® コマンド・ライン・インターフェースから以下のコマンドを使用して、任意のクラシック・インフラストラクチャー API エンドポイントを呼び出します。

ibmcloud sl call-api

任意の API エンドポイントを呼び出します

ibmcloud sl call-api SERVICE METHOD [オプション]

:

ibmcloud sl call-api SoftLayer_Network_Storage editObject --init 57328245 --parameters '[{"notes":"Testing."}]'
This command edit a volume notes.

ibmcloud sl call-api SoftLayer_User_Customer getObject --init 7051629 --mask "id,firstName,lastName"
This command show a user detail.

ibmcloud sl call-api SoftLayer_Account getVirtualGuests --filter '{"virtualGuests":{"hostname":{"operation":"cli-test"}}}'
This command list virtual guests.
ibmcloud sl call-api [flags]

コマンド・オプション

-- フィルター
オブジェクト・フィルター
--init
初期設定パラメーター
-- 制限
結果の制限
--mask
オブジェクト・マスク: 返されるフィールドを制限するために使用します
--offset
結果のオフセット
-- パラメーター
Web 呼び出しにパラメーターを追加します