Modifies the name and description of a snapshot-consistent 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 ModifySnapshotGroup

The operation that you want to perform. Set the value to ModifySnapshotGroup.

RegionId String Yes cn-hangzhou

The region ID of the snapshot-consistent group. You can call the DescribeRegions operation to query the most recent region list.

SnapshotGroupId String Yes ssg-j6ciyh3k52qp7ovm****

The ID of the snapshot-consistent group. You can call the DescribeSnapshotGroups operation to query the IDs of one or more snapshot-consistent groups.

Name String No testName02

The new name of the snapshot-consistent group. The name must be 2 to 128 characters in length. It can contain letters, digits, periods (.), underscores (_), hyphens (-), and colons (:). It must start with a letter or a digit and cannot start with http:// or https://.

Description String No This is new description

The new description of the snapshot-consistent group. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

Response parameters

Parameter Type Example Description
RequestId String A00B5E55-76B7-42C8-8A80-AF10E980DCC7

The ID of the request.

Examples

Sample requests

https://ecs.aliyuncs.com/?Action=ModifySnapshotGroup
&RegionId=cn-hangzhou
&SnapshotGroupId=ssg-j6ciyh3k52qp7ovm****
&Name=testName02
&Description=This is new description
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifySnapshotGroupResponse>
    <RequestId>A00B5E55-76B7-42C8-8A80-AF10E980DCC7</RequestId>
</ModifySnapshotGroupResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "A00B5E55-76B7-42C8-8A80-AF10E980DCC7"
}

Error codes

HttpCode Error code Error message Description
400 InvalidParameter.Name The specified Name is invalid. The error message returned because the specified Name parameter is invalid.

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