임의의 클래식 인프라 API 엔드포인트 호출(ibmcloud sl call-api)
임의의 클래식 인프라 API 엔드포인트를 호출하려면 IBM Cloud® 명령행 인터페이스에서 다음 명령을 사용하십시오.
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]
명령 옵션:
- -- 필터
- 오브젝트 필터
- --init
- Init 매개변수
- -- 한계
- 결과 한계
- --마스크
- 오브젝트 마스크: 리턴된 필드를 제한하는 데 사용
- --offset
- 결과 오프셋
- -- 매개변수
- 웹 호출에 매개변수 추가