IBM
Ops can integrate with your existing IBM Cloud Platform (IBM) account. You can use Ops CLI to create and upload an image to your account. Once, you have uploaded image, you can also create an instance with a particular image using CLI.
Pre-requisites
Create an api key and export it:
Image Operations
Create Image
If you have already created an Ops project, you can update your existing config.json
. You need to add CloudConfig which mentions specific details like BucketName
.
Once, you have updated config.json
you can create an image in IBM Cloud with the following command.
For creating an image using a particular package, you need to provide the package name to ops image create
command with -p
option.
List Images
You can list existing images on IBM cloud with ops image list
.
Delete Image
ops image delete <imagename>
can be used to delete an image from IBM Cloud.
Instance Operations
Create Instance
After the successful creation of an image in IBM Cloud, we can create an instance from an existing image.
You need to export TOKEN
.
List Instances
You can list instance on IBM Cloud using ops instance list
command.
You need to export TOKEN
:
Alternatively you can pass zone with cli options.
Get Logs for Instance
Delete Instance
ops instance delete
command can be used to delete instance on IBM Cloud.
You need to export TOKEN
.
Alternatively you can pass zone with cli options.
Volume Operations
Create Volume
List Volumes
Delete Volume
Attach Volume
Detach Volume
Last updated