Skip to main content

Update Stook Setting

Parameters

Description

Type

Required

organization_uuid

The created organization in Medianova Cloud Panel unit ID value.

String

Yes

is_ip_restriction

It determines whether the IP restriction feature is on or off.

Boolean

Yes

restriction_type

It takes the values ​​"deny" and "allow".

Boolean

Yes

ip_list

More than one IP information can be entered.

Array

Yes

status_cors_header

Determines whether the Cors header feature is on or off.

Boolean

Yes

cors_domains

If status_cors_header is on, cors_domains is required.

Array

Yes

Payload

CODE
{
    "is_ip_restriction": true,
    "restriction_type": "allow",
    "ip_list": {
        "allow_ip_list": [
            "1.1.1.1",
            "1.2.2.2"
        ],
        "deny_ip_list": [
            "2.2.2.2",
            "1.1.1.1"
        ]
    },
    "status_cors_header": "dynamic"
}
CODE
{
    "is_ip_restriction": true,
    "restriction_type": "allow",
    "ip_list": {
        "allow_ip_list": [
            "1.1.1.1",
            "1.2.2.2"
        ],
        "deny_ip_list": [
            "2.2.2.2",
            "1.1.1.1"
        ]
    },
    "status_cors_header": "on",
    "cors_domains": [
        "domain.com",
        "domain2.com"
    ]
}

CODE
{
    "is_ip_restriction": false,
    "restriction_type": "allow",
    "ip_list": {
        "allow_ip_list": [
            "1.1.1.1",
            "1.2.2.2"
        ],
        "deny_ip_list": [
            "2.2.2.2",
            "1.1.1.1"
        ]
    },
    "status_cors_header": "off"
}

Response

CODE
{
    "status": true,
    "data": {
        "uuid": "****-****-*****-*****",
        "name": "test",
        "status": true,
        "is_ip_restriction": true,
        "restriction_type": "allow",
        "ip_list": {
            "allow_ip_list": [
                "1.1.1.1",
                "1.2.2.2"
            ],
            "deny_ip_list": [
                "2.2.2.2",
                "1.1.1.1"
            ]
        },
        "is_rate_limit": true,
        "rate_limit_parameters": {
            "zone_size": 1,
            "request_count": 3,
            "request_type": "s",
            "source": "remoteaddr",
            "source_query_string": null
        },
        "status_cors_header": "dynamic",
        "cors_domains": [
            "domain.com"
        ],
        "options_request": false
    }
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.