add-instance-to-deployment-group
Adds a standalone instance to an existing deployment group.
Synopsis
asadmin [asadmin-options] add-instance-to-deployment-group [--help]
[--instance instanceName]
[--deploymentgroup deploymentGroupName]
Description
The add-instance-to-deployment-group
subcommand will add the referenced instance to the referenced deployment group.
This command will only work with standalone instances (see here for more information).
This subcommand is supported in remote mode only.
Options
- asadmin-options
-
Options for the
asadmin
utility. For information about these options, see theasadmin
help page. --help
-?
-
Displays the help text for the subcommand.
--instance
-
The name of the standalone instance that will be added to the deployment group. The command will fail if the name doesn’t match to an existing standalone instance.
--deploymentGroup
-
The name of the deployment group to which the standalone instance will be added. The command will fail if the name doesn’t match to an existing deployment group.
Examples
Example 1 Add an instance to a Deployment Group
This example adds an instance named test-instance-1
to a deployment group named test-dgroup
:
asadmin add-instance-to-deployment-group --instance=test-instance-1 --deploymentGroup=test-dgroup
Command add-instance-to-deployment-group executed successfully.