You need to enable JavaScript to run this app.
导航

修改外网防火墙信息

最近更新时间2023.07.03 16:32:38

首次发布时间2022.02.25 18:58:32

本接口用于修改外网防火墙。

请求方法

POST

请求参数

下表列出了接口特定的请求参数以及公共请求参数 Action 和 Version。 其他公共参数,请参见公共参数

名称

类型

是否必选

示例值

描述

Action

String

ModifySecurityGroupAttribute

公共参数。该参数表示接口名称。取值:ModifySecurityGroupAttribute。

Version

String

2021-04-30

公共参数。该参数表示接口版本。取值:2021-04-30。

group_identity

String

veew-sg-2551200256591525****

外网防火墙的 ID。您可以通过 DescribeSecurityGroups 接口查询外网防火墙的 ID。

name

String

New_SG_name

外网防火墙的名称。命名规则如下:

  • 允许 5~20 个字符。
  • 支持中文、大写字母、小写字母、数字。
  • 支持特殊字符 ()`~!@#$%^&*-+=_|{}[]:;'<>,.?/。
  • 不能包含双引号(")、反斜线( \)和 空格,且不能以正斜线(/)开头。

remark

String

test

外网防火墙的描述。最多可输入 80 个字符。

返回数据

名称

类型

示例值

描述

security_group

SecurityGroup

请参见返回示例

外网防火墙的详细信息。

请求示例

POST https://veenedge.volcengineapi.com/?Action=ModifySecurityGroupAttribute&Version=2021-04-30
&<其他公共参数>
{
  "group_identity": "veew-sg-9250505551518201****",
  "name":"new-test"
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "2023051916470136425C037E71C574****",
        "Action": "ModifySecurityGroupAttribute",
        "Version": "2021-04-30",
        "Service": "veenedge",
        "Region": "cn-north-1"
    },
    "Result": {
        "security_group": {
            "group_identity": "veew-sg-9250505551518201****",
            "account_identity": 210000****,
            "user_identity": 0,
            "name": "new-test",
            "region": "EastChina",
            "city": "321000",
            "cluster_name": "****-yzcm",
            "vpc_identity": "vpc-djxn57****",
            "vpc_name": "扬州移动01-默认VPC",
            "vpc_cidr": [
                "172.**.**.64/26"
            ],
            "group_type": "custom",
            "remark": "",
            "ingress_rule": {
                "total": 0,
                "rules": []
            },
            "egress_rule": {
                "total": 0,
                "rules": []
            },
            "binds": {
                "total": 0,
                "binds": []
            },
            "cluster_name_alias": "扬州移动01",
            "create_time": 1684481333,
            "update_time": 1684486021
        }
    }
}

错误码

如果响应正文中包含 Error 字段,则表示 API 请求失败。关于错误码的更多信息,参见错误码