呼叫任意標準基礎架構 API 端點 (ibmcloud sl call-api)
從 IBM Cloud® 指令行介面使用下列指令來呼叫任意的經典基礎結構 API 端點。
ibmcloud sl call-api
呼叫任意 API 端點
ibmcloud sl call-api SERVICE METHOD [OPTIONS]
範例:
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]
指令選項:
- -- filter
- 物件過濾器
- --init
- 起始參數
- -- limit
- 結果限制
- -- mask
- 物件遮罩:用來限制傳回的欄位
- -- offset
- 結果偏移
- -- parameters
- 附加參數至 Web 呼叫