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
list
andcreate
commands.The syntax for the
list
command is as follows:oci cloud-bridge ocb-agent-svc environment list --compartment-id target_compartment_id [OPTIONS]
The required parameter for the
list
command 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 -h
To get help for the
list
command, run:oci cloud-bridge ocb-agent-svc environment list -h
For 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
ListEnvironments
operation to get to know a list of all source environments.Next, use the
CreateAgentDependency
operation to create a dependency for the specific environment.