Retrieve GitOps logs. API key must have the `View GitOps logs` permission.
GET/api/v1/gitops-logs
Retrieve GitOps logs. API key must have the View GitOps logs
permission.
Request
Query Parameters
File name the within repository
Repository name as defined in your Git provider
Commit SHA
Filter by error only
Possible values: [CREATED
, UPDATED
, ARCHIVED
, NO_CHANGE
]
Filter by operation
Default value: 0
Page number to return, 0-indexed. Default 0.
Default value: 250
Number of results to return per page, between 1 and 1000. Default 250.
Responses
- 200
Retrieve GitOps logs based on given criteria
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
logs
object[]
required
files
object[]
required
entity
object
Possible values: [CREATED
, UPDATED
, ARCHIVED
, NO_CHANGE
]
error
object
scorecard
object
Possible values: [CREATED
, UPDATED
, ARCHIVED
, NO_CHANGE
]
repository
object
required
Possible values: [AZURE_DEVOPS
, BITBUCKET
, GITHUB
, GITLAB
]
Name of the Git provider
Repository name as defined in your Git provider
Current page number, 0-indexed
Total number of results
Total number of pages
{
"logs": [
{
"commit": "string",
"dateCreated": "2024-07-29T15:51:28.071Z",
"files": [
{
"entity": {
"name": "string",
"operation": "CREATED",
"tag": "string",
"type": "string"
},
"error": {
"errorType": "string",
"message": "string"
},
"fileName": "string",
"isPackageFile": true,
"scorecard": {
"name": "string",
"operation": "CREATED",
"tag": "string"
}
}
],
"repository": {
"provider": "GITHUB",
"repositoryName": "cortexapps/catalog"
}
}
],
"page": 0,
"total": 0,
"totalPages": 0
}