Moving a Stream to a Different Compartment

Move a stream to a different compartment.

For instructions to move a stream to a different stream pool, see Updating a Stream.

For stream pools, see Moving a Stream Pool to a Different Compartment.

    1. On the Streams list page, find the stream that you want to work with. If you need help finding the list page or the stream, see Listing Streams.
    2. From the Actions menu (Actions Menu), select Move Resource.
    3. In the Move Resource dialog box, select the compartment that you want to move the Kafka Connect configuration to.
    4. Select Move resource.
  • Use the oci streaming admin stream change-compartment command and required parameters to move a stream to a different compartment:

    oci streaming admin stream change-compartment --stream-id <stream_OCID> --compartment-id <compartment_OCID>

    For example:

    oci streaming admin stream change-compartment --stream-id ocid1.stream.oc1.phx.exampleuniqueID --compartment-id ocid1.tenancy.oc1..exampleuniqueID
    {
      "data": {
        "compartment-id": "ocid1.tenancy.oc1..exampleuniqueID",
        "defined-tags": {},
        "freeform-tags": {},
        "id": "ocid1.stream.oc1.phx.exampleuniqueID",
        "lifecycle-state": "UPDATING",
        "lifecycle-state-details": null,
        "messages-endpoint": "https://cell-1.streaming.us-phoenix-1.oci.oraclecloud.com",
        "name": "MyStream",
        "partitions": 5,
        "retention-in-hours": 24,
        "stream-pool-id": "ocid1.streampool.oc1.phx.exampleuniqueID",
        "time-created": "2020-11-02T19:12:22.385000+00:00"
      },
      "etag": "\"25b49cb2-f0c0-4421-b39f-899846b9d7c9-0c3a8572-1719-44ba-840d-19843352c9ba\""
    }

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the ChangeStreamCompartment operation to move a stream to a different compartment.