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

Git Sync

Contains APIs for CRUD on Git Sync

Lists Git Sync Config for the given scope

get
Query parameters
projectIdentifierstringOptional

Project Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

accountIdentifierstring · min: 1 · max: 2147483647Required

Account Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/git-sync
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"
    }
  ]
}

Creates Git Sync Config in given scope

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

Account Identifier for the Entity.

Body

This contains details of Git Sync Config

identifierstring · min: 1 · max: 2147483647Required

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

namestring · min: 1 · max: 2147483647Required

Name of the repository. Any leading/trailing spaces will be removed.

projectIdentifierstringOptional

Project Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

gitConnectorRefstring · min: 1 · max: 2147483647Required

Id of the Connector referenced in Git

repostring · min: 1 · max: 2147483647Required

URL of the repository. Any leading/trailing spaces will be removed.

branchstring · min: 1 · max: 2147483647Required

Name of the branch. Any leading/trailing spaces will be removed.

gitConnectorTypestring · enumRequired

Connector Type

Possible values:
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/git-sync
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"
    }
  ]
}

Update existing Git Sync Config by Identifier

put
Query parameters
accountIdentifierstring · min: 1 · max: 2147483647Required

Account Identifier for the Entity.

Body

This contains details of Git Sync Config

identifierstring · min: 1 · max: 2147483647Required

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

namestring · min: 1 · max: 2147483647Required

Name of the repository. Any leading/trailing spaces will be removed.

projectIdentifierstringOptional

Project Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

gitConnectorRefstring · min: 1 · max: 2147483647Required

Id of the Connector referenced in Git

repostring · min: 1 · max: 2147483647Required

URL of the repository. Any leading/trailing spaces will be removed.

branchstring · min: 1 · max: 2147483647Required

Name of the branch. Any leading/trailing spaces will be removed.

gitConnectorTypestring · enumRequired

Connector Type

Possible values:
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/git-sync
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"
    }
  ]
}

Check whether Git Sync is enabled for given scope or not

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

Account Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/git-sync/git-sync-enabled
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"
    }
  ]
}

Update existing Git Sync Config default root folder by Identifier

put
Path parameters
identifierstring · min: 1 · max: 2147483647Required

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

folderIdentifierstring · min: 1 · max: 2147483647Required

Folder Id

Query parameters
projectIdstringOptional

Project Identifier for the Entity.

organizationIdstringOptional

Organization Identifier for the Entity.

accountIdstring · min: 1 · max: 2147483647Required

Account Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/git-sync/{identifier}/folder/{folderIdentifier}/default
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?