Create 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_encryption": false,
"is_ip_restriction": false,
"restriction_type": "deny",
"ip_list": [
"1.1.1.1",
"1.2.3.4"
],
"is_rate_limit": false,
"status_cors_header": "on",
"cors_domains": []
}
Response
{
"status": true,
"data": {
"uuid": "****-****-****-*****",
"name": "test",
"status": true,
"is_ip_restriction": false,
"restriction_type": "deny",
"ip_list": {
"allow_ip_list": [],
"deny_ip_list": [
"1.1.1.1",
"1.2.3.4"
]
},
"status_cors_header": "off",
"cors_domains": null
}
}