Overrides
This contains APIs related to Overrides
Account Identifier for the Entity.
This is the Override Request details defined in Harness
Identifier of the Override Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Environment Reference for the Entity.
Service Reference for Entity
infraIdentifier
clusterIdentifier
Type of the override which is based on source of overrides
Yaml for overrides, containing overriding fields like manifests, variables, config files
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns the created Override
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"
}
]
}Account Identifier for the Entity.
This is the Override Request details defined in Harness
Identifier of the Override Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Environment Reference for the Entity.
Service Reference for Entity
infraIdentifier
clusterIdentifier
Type of the override which is based on source of overrides
Yaml for overrides, containing overriding fields like manifests, variables, config files
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns the updated Override
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"
}
]
}Identifier of the Override Entity.
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 Override by the identifier and scope derived from accountId, org identifier and project 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"
}
]
}Identifier of the Override Entity.
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 true if the Override is deleted
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"
}
]
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Identifier of Connector needed for CRUD operations on the respective Entity
Name of the repository.
Name of the branch.
File Path of the Entity.
File Path of the Entity.
Checks the new branch
falseName of the default branch.
Is Harness code repo enabled
falseTells weather the entity has to be moved from inline to remote or remote to inline
Environment Reference for the Entity.
Service Reference for Entity
infraIdentifier
Type of the override which is based on source of overrides
Service Overrides Identifier. Can be user-provided during creation; if omitted, auto-generated from environmentRef, serviceRef, and infraIdentifier based on override type.
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Fetches Override YAML from Harness DB and creates a remote entity or Fetches Override YAML from remote repository and creates a inline entity
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 and returns the identifier of updated Override
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Service Overrides Identifier. Can be user-provided during creation; if omitted, auto-generated from environmentRef, serviceRef, and infraIdentifier based on override type.
Environment Reference for the Entity.
Service Reference for Entity
infraIdentifier
Type of the override which is based on source of overrides
Identifier of Connector needed for CRUD operations on the respective Entity
Name of the repository.
File Path of the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns identifier and associated environmentRef, serviceRef and infraIdentifier of updated Override
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?