Create a new DBCA job in the Oracle Home
/environment/homes/{homeName}/dbca/jobs/
Request
- 
                    homeName(required):  string
                    
                    Name of the Oracle Home.
 
- application/json
 
object- 
                
                    
                    container_configuration: object
                    
                    
                
                
                    container_configuration
                
                
                This object specifies that a Container Database is to be created with the PDB settings provided.
 - 
                
                    
                    global_database_name(required): string
                    
                    
                     
                    
                
                
                Global Database Name to identify the database to create or delete
 - 
                
                    
                    operation(required): string
                    
                    
                     
                    
                
                
                Allowed Values:
[ "CREATE", "DELETE" ]The DBCA operation to perform. - 
                
                    
                    password: string
                    
                    
                     
                    
                
                
                Specifies the password for the account with SYSDBA role which DBCA will use to delete the database. Only required for DELETE operations.
 - 
                
                    
                    response_file: string
                    
                    
                     
                    
                
                
                The name of the response file for DBCA to use when creating a database.
 - 
                
                    
                    sys_user_password: string
                    
                    
                     
                    
                
                
                The password for the sys user in the new database.
 - 
                
                    
                    system_user_password: string
                    
                    
                     
                    
                
                
                The password for the system user in the new database.
 - 
                
                    
                    template_name: string
                    
                    
                     
                    
                
                
                The name of the template file for DBCA to use when creating a database.
 - 
                
                    
                    total_memory: integer
                    
                    
                     
                    
                
                
                Total amount of physical memory, in megabytes, that can be used by the new database.
 - 
                
                    
                    username: string
                    
                    
                     
                    
                
                
                Specifies the account with SYSDBA role which DBCA will use to delete the database. Only required for DELETE operations.
 
objectobject- 
                
                    
                    number_of_pdbs(required): integer
                    
                    
                     
                    
                
                
                The number of Pluggable Databases to create.
 - 
                
                    
                    pdb_administrator_password(required): string
                    
                    
                     
                    
                
                
                The password for the PDBADMIN user created in each Pluggable Database.
 - 
                
                    
                    pdb_name(required): string
                    
                    
                     
                    
                
                
                The name prefix to use for each Pluggable Database created.
 
Response
- application/json
 
201 Response
object- 
                
                    
                    dbca_log: array
                    
                    
                
                
                    dbca_log
                
                
                The output from the DBCA process as it executes.
 - 
                
                    
                    description: string
                    
                    
                     
                    
                
                
                DBCA job description.
 - 
                
                    
                    finished: string
                    
                    
                     
                    
                
                
                Timestamp for when the DBCA job request finished.
 - 
                
                    
                    job_id: string
                    
                    
                     
                    
                
                
                Unique identifier for the DBCA job in the Oracle Home.
 - 
                
                    
                    job_request: object
                    
                    
                
                
                    job_request
                
                
                Describes the DBCA job request.
 - 
                
                    
                    links: array
                    
                    
                
                
                    links
                
                
                
 - 
                
                    
                    status: string
                    
                    
                     
                    
                
                
                DBCA job status.
 - 
                
                    
                    submitted: string
                    
                    
                     
                    
                
                
                Timestamp for when the DBCA job request was submitted.
 
object- 
                
                    
                    container_configuration: object
                    
                    
                
                
                    container_configuration
                
                
                This object represents container configuration details for a CDB.
 - 
                
                    
                    database_system_identifier: string
                    
                    
                     
                    
                
                
                The database identifier.
 - 
                
                    
                    global_database_name: string
                    
                    
                     
                    
                
                
                Global database name.
 - 
                
                    
                    operation: string
                    
                    
                     
                    
                
                
                The DBCA operation to be performed: CREATE or DELETE.
 - 
                
                    
                    response_file: string
                    
                    
                     
                    
                
                
                Path for response file for DBCA to use when creating a database.
 - 
                
                    
                    template_name: string
                    
                    
                     
                    
                
                
                Path for the database template for DBCA to use when creating a database.
 - 
                
                    
                    total_memory: string
                    
                    
                     
                    
                
                
                Total memory parameter to provide to DBCA when creating a database.
 - 
                
                    
                    username: string
                    
                    
                     
                    
                
                
                The sysdba username for DBCA to use when deleting a database.
 
object- 
                
                    
                    number_of_pdbs: string
                    
                    
                     
                    
                
                
                Number of PDBs to create.
 - 
                
                    
                    pdb_name: string
                    
                    
                     
                    
                
                
                Base name of each PDB. A number is appended to each name if number_of_pdbs is greater than 1.
 
Examples
The following example shows how to submit a new DBCA job in the specified Oracle Home by submitting a POST request on the REST resource using cURL. The DBCA job can be a request to create or delete a database in the specified Oracle Home.
curl -i -X POST -u username:password 
-d @request_body.json 
-H "Content-Type:application/json" https://rest_server_url/ords/_/db-api/stable/environment/homes/OraDB18Home1/dbca/jobs/Example of Request Body
Note:
https://rest_server_url/resource-path, used in the
          preceding command has the following components:
                        rest_server_urlis the REST server where Oracle Rest Data Server is running- The remainder of the URL includes the ORDS context root, the version of ORDS
              Database API to use, the path for this operation. 
OraDB18Home1is given as thehomeNameparameter value in the path. All DBCA operations are performed in Oracle Home. 
The following is an example request body to create a DBCA job for deleting a database. To perform the delete action, the credentials for a user in the database with SYSDBA role must be provided as these are required by the DBCA utility.
{
  "operation": "DELETE",
  "global_database_name": "devdb1",
  "username": "sys",
  "password": "W3lc0m31"
}Example of Response Header
The following example shows the response header. The Location header
        returns the URI that can be used to view the DBCA job status.
                  
HTTP/1.1 201 Created
Content-Type: application/json
Content-Location: https://rest_server_url/ords/_/db-api/stable/environment/homes/OraDB18Home1/dbca/jobs/RPKlPvbKPKqV7Ap6DN9iRg/
X-Frame-Options: SAMEORIGIN
Location: https://rest_server_url/ords/_/db-api/stable/environment/homes/OraDB18Home1/dbca/jobs/RPKlPvbKPKqV7Ap6DN9iRg/
Transfer-Encoding: chunkedExample of Response Body
The following example shows the response body with 201 returned in a JSON format:
{
  "job_id": "RPKlPvbKPKqV7Ap6DN9iRg",
  "description": "Running DBCA to Delete database",
  "status": "RUNNING",
  "submitted": "2019-09-06T19:30:06.981Z",
  "finished": null,
  "job_request": {
    "operation": "DELETE",
    "container_configuration": null,
    "database_system_identifier": null,
    "global_database_name": "devdb1",
    "response_file": null,
    "template_name": null,
    "total_memory": null,
    "username": "sys"
  },
  "dbca_log": [],
  "links": [
    {
      "rel": "self",
      "href": "https://rest_server_url/ords/_/db-api/stable/environment/homes/OraDB18Home1/dbca/jobs/RPKlPvbKPKqV7Ap6DN9iRg/"
    },
    {
      "rel": "describedby",
      "href": "https://rest_server_url/ords/_/db-api/stable/metadata-catalog/"
    },
    {
      "rel": "collection",
      "href": "https://rest_server_url/ords/_/db-api/stable/environment/homes/OraDB18Home1/dbca/jobs/"
    }
  ]
}