Moving an Agent Configuration
Move an agent configuration to another compartment.
- On the Agent configurations list page under Monitoring, find 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.
- From the for the agent configuration, select Move Resource.
- In the Move resource panel, select the destination compartment from the list.
- 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> }