Git Sync
Contains APIs for CRUD on Git Sync
Project Identifier for the Entity.
Organization Identifier for the Entity.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
List of Git Sync Config for the given scope
GET /gateway/ng/api/git-sync?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"
}
]
}Account Identifier for the Entity.
This contains details of Git Sync Config
Git Sync Config Id. [Applicable for Old Git Sync only]
Name of the repository. Any leading/trailing spaces will be removed.
Project Identifier for the Entity.
Organization Identifier for the Entity.
Id of the Connector referenced in Git
URL of the repository. Any leading/trailing spaces will be removed.
Name of the branch. Any leading/trailing spaces will be removed.
Connector Type
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Successfully created Git Sync Config
POST /gateway/ng/api/git-sync?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 239
{
"identifier": "text",
"name": "text",
"projectIdentifier": "text",
"orgIdentifier": "text",
"gitConnectorRef": "text",
"repo": "text",
"branch": "text",
"gitConnectorType": "K8sCluster",
"gitSyncFolderConfigDTOs": [
{
"rootFolder": "text",
"isDefault": true
}
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Account Identifier for the Entity.
This contains details of Git Sync Config
Git Sync Config Id. [Applicable for Old Git Sync only]
Name of the repository. Any leading/trailing spaces will be removed.
Project Identifier for the Entity.
Organization Identifier for the Entity.
Id of the Connector referenced in Git
URL of the repository. Any leading/trailing spaces will be removed.
Name of the branch. Any leading/trailing spaces will be removed.
Connector Type
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Updated Git Sync Config
PUT /gateway/ng/api/git-sync?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 239
{
"identifier": "text",
"name": "text",
"projectIdentifier": "text",
"orgIdentifier": "text",
"gitConnectorRef": "text",
"repo": "text",
"branch": "text",
"gitConnectorType": "K8sCluster",
"gitSyncFolderConfigDTOs": [
{
"rootFolder": "text",
"isDefault": true
}
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Account Identifier for the Entity.
Project Identifier for the Entity.
Organization Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Result of whether Git Sync is enabled for the scope
GET /gateway/ng/api/git-sync/git-sync-enabled?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]
Folder Id
Project Identifier for the Entity.
Organization Identifier for the Entity.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Updated Git Sync Config default root folder
PUT /gateway/ng/api/git-sync/{identifier}/folder/{folderIdentifier}/default?accountId=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?