Viewing the Connection State
You can view the connection state of a Compute Cloud@Customer infrastructure. The connection state indicates the condition of the connection of the Compute Cloud@Customer infrastructure in your data center to your OCI tenancy.
These are the possible states:
REJECT
REQUEST
READY
CONNECTED
DISCONNECTED
You can only update the state from REQUEST
to READY
(see Connecting a Compute Cloud@Customer Infrastructure to OCI), or from any state back to REJECT
(see Rejecting a Connection).
The system automatically handles the REJECT
to REQUEST
,
READY
to CONNECTED
, or CONNECTED
to DISCONNECTED
transitions.
-
In the Oracle Cloud Console, open the navigation menu, select Hybrid, and then select Oracle Compute Cloud@Customer.
- In the list of infrastructures, view the Connection state column. If you don't see the infrastructure that you want, you might need to change compartments.
-
Use the oci ccc infrastructure list command and required parameters to view a list of Compute Cloud@Customer infrastructures and parameters such as the connection state.
oci ccc infrastructure list [OPTIONS]
Example of listing all infrastructures in a specified compartment:
oci ccc infrastructure list -c <compartment_OCID> --all { "data": { "items": [ { "compartment-id": "<compartment_OCID>", "connection-state": "REJECT", "defined-tags": { "Oracle-Tags": { "CreatedBy": "user", "CreatedOn": "2023-07-28T12:53:26.934Z" } }, "display-name": "TestInfrastructure", "freeform-tags": {}, "id": "<infrastructure_OCID>", "lifecycle-state": "ACTIVE", "short-name": "<infrastructure_SHORTNAME>", "subnet-id": "<subnet_OCID>", "system-tags": {}, "time-created": "2023-07-28T12:53:27.141000+00:00" }, { "compartment-id": "<compartment_OCID>", "connection-state": "CONNECTED", "defined-tags": { "Oracle-Tags": { "CreatedBy": "user", "CreatedOn": "2023-07-18T08:39:53.201Z" } }, "display-name": "some text", "freeform-tags": {}, "id": "<infrastructure_OCID>", "lifecycle-state": "ACTIVE", "short-name": "<infrastructure_SHORTNAME>", "subnet-id": "<subnet_OCID>", "system-tags": {}, "time-created": "2023-07-18T08:39:53.433000+00:00" }, } }
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the ListCccInfrastructures operation to view a list of Compute Cloud@Customer infrastructures.
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.