ModifyVpcAttribute
Description
call the ModifyVpcAttribute interface to modify the name and description information of the specified VPC.
Request Method
POST
Request Path
/apsara/route/Vpc/ModifyVpcAttribute
Request Parameters Common Parameters
| Name | Location | Type | Required | Sample value | Description |
|---|---|---|---|---|---|
| Description | BODY | string | No | This is my VPC. | VPC description information to be modified. The description length is 2 to 256 characters and must start with a letter or Chinese, but cannot be http:// or https://. |
| VpcId | BODY | string | Yes | vpc-bp1qtbach57ywecf**** | the ID of the VPC to modify the information. |
| regionId | BODY | string | Yes | No sample value for this parameter. | region id |
| CidrBlock | BODY | string | No | 192.XX.XX.0/24 | IPv4 network segment of VPC supports enlarging or reducing VPC network segments within 172.16.0.0/16 and 192.168.0.0/16 and their subnets, and the mask of the network segment is 8-24 bits. |
| VpcName | BODY | string | No | Vpc-1 | VPC name to be modified. /p> the name is 2-128 characters in length and must start with a letter or Chinese. it can contain numbers, half-width periods (.), underscores (_) and dashes (-), but you cannot use http:// or https:// start. |
| RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID to which the VPC belongs. you can obtain the region by calling DescribeRegions interface ID. |
| Ipv6CidrBlock | BODY | string | No | 1007:XXXX:0:40::/61 | whether IPv6 network segment is turned on. true: on. false: closed. |
| version | BODY | string | No | 2016-01-01 | version of api |
| EnableIPv6 | BODY | boolean | No | true | whether IPv6 network segment is turned on. true: on. false: closed. |
Return data
| Name | Type | Sample value | Description |
|---|---|---|---|
| RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}