Modifies the name or description of a snapshot-consistent group.
Debugging
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. The name must start with a letter and cannot start with a |
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 |
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
HTTP status code |
Error code |
Error message |
Description |
400 | InvalidParameter.Name | The specified Name is invalid. | Invalid Name value. |
For a list of error codes, see Service error codes.