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

Audit

This contains APIs related to Audit as defined in Harness

List Audit Events

post
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

pageIndexinteger · int32Optional

Page Index of the results to fetch.Default Value: 0

Default: 0
pageSizeinteger · int32 · max: 100Optional

Results per page(max 100)Default Value: 50

Default: 50
pageTokenstringOptional

Page Token of the next results to fetch.Default Value: ''

Body

This contains the Audit Event filter information. This is used to filter Audit Events depending on the information provided.

includeChildScopesbooleanOptional

Include audits from child scopes

Default: true
actionsstring[]Optional

List of Actions

staticFilterstring · enumOptional

Pre-defined Filter

Possible values:
startTimeinteger · int64Optional

Used to specify a start time for retrieving Audit events that occurred at or after the time indicated.

endTimeinteger · int64Optional

Used to specify the end time for retrieving Audit events that occurred at or before the time indicated.

filterTypestring · enumOptional

This specifies the corresponding Entity of the filter.

Possible values:
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/audits/list
POST /audits/list?accountIdentifier=text HTTP/1.1
Host: platform-service-6ccff6c88d-fn7wc
Content-Type: application/json
Accept: */*
Content-Length: 531

{
  "scopes": [
    {
      "accountIdentifier": "text",
      "orgIdentifier": "text",
      "projectIdentifier": "text",
      "labels": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      }
    }
  ],
  "resources": [
    {
      "type": "text",
      "identifier": "text",
      "labels": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      }
    }
  ],
  "includeChildScopes": true,
  "modules": [
    "CD"
  ],
  "actions": [
    "text"
  ],
  "environments": [
    {
      "type": "PreProduction",
      "identifier": "text"
    }
  ],
  "principals": [
    {
      "type": "USER",
      "identifier": "text"
    }
  ],
  "staticFilter": "EXCLUDE_LOGIN_EVENTS",
  "startTime": 1,
  "endTime": 1,
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "filterType": "Audit"
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

List Audit Events

post
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

pageIndexinteger · int32Optional

Page Index of the results to fetch.Default Value: 0

Default: 0
pageSizeinteger · int32 · max: 100Optional

Results per page(max 100)Default Value: 50

Default: 50
pageTokenstringOptional

Page Token of the next results to fetch.Default Value: ''

Body

This contains the Audit Event filter information. This is used to filter Audit Events depending on the information provided.

includeChildScopesbooleanOptional

Include audits from child scopes

Default: true
actionsstring[]Optional

List of Actions

staticFilterstring · enumOptional

Pre-defined Filter

Possible values:
startTimeinteger · int64Optional

Used to specify a start time for retrieving Audit events that occurred at or after the time indicated.

endTimeinteger · int64Optional

Used to specify the end time for retrieving Audit events that occurred at or before the time indicated.

filterTypestring · enumOptional

This specifies the corresponding Entity of the filter.

Possible values:
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/audits/listV2
POST /audits/listV2?accountIdentifier=text HTTP/1.1
Host: platform-service-6ccff6c88d-fn7wc
Content-Type: application/json
Accept: */*
Content-Length: 531

{
  "scopes": [
    {
      "accountIdentifier": "text",
      "orgIdentifier": "text",
      "projectIdentifier": "text",
      "labels": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      }
    }
  ],
  "resources": [
    {
      "type": "text",
      "identifier": "text",
      "labels": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      }
    }
  ],
  "includeChildScopes": true,
  "modules": [
    "CD"
  ],
  "actions": [
    "text"
  ],
  "environments": [
    {
      "type": "PreProduction",
      "identifier": "text"
    }
  ],
  "principals": [
    {
      "type": "USER",
      "identifier": "text"
    }
  ],
  "staticFilter": "EXCLUDE_LOGIN_EVENTS",
  "startTime": 1,
  "endTime": 1,
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "filterType": "Audit"
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Last updated

Was this helpful?