修改互联网边界防火墙访问控制策略设置。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ModifyControlPolicy | 接口名称。当前 API 的名称为 ModifyControlPolicy 。 |
Version | String | 是 | 2021-09-06 | 接口版本。当前 API 的版本为 2021-09-06 。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 |
| 策略动作:
|
Description | String | 否 | 测试 | 描述信息 |
DestPort | String | 否 |
| 目的端口。格式为单个端口22,端口范围100/200:
|
DestPortType | String | 否 |
| 访问控制策略的目的端口类型:
|
Destination | String | 是 |
| 目的地址:
|
DestinationType | String | 是 |
| 目的地址类型:
|
Direction | String | 是 |
| 策略方向:
|
EndTime | Integer | 否 |
| 策略生效截止日期,Unix 时间戳,支持精确到设定日期的 23:59:00。
|
Proto | String | 是 |
| 协议类型。当DestinationType为domain时,Proto只能是TCP。可选值:
|
RepeatDays | Array of Integer | 否 |
| 重复生效周期。
|
RepeatEndTime | String | 否 |
| 重复生效截止时间。当 RepeatType 为 Daily、Weekly、Monthly(重复生效)时,需要填写。 |
RepeatStartTime | String | 否 |
| 重复生效起始时间。当 RepeatType 为 Daily、Weekly、Monthly(重复生效)时,需要填写。 |
RepeatType | String | 否 |
| 重复类型:
|
RuleId | String | 是 | f04ac7ce-****-****-****-************ | 访问控制策略唯一标识 ID,获取方式可参考DescribeControlPolicy - 查询互联网边界流量控制网关策略。 |
Source | String | 是 |
| 源地址:
|
SourceType | String | 是 |
| 源地址类型:
|
StartTime | Integer | 否 |
| 策略生效起始日期,Unix 时间戳,支持精确到设定日期的 00:00:00。
|
Status | Boolean | 否 |
| 开关状态。默认为false,关闭。
|
POST ?Action=ModifyControlPolicy&Version=2021-09-06
Host: https://open.volcengineapi.com
Content-Type: application/json; charset=UTF-8
X-Date: 20240711T081413Z
X-Content-Sha256: 287e874e******d653b44d21e
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20240711/cn-beijing/fw_center/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f
{
"Action": "accept",
"Description": "测试",
"DestPort": "22",
"DestPortType": "port",
"Destination": "180.*.*.1/32",
"DestinationType": "net",
"Direction": "in",
"EndTime": 1725708600,
"Proto": "TCP",
"RepeatDays": [
null
],
"RepeatEndTime": "10:00",
"RepeatStartTime": "08:00",
"RepeatType": "Permanent",
"RuleId": "f04ac7ce-****-****-****-************",
"Source": "180.*.*.1/32",
"SourceType": "net",
"StartTime": 1725705000,
"Status": true
}
{
"ResponseMetadata": {
"Action": "ModifyControlPolicy",
"Region": "cn-beijing",
"Service": "fw_center",
"Version": "2021-09-06",
"RequestId": "20230604110420****100232280022D31"
}
}