Documentation Index

Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

getPlacementGroupList

Prev Next

Available in VPC

Get the physical placement group list.

Syntax

The getPlacementGroupList syntax is as follows:

./ncloud vserver getPlacementGroupList \
    [--placementGroupNoList <placement-group-no-list>] \
    [--placementGroupName <placement-group-name>] \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running getPlacementGroupList.

Optional options

These are the optional options for getPlacementGroupList. Options that are not specified will use their default values.

Options Type Required Description
--placementGroupNoList List Optional Physical placement group number list
  • You can enter multiple items separated by spaces. (e.g., --placementGroupNoList 1234 2345)
--placementGroupName String Optional Physical placement group name

Common options

For information about the options common to all vserver subcommands, see Server (VPC) options.

Examples

If the request to retrieve the list of physical placement groups is successful, the identification information and type for each group are returned.

Command

The command example is as follows:

./ncloud vserver getPlacementGroupList \
    --placementGroupNoList 91234567 91234568 \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "getPlacementGroupListResponse": {
    "totalRows": 2,
    "placementGroupList": [
      {
        "placementGroupNo": "91234567",
        "placementGroupName": "test-pg-02",
        "placementGroupType": {
          "code": "AA",
          "codeName": "Anti-Affinity"
        }
      },
      {
        "placementGroupNo": "91234568",
        "placementGroupName": "test-pg-01",
        "placementGroupType": {
          "code": "AA",
          "codeName": "Anti-Affinity"
        }
      }
    ],
    "requestId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
    "returnCode": "0",
    "returnMessage": "success"
  }
}