Cloudbreak CLI Reference
Also available as:
PDF

imagecatalog images

Lists images from the specified image catalog available for the specified cloud provider.

Sub-commands

describe aws Provides detailed information about an AWS image

describe azure Provides detailed information about an Azure image

describe gcp Provides detailed information about a GCP image

describe openstack Provides detailed information about an OpenStack image

aws Lists available aws images

azure Lists available azure images

gcp Lists available gcp images

openstack Lists available openstack images

cluster-upgrade Lists images that are valid for upgrading the default image of the cluster

Required options

--imagecatalog [$VALUE] Name of the imagecatalog

--imageid [$VALUE] ID of the image (Only for describe commands)

Options

--output [$VALUE] Supported formats: json, yaml, table (default: “json”) [$CB_OUT_FORMAT]

--server [$VALUE] Cloudbreak server address [$CB_SERVER_ADDRESS]

--username [$VALUE] Cloudbreak user name (e-mail address) [$CB_USER_NAME]

--password [$VALUE] Cloudbreak password [$CB_PASSWORD]

--workspace [$VALUE] Name of the workspace holding the resource

--profile [$VALUE] Selects a config profile to use [$CB_PROFILE]

--auth-type [$VALUE] Authentication method to use. Values: oauth2, basic [$CB_AUTH_TYPE]

Examples

Returns date, description, Ambari version, and image ID for all AWS images from an image catalog called “myimagecatalog”:

cb imagecatalog images aws --imagecatalog cloudbreak-default
[
  {
    "Date": "2017-10-13",
    "Description": "Cloudbreak official base image",
    "Version": "2.6.0.0",
    "ImageID": "44b140a4-bd0b-457d-b174-e988bee3ca47"
  },
  {
    "Date": "2017-11-16",
    "Description": "Official Cloudbreak image",
    "Version": "2.6.0.0",
    "ImageID": "3c7598a4-ebd6-4a02-5638-882f5c7f7add"
  }
]

Returns date, description, Ambari version, image ID, OS, OS type, image names in provider regions and package versions for the specified GCP image from an image catalog called “cloudbreak-default”:

cb imagecatalog images describe gcp --imagecatalog cloudbreak-default --imageid 4c05c0b8-c3f8-461d-5bdc-97b0f5324ee3
[
  {
    "Date": "2018-07-19",
    "Description": "Official Cloudbreak image",
    "Version": "2.6.2.2",
    "ImageID": "4c05c0b8-c3f8-461d-5bdc-97b0f5324ee3",
    "OS": "centos7",
    "OSType": "redhat7",
    "Images": {
      "gcp": {
        "default": "sequenceiqimage/cb-hdp--1807191752.tar.gz"
      }
    },
    "PackageVersions": {
      "kernel": "3.10.0-123.el7,3.10.0-327.36.1.el7,3.10.0-862.9.1.el7",
      "python": "2.7.5-69.el7_5",
      "salt": "2017.7.5-1.el7",
      "salt-bootstrap": "0.13.0-2018-05-03T07:39:07"
    }
  }
]

List the available images you can upgrade your cluster to:

cb imagecatalog images cluster-upgrade --cluster test-cluster