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
|
--placementGroupTypeCode |
String | Optional | Physical placement group type code
|
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"
}
}