Installing the IBM Power Virtual Server CLI plug-in
IBM Power Virtual Server in IBM data center
IBM Power Virtual Server Private Cloud in Client location
To install, update, or view the IBM Power Virtual Server CLI plug-in, complete the following steps:
-
Install the IBM Cloud® CLI.
-
Install or update the
power-iaasplug-in.To install:
ibmcloud plugin install power-iaasTo update:
ibmcloud plugin updateTo view your installed plug-ins and versions:
ibmcloud plugin list -
Log in to the IBM Cloud.
The power-iaas command-line plug-in uses the region that
ibmcloud logintargets to determine the IBM Power Virtual Server endpoint. For example, to use the IBM Power Virtual Server endpointhttps://cloud.ibm.comyou must use theibmcloud login -a https://cloud.ibm.comcommand to target theus-eastregion. If you have a federated account, use the following command:ibmcloud login -a https://cloud.ibm.com -sso -
Run one of the following commands to list all the services under your account:
- For IBM Power Virtual Server in IBM data center, run the
ibmcloud pi ws lscommand. The Cloud Resource Name (CRN) under ID contains your Tenant ID and Cloud Instance ID. The following example shows a typical CRN:
crn:v1:staging:public:power-iaas:us-east:a/abcdefghijklmnopqrstuvwxyzabcdef:121d5ee5-b87d-4a0e-86b8-aaff422135478::- For IBM Power Virtual Server Private Cloud in Client location, run the
ibmcloud pi ws ls -pcommand.
- For IBM Power Virtual Server in IBM data center, run the
-
Target your service by entering
ibmcloud pi ws tg <CRN>command:- Following is an example of the output for IBM Power Virtual Server in IBM data center:
ibmcloud pi ws tg crn:v1:staging:public:power-iaas:us-east:a/abcdefghijklmnopqrstuvwxyzabcdef:121d5ee5-b87d-4a0e-86b8-aaff422135478::- Following is an example of the output for IBM Power Virtual Server Private Cloud in Client location:
ibmcloud pi ws tg crn:v1:staging:public:power-iaas:satloc_dal_clp3foc20dd82387pe83:a/c7e6bd2517ad44eabbd61fcc25cf68d5:dc815dc0-e0ba-4576-b286-a3aeedaa9e60::
The IBM Power Virtual Server CLI plug-in requires a valid IAM token authorization before each use. Use the ibmcloud login command to renew authorization if your token expires.