Setting up the environment context
export IAAS_HOME=/opt/oracle/iaas/cli
export JAVA_HOME=/usr/java/jdk1.7.0_131
List of the accounts
$IAAS_HOME/bin/akm-describe-accounts --base-url https://xxxxecvm.xxx.xx.xxxxxx..com:9443/emoc --user root
ACC-92ccdae3-db60-4136-bbb8-1aa5ac55f28b user1 root
ACC-20c39677-3be9-43be-990d-107fdcba0d65 user2 root
ACC-2b245e72-3fb7-4be6-9b88-da6890b9ab88 user3 root
Generate the key file
$IAAS_HOME/bin/akm-create-access-key --base-url https://xxxxecvm.xxx.xx.xxxxxx..com:9443/emoc --user root --account ACC-20c39677-3be9-43be-990d-107fdcba0d65 --access-key-file ak-user2.file
password for user root:
AK_4
List the templates
$IAAS_HOME/bin/iaas-describe-server-templates --base-url https://localhost:9443/ -a ak-user2.file -H
id name description status size public imageType readOnly
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TMPL-c372a32c-652b-422a-927c-cc9003960480 OL6U8_20171016 OL6u8 with complete setup OK -1 false VMTemplate false
List of the server types
$IAAS_HOME/bin/iaas-describe-vserver-types --base-url https://localhost:9443/ -a ak-user2.file
2296 EXTRA_LARGE Virtual Machine extra-large instance type for vDC xxxxCloud 17179869184 16 4
2295 LARGE Virtual Machine large instance type for vDC xxxxCloud 8589934592 8 2
2294 SMALL Virtual Machine small instance type for vDC xxxxCloud 4294967296 4 1