Skip to main content

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

CODE
{
    "resource_uuid": "****-****-***-****",
    "waf_status": "on",
    "type": "waf",
    "waf_global_rules": [
        {
            "secruleid": "913100",
            "status": "disabled"
        },
        {
            "secruleid": "913101",
            "status": "disabled"
        },
        ...
        {
            "secruleid": "913102",
            "status": "disabled"
        }
    ]
}
CODE
{
    "resource_uuid": "****-***-****-****",
    "waf_status": "detectiononly",
    "type": "waf",
    "waf_global_rules": [
        {
            "secruleid": "200002",
            "status": "enabled",
            "score": 5
        },
        {
            "secruleid": "800100",
            "status": "disabled"
        },
        ...
        {
            "secruleid": "932190",
            "status": "disabled"
        }
    ]
}
CODE
{
    "resource_uuid": "****-****-****-*****",
    "waf_status": "off",
    "type": "waf"
}
JavaScript errors detected

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

If this problem persists, please contact our support.