This chapter identifies the prerequisites for the cloud infrastructure APIs and CLI, and describes their installation and configuration.
The following topics are covered in this chapter:
The following prerequisites must be met before using the APIs and CLI:
Installation of Java Runtime Environment (JRE) or Java Development Kit (JDK) version 1.6 or later appropriate for the platform where the APIs and CLI will be run or installed
Access to the Enterprise Controller
This section explains the installation process for the APIs and CLI.
The Web service is automatically installed on the Enterprise Controller as part of the Oracle Enterprise Manager Ops Center installation process. No further steps are required.
The Java Client API is delivered as a package with the Oracle Enterprise Manager Ops Center product. This package can be installed as a standalone package on a different computer with a connection to the Enterprise Controller.
Package Name | Operating System |
---|---|
ORCL-sysman-iaas-api.pkg | Oracle Solaris |
orcl-sysman-iaas-api.rpm | Linux |
To install this package, enter the following commands as root user:
For Oracle Solaris:
# cd <repo>/src/dvd/SunOS_i386/Product/components/packages/ # pkgadd -d ORCLsysman-iaas-api.pkg
For Linux:
# cd <repo>/src/dvd/Linux_i686/Product/components/packages/ # rpm -i orcl-sysman-iaas-api.rpm
The API jar files from the package are stored at /opt/oracle/iaas/iaas-java-api.
Before you use the API JAR file, set the JAVA_HOME environment variable and ensure that the environment variable is part of your PATH.
The cloud infrastructure CLI is delivered as a separate package with the Oracle Enterprise Manager Ops Center product. This package can be installed as standalone package on a different computer with a connection to the Enterprise Controller.
To install this package, enter the following commands as root user:
For Oracle Solaris:
# cd <repo>/src/dvd/SunOS_i386/Product/components/packages/ # pkgadd -d ORCLsysman-iaas-cli.pkg
For Linux:
# cd <repo>/src/dvd/Linux_i686/Product/components/packages/ # rpm -i orcl-sysman-iaas-cli.rpm
The files from the package are stored at /opt/oracle/iaas/cli. To execute the CLI commands, the user must have permissions to access this directory.
Before using the cloud infrastructure CLI:
Set the JAVA_HOME environment variable and ensure that the environment variable is part of your PATH:
Korn and bash shells:
export JAVA_HOME=<jdk-install-dir> export PATH=$JAVA_HOME/bin:$PATH
Bourne shell:
JAVA_HOME=<jdk-install-dir> export JAVA_HOME PATH=$JAVA_HOME/bin:$PATH export PATH
C shell:
setenv JAVA_HOME <jdk-install-dir> setenv PATH $JAVA_HOME/bin:$PATH export PATH=$JAVA_HOME/bin:$PATH
Set the IAAS_HOME environment variable:
Korn and bash shells:
export IAAS_HOME=/opt/oracle/iaas/cli
Bourne shell:
IAAS_HOME=/opt/oracle/iaas/cli export IAAS_HOME
C shell:
setenv IAAS_HOME /opt/oracle/iaas/cli
Before the cloud administration can use the APIs or the CLI, the cloud administrator must complete the following tasks:
Create vDC and an account for the vDC.
Create a cloud user and associate the user with the account and vDC.
After getting the cloud user credentials, a cloud user must create an access key for the account in order to manage any resource in the account. For more information, see "Creating an Access Key".