Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Audit Yaml

This contains APIs related to Audit Yaml as defined in Harness

Gets the YamlDiff of the Audit.

get
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

auditIdstringRequired
Responses
default

Returns the old Yaml and new Yaml.

statusstring · enumOptionalPossible values:
metaDataobjectOptional
correlationIdstringOptional
get/auditYaml
GET /auditYaml?accountIdentifier=text&auditId=text HTTP/1.1
Host: platform-service-6ccff6c88d-fn7wc
Accept: */*
default

Returns the old Yaml and new Yaml.

{
  "status": "SUCCESS",
  "data": {
    "oldYaml": "text",
    "newYaml": "text"
  },
  "metaData": {},
  "correlationId": "text"
}

Get YAML Diffs for Audit Events

post

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.

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Body

Request body for computing YAML diffs for audit events.

auditEventIdsstring[] · max: 20Required

List of audit event IDs to compute YAML diffs for. Maximum 20 per request.

Responses
default

Returns a list of per-event diff results. Events with no yamlDiff record or unsupported resource types are absent.

statusstring · enumOptionalPossible values:
metaDataobjectOptional
correlationIdstringOptional
post/auditYaml/diffs
POST /auditYaml/diffs?accountIdentifier=text HTTP/1.1
Host: platform-service-6ccff6c88d-fn7wc
Content-Type: application/json
Accept: */*
Content-Length: 26

{
  "auditEventIds": [
    "text"
  ]
}
default

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?