Remediation Policies
Select
SaaS
Customer Managed
Create/Update/Delete/View Remediation policies
- application/json
Request Body
- policyId int32
Unique identifier for policy
- policyName string
policy name
- policyDescription string
policy description
- rule string
Query or Rule criteria for policy
- systemGenerated boolean
Indicating if policy is system generated or custom
- criticality string
Possible values: [
HIGH
,MEDIUM
,LOW
]Criticality level
- creationTime int32
creation time of policy
- modifiedTime int32
modified time of policy
- remedialAction RemediationActionEnum
Possible values: [
Move
,Delete
] owners object[]
assignees object[]
- category RemediationPolicyCategory
Possible values: [
EXPIRATION
,PRIVACY
,REDUNDANT
]
Responses
- 200
- 400
- 403
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
- errorCode RemediationPolicyErrorCode
Possible values: [
NO_ERROR
,INVALID_INPUT
,UNKNOWN_ERROR
,INTERNAL_SERVER_ERROR
] - errorMessage string
{
"errorCode": "NO_ERROR",
"errorMessage": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
- errorCode RemediationPolicyErrorCode
Possible values: [
NO_ERROR
,INVALID_INPUT
,UNKNOWN_ERROR
,INTERNAL_SERVER_ERROR
] - errorMessage string
{
"errorCode": "NO_ERROR",
"errorMessage": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
- errorCode RemediationPolicyErrorCode
Possible values: [
NO_ERROR
,INVALID_INPUT
,UNKNOWN_ERROR
,INTERNAL_SERVER_ERROR
] - errorMessage string
{
"errorCode": "NO_ERROR",
"errorMessage": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
- errorCode RemediationPolicyErrorCode
Possible values: [
NO_ERROR
,INVALID_INPUT
,UNKNOWN_ERROR
,INTERNAL_SERVER_ERROR
] - errorMessage string
{
"errorCode": "NO_ERROR",
"errorMessage": "string"
}
POST /v4/remediationpolicy
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/RemediationPolicy' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"policyId": 0,
"policyName": "string",
"policyDescription": "string",
"rule": "string",
"systemGenerated": true,
"criticality": "HIGH",
"creationTime": 0,
"modifiedTime": 0,
"remedialAction": "Move",
"owners": [
{
"id": 0,
"name": "string"
}
],
"assignees": [
{
"id": 0,
"name": "string"
}
],
"category": "EXPIRATION"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/RemediationPolicy' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"policyId": 0,
"policyName": "string",
"policyDescription": "string",
"rule": "string",
"systemGenerated": true,
"criticality": "HIGH",
"creationTime": 0,
"modifiedTime": 0,
"remedialAction": "Move",
"owners": [
{
"id": 0,
"name": "string"
}
],
"assignees": [
{
"id": 0,
"name": "string"
}
],
"category": "EXPIRATION"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/RemediationPolicy' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"policyId": 0,
"policyName": "string",
"policyDescription": "string",
"rule": "string",
"systemGenerated": true,
"criticality": "HIGH",
"creationTime": 0,
"modifiedTime": 0,
"remedialAction": "Move",
"owners": [
{
"id": 0,
"name": "string"
}
],
"assignees": [
{
"id": 0,
"name": "string"
}
],
"category": "EXPIRATION"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/RemediationPolicy' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"policyId": 0,
"policyName": "string",
"policyDescription": "string",
"rule": "string",
"systemGenerated": true,
"criticality": "HIGH",
"creationTime": 0,
"modifiedTime": 0,
"remedialAction": "Move",
"owners": [
{
"id": 0,
"name": "string"
}
],
"assignees": [
{
"id": 0,
"name": "string"
}
],
"category": "EXPIRATION"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/RemediationPolicy' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"policyId": 0,
"policyName": "string",
"policyDescription": "string",
"rule": "string",
"systemGenerated": true,
"criticality": "HIGH",
"creationTime": 0,
"modifiedTime": 0,
"remedialAction": "Move",
"owners": [
{
"id": 0,
"name": "string"
}
],
"assignees": [
{
"id": 0,
"name": "string"
}
],
"category": "EXPIRATION"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/RemediationPolicy' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"policyId": 0,
"policyName": "string",
"policyDescription": "string",
"rule": "string",
"systemGenerated": true,
"criticality": "HIGH",
"creationTime": 0,
"modifiedTime": 0,
"remedialAction": "Move",
"owners": [
{
"id": 0,
"name": "string"
}
],
"assignees": [
{
"id": 0,
"name": "string"
}
],
"category": "EXPIRATION"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/RemediationPolicy' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"policyId": 0,
"policyName": "string",
"policyDescription": "string",
"rule": "string",
"systemGenerated": true,
"criticality": "HIGH",
"creationTime": 0,
"modifiedTime": 0,
"remedialAction": "Move",
"owners": [
{
"id": 0,
"name": "string"
}
],
"assignees": [
{
"id": 0,
"name": "string"
}
],
"category": "EXPIRATION"
}'