Rule Executions
This contains APIs related to Rule Executions
Cancels the caller's in-progress evaluation export for a rule and discards any partial GCS artifact. A new export can be started afterwards.
Account Identifier for the Entity.
Rule id whose in-progress export to cancel
Bad Request
This is Failure entity as defied in Harness
Internal server error
Cancelled export job
POST /governance/execution/export/job/cancel?accountIdentifier=text&ruleId=text HTTP/1.1
Host: app.harness.io
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns the caller's latest evaluation export job for a rule (in-flight, failed, or still-downloadable completed). Use for polling and refresh recovery. Returns null when none exists or the latest job has expired.
Account Identifier for the Entity.
Rule id whose latest export job to return
Bad Request
This is Failure entity as defied in Harness
Internal server error
Latest export job or null
GET /governance/execution/export/job?accountIdentifier=text&ruleId=text HTTP/1.1
Host: app.harness.io
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Create an asynchronous evaluation export job and return immediately with a job id
Account Identifier for the Entity.
Export job accepted
Bad Request
Internal server error
POST /governance/execution/export/job?accountIdentifier=text HTTP/1.1
Host: app.harness.io
Content-Type: application/json
Accept: */*
Content-Length: 786
{
"ruleExecutionFilter": {
"accountId": "text",
"targetAccount": [
"text"
],
"executionStatus": "FAILED",
"region": [
"text"
],
"cloudProvider": "AWS",
"cloudProviders": [
"AWS"
],
"ruleIds": [
"text"
],
"ruleSetIds": [
"text"
],
"executionIds": [
"text"
],
"ruleEnforcementId": [
"text"
],
"ruleEnforcementRecommendationId": [
"text"
],
"time": [
{
"operator": "NOT_IN",
"timestamp": 1
}
],
"limit": 1,
"offset": 1,
"savings": 1,
"ruleExecutionSortType": "COST",
"sortOrder": "ASCENDING",
"resourceCountGreaterThanZero": true,
"costType": "POTENTIAL",
"isDryRun": true,
"ccmTagDTOS": [
{
"key": "text",
"value": "text"
}
],
"ccmCostCategoryCostBucketsDTOS": [
{
"costCategory": "text",
"costBucket": [
"text"
]
}
]
},
"includeMetadataFiles": true,
"includeResourceFiles": true,
"includeLogFiles": true,
"includeActionFiles": true,
"includeRuleYaml": true,
"includeInCsvFormat": true
}Export evaluations data
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns signed URL for download
POST /governance/execution/export?accountIdentifier=text HTTP/1.1
Host: app.harness.io
Content-Type: application/json
Accept: */*
Content-Length: 786
{
"ruleExecutionFilter": {
"accountId": "text",
"targetAccount": [
"text"
],
"executionStatus": "FAILED",
"region": [
"text"
],
"cloudProvider": "AWS",
"cloudProviders": [
"AWS"
],
"ruleIds": [
"text"
],
"ruleSetIds": [
"text"
],
"executionIds": [
"text"
],
"ruleEnforcementId": [
"text"
],
"ruleEnforcementRecommendationId": [
"text"
],
"time": [
{
"operator": "NOT_IN",
"timestamp": 1
}
],
"limit": 1,
"offset": 1,
"savings": 1,
"ruleExecutionSortType": "COST",
"sortOrder": "ASCENDING",
"resourceCountGreaterThanZero": true,
"costType": "POTENTIAL",
"isDryRun": true,
"ccmTagDTOS": [
{
"key": "text",
"value": "text"
}
],
"ccmCostCategoryCostBucketsDTOS": [
{
"costCategory": "text",
"costBucket": [
"text"
]
}
]
},
"includeMetadataFiles": true,
"includeResourceFiles": true,
"includeLogFiles": true,
"includeActionFiles": true,
"includeRuleYaml": true,
"includeInCsvFormat": true
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Fetch RuleExecutions
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns List of RuleExecution
POST /governance/execution/list?accountIdentifier=text HTTP/1.1
Host: app.harness.io
Content-Type: application/json
Accept: */*
Content-Length: 634
{
"policyExecutionFilter": {
"accountId": "text",
"targetAccount": [
"text"
],
"executionStatus": "FAILED",
"region": [
"text"
],
"cloudProvider": "AWS",
"cloudProviders": [
"AWS"
],
"ruleIds": [
"text"
],
"ruleSetIds": [
"text"
],
"executionIds": [
"text"
],
"ruleEnforcementId": [
"text"
],
"ruleEnforcementRecommendationId": [
"text"
],
"time": [
{
"operator": "NOT_IN",
"timestamp": 1
}
],
"limit": 1,
"offset": 1,
"savings": 1,
"ruleExecutionSortType": "COST",
"sortOrder": "ASCENDING",
"resourceCountGreaterThanZero": true,
"costType": "POTENTIAL",
"isDryRun": true,
"ccmTagDTOS": [
{
"key": "text",
"value": "text"
}
],
"ccmCostCategoryCostBucketsDTOS": [
{
"costCategory": "text",
"costBucket": [
"text"
]
}
]
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Rule Execution Filter Values
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns filter values for Rule Execution.
GET /governance/execution/filter-value?accountIdentifier=text HTTP/1.1
Host: app.harness.io
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Return rule execution
GET /governance/execution/{ruleExecutionId}?accountIdentifier=text HTTP/1.1
Host: app.harness.io
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Return actioned resources for a rule execution
GET /governance/actionedResources/{ruleExecutionId}?accountIdentifier=text HTTP/1.1
Host: app.harness.io
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Account Identifier for the Entity.
Select filetype, by default RESOURCE file will be selected
Bad Request
This is Failure entity as defied in Harness
Internal server error
Return resources/logs for a rule execution
GET /governance/execution/details/{ruleExecutionId}?accountIdentifier=text HTTP/1.1
Host: app.harness.io
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Return resource for a rule execution
GET /governance/granularStatus/{ruleExecutionId}?accountIdentifier=text HTTP/1.1
Host: app.harness.io
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Return logs for a rule execution
GET /governance/logs/{ruleExecutionId}?accountIdentifier=text HTTP/1.1
Host: app.harness.io
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Return governance rule yaml for a rule execution
GET /governance/ruleYaml/{ruleExecutionId}?accountIdentifier=text HTTP/1.1
Host: app.harness.io
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Return resources for a rule execution
GET /governance/status/{ruleExecutionId}?accountIdentifier=text HTTP/1.1
Host: app.harness.io
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Find last execution given rules list
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns List of RuleExecutions.
POST /governance/execution/ruleLastExecution?accountIdentifier=text HTTP/1.1
Host: app.harness.io
Content-Type: application/json
Accept: */*
Content-Length: 8
[
"text"
]{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Account Identifier for the Entity.
Job enqueued to refresh cost for a rule execution
Bad Request
Internal server error
GET /governance/execution/refreshCost/{ruleExecutionId}?accountIdentifier=text HTTP/1.1
Host: app.harness.io
Accept: */*
Rule Execution Tag Filter Values
Account Identifier for the Entity.
This has the query to list the tags for RuleExecution
tagKey
search
limit
offset
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns tag filter values for Rule Execution.
POST /governance/execution/filter-value/tags?accountIdentifier=text HTTP/1.1
Host: app.harness.io
Content-Type: application/json
Accept: */*
Content-Length: 99
{
"tagKey": "text",
"search": "text",
"limit": 1,
"offset": 1,
"time": [
{
"operator": "NOT_IN",
"timestamp": 1
}
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?