Updates a configuration in your account. If a new configuration is set to Default, then the previous Default configuration will be revoked.
Parameter | Mandatory/Optional | Data Type | Description |
---|---|---|---|
configId |
Mandatory | string |
The ID of the configuration to update. |
name |
Optional | string |
Specify a name for the 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 |
Set to false by default. Specify true to make this the default configuration for group. |
API request
curl --location --request PUT "<qualys_base_url>/csapi/v1.3/runtime/configs/5ede0cfff42b100001905d58"
--header "Authorization: Bearer <token>"
--header "Content-Type: text/plain"
--data-raw "{
"name": "example configuration",
"policyId": "59c2dc5dc07f870001548489",
"logMode": "ALL",
"isDefaultConfig": false,
}"
Response
{
"id": "5ede0cfff42b100001905d58",
"created": "2020-06-08T10:03:43.507Z",
"updated": "2020-06-08T10:07:44.249Z",
"policyId": "5e18c86e4e08ce0001368940",
"logMode": "ALL",
"isDefaultConfig": false,
"name": "example configuration"
}
Was this topic helpful?