Modifier un groupe dédié

Vous pouvez modifier le nom d’un groupe dédié.

Si vous souhaitez modifier la sous-région ou la génération de CPU d’un groupe dédiée, vous devez en créer un nouveau.

Modifier un groupe dédié avec OSC CLI

À ce jour, cette section est disponible en anglais uniquement.

This feature is currently in beta.

The UpdateDedicatedGroup command modifies the name of a specified dedicated group.

Request sample
$ osc-cli api UpdateDedicatedGroup --profile "default" \
    --DedicatedGroupId "ded-12345678" \
    --Name "New-dedicated-group-name"

This command contains the following attributes that you need to specify:

  • DedicatedGroupId: The ID of the dedicated group you want to update.

  • DryRun: (optional) If true, checks whether you have the required permissions to perform the action.

  • Name: The new name of the dedicated group.

The UpdateDedicatedGroup command returns the following elements:

  • DedicatedGroup: Information about the dedicated group.

  • ResponseContext: Information about the context of the response.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  },
  "DedicatedGroup": {
    "VmIds": [
      "i-12345678"
    ],
    "NetIds": [
      "vpc-12345678"
    ],
    "AccountId": "123456789012",
    "CpuGeneration": 4,
    "Name": "New-dedicated-group-name",
    "SubregionName": "eu-west-2a",
    "DedicatedGroupId": "ded-12345678"
  }
}

Pages connexes

Méthode API correspondante