Change WAF Resource Mode
Parameters | Description | Type | Required |
---|---|---|---|
organization_uuid | The created organization in Medianova Cloud Panel unit ID value. | String | Yes |
resource_uuid | The created resource in Medianova Cloud Panel unit ID value. Path parameter. | String | Yes |
type | When creating a WAF resource, "waf" is written in this field. | String | Yes |
waf_status | This parameter takes the values "detectiononly”, “on”, “off". | String | Yes |
waf_rules | It is the parameter containing rule definitions. | Array | Yes |
waf_global_rules.secruleid | WAF is global rule ID information. | Integer | Yes |
waf_global_rules.status | This parameter takes the values "enabled”, “disabled". | String | Yes |
Payload
{
"resource_uuid": "****-****-***-****",
"waf_status": "on",
"type": "waf",
"waf_global_rules": [
{
"secruleid": "913100",
"status": "disabled"
},
{
"secruleid": "913101",
"status": "disabled"
},
...
{
"secruleid": "913102",
"status": "disabled"
}
]
}
{
"resource_uuid": "****-***-****-****",
"waf_status": "detectiononly",
"type": "waf",
"waf_global_rules": [
{
"secruleid": "200002",
"status": "enabled",
"score": 5
},
{
"secruleid": "800100",
"status": "disabled"
},
...
{
"secruleid": "932190",
"status": "disabled"
}
]
}
{
"resource_uuid": "****-****-****-*****",
"waf_status": "off",
"type": "waf"
}