Create the IAM policy for the export job


oci dts export create-policy [OPTIONS]

Required Parameters

--job-id [text]

OCID of the Export Job

Example using required parameter

Copy the following CLI commands into a file named Run the command by typing “bash” and replacing the example parameters with your own.

Please note this sample will only work in the POSIX-compliant bash-like shell. You need to set up the OCI configuration and appropriate security policies before trying the examples.

    export bucket=<substitute-value-of-bucket> #
    export compartment_id=<substitute-value-of-compartment_id> #
    export device_type=<substitute-value-of-device_type> #
    export display_name=<substitute-value-of-display_name> #

    job_id=$(oci dts job create --bucket $bucket --compartment-id $compartment_id --device-type $device_type --display-name $display_name --query --raw-output)

    oci dts export create-policy --job-id $job_id