Delegate Configuration Management

Contains APIs related to Delegate Configuration management

Updates Scoping Rules for the Delegate Configuration specified by Id

Request
Security:
ApiKey (readwrite)
path Parameters
delegateProfileId
required
string

Delegate Configuration Id

query Parameters
accountId
string

Account id

orgId
string

Organization Id

projectId
string

Project Id

Request Body schema: */*

Delegate Scoping Rules to be updated

Array
description
string
environmentTypeId
string
environmentIds
Array of strings unique
Responses
400

Bad Request

500

Internal server error

default

Delegate Configuration which was updated.

put/ng/api/delegate-profiles/ng/{delegateProfileId}/scoping-rules
Request samples
curl -i -X PUT \
  'https://app.harness.io/gateway/ng/api/delegate-profiles/ng/:delegateProfileId/scoping-rules?accountId=string&orgId=string&projectId=string' \
  -H 'Content-Type: */*' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -d '[object Object]'
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Updates Delegate Selectors for Delegate Configuration specified by Id

Request
Security:
ApiKey (readwrite)
path Parameters
delegateProfileId
required
string

Delegate Configuration Id

query Parameters
accountId
string

Account Id

orgId
string

Organization Id

projectId
string

Project Id

Request Body schema: */*

Delegate Selectors to be updated

Array
string
Responses
400

Bad Request

500

Internal server error

default

Delegate Configuration which was updated.

put/ng/api/delegate-profiles/ng/{delegateProfileId}/selectors
Request samples
curl -i -X PUT \
  'https://app.harness.io/gateway/ng/api/delegate-profiles/ng/:delegateProfileId/selectors?accountId=string&orgId=string&projectId=string' \
  -H 'Content-Type: */*' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -d string
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Lists Delegate Configuration for specified Account, Organization and Project

Request
Security:
ApiKey (readwrite)
query Parameters
offset
string
Default: "0"
limit
string
fieldsIncluded
Array of strings
fieldsExcluded
Array of strings
accountId
string

Account id

orgId
string

Organization Id

projectId
string

Project Id

Responses
400

Bad Request

500

Internal server error

default

A list of Delegate Configurations for the Account, Organization and Project

get/ng/api/delegate-profiles/ng
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/ng/api/delegate-profiles/ng?offset=0&limit=string&fieldsIncluded=string&fieldsExcluded=string&accountId=string&orgId=string&projectId=string' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Creates Delegate Configuration specified by Configuration details in body

Request
Security:
ApiKey (readwrite)
query Parameters
accountId
string

Account id

orgId
string

Organization Id

projectId
string

Project Id

Request Body schema: */*

Delegate Configuration to be created. These include uuid, identifier, accountId, orgId, projId, name, startupScript, scopingRules, selectors...

uuid
string
accountId
string
name
string
description
string
primary
boolean
approvalRequired
boolean
startupScript
string
Array of objects (ScopingRuleDetailsNg)
selectors
Array of strings
object (EmbeddedUserDetails)
object (EmbeddedUserDetails)
createdAt
integer <int64>
lastUpdatedAt
integer <int64>
identifier
string
numberOfDelegates
integer <int64>
orgIdentifier
string
projectIdentifier
string
Responses
400

Bad Request

500

Internal server error

default

Delegate Configuration which was created.

post/ng/api/delegate-profiles/ng
Request samples
curl -i -X POST \
  'https://app.harness.io/gateway/ng/api/delegate-profiles/ng?accountId=string&orgId=string&projectId=string' \
  -H 'Content-Type: */*' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -d '[object Object]'
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Retrieves Delegate Configuration details for given Delegate Configuration Id.

Request
Security:
ApiKey (readwrite)
path Parameters
delegateProfileId
required
string

Delegate Configuration Id

query Parameters
accountId
string

Account id

orgId
string

Organization Id

projectId
string

Project Id

Responses
400

Bad Request

500

Internal server error

default

A Delegate Configuration. It includes uuid, accountId, name, description, startupScript, scopingRules, selectors, numberOfDelegates and other info.

get/ng/api/delegate-profiles/ng/{delegateProfileId}
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/ng/api/delegate-profiles/ng/:delegateProfileId?accountId=string&orgId=string&projectId=string' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Updates Delegate Configuration specified by Id

Request
Security:
ApiKey (readwrite)
path Parameters
delegateProfileId
required
string

Delegate Configuration Id

query Parameters
accountId
string

Account id

orgId
string

Organization Id

projectId
string

Project Id

Request Body schema: */*

Delegate Configuration to be created. These include uuid, identifier, accountId, orgId, projId, name, startupScript, scopingRules, selectors...

uuid
string
accountId
string
name
string
description
string
primary
boolean
approvalRequired
boolean
startupScript
string
Array of objects (ScopingRuleDetailsNg)
selectors
Array of strings
object (EmbeddedUserDetails)
object (EmbeddedUserDetails)
createdAt
integer <int64>
lastUpdatedAt
integer <int64>
identifier
string
numberOfDelegates
integer <int64>
orgIdentifier
string
projectIdentifier
string
Responses
400

Bad Request

500

Internal server error

default

Delegate Configuration which was updated.

put/ng/api/delegate-profiles/ng/{delegateProfileId}
Request samples
curl -i -X PUT \
  'https://app.harness.io/gateway/ng/api/delegate-profiles/ng/:delegateProfileId?accountId=string&orgId=string&projectId=string' \
  -H 'Content-Type: */*' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -d '[object Object]'
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Deletes Delegate Configuration specified by Id

Request
Security:
ApiKey (readwrite)
path Parameters
delegateProfileId
required
string

Delegate Configuration Id

query Parameters
accountId
string

Account id

orgId
string

Organization Id

projectId
string

Project Id

Responses
400

Bad Request

500

Internal server error

default

Boolean value resulting true if deletion was successful.

delete/ng/api/delegate-profiles/ng/{delegateProfileId}
Request samples
curl -i -X DELETE \
  'https://app.harness.io/gateway/ng/api/delegate-profiles/ng/:delegateProfileId?accountId=string&orgId=string&projectId=string' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}