Créer un groupe dédié
Vous pouvez créer un groupe dédié pour isoler vos VM à leur création sur un server alloué au groupe dédié. Pour en savoir plus, voir À propos des groupes dédiés.
Créer un group dédié avec OSC CLI
À ce jour, cette section est disponible en anglais uniquement. |
This feature is currently in beta. |
The CreateDedicatedGroup command creates a dedicated group for virtual machines (VMs).
For more information, see About Dedicated Groups.
$ osc-cli api CreateDedicatedGroup --profile "default" \
--CpuGeneration 4 \
--Name "dedicated-group-example" \
--SubregionName "eu-west-2a"
This command contains the following attributes that you need to specify:
-
CpuGeneration
: The processor generation for the VMs in the dedicated group (for example,4
). -
DryRun
: (optional) If true, checks whether you have the required permissions to perform the action. -
Name
: A name for the dedicated group. -
SubregionName
: The Subregion in which you want to create the dedicated group.
The CreateDedicatedGroup command returns the following elements:
-
DedicatedGroup
: Information about the dedicated group.-
AccountId
: The account ID of the owners of the dedicated group. -
CpuGeneration
: The processor generation. -
DedicatedGroupId
: The ID of the dedicated group. -
Name
: The name of the dedicated group. -
NetIds
: The IDs of the Nets in the dedicated group. -
SubregionName
: The name of the Subregion in which the dedicated group is located. -
VmIds
: The IDs of the VMs in the dedicated group.
-
-
ResponseContext
: Information about the context of the response.-
RequestId
: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
},
"DedicatedGroup": {
"VmIds": [],
"NetIds": [],
"AccountId": "123456789012",
"CpuGeneration": 4,
"Name": "dedicated-group-example",
"SubregionName": "eu-west-2a",
"DedicatedGroupId": "ded-12345678"
}
}
Créer un group dédié avec oapi-cli
À ce jour, cette section est disponible en anglais uniquement. |
This feature is currently in beta. |
The CreateDedicatedGroup command creates a dedicated group for virtual machines (VMs).
For more information, see About Dedicated Groups.
$ oapi-cli --profile "default" CreateDedicatedGroup \
--CpuGeneration 4 \
--Name "dedicated-group-example" \
--SubregionName "eu-west-2a"
This command contains the following attributes that you need to specify:
-
CpuGeneration
: The processor generation for the VMs in the dedicated group (for example,4
). -
DryRun
: (optional) If true, checks whether you have the required permissions to perform the action. -
Name
: A name for the dedicated group. -
SubregionName
: The Subregion in which you want to create the dedicated group.
The CreateDedicatedGroup command returns the following elements:
-
DedicatedGroup
: Information about the dedicated group.-
AccountId
: The account ID of the owners of the dedicated group. -
CpuGeneration
: The processor generation. -
DedicatedGroupId
: The ID of the dedicated group. -
Name
: The name of the dedicated group. -
NetIds
: The IDs of the Nets in the dedicated group. -
SubregionName
: The name of the Subregion in which the dedicated group is located. -
VmIds
: The IDs of the VMs in the dedicated group.
-
-
ResponseContext
: Information about the context of the response.-
RequestId
: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
},
"DedicatedGroup": {
"VmIds": [],
"NetIds": [],
"AccountId": "123456789012",
"CpuGeneration": 4,
"Name": "dedicated-group-example",
"SubregionName": "eu-west-2a",
"DedicatedGroupId": "ded-12345678"
}
}
Pages connexes
Méthode API correspondante