Updating a Stream

Move a stream to a different stream pool, or update its tags.

When you update a stream, you can also update its tags. For more information about tagging, see Resource Tags.

For instructions to move a stream to a different compartment, see Moving a Stream to a Different Compartment.

For stream pools, see Updating a Stream Pool.

    1. On the Streams list page, select the stream that you want to work with. If you need help finding the list page or the stream, see Listing Streams.
    2. To move the stream to a different stream pool:
      1. Select Move next to the current Stream Pool value.
      2. In the Move Stream dialog box, select the stream pool that you want to move the stream to and then select Move Stream.
    3. To add one or more tags to the stream, select Tags.
      If you have permissions to create a resource, then you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags. If you're not sure whether to apply tags, skip this option or ask an administrator. You can apply tags later.
  • Use the oci streaming admin stream update command and required parameters to update a stream:

    oci streaming admin stream update --stream-id <stream_OCID> [OPTIONS]

    Example for moving the stream to a different stream pool:

    oci streaming admin stream update --stream-id ocid1.stream.oc1.phx.exampleuniqueID --stream-pool-id ocid1.streampool.oc1.phx.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": 1,
        "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 UpdateStream operation to update a stream.