Bad Request
Internal server error
Returns the list of Filters of type Audit
curl -i -X GET \ 'https://app.harness.io/audit/api/auditFilters?pageIndex=0&pageSize=100&accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&searchTerm=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
This is the updated Filter. This should have all the fields not just the updated ones
Bad Request
Internal server error
Returns the updated Filter
{- "name": "string",
- "identifier": "string",
- "orgIdentifier": "string",
- "projectIdentifier": "string",
- "filterProperties": {
- "tags": {
- "property1": "string",
- "property2": "string"
}, - "filterType": "Connector"
}, - "filterVisibility": "EveryOne"
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Details of the Filter to create
Bad Request
Internal server error
Returns created Filter
{- "name": "string",
- "identifier": "string",
- "orgIdentifier": "string",
- "projectIdentifier": "string",
- "filterProperties": {
- "tags": {
- "property1": "string",
- "property2": "string"
}, - "filterType": "Connector"
}, - "filterVisibility": "EveryOne"
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal server error
Returns Filter of type Audit and having filterIdentifier as specified in request
curl -i -X GET \ 'https://app.harness.io/audit/api/auditFilters/{identifier}?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal server error
Boolean status whether request was successful or not
curl -i -X DELETE \ 'https://app.harness.io/audit/api/auditFilters/{identifier}?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}