Creates a new configuration.
Parameter | Mandatory/Optional | Data Type | Description |
---|---|---|---|
name |
Optional | string |
Specify a name for the new configuration. Enter a maximum of 256 characters. |
policyId |
Mandatory | string |
Specify the ID of the security policy for this container. Sample value: 59c2dc5dc07f870001548489 A valid policy ID must be provided, and the specified policy must be present for the user. |
logMode |
Mandatory |
string |
Specify logMode with a string value to indicate which policy hits (rule matches) get logged. Possible values: NONE, POLICY_MONITOR, POLICY_DENY, POLICY_MONITOR_DENY, POLICY_ALLOW, POLICY_ALL, BEHAVIOR, ALL. Values are case sensitive. |
isDefaultConfig
|
Mandatory | Boolean |
By default, the value is set to false. Specify true to make this the default configuration for group. |
API request
curl --location --request POST "<qualys_base_url>/csapi/v1.3/runtime/configs"
--header "Authorization: Bearer <token>"
--header "Content-Type: text/plain"
--data-raw "{
"name": "example configuration",
"policyId": "59c2dc5dc07f870001548489",
"logMode": "POLICY_MONITOR",
"isDefaultConfig": false
}"
Response
{
"id": "5ede0cfff42b100001905d58",
"created": "2020-06-08T10:03:43.507Z",
"updated": "2020-06-08T10:03:43.507Z",
"policyId": "59c2dc5dc07f870001548489",
"logMode": "POLICY_MONITOR",
"isDefaultConfig": false,
"name": "example configuration"
}
Was this topic helpful?