configure-physical-appliance¶
Description¶
Configure the physical appliance to copy data
Required Parameters¶
-
--appliance-cert-fingerprint[text]¶
The transfer appliance X.509/SSL certificate fingerprint.
-
--appliance-ip[text]¶
AThe IP address of the transfer appliance.
-
--job-id[text]¶
OCID of the Export Job
-
--rw[boolean]¶
Read/Write option on export of dataset
-
--world[boolean]¶
World option on export of dataset
Optional Parameters¶
-
--access-token[text]¶
the access token to authenticate with the transfer appliance.
-
--appliance-port[integer]¶
Appliance label.
-
--appliance-profile[text]¶
Appliance profile
-
--ip[text]¶
IP address to export dataset to
-
--subnet-mask-length[integer]¶
Subnet mask length for the IP address
Global Parameters¶
Use oci --help for help on global parameters.
--auth-purpose, --auth, --cert-bundle, --cli-auto-prompt, --cli-rc-file, --config-file, --connection-timeout, --debug, --defaults-file, --endpoint, --generate-full-command-json-input, --generate-param-json-input, --help, --latest-version, --max-retries, --no-retry, --opc-client-request-id, --opc-request-id, --output, --profile, --proxy, --query, --raw-output, --read-timeout, --realm-specific-endpoint, --region, --release-info, --request-id, --version, -?, -d, -h, -i, -v
Example using required parameter¶
Copy the following CLI commands into a file named example.sh. Run the command by typing “bash example.sh” 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> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/dts/job/create.html#cmdoption-bucket
export compartment_id=<substitute-value-of-compartment_id> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/dts/job/create.html#cmdoption-compartment-id
export device_type=<substitute-value-of-device_type> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/dts/job/create.html#cmdoption-device-type
export display_name=<substitute-value-of-display_name> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/dts/job/create.html#cmdoption-display-name
export appliance_cert_fingerprint=<substitute-value-of-appliance_cert_fingerprint> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/dts/export/configure-physical-appliance.html#cmdoption-appliance-cert-fingerprint
export appliance_ip=<substitute-value-of-appliance_ip> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/dts/export/configure-physical-appliance.html#cmdoption-appliance-ip
export rw=<substitute-value-of-rw> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/dts/export/configure-physical-appliance.html#cmdoption-rw
export world=<substitute-value-of-world> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/dts/export/configure-physical-appliance.html#cmdoption-world
job_id=$(oci dts job create --bucket $bucket --compartment-id $compartment_id --device-type $device_type --display-name $display_name --query data.id --raw-output)
oci dts export configure-physical-appliance --appliance-cert-fingerprint $appliance_cert_fingerprint --appliance-ip $appliance_ip --job-id $job_id --rw $rw --world $world