Delete IP from IP Allowlist

JFrog REST APIs

Content Type
REST API
ft:sourceType
Paligo

Description: Deletes an IP or list of IPs from the JPD allowlist.

Since: January 25, 2023

Security: Requires a valid tokenGenerate a Token in MyJFrog

Usage: DELETE api/jmis/v1/allowlist/{serverName}

Content-Type: application/json

Produces: application/json

Sample Usage:

curl --location --request DELETE 'https://my.jfrog.com/api/jmis/v1/allowlist/{serverName} \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"ips": [
        "2.2.2.7/1"
]
}'

Sample Request Single IP:

{
        "ips": [
    "2.2.2.7/1"
        ]
}

Sample Request Multiple IPs:

{
    "status": "IN_PROGRESS",
    "message": "Success, the action will take a few minutes to complete",
    "errors": [
        {
            "message": "Nonexistent IPs",
            "details": [
                "5.5.5.7/1"
            ]
        },
        {
            "message": "Invalid IPs",
            "details": [
                "text"
            ]
        }
    ]
}

Sample Response Single IP:

{

    "status": "IN_PROGRESS",

    "message": "Success, the action will take a few minutes to complete"

}

Sample Response Multiple IPs:

{
    "status": "IN_PROGRESS",
    "message": "Success, the action will take a few minutes to complete",
    "errors": [
        {
            "message": "Nonexistent IPs",
            "details": [
                "5.5.5.7/1"
            ]
        },
        {
            "message": "Invalid IPs",
            "details": [
                "text"
            ]
        }
    ]
}

Response status codes:

200- Success

400- Failed

409- Another IP action is in progress (try again in a few minutes)

403- Server Blocked / Valid token does not match the server name

401- Unauthorized user

429- Too many requests