removeTarget

Prev Next

Available in VPC

Remove a target applied to a target group. The list of target numbers you specify is removed from the list of existing applied targets, and remains unchanged if you specify a target number that hasn't been applied.

Syntax

The removeTarget syntax is as follows:

./ncloud vloadbalancer removeTarget \
    --targetGroupNo <target-group-no> \
    --targetNoList <target-no-list> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running removeTarget.

Required options

The following options are required for removeTarget.

Options Type Required Description
--targetGroupNo String Required Target group number
--targetNoList List Required List of target numbers
  • You can enter multiple items separated by spaces (e.g., --targetNoList 34567890 34567891).
  • For existing bound targetNo, see getTargetList.

Common options

For information about the options common to all vloadbalancer subcommands, see Load Balancer (VPC) options.

Examples

If the target removal request is successful, the list of targets bound to the target group is returned.

Command

The command example is as follows:

./ncloud vloadbalancer removeTarget \
    --targetGroupNo 55667788 \
    --targetNoList 34567890 \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "removeTargetResponse": {
    "totalRows": 0,
    "targetList": [],
    "requestId": "c9d0e1f2-a3b4-5678-cdef-901234567890",
    "returnCode": "0",
    "returnMessage": "success"
  }
}