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

Delegate Setup Resource

Contains Delegate Setup APIs

Deletes a Delegate by its identifier.

delete
Path parameters
delegateIdentifierstring · min: 1Required

Identifier for the Entity.

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
200

Successfully deleted delegate

responseMsgstringOptional
delete/delegate-setup/delegate/{delegateIdentifier}
DELETE /gateway/ng/api/delegate-setup/delegate/{delegateIdentifier}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "responseMsg": "text"
}

Delete delegate image tag override

delete
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

tagsstring[]Optional
Responses
200

Successfully deleted delegate image tag override

No content

delete/delegate-setup/delete-delegate-override
DELETE /gateway/ng/api/delegate-setup/delete-delegate-override?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*

No content

Generates delegate terraform example module file from the account

get
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
200

Successfully generated terraform module file

No content

get/delegate-setup/delegate-terraform-module-file
GET /gateway/ng/api/delegate-setup/delegate-terraform-module-file?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*

No content

Generates helm values yaml file from the data specified in request body (Delegate setup details).

post
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
orgIdentifierstringOptional
projectIdentifierstringOptional
namestringRequired
descriptionstringOptional
sizestring · enumOptionalPossible values:
hostNamestringOptional
delegateConfigurationIdstringOptional
identifierstringOptional
tagsstring[]Optional
delegateTypestringRequired

Currently KUBERNETES and HELM_DELEGATE are supported.

tokenNamestringOptional
runAsRootbooleanOptional
versionstringOptional
Responses
200

Successfully generated helm values yaml file

No content

post/delegate-setup/generate-helm-values
POST /gateway/ng/api/delegate-setup/generate-helm-values?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 340

{
  "orgIdentifier": "text",
  "projectIdentifier": "text",
  "name": "text",
  "description": "text",
  "size": "LAPTOP",
  "hostName": "text",
  "delegateConfigurationId": "text",
  "identifier": "text",
  "k8sConfigDetails": {
    "k8sPermissionType": "CLUSTER_ADMIN",
    "namespace": "text"
  },
  "tags": [
    "text"
  ],
  "delegateType": "text",
  "tokenName": "text",
  "runAsRoot": true,
  "version": "text"
}

No content

Lists all delegates overrides in NG filtered by provided conditions

get
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
200

Successfully retrieved list of delegate overrides

get/delegate-setup/override-delegate-tag
GET /gateway/ng/api/delegate-setup/override-delegate-tag?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "versionOverrides": [
    {
      "version": "text",
      "orgIdentifier": "text",
      "projectIdentifier": "text",
      "parentUniqueId": "text",
      "tags": [
        "text"
      ],
      "validTillNextRelease": true,
      "validUntil": "2026-01-01T00:00:00.000Z",
      "overrideType": "text"
    }
  ]
}

Overrides delegate image tag for account

put
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

tagsstring[]Optional

if provided, will override the image for all delegates which have all the provided tags

delegateTagstring · min: 1Required
validTillNextReleasebooleanOptional

If set to true, harness will override your custom tag when new delegate is released

Default: false
validForDaysinteger · int32 · max: 9223372036854776000Optional

days after which harness will override your custom tag

Default: 180
Responses
200

Successfully overridden delegate image tag

stringOptional
put/delegate-setup/override-delegate-tag
PUT /gateway/ng/api/delegate-setup/override-delegate-tag?accountIdentifier=text&delegateTag=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
text

Lists all delegates in NG filtered by provided conditions

post
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

allbooleanOptional

Filter delegates based on the scope (query param: all), if true will return delegates of underlying orgs/projects and ignore the filters provided as part of the request body

Default: false
Body

Properties to filter delegates

statusstring · enumOptional

Filter on delegate connectivity

Possible values:
descriptionstringOptional

Filter on delegate description

hostNamestringOptional

Filter on delegate hostName

delegateNamestringOptional

Filter on delegate name

delegateTypestringOptional

Filter on delegate type

delegateGroupIdentifierstringOptional

Filter on delegate group id

delegateTagsstring[]Optional

Filter on delegate tags

delegateInstanceFilterstring · enumOptional

Filter on delegate instance status

Possible values:
autoUpgradestringOptional

Filter on delegate auto upgrade

versionStatusstring · enumOptional

Filter on delegate version status

Possible values:
runnerbooleanOptional

Filter for Delegate 3.x

filterTypestring · enumRequired

This specifies the corresponding Entity of the filter.

Possible values:
Responses
200

Successfully retrieved list of delegates

typestringOptional
namestringOptional
descriptionstringOptional
tagsstring[]Optional
lastHeartBeatinteger · int64Optional
connectedbooleanOptional
autoUpgradestring · enumOptionalPossible values:
legacybooleanOptional
orgNamestringOptional
projectNamestringOptional
post/delegate-setup/listDelegates
POST /gateway/ng/api/delegate-setup/listDelegates?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 325

{
  "status": "CONNECTED",
  "description": "text",
  "hostName": "text",
  "delegateName": "text",
  "delegateType": "text",
  "delegateGroupIdentifier": "text",
  "delegateTags": [
    "text"
  ],
  "delegateInstanceFilter": "EXPIRED",
  "autoUpgrade": "text",
  "versionStatus": "EXPIRED",
  "runner": true,
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "filterType": "Connector"
}
{
  "type": "text",
  "name": "text",
  "description": "text",
  "tags": [
    "text"
  ],
  "lastHeartBeat": 1,
  "connected": true,
  "delegateReplicas": [
    {
      "uuid": "text",
      "lastHeartbeat": 1,
      "connected": true,
      "hostName": "text",
      "version": "text",
      "expiringAt": 1,
      "status": "text",
      "runner": true
    }
  ],
  "autoUpgrade": "ON",
  "legacy": true,
  "orgName": "text",
  "projectName": "text"
}

Gets the latest supported delegate version. The version has YY.MM.XXXXX format. You can use any version lower than the returned results(upto 3 months old)

get
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
200

Successfully retrieved the latest supported delegate version

latestSupportedVersionstringOptional
latestSupportedMinimalVersionstringOptional
get/delegate-setup/latest-supported-version
GET /gateway/ng/api/delegate-setup/latest-supported-version?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "latestSupportedVersion": "text",
  "latestSupportedMinimalVersion": "text"
}

Last updated

Was this helpful?