This command enables you to add a new image list.
Note:
You can add only private image lists to the system. To make these image lists public, contact you Oracle Cloud Administrator.Syntax
oracle-compute add imagelist name description [--default]
Parameters and Options
The following parameters are specific to this command. You can also use the common options described in General Command Options.
| Parameter | Description |
|---|---|
| name | A unique hierarchical name for the image list. For example, /mytenant/public/myimagelist .
Object names can contain only alphanumeric characters, hyphens, and periods. Object names are case-sensitive. |
| description | A description of this image list |
| --default | (Optional) The version of the image in the list that should be considered the default. The default is used on instance launch if a specific version has not been given. |
Example
$ oracle-compute add imagelist /mytenant/admin/oel6 "new imagelist" --default=1
Sample Output
$ oracle-compute add imagelist /mytenant/admin/oel6 "new imagelist" --default=1 -f json
{
"list": [
{
"default": 1,
"uri": "http://api.oc.example.com/imagelist/mytenant/admin/oel6",
"description": "new imagelist",
"name": "/mytenant/admin/oel6",
"entries": []
}
]
}
This command enables you to delete an existing image list.
Note:
You can delete only private image lists that you have created.Syntax
oracle-compute delete imagelist name
Parameters and Options
The following parameters are specific to this command. You can also use the common options described in General Command Options.
|
Parameter |
Description |
| Parameter | Description |
|---|---|
| name | A unique hierarchical name for the image list. For example, /mytenant/public/myimagelist. |
Example
$ oracle-compute delete imagelist /mytenant/public/oel6
This command enables you to update an image list.
Note:
You can update only private image lists that you have created.Syntax
oracle-compute update imagelist name [--description] [--default]
Parameters and Options
The following parameters are specific to this command. You can also use the common options described in General Command Options.
| Parameter | Description |
|---|---|
| name | A unique hierarchical name for the image list. For example, /mytenant/public/myimagelist |
| --description | (Optional) A description of this image list |
| --default | (Optional) The default machine image when launching instances from this image list |
Example
$ oracle-compute update imagelist /mytenant/public/ol66_40GB --description "Refreshed imagelist"
Sample Output
$ oracle-compute update imagelist /mytenant/public/ol66_40GB --description "Refreshed imagelist" -f json
{
"list": [{
"default": 2,
"description": "Refreshed imagelist",
"entries": [],
"uri": "https://api.oc.example.com/imagelist/mytenant/public/ol66_40GB",
"name": "/mytenant/public/ol66_40GB"
}]
}
This command enables you to discover image lists in a specific container.
Syntax
oracle-compute discover imagelist container
Parameters and Options
The following parameters are specific to this command. You can also use the common options described in General Command Options.
| Parameter | Description |
|---|---|
| container | Hierarchical name-space for the image list |
Example
oracle-compute discover imagelist /oracle/public
Sample Output
$ oracle-compute discover imagelist /oracle/public entry /oracle/public/linux5_16.1.2_64 /oracle/public/linux6_16.1.2_64 /oracle/public/linux6_12.2.1.0.0_64_jaas_16.2.1.0.103
This command enables you to retrieve information for a specific image list.
Syntax
oracle-compute get imagelist name
Parameters and Options
The following parameters are specific to this command. You can also use the common options described in General Command Options.
| Parameter | Description |
|---|---|
| name | A unique hierarchical name for the image list. For example, /mytenant/public/myimagelist |
Example
$ oracle-compute get imagelist /oracle/public/linux6_16.1.2_64
Sample Output
$ oracle-compute get imagelist /oracle/public/linux6_16.1.2_64 -F name,description,default name description default /oracle/public/linux6_16.1.2_64 A default public image. 1 $
This command enables you to retrieve information for image lists in a container or subcontainers.
Syntax
oracle-compute list imagelist container
Parameters and Options
The following parameters are specific to this command. You can also use the common options described in General Command Options.
| Parameter | Description |
|---|---|
| container | Hierarchical name-space for the image list. |
Example
$ oracle-compute list imagelist /oracle/public
Sample Output
$ oracle-compute list imagelist /oracle/public -F name,description,default name description default /oracle/public/linux5_16.1.2_64 A default public image. 1 /oracle/public/linux6_16.1.2_64 A default public image. 1 /oracle/public/linux6_12.2.1.0.0_64_jaas_16.2.1.0.103 JCS Image 1