Skip to main content

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

NameLocationTypeRequiredSample valueDescription
DescriptionBODYstringNoThis 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://.
VpcIdBODYstringYesvpc-bp1qtbach57ywecf****the ID of the VPC to modify the information.
regionIdBODYstringYesNo sample value for this parameter.region id
CidrBlockBODYstringNo192.XX.XX.0/24IPv4 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.
VpcNameBODYstringNoVpc-1VPC 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.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID to which the VPC belongs. you can obtain the region by calling DescribeRegions interface ID.
Ipv6CidrBlockBODYstringNo1007:XXXX:0:40::/61whether IPv6 network segment is turned on. true: on. false: closed.
versionBODYstringNo2016-01-01version of api
EnableIPv6BODYbooleanNotruewhether IPv6 network segment is turned on. true: on. false: closed.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}