修改使用者網關的名稱和描述資訊。

請求參數

名稱 類型 是否必須 描述
Action String

要執行的操作。 取值:

ModifyCustomerGatewayAttribute

RegionId String

使用者網關所在的地域。

您可以通過調用 DescribeRegions介面獲取地域ID。

NatGatewayId String

使用者網關的ID。

Name String

使用者網關的名稱。

長度為 2-128個字元,必須以字母或中文開頭,可包含數字,點號(.),底線(_)和短橫線(-)。但不能以http://https://開頭。

Description String

使用者網關的描述資訊。

長度為 2-256個字元,必須以字母或中文開頭,但不能以http://https://開頭。

返回參數

名稱 類型 描述
RequestId String 請求ID。
CustomerGatewayId String 使用者網關的ID。
Name String 使用者網關的名稱。
Description String 使用者網關的描述資訊。
IpAddress String 使用者網關的IP地址。
CreateTime Long 使用者網關的建立時間。

樣本

請求樣本

https://vpc.aliyuncs.com/?Action=ModifyCustomerGatewayAttribute
&RegionID=cn-beijing
&CustomerGatewayId=cgw-bp1pvpl9r9adju6l5nxck
&公共請求參數
返回樣本
  • XML格式

    <?xml version="1.0" encoding="UTF-8" ?>
    <ModifyCustomerGatewayAttributeResponse>
        <CustomerGatewayId>cgw-bp1pvpl9r9adju6l5nxck</CustomerGatewayId>
        <RequestId>E61293C8-AF07-4E87-A272-542680038F93</RequestId>
        <CreateTime>1492747187000</CreateTime>
        <IpAddress>139.196.32.167</IpAddress>
    </ModifyCustomerGatewayAttributeResponse>
  • JSON格式

    {
        "CustomerGatewayId":"cgw-bp1pvpl9r9adju6l5nxck",
        "RequestId":"8AA5CE21-2E6A-4530-BDF5-F055849476E6",
        "CreateTime":1492747187000,
        "IpAddress":"139.196.32.167"
    }