You can deploy an application to Oracle Application Container Cloud Service by using the Command-Line interface or by using the REST API.
Deploying the Archive Using the Command-Line Interface
To deploy your application using the command-line interface, create your archive and place it in your Oracle Cloud Infrastructure Object Storage Classic account.
Then use the
accs push command. See accs push in PSM CLI Reference.
Deploying the Archive Using the REST API
To deploy your application using the REST API, create your archive and place it in your Oracle Cloud Infrastructure Object Storage Classic account.
This example shows how to deploy a Java application called MyPrivateApp by submitting a POST request using cURL. The
archiveURL points to the location of your archive within your storage service account.
curl -X POST -u firstname.lastname@example.org:password \ -H "X-ID-TENANT-NAME:ExampleIdentityDomain" \ -H "Content-Type: multipart/form-data" -F "name=MyPrivateApp" \ -F "runtime=java" -F "subscription=Monthly" \ -F "email@example.com" \ -F "archiveURL=mydomain/binaries/myprivapp.zip" \ -F "notes=notes for deployment" \ https://apaas.oraclecloud.com/paas/service/apaas/api/v1.1/apps/ExampleIdentityDomain
Any option on the command line (such as subscription or name) takes precedence over the same option in a metadata file, if there is a difference.
To learn more about the REST API, see REST API for Managing Applications.