Retrieving a Compute Cluster's OCID

If you don't already have the OCID of a compute cluster, you can retrieve a list of compute clusters in a compartment with their corresponding OCIDs.

    1. Navigate to the Compute Clusters list page. If you need help finding the list page, see Listing Compute Clusters.
    2. Select the compute cluster that you're interested in.

      The OCID is displayed on the Compute cluster details page.

  • Use the compute-cluster get command and required parameters to get a compute cluster:

    oci compute compute-cluster get --from-json <file://path/to/file.json>

    <file://path/to/file.json> is the path to a JSON file that defines the instance details. For information about how to generate an example of the JSON file, see Advanced JSON Options.

    For a complete list of flags and variable options for the Compute service CLI commands, see the command line reference for Compute.

  • For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.

    Use this API operation to get a compute cluster: