Moving an Agent Configuration

Move an agent configuration to another compartment.

    1. Open the navigation menu and click Observability & Management. Under Monitoring, click Agent Configurations.
    2. Under List Scope, select a compartment that you have permission to work in.
    3. Click the name of the agent configuration that you want.
    4. On the agent configuration details page, click Move Resource.
    5. In the Move resource dialog box, choose the destination compartment from the list.
    6. Click Move resource.
  • Use the oci logging agent-configuration change-compartment command and required parameters to move an agent configuration to another compartment:

    oci logging agent-configuration change-compartment --config-id config_ocid [OPTIONS]

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

  • Run the ChangeUnifiedAgentConfigurationCompartment operation to move an agent configuration to another compartment.

    Example API request:

    POST /20200531/unifiedAgentConfigurations/<unifiedagentconfiguration_ocid>/actions/changeCompartment
    Host: https://logging.us-phoenix-1.oci.oraclecloud.com
    <authorization and other headers>
    {
      "compartmentId":<compartment_id>
    }