CliQr is now part of Cisco Learn More About Cisco

images-get

Command Structure

rerun cliqr: images-get --image-id image-id --service-id service-id

Command Description

Retrieves a list of available images or just the images specified by the Image ID or Service ID.

Options

Option

Required?

Default

Description

image-id

No

None

The Image ID of the image.

service-id

No

None

The Service ID of the image.

Guidelines

If you do not specify any option, this command returns all available images and corresponding details.

CloudCenter Release

Introduced in CloudCenter 3.2.6.5

Icon

Cisco certifies CloudCenter CLI access for CloudCenter 4.4.3 and earlier releases.

Sample Command and Response

$ rerun cliqr: images-get  

{ 
"cloudImages": [
{
"id": "4",
"resource": "https://<HOST>:<PORT>/service/v1/imagelib/images/4",
"perms": [],
"name": "CentOS 6.x",
"description": "CentOS 6.x",
"visibility": "PUBLIC",
"cloudNodeType": "CLOUD_WORKER",
"osName": "LINUX",
"internalImageName": "CloudWorker-CentOS6.x",
"disabled": false,
"systemImage": true,
"mappingCount": 2
},
{
"id": "2",
"resource": "https://<HOST>:<PORT>/service/v1/imagelib/images/2",
"perms": [],
"name": "Ubuntu 12.04",
"description": "Ubuntu 12.04",
"visibility": "PUBLIC",
"cloudNodeType": "CLOUD_WORKER",
"osName": "LINUX",
"internalImageName": "CloudWorker-Ubuntu12.04",
"disabled": false,
"systemImage": true,
"mappingCount": 3
}
]
}

$ rerun cliqr: images-get --service-id 13

{ 
"cloudImages": [
{
"id": "2",
"resource": "https://<HOST>:<PORT>/service/v1/imagelib/images/2",
"perms": [],
"name": "Ubuntu 12.04",
"description": "Ubuntu 12.04",
"visibility": "PUBLIC",
"cloudNodeType": "CLOUD_WORKER",
"osName": "LINUX",
"internalImageName": "CloudWorker-Ubuntu12.04",
"disabled": false,
"systemImage": true,
"mappingCount": 0
}
]
}
{ 
"id": "2",
"resource": "https://<HOST>:<PORT>/service/v1/imagelib/images/2",
"perms": [],
"name": "Ubuntu 12.04",
"description": "Ubuntu 12.04",
"visibility": "PUBLIC",
"cloudNodeType": "CLOUD_WORKER",
"osName": "LINUX",
"internalImageName": "CloudWorker-Ubuntu12.04",
"disabled": false,
"systemImage": true,
"mappings": [
{
"cloud": "Openstack-region2",
"cloudProviderImageId": "2f68b7b5-5584-499b-9e94-9b2c755242b1",
"launchUserName": "ubuntu",
"resourcesText": "[]",
"supportedInstanceTypes": [
{
"instanceType": "00487266-7ba9-4652-8ad9-f57c78c2b073",
"cost": 0
}
]
},
{
"cloud": "OS-Sec",
"cloudProviderImageId": "2f68b7b5-5584-499b-9e94-9b2c755242b1",
"launchUserName": "ubuntu",
"resourcesText": "[]",
"supportedInstanceTypes": [
{
"instanceType": "00487266-7ba9-4652-8ad9-f57c78c2b073",
"cost": 0
}
]
},
{
"cloud": "Openstack-one",
"cloudProviderImageId": "2f68b7b5-5584-499b-9e94-9b2c755242b1",
"launchUserName": "ubuntu",
"resourcesText": "[]",
"supportedInstanceTypes": [
{
"instanceType": "00487266-7ba9-4652-8ad9-f57c78c2b073",
"cost": 0
}
]
}
],
"tags": []
}

$ rerun cliqr: images-get --service-id 13

{ 
"cloudImages": [
{
"id": "2",
"resource": "https://<HOST>:<PORT>/service/v1/imagelib/images/2",
"perms": [],
"name": "Ubuntu 12.04",
"description": "Ubuntu 12.04",
"visibility": "PUBLIC",
"cloudNodeType": "CLOUD_WORKER",
"osName": "LINUX",
"internalImageName": "CloudWorker-Ubuntu12.04",
"disabled": false,
"systemImage": true,
"mappingCount": 0
}
]
}
  • No labels