You need to enable JavaScript to run this app.
导航
DescPolicyGroup-查询规则组详情
最近更新时间:2025.05.08 11:28:17首次发布时间:2025.05.08 11:28:17
我的收藏
有用
有用
无用
无用

调用 DescPolicyGroup 接口查询规则组详情,包括规则组名称、关联 IP、创建时间、规则组类型等信息。

请求说明

  • 请求方式:GET
  • 请求地址:https://open.volcengineapi.com/?Action=DescPolicyGroup&Version=2022-01-01

请求参数

Query

参数类型是否必选示例值描述
ActionStringDescPolicyGroup接口名称。当前 API 的名称为 DescPolicyGroup
VersionString2022-01-01接口版本。当前 API 的版本为 2022-01-01
CurrPageInteger1返回页面的页码,需要设置为大于 0 的整数,默认为 1。
PageSizeInteger10每页数量。默认为 10,取值范围:10~100。
ExactMatchStringtrue是否开启精确匹配,当且仅当传入值为 true 时开启精确匹配,其他情况下为模糊匹配。
SearchCommonString自定义规则组1通用搜索。可通过 IP 地址、实例 ID、规则组名称或规则组备注信息搜索,支持模糊匹配。如果输入多个条件,则仅展示同时满足这些条件的规则。

SearchIns

String

ddos-127cd26b09fa4b00b6905c1d890b****

通过实例 ID 或者名称搜索,如果同时输入 ID 和名称,则仅展示同时满足两个条件的规则。

SearchIpString192.1.1.**通过规则组关联的 IP 地址筛选,支持模糊匹配。
SearchNameString自定义规则组1通过规则组名称筛选,支持模糊匹配。
SearchNoteString用于拦截指定IP通过规则组备注筛选,支持模糊匹配。

GroupTypeFilter

String

customized

规则组类型。

  • default:默认规则组
  • expert:专家规则组
  • customized:自定义规则组

返回参数

参数类型示例值描述
TotalCountInteger11查询到的符合条件的总数。
PageSizeInteger10单个页面显示的数量。
CurrentPageInteger1当前页面的页码。
CountInteger10当前页面中的数量。
PolicyGroupsArray of PolicyGroups--规则组详情。

PolicyGroups

参数类型示例值描述
AttachedIpListArray of String192.1.1.1,192.2.2.2规则组关联的 IP 地址列表。
AttachedIpNumInteger2规则组关联的的 IP 地址数量。
CreateTimeString2025-04-01T14:29:30+08:00规则组创建时间,ISO 8601 格式。
GroupNameString自定义规则组1规则组名称。

GroupType

String

customized

规则组类型。

  • default:默认规则组
  • expert:专家规则组
  • customized:自定义规则组
NoteStringthis is a note规则组备注信息。

Status

Integer

20

规则组状态:

  • 11:复制中
  • 20:正常
UpdateTimeString2025-04-02T16:58:17+08:00规则组更新时间,ISO 8601 格式。

请求示例

GET https://open.volcengineapi.com/?Action=DescPolicyGroup&Version=2022-01-01&CurrPage=1&PageSize=10
Host: https://open.volcengineapi.com
Content-Type: application/json; charset=UTF-8
X-Date: 20240610T082509Z
X-content-Sha256: 287e874e******d653b44d21e
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20240610/cn-beijing/origin_defence/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20230604110420****100232280022D31",
        "Action": "DescPolicyGroup",
        "Version": "2022-01-01",
        "Service": "origin_defence",
        "Region": "cn-beijing"
    },
    "Result": {
        "TotalCount": 2,
        "PageSize": 10,
        "CurrentPage": 1,
        "Count": 2,
        "PolicyGroups": [
            {
                "GroupName": "默认规则组",
                "GroupType": "default",
                "Note": "",
                "AttachedIpList": [
                    "10.249.143.**",
                    "10.249.143.**"
                ],
                "AttachedIpNum": 2,
                "CreateTime": "2025-02-19T22:05:50+08:00",
                "UpdateTime": "2025-02-19T22:05:50+08:00",
                "Status": 20
            },
            {
                "GroupName": "自定义规则组1",
                "GroupType": "customized",
                "Note": "",
                "AttachedIpList": null,
                "AttachedIpNum": 0,
                "CreateTime": "2025-03-17T15:49:39+08:00",
                "UpdateTime": "2025-03-17T15:49:39+08:00",
                "Status": 20
            }
        ]
    }
}