Export a Package
get
/ic/api/integration/v1/packages/{packagename}/archive
Exports a package. This operation returns a byte stream that is output to the display by default. If you are using cURL, use the -o option to save the response to a file.
Request
Supported Media Types
- application/json; charset=utf-8
Path Parameters
-
packagename(required): string
Package name
Query Parameters
-
bartatype: string
BartaType BA|R|TA
-
builtby: string
BuiltBy
-
includeRecordingFlag: string
-
isClone: boolean
isCloneAllowed
-
isView: boolean
isViewAllowed
-
prebuilt: boolean
Exports the package as prebuilt.
Response
Supported Media Types
- application/octet-stream
200 Response
Successful operation
404 Response
Package not found
500 Response
Server error
Examples
The following examples show how to export a package to a specified file by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL. For more information about endpoint URL structure, see Send Requests.
Example: Export a package
This command downloads the package to the specified file myfile.par
in the same directory from which the command was run.
curl -X GET -H 'Authorization: Bearer access_token' -o 'myfile.par' https://integration.us.oraclecloud.com/ic/api/integration/v1/packages/samples.oracle.helloworld/archive
Required options for this cURL request:
-o '/path/myfile.par'
: Location and name of the file in which to save the package.