HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ibmcloud api — Set or view the IBM Cloud API endpoint. More information: <https://cloud.ibm.com/docs/cli?topic=cli-

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandcloudibmcloud apiibmclisetview

Problem

How to use the ibmcloud api command: Set or view the IBM Cloud API endpoint. More information: <https://cloud.ibm.com/docs/cli?topic=cli-ibmcloud_cli#ibmcloud_api>.

Solution

ibmcloud api — Set or view the IBM Cloud API endpoint. More information: <https://cloud.ibm.com/docs/cli?topic=cli-ibmcloud_cli#ibmcloud_api>.

View the current API endpoint:
ibmcloud api


Set the API endpoint to cloud.ibm.com:
ibmcloud api cloud.ibm.com


Set a private API endpoint:
ibmcloud api private.cloud.ibm.com


Use a VPC connection for a private endpoint:
ibmcloud api private.cloud.ibm.com --vpc


Bypass SSL validation of HTTP requests:
ibmcloud api https://cloud.ibm.com --skip-ssl-validation


Remove the API endpoint setting:
ibmcloud api --unset

Code Snippets

View the current API endpoint

ibmcloud api

Set the API endpoint to `cloud.ibm.com`

ibmcloud api cloud.ibm.com

Set a private API endpoint

ibmcloud api private.cloud.ibm.com

Use a VPC connection for a private endpoint

ibmcloud api private.cloud.ibm.com --vpc

Bypass SSL validation of HTTP requests

ibmcloud api https://cloud.ibm.com --skip-ssl-validation

Context

tldr-pages: common/ibmcloud api

Revisions (0)

No revisions yet.