Audit
This contains APIs related to Audit as defined in Harness
Account Identifier for the Entity.
Page Index of the results to fetch.Default Value: 0
0Results per page(max 100)Default Value: 50
50Page Token of the next results to fetch.Default Value: ''
This contains the Audit Event filter information. This is used to filter Audit Events depending on the information provided.
Include audits from child scopes
trueList of Actions
Pre-defined Filter
Used to specify a start time for retrieving Audit events that occurred at or after the time indicated.
Used to specify the end time for retrieving Audit events that occurred at or before the time indicated.
This specifies the corresponding Entity of the filter.
Bad Request
This is Failure entity as defied in Harness
Internal server error
This has a paginated list of Audit Events.
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"
}
]
}Account Identifier for the Entity.
Page Index of the results to fetch.Default Value: 0
0Results per page(max 100)Default Value: 50
50Page Token of the next results to fetch.Default Value: ''
This contains the Audit Event filter information. This is used to filter Audit Events depending on the information provided.
Include audits from child scopes
trueList of Actions
Pre-defined Filter
Used to specify a start time for retrieving Audit events that occurred at or after the time indicated.
Used to specify the end time for retrieving Audit events that occurred at or before the time indicated.
This specifies the corresponding Entity of the filter.
Bad Request
This is Failure entity as defied in Harness
Internal server error
This has a paginated list of Audit Events.
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?