get https://api.wp.pro/v1/site//rules
Response
xxxxxxxxxx
import wppro from '@api/wppro';
wppro.siteRulesGet({site_id: 'site_id'})
.then(({ data }) => console.log(data))
.catch(err => console.error(err));
xxxxxxxxxx
26}
{
"success": true,
"message": "string",
"result": {
"count": 0,
"rules": [
{
"hash": "string",
"filter": "request_filter",
"scope": "CDN",
"priority": 100,
"expression": "string",
"action": "allow",
"instructions": [
{
"hash": "string",
"instruction": "cache",
"value": "string"
}
],
"enabled": true,
"skip": true
}
]
}