Audit Yaml
This contains APIs related to Audit Yaml as defined in Harness
Account Identifier for the Entity.
Returns the old Yaml and new Yaml.
GET /auditYaml?accountIdentifier=text&auditId=text HTTP/1.1
Host: platform-service-6ccff6c88d-fn7wc
Accept: */*
Returns the old Yaml and new Yaml.
{
"status": "SUCCESS",
"data": {
"oldYaml": "text",
"newYaml": "text"
},
"metaData": {},
"correlationId": "text"
}Computes field-level YAML diffs for the given audit event IDs in RFC 6902 JSON Patch format. Maximum 20 event IDs per request. Only whitelisted resource types return a diff entry; non-whitelisted events are silently omitted from the response.
Account Identifier for the Entity.
Request body for computing YAML diffs for audit events.
List of audit event IDs to compute YAML diffs for. Maximum 20 per request.
Returns a list of per-event diff results. Events with no yamlDiff record or unsupported resource types are absent.
POST /auditYaml/diffs?accountIdentifier=text HTTP/1.1
Host: platform-service-6ccff6c88d-fn7wc
Content-Type: application/json
Accept: */*
Content-Length: 26
{
"auditEventIds": [
"text"
]
}Returns a list of per-event diff results. Events with no yamlDiff record or unsupported resource types are absent.
{
"status": "SUCCESS",
"data": {
"diffs": [
{
"auditEventId": "text",
"diff": {},
"error": "text"
}
],
"batchTruncated": true
},
"metaData": {},
"correlationId": "text"
}Last updated
Was this helpful?