Retrieve GitOps logs
GET/api/v1/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
- 429
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
}
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
Response Headers
Retry-After
integer
The number of seconds until the rate limiting resets.
- application/problem+json
- Schema
- Example (from schema)
Schema
The number of seconds until the rate limiting resets.
Possible values: >= 100
and <= 599
, [429
]
{
"detail": "string",
"instance": "string",
"retryAfter": 0,
"status": 429,
"title": "string",
"type": "string"
}