调用任意经典基础架构 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
- 初始化参数
- -- 限制
- 结果限制
- -- 掩码
- 对象掩码:用于限制返回的字段
- -- 偏移量
- 结果偏移量
- -- 参数
- 将参数附加到 Web 调用