Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Git Branches

Contains APIs related to Git Sync Branch

Sync the content of new Git Branch into harness with Git Sync Config Id

post
Query parameters
repoIdentifierstring · min: 1 · max: 2147483647Required

Git Sync Config Id. [Applicable for Old Git Sync only]

accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

branchstringOptional

Name of the branch.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/git-sync-branch/sync
POST /gateway/ng/api/git-sync-branch/sync?repoIdentifier=text&accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Lists branches with their status(Synced, Unsynced) by Git Sync Config Id for the given scope

get
Query parameters
yamlGitConfigIdentifierstring · min: 1 · max: 2147483647Required

Git Sync Config Id. [Applicable for Old Git Sync only]

accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

pageinteger · int32Optional

Page Index of the results to fetch.Default Value: 0

Default: 0
sizeinteger · int32 · max: 100Optional

Results per page

searchTermstringOptional

Search Term.

Default: ""
branchSyncStatusstring · enumOptional

Used to filter out Synced and Unsynced branches

Possible values:
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/git-sync-branch/listBranchesWithStatus
GET /gateway/ng/api/git-sync-branch/listBranchesWithStatus?yamlGitConfigIdentifier=text&accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Last updated

Was this helpful?