Modify the name and description of a VPC.

Request parameters

Name Type Required Description
Action String Yes

The action to perform. Valid value:

ModifyVpcAttribute

VpcId String Yes

The name of the VPC.

VpcName String No

The name of the VPC.

The name can contain 2-128 characters including a-z, A-Z, 0-9, underlines, and hyphens. The name must start with an English letter,  but cannot start with http:// or https://.

Description String No

The description of the VPC.

The description can contain 2-256 characters. The description must start with English letters, but cannot start with http://. or https://.

Response parameters

Name Type Description
RequestId String The ID of the request.

Examples

Request example

https://vpc.aliyuncs.com/?Action=ModifyVpcAttribute
&VpcId=vpc-257gq642n
&VpcName=Vpc02
&CommonParameters
Response example
  • XML format

    <? xml version="1.0" encoding="UTF-8"? >
    <ModifyVpcAttributeResponse>
        <RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
    </ModifyVpcAttributeResponse>
  • JSON format

    { 
        "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0", 
        "RouteTableId": "vtb-bp145q7glnuzdvzu21pom", 
        "VRouterId": "vrt-bp1lhl0taikrteen80oxx", 
        "VpcId": "vpc-bp15zckdt37pq72zvw30k"
    }