Download OpenAPI specification:
来源于 ikuai-doc/openapi_specs/object_group/。
为避免 Redoc 单页一次性加载全部 API 导致浏览器 heap 过高,部署版按分类拆分。
获取所有域名对象策略列表。 支持分页功能。
| page | integer >= 1 Default: 1 页码(从1开始) |
| limit | integer [ 1 .. 1000 ] Default: 20 每页记录数 |
{- "code": 0,
- "message": "Success",
- "results": {
- "domain_data": [
- {
- "id": 15,
- "group_name": "domain00",
- "group_value": [
- {
- "domain": "www.baidu.com",
- "comment": "test11"
}
]
}
], - "domain_total": 5
}
}创建新的域名对象策略。 支持多个域名配置。
域名对象配置数据
| group_name required | string [ 1 .. 15 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9]+$ 对象名称(仅支持中文、英文、数字,长度限制1-15字符) |
required | Array of objects 域名列表 |
{- "group_name": "domain00",
- "group_value": [
- {
- "domain": "www.baidu.com",
- "comment": "test11"
}, - {
- "domain": "www.qq.com",
- "comment": "test11"
}
]
}{- "code": 0,
- "message": "success",
- "rowid": 1
}根据ID获取单个域名对象的详细信息。 需要提供有效的对象ID。
| id required | integer <int64> >= 1 Example: 1 域名对象ID |
{- "code": 0,
- "message": "Success",
- "results": {
- "domain_data": [
- {
- "id": 15,
- "group_name": "domain00",
- "group_value": [
- {
- "domain": "www.baidu.com",
- "comment": "test11"
}
]
}
], - "domain_total": 1
}
}修改指定域名对象的配置信息。 支持部分字段更新。
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
| id required | integer <int64> >= 1 Example: 1 域名对象ID |
域名对象更新数据
| group_name required | string [ 1 .. 15 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9]+$ 对象名称(仅支持中文、英文、数字,长度限制1-15字符) |
required | Array of objects 域名列表 |
{- "group_name": "domain00",
- "group_value": [
- {
- "domain": "www.example.com",
- "comment": "updated"
}
]
}{- "code": 0,
- "message": "success"
}查询引用指定域名对象的所有规则列表。 需要提供group_name参数。
| group_name required | string Example: group_name=domain00 对象名称 |
{- "code": 0,
- "message": "Success",
- "results": {
- "rules_ref": {
- "acl": [
- {
- "tagname": "acl33",
- "enabled": "yes",
- "id": 1
}
]
}
}
}获取所有IP对象策略列表。 支持分页功能。
| page | integer >= 1 Default: 1 Example: page=1 页码(从1开始) |
| limit | integer >= 1 Default: 20 Example: limit=20 每页记录数 |
{- "message": "Success",
- "results": {
- "ip_data": [
- {
- "id": 1,
- "group_name": "ip66",
- "group_value": [
- {
- "ip": "192.168.44.5",
- "comment": "test11"
}, - {
- "ip": "192.168.88.1/24",
- "comment": "test_ipmask"
}
], - "enabled": "yes",
- "created_time": "2023-10-30T10:00:00Z",
- "updated_time": "2023-10-30T10:00:00Z"
}
], - "ip_total": 25
}
}创建新的IP对象策略。 支持单个IP、IP范围、IP/掩码格式。
IP对象配置数据
| group_name required | string [ 1 .. 15 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9]+$ 对象名称(仅支持中文、英文、数字,长度限制1-15字符) |
required | Array of objects (object_group_network_object_ip_IpObjectValue) [ 1 .. 100 ] items 对象内容列表 |
{- "group_name": "ip66",
- "group_value": [
- {
- "ip": "192.168.44.5",
- "comment": "test11"
}, - {
- "ip": "192.168.88.1/24",
- "comment": "test_ipmask"
}, - {
- "ip": "192.168.99.1-192.168.99.100",
- "comment": "test_iprange"
}
]
}{- "code": 0,
- "message": "Success"
}根据ID获取单个IP对象的详细信息。 需要提供有效的对象ID。
| id required | integer <int64> >= 1 Example: 1 IP对象ID |
{- "message": "Success",
- "results": {
- "ip_data": [
- {
- "id": 1,
- "group_name": "ip66",
- "group_value": [
- {
- "ip": "192.168.44.5",
- "comment": "test11"
}, - {
- "ip": "192.168.88.1/24",
- "comment": "test_ipmask"
}
], - "enabled": "yes",
- "created_time": "2023-10-30T10:00:00Z",
- "updated_time": "2023-10-30T10:00:00Z"
}
], - "ip_total": 1
}
}完全更新现有的IP对象配置。 需要提供所有字段。
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
| id required | integer <int64> >= 1 Example: 1 IP对象ID |
完整的IP对象配置数据
| group_name required | string [ 1 .. 15 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9]+$ 对象名称(仅支持中文、英文、数字,长度限制1-15字符) |
required | Array of objects (object_group_network_object_ip_IpObjectValue) [ 1 .. 100 ] items 对象内容列表 |
{- "group_name": "ip66",
- "group_value": [
- {
- "ip": "192.168.44.5",
- "comment": "test11"
}, - {
- "ip": "192.168.88.1/24",
- "comment": "test_ipmask"
}
]
}{- "code": 0,
- "message": "Success"
}获取引用指定IP对象的规则列表。 可以查询哪些ACL规则引用了特定的对象。
| group_name required | string non-empty Example: group_name=ip66 IP对象名称 |
{- "message": "Success",
- "results": {
- "rules_ref": {
- "acl": [
- {
- "tagname": "acl33",
- "rule_id": 1
}, - {
- "tagname": "001",
- "rule_id": 50
}, - {
- "tagname": "053",
- "rule_id": 100
}
]
}
}
}获取所有IPv6对象策略列表。 支持分页功能。
| page | integer >= 1 Default: 1 页码(从1开始) |
| limit | integer [ 1 .. 1000 ] Default: 20 每页记录数 |
{- "code": 0,
- "message": "Success",
- "results": {
- "ip6_data": [
- {
- "id": 15,
- "group_name": "ipv600",
- "group_value": [
- {
- "ipv6": "2408:8207:3050:6360:aab8:e0ff:fe00:f72a",
- "comment": "test11"
}
]
}
], - "ip6_total": 5
}
}创建新的IPv6对象策略。 支持单个IPv6地址或IPv6地址段。
IPv6对象配置数据
| group_name required | string [ 1 .. 15 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9]+$ 对象名称(仅支持中文、英文、数字,长度限制1-15字符) |
required | Array of objects IPv6地址列表 |
{- "group_name": "ipv600",
- "group_value": [
- {
- "ipv6": "2408:8207:3050:6360:aab8:e0ff:fe00:f72a",
- "comment": "test11"
}
]
}{- "code": 0,
- "message": "success",
- "rowid": 1
}根据ID获取单个IPv6对象的详细信息。 需要提供有效的对象ID。
| id required | integer <int64> >= 1 Example: 1 IPv6对象ID |
{- "code": 0,
- "message": "Success",
- "results": {
- "ip6_data": [
- {
- "id": 15,
- "group_name": "ipv600",
- "group_value": [
- {
- "ipv6": "2408:8207:3050:6360:aab8:e0ff:fe00:f72a",
- "comment": "test11"
}
]
}
], - "ip6_total": 1
}
}修改指定IPv6对象的配置信息。 支持部分字段更新。
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
| id required | integer <int64> >= 1 Example: 1 IPv6对象ID |
IPv6对象更新数据
| group_name required | string [ 1 .. 15 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9]+$ 对象名称(仅支持中文、英文、数字,长度限制1-15字符) |
required | Array of objects IPv6地址列表 |
{- "group_name": "ipv600",
- "group_value": [
- {
- "ipv6": "2408:8207:3050:6360:aab8:e0ff:fe00:f72a",
- "comment": "updated"
}
]
}{- "code": 0,
- "message": "success"
}查询引用指定IPv6对象的所有规则列表。 需要提供group_name参数。
| group_name required | string Example: group_name=ipv600 对象名称 |
{- "code": 0,
- "message": "Success",
- "results": {
- "rules_ref": {
- "acl": [
- {
- "tagname": "acl33",
- "enabled": "yes",
- "id": 1
}
]
}
}
}获取所有MAC对象策略列表。 支持分页功能。
| page | integer >= 1 Default: 1 Example: page=1 页码(从1开始) |
| limit | integer >= 1 Default: 20 Example: limit=20 每页记录数 |
{- "message": "Success",
- "results": {
- "mac_data": [
- {
- "id": 1,
- "group_name": "mac00",
- "group_value": [
- {
- "mac": "08:9b:4b:00:10:6e",
- "comment": "test11"
}
], - "enabled": "yes",
- "created_time": "2023-10-30T10:00:00Z",
- "updated_time": "2023-10-30T10:00:00Z"
}
], - "mac_total": 25
}
}创建新的MAC对象策略。 支持MAC地址格式:08:9b:4b:00:10:6e。
MAC对象配置数据
| group_name required | string [ 1 .. 15 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9]+$ 对象名称(仅支持中文、英文、数字,长度限制1-15字符) |
required | Array of objects (object_group_network_object_mac_MacObjectValue) [ 1 .. 100 ] items 对象内容列表 |
{- "group_name": "mac00",
- "group_value": [
- {
- "mac": "08:9b:4b:00:10:6e",
- "comment": "test11"
}
]
}{- "code": 0,
- "message": "Success"
}根据ID获取单个MAC对象的详细信息。 需要提供有效的对象ID。
| id required | integer <int64> >= 1 Example: 1 MAC对象ID |
{- "message": "Success",
- "results": {
- "mac_data": [
- {
- "id": 1,
- "group_name": "mac00",
- "group_value": [
- {
- "mac": "08:9b:4b:00:10:6e",
- "comment": "test11"
}
], - "enabled": "yes",
- "created_time": "2023-10-30T10:00:00Z",
- "updated_time": "2023-10-30T10:00:00Z"
}
], - "mac_total": 1
}
}完全更新现有的MAC对象配置。 需要提供所有字段。
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
| id required | integer <int64> >= 1 Example: 1 MAC对象ID |
完整的MAC对象配置数据
| group_name required | string [ 1 .. 15 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9]+$ 对象名称(仅支持中文、英文、数字,长度限制1-15字符) |
required | Array of objects (object_group_network_object_mac_MacObjectValue) [ 1 .. 100 ] items 对象内容列表 |
{- "group_name": "mac00",
- "group_value": [
- {
- "mac": "08:9b:4b:00:10:6e",
- "comment": "test11"
}
]
}{- "code": 0,
- "message": "Success"
}获取引用指定MAC对象的规则列表。 可以查询哪些ACL规则引用了特定的对象。
| group_name required | string non-empty Example: group_name=mac00 MAC对象名称 |
{- "message": "Success",
- "results": {
- "rules_ref": {
- "acl": [
- {
- "tagname": "acl33",
- "enabled": "yes",
- "id": 1
}, - {
- "tagname": "001",
- "enabled": "yes",
- "id": 50
}, - {
- "tagname": "053",
- "enabled": "yes",
- "id": 100
}
]
}
}
}获取所有端口对象策略列表。 支持分页功能。
| page | integer >= 1 Default: 1 页码(从1开始) |
| limit | integer [ 1 .. 1000 ] Default: 20 每页记录数 |
{- "code": 0,
- "message": "Success",
- "results": {
- "port_data": [
- {
- "id": 15,
- "group_name": "port00",
- "group_value": [
- {
- "port": "9000",
- "comment": "test11"
}
]
}
], - "port_total": 5
}
}创建新的端口对象策略。 支持单个端口或端口范围配置。
端口对象配置数据
| group_name required | string [ 1 .. 15 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9]+$ 对象名称(仅支持中文、英文、数字,长度限制1-15字符) |
required | Array of objects 端口列表 |
{- "group_name": "port00",
- "group_value": [
- {
- "port": "9000",
- "comment": "test11"
}, - {
- "port": "10000-10200",
- "comment": "test11"
}
]
}{- "code": 0,
- "message": "success",
- "rowid": 1
}根据ID获取单个端口对象的详细信息。 需要提供有效的对象ID。
| id required | integer <int64> >= 1 Example: 1 端口对象ID |
{- "code": 0,
- "message": "Success",
- "results": {
- "port_data": [
- {
- "id": 15,
- "group_name": "port00",
- "group_value": [
- {
- "port": "9000",
- "comment": "test11"
}
]
}
], - "port_total": 1
}
}修改指定端口对象的配置信息。 支持部分字段更新。
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
| id required | integer <int64> >= 1 Example: 1 端口对象ID |
端口对象更新数据
| group_name required | string [ 1 .. 15 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9]+$ 对象名称(仅支持中文、英文、数字,长度限制1-15字符) |
required | Array of objects 端口列表 |
{- "group_name": "port00",
- "group_value": [
- {
- "port": "8080",
- "comment": "updated"
}
]
}{- "code": 0,
- "message": "success"
}查询引用指定端口对象的所有规则列表。 需要提供group_name参数。
| group_name required | string Example: group_name=port00 对象名称 |
{- "code": 0,
- "message": "Success",
- "results": {
- "rules_ref": {
- "acl": [
- {
- "tagname": "acl33",
- "enabled": "yes",
- "id": 1
}
]
}
}
}获取所有协议对象策略列表。 支持分页功能。
| page | integer >= 1 Default: 1 页码(从1开始) |
| limit | integer [ 1 .. 1000 ] Default: 20 每页记录数 |
{- "code": 0,
- "message": "Success",
- "results": {
- "proto_data": [
- {
- "id": 15,
- "group_name": "proto00",
- "group_value": [
- {
- "proto": "文件传输",
- "comment": "test11"
}
]
}
], - "proto_total": 5
}
}创建新的协议对象策略。 支持多种协议类型。
协议对象配置数据
| group_name required | string [ 1 .. 15 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9]+$ 对象名称(仅支持中文、英文、数字,长度限制1-15字符) |
required | Array of objects 协议列表 |
{- "group_name": "proto00",
- "group_value": [
- {
- "proto": "文件传输",
- "comment": "test11"
}, - {
- "proto": "DNS",
- "comment": "test11"
}
]
}{- "code": 0,
- "message": "success",
- "rowid": 1
}根据ID获取单个协议对象的详细信息。 需要提供有效的对象ID。
| id required | integer <int64> >= 1 Example: 1 协议对象ID |
{- "code": 0,
- "message": "Success",
- "results": {
- "proto_data": [
- {
- "id": 15,
- "group_name": "proto00",
- "group_value": [
- {
- "proto": "文件传输",
- "comment": "test11"
}
]
}
], - "proto_total": 1
}
}修改指定协议对象的配置信息。 支持部分字段更新。
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
| id required | integer <int64> >= 1 Example: 1 协议对象ID |
协议对象更新数据
| group_name required | string [ 1 .. 15 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9]+$ 对象名称(仅支持中文、英文、数字,长度限制1-15字符) |
required | Array of objects 协议列表 |
{- "group_name": "proto00",
- "group_value": [
- {
- "proto": "HTTP",
- "comment": "updated"
}
]
}{- "code": 0,
- "message": "success"
}查询引用指定协议对象的所有规则列表。 需要提供group_name参数。
| group_name required | string Example: group_name=proto00 对象名称 |
{- "code": 0,
- "message": "Success",
- "results": {
- "rules_ref": {
- "acl": [
- {
- "tagname": "acl33",
- "enabled": "yes",
- "id": 1
}
]
}
}
}获取所有时间对象策略列表。 支持分页功能。
| page | integer >= 1 Default: 1 Example: page=1 页码(从1开始) |
| limit | integer >= 1 Default: 20 Example: limit=20 每页记录数 |
{- "message": "Success",
- "results": {
- "time_data": [
- {
- "id": 1,
- "group_name": "time00",
- "group_value": [
- {
- "type": "weekly",
- "weekdays": "1234567",
- "start_time": "00:00",
- "end_time": "20:00",
- "comment": "test11"
}, - {
- "type": "date",
- "start_time": "2026-05-01T08:00",
- "end_time": "2026-05-10T08:00",
- "comment": "test11"
}
], - "enabled": "yes",
- "created_time": "2023-10-30T10:00:00Z",
- "updated_time": "2023-10-30T10:00:00Z"
}
], - "time_total": 25
}
}创建新的时间对象策略。 支持两种时间类型:
时间对象配置数据
| group_name required | string [ 1 .. 15 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9]+$ 对象名称(仅支持中文、英文、数字,长度限制1-15字符) |
required | Array of objects (object_group_network_object_time_TimeObjectValue) [ 1 .. 100 ] items 对象内容列表 |
{- "group_name": "time00",
- "group_value": [
- {
- "type": "weekly",
- "weekdays": "1234567",
- "start_time": "00:00",
- "end_time": "20:00",
- "comment": "test11"
}, - {
- "type": "date",
- "start_time": "2026-05-01T08:00",
- "end_time": "2026-05-10T08:00",
- "comment": "test11"
}
]
}{- "code": 0,
- "message": "Success"
}根据ID获取单个时间对象的详细信息。 需要提供有效的对象ID。
| id required | integer <int64> >= 1 Example: 1 时间对象ID |
{- "message": "Success",
- "results": {
- "time_data": [
- {
- "id": 1,
- "group_name": "time00",
- "group_value": [
- {
- "type": "weekly",
- "weekdays": "1234567",
- "start_time": "00:00",
- "end_time": "20:00",
- "comment": "test11"
}, - {
- "type": "date",
- "start_time": "2026-05-01T08:00",
- "end_time": "2026-05-10T08:00",
- "comment": "test11"
}
], - "enabled": "yes",
- "created_time": "2023-10-30T10:00:00Z",
- "updated_time": "2023-10-30T10:00:00Z"
}
], - "time_total": 1
}
}完全更新现有的时间对象配置。 需要提供所有字段。
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
| id required | integer <int64> >= 1 Example: 1 时间对象ID |
完整的时间对象配置数据
| group_name required | string [ 1 .. 15 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9]+$ 对象名称(仅支持中文、英文、数字,长度限制1-15字符) |
required | Array of objects (object_group_network_object_time_TimeObjectValue) [ 1 .. 100 ] items 对象内容列表 |
{- "group_name": "time00",
- "group_value": [
- {
- "type": "weekly",
- "weekdays": "1234567",
- "start_time": "00:00",
- "end_time": "20:00",
- "comment": "test11"
}, - {
- "type": "date",
- "start_time": "2026-05-01T08:00",
- "end_time": "2026-05-10T08:00",
- "comment": "test11"
}
]
}{- "code": 0,
- "message": "Success"
}获取引用指定时间对象的规则列表。 可以查询哪些ACL规则引用了特定的对象。
| group_name required | string non-empty Example: group_name=time00 时间对象名称 |
{- "message": "Success",
- "results": {
- "rules_ref": {
- "acl": [
- {
- "tagname": "acl33",
- "enabled": "yes",
- "id": 1
}, - {
- "tagname": "001",
- "enabled": "yes",
- "id": 50
}, - {
- "tagname": "053",
- "enabled": "yes",
- "id": 100
}
]
}
}
}