Create an export data pump job
post
                    /database/datapump/export
Create a Data Pump export job with the specified parameters and start it. Data and object structures can be exported to a directory in the Oracle database server or to Oracle Object Store. Refer to Oracle Data Pump documentation for a more detailed explanation of parameters. A client requires SQL Administrator or SQL Developer role to invoke this service.
                Request
There are no request parameters for this operation.
Supported Media Types
                            - application/json
 
Root Schema : schema
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    credential_name: string
                    
                    
                     
                    
                
                
                Specify the name of the credentials, owned by the database user, to be used to export to object storage.
 - 
                
                    
                    datapump_dir: string
                    
                    
                     
                    
                
                
                Default Value:
DATA_PUMP_DIRSpecify the database directory to use. - 
                
                    
                    file_name: string
                    
                    
                     
                    
                
                
                The file name pattern to use for Data Pump export. Will default to a pattern with a timestamp in the name. Required when credential_name is specified. When credential_name is specified the file_name must be a URI format for an Oracle Object Store location.
 - 
                
                    
                    filter: string
                    
                    
                     
                    
                
                
                The filter to apply to identify database objects for export. Required when job_mode is not FULL.
 - 
                
                    
                    job_mode: string
                    
                    
                     
                    
                
                
                Default Value:
SCHEMAAllowed Values:[ "FULL", "SCHEMA", "TABLE", "TABLESPACE" ]Specify the Data Pump job mode. - 
                
                    
                    name_expressions: array
                    
                    
                
                
                    name_expressions
                
                
                Used to define Metadata Filter parameters for a Data Pump job.
 - 
                
                    
                    schema_expressions: array
                    
                    
                
                
                    schema_expressions
                
                
                Used to define Metadata Filter parameters for a Data Pump job.
 - 
                
                    
                    tablespace_expressions: array
                    
                    
                
                
                    tablespace_expressions
                
                
                Used to define Metadata Filter parameters for a Data Pump job.
 - 
                
                    
                    threads: integer
                    
                    
                     
                    
                
                
                The maximum number of worker processes that can be used for the job. Set this parameter to adjust the amount of resources used for a job.
 
Nested Schema : name_expressions
    
    	
    	Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayUsed to define Metadata Filter parameters for a Data Pump job.
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
    
Nested Schema : schema_expressions
    
    	
    	Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayUsed to define Metadata Filter parameters for a Data Pump job.
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
    
Nested Schema : tablespace_expressions
    
    	
    	Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayUsed to define Metadata Filter parameters for a Data Pump job.
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
    
Nested Schema : items
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    expression(required): string
                    
                    
                     
                    
                
                
                An SQL clause to be used as a Name Expression filter.
 
Nested Schema : items
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    expression(required): string
                    
                    
                     
                    
                
                
                An SQL clause to be used as a Schema Expression filter.
 
Nested Schema : items
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    expression(required): string
                    
                    
                     
                    
                
                
                An SQL clause to be used as a Tablespace Expression filter.
 
Examples
                        
                        
                        
                    
                
                
                 Back to Top
                Response
Supported Media Types
                - application/json
 
201 Response
Description of the Data Pump export job that has been created.
                            
                            
                                Root Schema : DataPumpJobsItem
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectThis object represents a specified Data Pump job in the database.
    
    
    
    
        Show Source
        - 
                
                    
                    attached_sessions: integer
                    
                    
                     
                    
                
                
                Number of sessions attached to the job.
 - 
                
                    
                    datapump_sessions: integer
                    
                    
                     
                    
                
                
                Number of Data Pump sessions participating in the job.
 - 
                
                    
                    degree: integer
                    
                    
                     
                    
                
                
                Number of worker processes performing the operation.
 - 
                
                    
                    job_mode: string
                    
                    
                     
                    
                
                
                Mode of job.
 - 
                
                    
                    job_name: string
                    
                    
                     
                    
                
                
                User-supplied name for the job (or the default name generated by the server).
 - 
                
                    
                    links: array
                    
                    
                
                
                    links
                
                
                
 - 
                
                    
                    operation: string
                    
                    
                     
                    
                
                
                Type of job.
 - 
                
                    
                    owner_name: string
                    
                    
                     
                    
                
                
                User that initiated the job.
 - 
                
                    
                    state: string
                    
                    
                     
                    
                
                
                Current job state.
 
Examples
The following example shows how to create a Data Pump export job by submitting a POST request on the REST resource using cURL.
curl -i -X POST -u username:password 
-d @request_body.json 
-H "Content-Type:application/json" https://rest_server_url/ords/orcl/pdbadmin/_/db-api/stable/database/datapump/export
 Example of Request Body
Note:
    The URL structure 
    
 
  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 database identifier, the schema identifier, the version of ORDS Database API to use, and the path for this operation.
 
The following is an example of a request body for submitting a Data Pump request to export tables beginning with EMP, but not named EMP, from the SCOTT schema.
{
  "job_mode": "TABLE",
  "name_expressions": [
    {"expression": "!='EMP'"},
    {"expression": "LIKE 'EMP%'"}
  ],
  "schema_expressions": [
    {"expression": "IN ('SCOTT')"}
  ]
}
 Example of Response Header
The following example shows the response header. The Location header returns the URI that can be used to view the status of the job. 
HTTP/1.1 201 Created
Content-Type:"application/json"
Content-Location:"https://rest_server_url/ords/orcl/pdbadmin/_/db-api/stable/database/datapump/jobs/PDBADMIN,DATAPUMP_REST_EXPORT_20190706144505/"
ETag:""nXEnxxIZe/tJIO5rgD+qkCggJtIVIMvKJG6T2dqhJ8Wy2Cr5u+anrmgez/2+3BWR3FKx0TlVjR2RRfITHZnFxQ==""
Location:"https://rest_server_url/ords/orcl/pdbadmin/_/db-api/stable/database/datapump/jobs/PDBADMIN,DATAPUMP_REST_EXPORT_20190907144505/"
Transfer-Encoding:"chunked"
 Example of Response Body
The following example shows the response body with 201 returned in JSON format:
{
    "job_name": "DATAPUMP_REST_EXPORT_20190706144505",
    "owner_name": "PDBADMIN",
    "operation": "EXPORT",
    "job_mode": "TABLE",
    "state": "EXECUTING",
    "degree": 1,
    "attached_sessions": 0,
    "datapump_sessions": 2,
    "job_state": "EXECUTING",
    "links": [
        {
            "rel": "collection",
            "href": "https://rest_server_url/ords/orcl/pdbadmin/_/db-api/stable/database/datapump/jobs/"
        },
        {
            "rel": "describedby",
            "href": "https://rest_server_url/ords/orcl/pdbadmin/_/db-api/stable/metadata-catalog/"
        },
        {
            "rel": "related",
            "href": "https://rest_server_url/ords/orcl/pdbadmin/_/db-api/stable/database/datapump/jobs/PDBADMIN,DATAPUMP_REST_EXPORT_20190706144505/EXPDAT-2019-07-06-14_45_05.LOG"
        },
        {
            "rel": "self",
            "href": "https://rest_server_url/ords/orcl/pdbadmin/_/db-api/stable/database/datapump/jobs/PDBADMIN,DATAPUMP_REST_EXPORT_20190706144505/"
        }
    ]
}