Listing Blue/Green Deployments

You can list blue/green deployments in a compartment.

Use the Console, a command-line interface, or the REST API to list blue/green deployments.

Using the Console

Do the following to list blue/green deployments using the Console:

  1. Open the navigation menu and select Databases. Under MySQL HeatWave, select Blue/green deployments.
    The Blue/green deployments list page opens. All blue/green deployments in the selected compartment are displayed in a table.
  2. To view the blue/green deployments in a different compartment, use the Compartment filter to switch compartments.
    Note

    You must have permission to work in a compartment to see the resources in it. If you're not sure which compartment to use, contact an administrator. For more information, see Understanding Compartments.
  3. Use filters to limit the blue/green deployments in the list. Perform one of the following actions depending on the options that you see:
    • From the Search and Filter box, select one or more filters and specify the values that you want to use to narrow the list. The filters correspond to the columns shown in the list table, but some filters might represent attributes that aren't shown in the table.
    • Select a value from one of the available filters, such as compartment, state, or tags.
    Change the order of the items in the list table by using the sort icons next to the column names.
  4. In the list table, select the name of a blue/green deployment to open its details page, where you can view its status and perform other tasks. To perform an action on a blue/green deployment directly from the list table, select an option from the Actions menu in the row for that blue/green deployment.
    The available actions depend on the lifecycle state and switchover status of the blue/green deployment.

Using the CLI

Use the command-line interface to list blue/green deployments.

This task requires the following:
  • The Oracle Cloud Identifier (OCID) of your compartment.
  • A policy that permits you to list blue/green deployments in the compartment or tenancy.
  • A properly configured CLI installation and the requisite SSH keys. See Command Line Interface.
List all blue/green deployments in a compartment using the CLI:
  1. Open a command prompt and run the following command:
    oci mysql blue-green-deployment list 
                --compartment-id <CompartmentOCID>
    • compartment-id: Specify the OCID of the compartment.
If the command validates and runs successfully, you get a response that lists all the blue/green deployments found in the specified compartment.