Modifies the name of a server group.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyGroupProperty

The operation that you want to perform.

Set the value to ModifyGroupProperty.

Data String Yes [{"groupFlag":1,"groupId":8436682,"groupIndex":,"groupName":"example"}]

The new attributes of the server group after modification. The attributes consist of the following parameters:

  • groupFlag: the type of the server group. Valid values: 0 and 1. The value 0 specifies the default server group. The value 1 specifies other server groups.
  • groupId: the ID of the server group.
  • groupIndex: no meaning. You can leave this parameter empty.
  • groupName: the name of the server group. The value is the new name of the server group. The new name cannot be the same as the original name of the server group.
Note You can call the DescribeAllGroups operation to query the values of the groupFlag and groupId parameters. You cannot change the values of the groupFlag or groupId parameter. You can change only the value of the groupName parameter.

All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.

For more information about sample requests, see the "Examples" section of this topic.

Response parameters

Parameter Type Example Description
RequestId String 7E0618A9-D5EF-4220-9471-C42B5E92719F

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ModifyGroupProperty
&Data=[{"groupFlag":1,"groupId":8436682,"groupIndex":,"groupName":"example"}]
&<Common request parameters>

Sample success responses

XML format

<ModifyGroupPropertyResponse>
      <RequestId>7E0618A9-D5EF-4220-9471-C42B5E92719F</RequestId>
</ModifyGroupPropertyResponse>

JSON format

{
  "RequestId": "7E0618A9-D5EF-4220-9471-C42B5E92719F"
}

Error codes

For a list of error codes, visit the API Error Center.