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.

createPlacementGroup

Prev Next

Available in VPC

Create a physical placement group where a server instance (VM) belongs.

Syntax

The createPlacementGroup syntax is as follows:

./ncloud vserver createPlacementGroup \
    [--placementGroupName <placement-group-name>] \
    [--placementGroupTypeCode <AA>] \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running createPlacementGroup.

Optional options

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

Options Type Required Description
--placementGroupName String Optional Physical placement group name
  • Auto-generated on no input.
  • Enter 3 to 30 characters using a combination of lowercase English letters, numbers, and the special character -.
--placementGroupTypeCode String Optional Physical placement group type code
  • AA: Anti-Affinity type

Common options

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

Examples

If the request to create a physical placement group is successful, the identification information and type of the created group are returned.

Command

The command example is as follows:

./ncloud vserver createPlacementGroup \
    --placementGroupName test-pg-01 \
    --placementGroupTypeCode AA \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "createPlacementGroupResponse": {
    "totalRows": 1,
    "placementGroupList": [
      {
        "placementGroupNo": "91234567",
        "placementGroupName": "test-pg-01",
        "placementGroupType": {
          "code": "AA",
          "codeName": "Anti-Affinity"
        }
      }
    ],
    "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "returnCode": "0",
    "returnMessage": "success"
  }
}