These steps show you how to modify a configuration, add a new custom rule, and activate the new configuration version.
-
Run List configurations and select a
configId. -
Run List configuration versions and select a
versionNumber. -
You cannot edit the configuration version if it's ACTIVE on staging or production servers. To create a new version, run Clone a configuration version.
-
Run Create a custom rule Note the
ruleIdin the response. -
Modify the response object.
-
Make a PUT request to
/appsec/v1/configs/{configId}/custom-rules/{ruleId}. -
Run List security policies and select a
policyId. -
Make a PUT request with a single-member object containing the specified
actionto/appsec/v1/configs/{configId}/versions/1/security-policies/{policyId}/custom-rules/{ruleId}. -
Create an Activation object.
-
Make a POST request to
/appsec/v1/activationsto activate the configuration version. -
Run Get activation status to check the activation status.
