Connectors
This contains APIs related to Connectors as defined in Harness
Account Identifier for the Entity.
This would be used to filter Connectors. Any Connector having the specified string in its Name, ID and Tag would be filtered.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Specify whether or not to include all the Connectors accessible at the scope. For eg if set as true, at the Project scope we will get org and account Connector also in the response
Name of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
if true, return all the default entities
This when set to true along with GitSync enabled for the Connector, you can get one connector entity from each identifier. The connector entity can belong to any branch
Page Index of the results to fetch.Default Value: 0
0Results per page(max 100)Default Value: 50
50Page Token of the next results to fetch.Default Value: ''
Properties of the Connector Filter defined in Harness
This is the list of the Connector names on which the filter will be applied.
This is the list of the Connector identifiers on which the filter will be applied.
Description of filter created.
Boolean value to indicate if the Connector is using credentials from the Delegate to connect.
Exclude Harness-managed LLM connectors.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the list of Connectors
POST /gateway/ng/api/connectors/ccmK8sList?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 362
{
"connectorNames": [
"text"
],
"connectorIdentifiers": [
"text"
],
"description": "text",
"types": [
"K8sCluster"
],
"categories": [
"CLOUD_PROVIDER"
],
"connectivityStatuses": [
"SUCCESS"
],
"inheritingCredentialsFromDelegate": true,
"excludeHarnessManagedLlmConnectors": true,
"connectorConnectivityModes": [
"DELEGATE"
],
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"filterType": "Connector"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Lists all the Connectors matching the specified filters.
Page number of navigation. By default, it is set to 0.
0Number of entries per page.The default number of entries per page is 100, while the maximum number allowed is 1000.
100Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
This would be used to filter Connectors. Any Connector having the specified string in its Name, ID and Tag would be filtered.
Filter Connectors by type
Filter Connectors by category
Filter Connectors by Source Category. Available Source Categories are CLOUD_PROVIDER, SECRET_MANAGER, CLOUD_COST, ARTIFACTORY, CODE_REPO, MONITORING and TICKETING
Name of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
if true, return all the default entities
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the list of Connectors
GET /gateway/ng/api/connectors?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 a new Harness Connector.
Account Identifier for the Entity.
Name of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
Path to the root folder of the Entity. [Applicable for Old Git Sync only]
File Path of the Entity.
File Path of the Entity.
Checks the new branch
falseName of the default branch.
Identifier of Connector needed for CRUD operations on the respective Entity
Tells whether the Entity is to be saved on Git or not
Name of the repository.
Is Harness code repo enabled
This is the view of Connector entity as defined in Harness.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns created Connector
POST /gateway/ng/api/connectors?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 241
{
"connector": {
"name": "text",
"identifier": "text",
"description": "text",
"accountIdentifier": "text",
"orgIdentifier": "text",
"projectIdentifier": "text",
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"type": "K8sCluster",
"spec": {
"connectorType": "text"
}
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Updates a Connector for the given ID.
Account Identifier for the Entity.
Name of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
Path to the root folder of the Entity. [Applicable for Old Git Sync only]
File Path of the Entity.
Commit Message to use for the merge commit.
Its required field during update call request. It can be fetched from the response of GET API call for the entity
If the entity is git-synced, this parameter represents the commit id against which file conflicts are resolved
Name of the default branch.
Identifier of Connector needed for CRUD operations on the respective Entity
last commit id of the file
Checks the new branch
falseIs Harness code repo enabled
This is the view of Connector entity as defined in Harness.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the updated Connector
PUT /gateway/ng/api/connectors?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 241
{
"connector": {
"name": "text",
"identifier": "text",
"description": "text",
"accountIdentifier": "text",
"orgIdentifier": "text",
"projectIdentifier": "text",
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"type": "K8sCluster",
"spec": {
"connectorType": "text"
}
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns the Connector's details for the given Account and Connector ID.
Connector Identifier
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Name of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
if true, return all the default entities
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the connector with the requested accountIdentifier and connectorIdentifier
GET /gateway/ng/api/connectors/{identifier}?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"
}
]
}Deletes a Connector for the given ID.
Connector ID
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Name of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
Path to the root folder of the Entity. [Applicable for Old Git Sync only]
File Path of the Entity.
Commit Message to use for the merge commit.
Last Object Id
If true, the Entity will be forced delete, without checking any references/usages
falseBad Request
This is Failure entity as defied in Harness
Internal server error
It returns true if the Connector is deleted successfully and false if the Connector is not deleted
DELETE /gateway/ng/api/connectors/{identifier}?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"
}
]
}Returns all the configured field values for the given Connector type, which can be used during connector creation.
Account Identifier for the Entity.
Connector type
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns all the configured field values for the given Connector type, which can be used during connector creation.
GET /gateway/ng/api/connectors/fieldValues?accountIdentifier=text&connectorType=K8sCluster HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Specify whether or not to enable events
Specify whether or not to enable CUR
Specify whether or not to enable optimization
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the cloud formation template URL to configure the Cloud Cost AWS Connector
POST /gateway/ng/api/connectors/getceawstemplateurl HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Lists all the Connectors for the given Account ID.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the Connector catalogue response
GET /gateway/ng/api/connectors/catalogue?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"
}
]
}Gets the connector's statistics by Account Identifier, Project Identifier and Organization Identifier
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Name of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
if true, return all the default entities
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the Connector's statistics
GET /gateway/ng/api/connectors/stats?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"
}
]
}Returns the list of GCP project IDs that the connector has access to.
Connector reference
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the list of GCP project IDs accessible by the connector
GET /gateway/ng/api/connectors/{connectorRef}/gcp-projects?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 would be used to filter Connectors. Any Connector having the specified string in its Name, ID and Tag would be filtered.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Specify whether or not to include all the Connectors accessible at the scope. For eg if set as true, at the Project scope we will get org and account Connector also in the response
Name of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
if true, return all the default entities
This when set to true along with GitSync enabled for the Connector, you can get one connector entity from each identifier. The connector entity can belong to any branch
falsePage Index of the results to fetch.Default Value: 0
0Results per page(max 100)Default Value: 50
50Page Token of the next results to fetch.Default Value: ''
Properties of the Connector Filter defined in Harness
This is the list of the Connector names on which the filter will be applied.
This is the list of the Connector identifiers on which the filter will be applied.
Description of filter created.
Boolean value to indicate if the Connector is using credentials from the Delegate to connect.
Exclude Harness-managed LLM connectors.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the list of Connectors
POST /gateway/ng/api/connectors/listV2?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 362
{
"connectorNames": [
"text"
],
"connectorIdentifiers": [
"text"
],
"description": "text",
"types": [
"K8sCluster"
],
"categories": [
"CLOUD_PROVIDER"
],
"connectivityStatuses": [
"SUCCESS"
],
"inheritingCredentialsFromDelegate": true,
"excludeHarnessManagedLlmConnectors": true,
"connectorConnectivityModes": [
"DELEGATE"
],
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"filterType": "Connector"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Lists all Connectors for an Account by Fully Qualified Name (FQN) with a limit of max 1000 FQNs per request.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the list of Connectors
POST /gateway/ng/api/connectors/listbyfqn?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 8
[
"text"
]{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Tests if a Harness Connector can successfully connect Harness to a third-party tool.
Connector ID
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Name of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
if true, return all the default entities
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the Connector validation result
POST /gateway/ng/api/connectors/testConnection/{identifier}?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"
}
]
}Tests if a Git Repo Connector can successfully connect Harness to a Git provider.
Connector ID
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
URL of the repository, specify only in the case of Account Type Git Connector
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the Connector validation result
POST /gateway/ng/api/connectors/testGitRepoConnection/{identifier}?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"
}
]
}Tests if a Connector can successfully connect Harness to a third-party tool using the an Account and Connector ID.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Connector ID
Bad Request
This is Failure entity as defied in Harness
Internal server error
It returns true if the Identifier is unique and false if the Identifier is not unique
GET /gateway/ng/api/connectors/validateUniqueIdentifier?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?