git-sync

Update Git Sync default by id

Request
Security:
ApiKey (readwrite)
path Parameters
identifier
required
string
folderIdentifier
required
string
query Parameters
projectId
string
organizationId
string
accountId
string
Responses
200

successful operation

put/ng/api/git-sync/{identifier}/folder/{folderIdentifier}/default
Request samples
curl -i -X PUT \
  'https://app.harness.io/gateway/ng/api/git-sync/:identifier/folder/:folderIdentifier/default?projectId=string&organizationId=string&accountId=string' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "identifier": "string",
  • "name": "string",
  • "projectIdentifier": "string",
  • "orgIdentifier": "string",
  • "gitConnectorRef": "string",
  • "repo": "string",
  • "branch": "string",
  • "gitConnectorType": "Github",
  • "gitSyncFolderConfigDTOs": [
    ]
}

Is Git Sync EnabledForProject

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
string
projectIdentifier
string
orgIdentifier
string
Responses
200

successful operation

get/ng/api/git-sync/git-sync-enabled
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/ng/api/git-sync/git-sync-enabled?accountIdentifier=string&projectIdentifier=string&orgIdentifier=string' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "connectivityMode": "MANAGER",
  • "gitSyncEnabled": true
}

List Git Sync

Request
Security:
ApiKey (readwrite)
query Parameters
projectIdentifier
string
orgIdentifier
string
accountIdentifier
string
Responses
200

successful operation

get/ng/api/git-sync
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/ng/api/git-sync?projectIdentifier=string&orgIdentifier=string&accountIdentifier=string' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
[
  • {
    }
]

Update Git Sync by id

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
string
Request Body schema:
identifier
string
name
string
projectIdentifier
string
orgIdentifier
string
gitConnectorRef
string
repo
string
branch
string
gitConnectorType
required
string
Enum: "Github" "Gitlab" "Bitbucket"
Array of objects (GitSyncFolderConfigDTO)
Responses
200

successful operation

put/ng/api/git-sync
Request samples
{
  • "identifier": "string",
  • "name": "string",
  • "projectIdentifier": "string",
  • "orgIdentifier": "string",
  • "gitConnectorRef": "string",
  • "repo": "string",
  • "branch": "string",
  • "gitConnectorType": "Github",
  • "gitSyncFolderConfigDTOs": [
    ]
}
Response samples
{
  • "identifier": "string",
  • "name": "string",
  • "projectIdentifier": "string",
  • "orgIdentifier": "string",
  • "gitConnectorRef": "string",
  • "repo": "string",
  • "branch": "string",
  • "gitConnectorType": "Github",
  • "gitSyncFolderConfigDTOs": [
    ]
}

Create a Git Sync

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
string
Request Body schema:
identifier
string
name
string
projectIdentifier
string
orgIdentifier
string
gitConnectorRef
string
repo
string
branch
string
gitConnectorType
required
string
Enum: "Github" "Gitlab" "Bitbucket"
Array of objects (GitSyncFolderConfigDTO)
Responses
200

successful operation

post/ng/api/git-sync
Request samples
{
  • "identifier": "string",
  • "name": "string",
  • "projectIdentifier": "string",
  • "orgIdentifier": "string",
  • "gitConnectorRef": "string",
  • "repo": "string",
  • "branch": "string",
  • "gitConnectorType": "Github",
  • "gitSyncFolderConfigDTOs": [
    ]
}
Response samples
{
  • "identifier": "string",
  • "name": "string",
  • "projectIdentifier": "string",
  • "orgIdentifier": "string",
  • "gitConnectorRef": "string",
  • "repo": "string",
  • "branch": "string",
  • "gitConnectorType": "Github",
  • "gitSyncFolderConfigDTOs": [
    ]
}