v1

latestSwagger 2.0Apache 2.02026-07-174372196.9 KB
IP组管理

更新IP组

更新指定IP组的信息

put/api/v1/ip-groups/{id}

Path parameters

idstring required

IP组ID

Request body

itemsstring[]

IP地址或CIDR列表

namestring

IP组名称

Example request

{
  "items": [
    "[\"192.168.1.1\"]"
  ],
  "name": "内部服务器"
}

Response

IP组更新成功

codeinteger
messagestring
requestIdstring
successboolean
timestampstring

Example response

{
  "code": 200,
  "data": {
    "id": "60d21b4367d0d8992e89e964",
    "items": [
      "['192.168.1.1'",
      " '10.0.0.1/24']"
    ],
    "name": "内部服务器"
  },
  "message": "操作成功",
  "requestId": "550e8400-e29b-41d4-a716-446655440000",
  "success": true,
  "timestamp": "2023-01-01T12:00:00Z"
}