Rule Sets
Rule sets serve as logical bindings on top of individual rules that help you organize and manage rules.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns newly created rule Set
POST /gateway/ccm/api/governance/ruleSet?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 408
{
"ruleSet": {
"uuid": "text",
"accountId": "text",
"name": "text",
"description": "text",
"tags": [
"text"
],
"orgIdentifier": "text",
"projectIdentifier": "text",
"cloudProvider": "AWS",
"rulesIdentifier": [
"text"
],
"isOOTB": true,
"createdAt": 1,
"lastUpdatedAt": 1,
"createdBy": {
"uuid": "text",
"name": "text",
"email": "text",
"externalUserId": "text"
},
"lastUpdatedBy": {
"uuid": "text",
"name": "text",
"email": "text",
"externalUserId": "text"
}
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Update a Rule set
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
update a existing Rule Set
PUT /gateway/ccm/api/governance/ruleSet?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 408
{
"ruleSet": {
"uuid": "text",
"accountId": "text",
"name": "text",
"description": "text",
"tags": [
"text"
],
"orgIdentifier": "text",
"projectIdentifier": "text",
"cloudProvider": "AWS",
"rulesIdentifier": [
"text"
],
"isOOTB": true,
"createdAt": 1,
"lastUpdatedAt": 1,
"createdBy": {
"uuid": "text",
"name": "text",
"email": "text",
"externalUserId": "text"
},
"lastUpdatedBy": {
"uuid": "text",
"name": "text",
"email": "text",
"externalUserId": "text"
}
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Delete a Rule set for the given a ID.
Unique identifier for the rule
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
A boolean whether the delete was successful or not
DELETE /gateway/ccm/api/governance/ruleSet/{ruleSetId}?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}List all rule sets
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns List of rule sets
POST /gateway/ccm/api/governance/ruleSet/list?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 270
{
"ruleSet": {
"accountId": "text",
"isOOTB": true,
"orgIdentifier": "text",
"projectIdentifier": "text",
"tags": "text",
"cloudProvider": "text",
"ruleSetIds": [
"text"
],
"ruleIds": [
"text"
],
"search": "text",
"limit": 1,
"offset": 1,
"orderBy": [
{
"field": "PERSPECTIVE_ID",
"order": "ASCENDING"
}
]
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?