Git Sync Errors

Contains APIs related to Git Sync Errors

Get Errors Count for the given scope, Repo and Branch

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
string

Account Identifier for the Entity

orgIdentifier
string

Organization Identifier for the Entity

projectIdentifier
string

Project Identifier for the Entity

searchTerm
string

Search Term

branch
string

Branch Name

repoIdentifier
string

Git Sync Config Id

getDefaultFromOtherRepo
boolean

if true, return all the default entities

Responses
400

Bad Request

500

Internal Server Error

default

Count of both Git to Harness Errors and Connectivity Errors

get/ng/api/git-sync-errors/count
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/ng/api/git-sync-errors/count?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&searchTerm=string&branch=string&repoIdentifier=string&getDefaultFromOtherRepo=true' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Lists Git to Harness Errors by file or connectivity errors for the given scope, Repo and Branch

Request
Security:
ApiKey (readwrite)
query Parameters
pageIndex
integer <int32>
Default: 0

Indicates the number of pages. Results for these pages will be retrieved.

pageSize
integer <int32>
Default: 50

The number of the elements to fetch

Array of objects (SortOrder)

Sort criteria for the elements.

accountIdentifier
string

Account Identifier for the Entity

orgIdentifier
string

Organization Identifier for the Entity

projectIdentifier
string

Project Identifier for the Entity

searchTerm
string

Search Term

branch
string

Branch Name

repoIdentifier
string

Git Sync Config Id

getDefaultFromOtherRepo
boolean

if true, return all the default entities

gitToHarness
boolean
Default: true

This specifies which errors to show - (Git to Harness or Connectivity), Put true to show Git to Harness Errors

Responses
400

Bad Request

500

Internal Server Error

default

Paginated list of Git to Harness Errors by file or connectivity errors

get/ng/api/git-sync-errors
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/ng/api/git-sync-errors?pageIndex=0&pageSize=50&sortOrders=%5Bobject%20Object%5D&accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&searchTerm=string&branch=string&repoIdentifier=string&getDefaultFromOtherRepo=true&gitToHarness=true' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Lists Git to Harness Errors grouped by Commits for the given scope, Repo and Branch

Request
Security:
ApiKey (readwrite)
query Parameters
pageIndex
integer <int32>
Default: 0

Indicates the number of pages. Results for these pages will be retrieved.

pageSize
integer <int32>
Default: 50

The number of the elements to fetch

Array of objects (SortOrder)

Sort criteria for the elements.

accountIdentifier
string

Account Identifier for the Entity

orgIdentifier
string

Organization Identifier for the Entity

projectIdentifier
string

Project Identifier for the Entity

searchTerm
string

Search Term

branch
string

Branch Name

repoIdentifier
string

Git Sync Config Id

getDefaultFromOtherRepo
boolean

if true, return all the default entities

numberOfErrorsInSummary
integer <int32>
Default: 5

Number of errors that will be displayed in the summary

Responses
400

Bad Request

500

Internal Server Error

default

Paginated list of Git to Harness Errors grouped by Commit

get/ng/api/git-sync-errors/aggregate
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/ng/api/git-sync-errors/aggregate?pageIndex=0&pageSize=50&sortOrders=%5Bobject%20Object%5D&accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&searchTerm=string&branch=string&repoIdentifier=string&getDefaultFromOtherRepo=true&numberOfErrorsInSummary=5' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Lists Git to Harness Errors for the given Commit Id

Request
Security:
ApiKey (readwrite)
path Parameters
commitId
required
string

Commit Id

query Parameters
pageIndex
integer <int32>
Default: 0

Indicates the number of pages. Results for these pages will be retrieved.

pageSize
integer <int32>
Default: 50

The number of the elements to fetch

Array of objects (SortOrder)

Sort criteria for the elements.

accountIdentifier
string

Account Identifier for the Entity

orgIdentifier
string

Organization Identifier for the Entity

projectIdentifier
string

Project Identifier for the Entity

branch
string

Branch Name

repoIdentifier
string

Git Sync Config Id

getDefaultFromOtherRepo
boolean

if true, return all the default entities

Responses
400

Bad Request

500

Internal Server Error

default

Paginated list of Git to Harness Errors for given Commit Id

get/ng/api/git-sync-errors/commits/{commitId}
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/ng/api/git-sync-errors/commits/:commitId?pageIndex=0&pageSize=50&sortOrders=%5Bobject%20Object%5D&accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&branch=string&repoIdentifier=string&getDefaultFromOtherRepo=true' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}