GitOps Logs
Use these operations to interact with GitOps logs in Cortex.
Required permissions
Your API key must have the View GitOps logs
permission.
Operations
API key must have the View GitOps logs
permission.
Authorizations
Query parameters
filestringOptional
File name the within repository
repositorystringOptional
Repository name as defined in your Git provider
shastringOptional
Commit SHA
errorOnlybooleanOptional
Filter by error only
operationstring · enumOptionalPossible values:
Filter by operation
pageinteger · int32RequiredDefault:
Page number to return, 0-indexed. Default 0.
0
pageSizeinteger · int32RequiredDefault:
Number of results to return per page, between 1 and 1000. Default 250.
250
fileNamestringOptional
scorecardTagstringRequired
Unique tag for the Scorecard.
workflowTagstringOptional
tagstringRequired
The entity tag (x-cortex-tag
) that identifies the entity.
Responses
200
Retrieve GitOps logs based on given criteria
application/json
429
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
application/problem+json
get
GET /api/v1/gitops-logs HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"logs": [
{
"commit": "text",
"dateCreated": "2025-06-28T19:25:44.176Z",
"files": [
{
"entity": {
"name": "text",
"operation": "CREATED",
"tag": "text",
"type": "text"
},
"error": {
"errorType": "text",
"message": "text"
},
"fileName": "text",
"isPackageFile": true,
"scorecard": {
"name": "text",
"operation": "CREATED",
"tag": "text"
},
"workflow": {
"name": "text",
"operation": "CREATED",
"tag": "text"
}
}
],
"repository": {
"provider": "GITHUB",
"repositoryName": "cortexapps/catalog"
}
}
],
"page": 1,
"total": 1,
"totalPages": 1
}
Last updated
Was this helpful?