跳过IP

下面提供的链接指向一个详细的页面,详细说明了我们系统中的“跳过IP”的概念。

跳过IP


请注意,几乎每个端点都与IP跳转有关,除了indexdelete 等值得注意的例外情况外,将在成功调用时返回一个跳过IP资源。

IpSkippingResource
{
    "hash": "01HQ5K3P97DY8EX9Y90YT1K6XA",
    "title": "192.0.2.1",
    "items": [
        {
            "hash": "01HQJ5GS1NXBP562CCQFQB6XN7",
            "ip_range": "24.52.81.2/32"
        },
        {
            "hash": "01HQJ5GW9NXBCC62CCQFQB6XN7",
            "ip_range": "14.51.82.2/32"
        }
    ]
}

创建跳过IP列表

POST /residential-users/{residential_user_hash}/ips-skipping

查询参数

正文参数

請求範例

curl -X POST "https://resi-api.iproyal.com/v1/residential-users/<residential_user_hash>/ips-skipping" \
     -H "Authorization: Bearer <your_api_token>" \
     -H "Content-Type: application/json" \
     -d '{
           "title": "Your Title"
         }'

获取多个跳过IP列表

GET /residential-users/{residential_user_hash}/ips-skipping

查询参数

請求範例

curl -X GET "https://resi-api.iproyal.com/v1/residential-users/<residential_user_hash>/ips-skipping" \
     -H "Authorization: Bearer <your_api_token>" \
     -H "Content-Type: application/json"

更新跳过IP列表

UPDATE /residential-users/{residential_user_hash}/ips-skipping/{ips_skipping_hash}

查询参数

正文参数

請求範例

curl -X PUT "https://resi-api.iproyal.com/v1/residential-users/<residential_user_hash>/ips-skipping/<ips_skipping_hash>" \
     -H "Authorization: Bearer <your_api_token>" \
     -H "Content-Type: application/json" \
     -d '{
           "title": "New Title",
           "ip_ranges": ["192.168.0.0/24", "10.0.0.0/8"]
         }'

删除跳过IP列表

DELETE /residential-users/{residential_user_hash}/ips-skipping/{ips_skipping_hash}

查询参数

請求範例

curl -X DELETE "https://resi-api.iproyal.com/v1/residential-users/<residential_user_hash>/ips-skipping/<ips_skipping_hash>" \
     -H "Authorization: Bearer <your_api_token>" \
     -H "Content-Type: application/json"

Last updated