Linux command
ibmcloud-api 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show current API endpoint
ibmcloud api
Set API endpoint
ibmcloud api [https://cloud.ibm.com]
Set private endpoint
ibmcloud api https://private.cloud.ibm.com
Set private endpoint via VPC
ibmcloud api https://private.cloud.ibm.com --vpc
Unset API endpoint
ibmcloud api --unset
Skip SSL validation
ibmcloud api [endpoint] --skip-ssl-validation
说明
ibmcloud api sets or displays the IBM Cloud API endpoint. If neither an endpoint nor --unset is specified, the current API endpoint is displayed. The default public endpoint is https://cloud.ibm.com. Use https://private.cloud.ibm.com for private network access. Setting the API endpoint is required before logging in with ibmcloud login.
参数
- --unset
- Clear the API endpoint.
- --skip-ssl-validation
- Bypass SSL validation (not recommended).
- --vpc
- Use VPC connection for private endpoint.
FAQ
What is the ibmcloud-api command used for?
ibmcloud api sets or displays the IBM Cloud API endpoint. If neither an endpoint nor --unset is specified, the current API endpoint is displayed. The default public endpoint is https://cloud.ibm.com. Use https://private.cloud.ibm.com for private network access. Setting the API endpoint is required before logging in with ibmcloud login.
How do I run a basic ibmcloud-api example?
Run `ibmcloud api` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --unset do in ibmcloud-api?
Clear the API endpoint.