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

Git Sync Settings

Contains APIs related to Git Sync Settings

Get Git Sync Setting 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-settings
GET /gateway/ng/api/git-sync-settings?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 Setting in a scope

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

Account Identifier for the Entity.

Body

This contains details of Git Sync Settings

projectIdentifierstringRequired

Project Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

executeOnDelegatebooleanRequired

Specifies Connectivity Mode for Git Sync. If True, executes through Delegate, else executes through Platform. The default value is True

isGitSimplificationEnabledbooleanWrite-onlyOptional
isEnabledOnlyForFFbooleanWrite-onlyOptional
gitSimplificationEnabledbooleanOptional
enabledOnlyForFFbooleanOptional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/git-sync-settings
POST /gateway/ng/api/git-sync-settings?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 192

{
  "projectIdentifier": "text",
  "orgIdentifier": "text",
  "executeOnDelegate": true,
  "isGitSimplificationEnabled": true,
  "isEnabledOnlyForFF": true,
  "gitSimplificationEnabled": true,
  "enabledOnlyForFF": true
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

This updates the existing Git Sync settings within the scope. Only changing Connectivity Mode is allowed

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

Account Identifier for the Entity.

Body

This contains details of Git Sync Settings

projectIdentifierstringRequired

Project Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

executeOnDelegatebooleanRequired

Specifies Connectivity Mode for Git Sync. If True, executes through Delegate, else executes through Platform. The default value is True

isGitSimplificationEnabledbooleanWrite-onlyOptional
isEnabledOnlyForFFbooleanWrite-onlyOptional
gitSimplificationEnabledbooleanOptional
enabledOnlyForFFbooleanOptional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/git-sync-settings
PUT /gateway/ng/api/git-sync-settings?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 192

{
  "projectIdentifier": "text",
  "orgIdentifier": "text",
  "executeOnDelegate": true,
  "isGitSimplificationEnabled": true,
  "isEnabledOnlyForFF": true,
  "gitSimplificationEnabled": true,
  "enabledOnlyForFF": true
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Last updated

Was this helpful?