Moving an Agent Configuration

Move an agent configuration to another compartment.

    1. On the Agent configurations list page under Monitoring, select the agent configuration that you want to work with. If you need help finding the list page or the agent configuration, see Listing Agent Configurations.
      The agent configuration's details page opens.
    2. Select Move Resource.
    3. In the Move resource dialog box, select the compartment that you want to move the agent configuration to.
    4. Select 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>
    }