Creating an Agent Dependency for an Environment
Create an agent dependency for a specific environment in Oracle Cloud Migrations.
You can now proceed with asset discovery. See Managing External Asset Discovery. To get a list of source environments and then create an agent dependency for a specific environment, use the
listandcreatecommands.The syntax for the
listcommand is as follows:oci cloud-bridge ocb-agent-svc environment list --compartment-id target_compartment_id [OPTIONS]The required parameter for the
listcommand is:--compartment-id: Specifies the OCID of the compartment.To get all the commands for
ocb-agent-svc environment, run:oci cloud-bridge ocb-agent-svc environment -hTo get help for the
listcommand, run:oci cloud-bridge ocb-agent-svc environment list -hFor a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
To create an agent dependency for a specific environment, use the
ListEnvironmentsoperation to get to know a list of all source environments.Next, use the
CreateAgentDependencyoperation to create a dependency for the specific environment.