Git Branches
Contains APIs related to Git Sync Branch
Git Sync Config Id. [Applicable for Old Git Sync only]
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Name of the branch.
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns True if the new Git Branch is successfully synced into Harness
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"
}
]
}Git Sync Config Id. [Applicable for Old Git Sync only]
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Page Index of the results to fetch.Default Value: 0
0Results per page
Search Term.
""Used to filter out Synced and Unsynced branches
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns a list of branches along with their status within the given scope
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?