Gets the specified SDDC’s information.


oci ocvs sddc get [OPTIONS]

Required Parameters

--sddc-id [text]

The OCID of the SDDC.

Optional Parameters

--from-json [text]

Provide input to this command as a JSON document from a file using the file://path-to/file syntax.

The --generate-full-command-json-input option can be used to generate a sample json file to be used with this command option. The key names are pre-populated and match the command option names (converted to camelCase format, e.g. compartment-id –> compartmentId), while the values of the keys need to be populated by the user before using the sample file as an input to this command. For any command option that accepts multiple values, the value of the key can be a JSON array.

Options can still be provided on the command line. If an option exists in both the JSON document and the command line then the command line specified value will be used.

For examples on usage of this option, please see our “using CLI with advanced JSON options” link:


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 compartment_id=<substitute-value-of-compartment_id> #
    export compute_availability_domain=<substitute-value-of-compute_availability_domain> #
    export esxi_count=<substitute-value-of-esxi_count> #
    export instance_prefix=<substitute-value-of-instance_prefix> #
    export nsx_edge_up1_id=<substitute-value-of-nsx_edge_up1_id> #
    export nsx_edge_up2_id=<substitute-value-of-nsx_edge_up2_id> #
    export nsx_edge_vtep_id=<substitute-value-of-nsx_edge_vtep_id> #
    export nsx_vtep_id=<substitute-value-of-nsx_vtep_id> #
    export prov_subnet_id=<substitute-value-of-prov_subnet_id> #
    export ssh_authorized_keys=<substitute-value-of-ssh_authorized_keys> #
    export vmotion_id=<substitute-value-of-vmotion_id> #
    export vmware_version=<substitute-value-of-vmware_version> #
    export vsan_id=<substitute-value-of-vsan_id> #
    export vsphere_id=<substitute-value-of-vsphere_id> #

    sddc_id=$(oci ocvs sddc create --compartment-id $compartment_id --compute-availability-domain $compute_availability_domain --esxi-count $esxi_count --instance-prefix $instance_prefix --nsx-edge-up1-id $nsx_edge_up1_id --nsx-edge-up2-id $nsx_edge_up2_id --nsx-edge-vtep-id $nsx_edge_vtep_id --nsx-vtep-id $nsx_vtep_id --prov-subnet-id $prov_subnet_id --ssh-authorized-keys $ssh_authorized_keys --vmotion-id $vmotion_id --vmware-version $vmware_version --vsan-id $vsan_id --vsphere-id $vsphere_id --query --raw-output)

    oci ocvs sddc get --sddc-id $sddc_id