Exporting a User-Defined Functions Library or User-Defined Function

Export a functions library or a user-defined function in a library from a Data Integration workspace to an Object Storage bucket.

To export a function or functions library, specify the details for the export object such as the zip file name and the location of the bucket. Before you export, ensure that you have an Object Storage bucket and the relevant permissions and IAM policies as described in Required Setup and Policies.

    1. On the User-defined functions page, Function libraries list, find the library that you want to export, or the library that contains the user-defined function that you want to export. If you need help finding the page or the list of libraries, see Listing Function Libraries.
    2. To export a functions library, from the Actions menu (Actions menu) for the library, select Export. Skip ahead to step 4.
    3. To export a user-defined function, perform the following actions:
      1. Select the name of the library that contains the function that you want to export.
      2. In the Functions list on the library details page, find the user-defined function to export.
      3. From the Actions menu (Actions menu) for the function, select Export.
    4. In the export panel that appears, enter the following details:
      • Tenancy OCID: Enter the Oracle Cloud ID of the tenancy in which you want to save the exported zip file.

      • Namespace: The tenancy name that's based on the tenancy OCID. If applicable, you can enter the tenancy name if the system doesn't populate the field with a value.

      • OCI region: Select the region in the tenancy.
      • Compartment: Select the compartment that contains the Object Storage bucket that you want to use.
      • Bucket: Select the bucket.
      • File name: Enter the file name for the export library or export function zip file.

        .udflib.zip is appended to the file name when the library zip file is created.

        .udf.zip is appended to the file name when the user-defined function zip file is created.

      • Overwrite the existing exported zip file: Select the checkbox if you want to overwrite the zip file when the file name that you provide already exists.
    5. Select Export.

      A notification message appears with a View export requests link. Select the link to monitor the request status on the Export/Import requests page. See Monitoring Export and Import Requests.

  • Use the oci data-integration export-request create command and required parameters to export the functions library or user-defined function:

    oci data-integration export-request create [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • Run the CreateExportRequest operation with the appropriate request details to export the functions library or user-defined function.