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
{
"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"
}
{
"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"
]
}
{
"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
{
"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
}
}