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

Overrides

This contains APIs related to Overrides

Create an Override Entity

post
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Body

This is the Override Request details defined in Harness

identifierstringOptional

Identifier of the Override Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

environmentRefstringRequired

Environment Reference for the Entity.

serviceRefstringOptional

Service Reference for Entity

infraIdentifierstringOptional

infraIdentifier

clusterIdentifierstringOptional

clusterIdentifier

typestring · enumRequired

Type of the override which is based on source of overrides

Possible values:
yamlstringOptional

Yaml for overrides, containing overriding fields like manifests, variables, config files

Responses
400

Bad Request

This is Failure entity as defied in Harness

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

{
  "orgIdentifier": "defaultOrgId",
  "projectIdentifier": "defaultProjId",
  "environmentRef": "defaultEnvRef",
  "serviceRef": "defaultServiceRef",
  "infraIdentifier": "defaultInfraId",
  "type": "ENV_SERVICE_OVERRIDE",
  "yaml": "overrides:\n  variables:\n    - name: v1\n      type: String\n      value: val1\n  manifests:\n    - manifest:\n        identifier: manifest1\n        type: K8sManifest\n        spec:\n          store:\n            type: Github\n            spec:\n              connectorRef: abcdConnector\n              gitFetchType: Branch\n              paths:\n                - files1\n              repoName: abcd\n              branch: master\n          skipResourceVersioning: false\n  configFiles:\n    - configFile:\n        identifier: configFile1\n        spec:\n          store:\n            type: Harness\n            spec:\n              files:\n                - /abcd\n"
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Update an Override Entity

put
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Body

This is the Override Request details defined in Harness

identifierstringOptional

Identifier of the Override Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

environmentRefstringRequired

Environment Reference for the Entity.

serviceRefstringOptional

Service Reference for Entity

infraIdentifierstringOptional

infraIdentifier

clusterIdentifierstringOptional

clusterIdentifier

typestring · enumRequired

Type of the override which is based on source of overrides

Possible values:
yamlstringOptional

Yaml for overrides, containing overriding fields like manifests, variables, config files

Responses
400

Bad Request

This is Failure entity as defied in Harness

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

{
  "orgIdentifier": "defaultOrgId",
  "projectIdentifier": "defaultProjId",
  "environmentRef": "defaultEnvRef",
  "serviceRef": "defaultServiceRef",
  "infraIdentifier": "defaultInfraId",
  "type": "ENV_SERVICE_OVERRIDE",
  "yaml": "overrides:\n  variables:\n    - name: v1\n      type: String\n      value: val1\n  manifests:\n    - manifest:\n        identifier: manifest1\n        type: K8sManifest\n        spec:\n          store:\n            type: Github\n            spec:\n              connectorRef: abcdConnector\n              gitFetchType: Branch\n              paths:\n                - files1\n              repoName: abcd\n              branch: master\n          skipResourceVersioning: false\n  configFiles:\n    - configFile:\n        identifier: configFile1\n        spec:\n          store:\n            type: Harness\n            spec:\n              files:\n                - /abcd\n"
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Gets Overrides by Identifier

get
Path parameters
identifierstringRequired

Identifier of the Override Entity.

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project 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/overrides/{identifier}
GET /gateway/ng/api/overrides/{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"
    }
  ]
}

Delete a Override entity

delete
Path parameters
identifierstringRequired

Identifier of the Override Entity.

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
delete/overrides/{identifier}
DELETE /gateway/ng/api/overrides/{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"
    }
  ]
}

Move Override YAML from inline to remote or remote to inline

post
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

connectorRefstringOptional

Identifier of Connector needed for CRUD operations on the respective Entity

repoNamestringOptional

Name of the repository.

branchstringOptional

Name of the branch.

filePathstringOptional

File Path of the Entity.

commitMsgstringOptional

File Path of the Entity.

isNewBranchbooleanOptional

Checks the new branch

Default: false
baseBranchstringOptional

Name of the default branch.

isHarnessCodeRepobooleanOptional

Is Harness code repo enabled

Default: false
moveConfigTypestring · enumOptional

Tells weather the entity has to be moved from inline to remote or remote to inline

Possible values:
environmentRefstringOptional

Environment Reference for the Entity.

serviceRefstringOptional

Service Reference for Entity

infraIdentifierstringOptional

infraIdentifier

serviceOverridesTypestring · enumOptional

Type of the override which is based on source of overrides

Possible values:
identifierstringOptional

Service Overrides Identifier. Can be user-provided during creation; if omitted, auto-generated from environmentRef, serviceRef, and infraIdentifier based on override type.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/overrides/move-config
POST /gateway/ng/api/overrides/move-config?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"
    }
  ]
}

Update git-metadata in remote Override Entity

put

Update git-metadata in remote Override and returns the identifier of updated Override

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

identifierstringOptional

Service Overrides Identifier. Can be user-provided during creation; if omitted, auto-generated from environmentRef, serviceRef, and infraIdentifier based on override type.

environmentRefstringOptional

Environment Reference for the Entity.

serviceRefstringOptional

Service Reference for Entity

infraIdentifierstringOptional

infraIdentifier

serviceOverridesTypestring · enumOptional

Type of the override which is based on source of overrides

Possible values:
connectorRefstringOptional

Identifier of Connector needed for CRUD operations on the respective Entity

repoNamestringOptional

Name of the repository.

filePathstringOptional

File Path of the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/overrides/update-git-metadata
PUT /gateway/ng/api/overrides/update-git-metadata?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?