Details of the Service Override to be updated
Bad Request
Internal Server Error
Returns the updated ServiceOverride
Sample Service Override Request
{- "orgIdentifier": "defaultOrgId",
- "projectIdentifier": "defaultProjId",
- "environmentRef": "defaultEnvRef",
- "serviceRef": "defaultServiceRef",
- "infraIdentifier": "defaultInfraId",
- "type": "ENV_SERVICE_OVERRIDE",
- "spec": {
- "variables": [
- {
- "name": "v1",
- "type": "String",
- "value": "val1"
}
], - "manifests": [
- {
- "manifest": {
- "identifier": "manifest1",
- "type": "K8sManifest",
- "spec": {
- "store": {
- "type": "Github",
- "spec": {
- "connectorRef": "abcdConnector",
- "gitFetchType": "Branch",
- "paths": [
- "files1"
], - "repoName": "abcd",
- "branch": "master"
}
}, - "skipResourceVersioning": false
}
}
}
], - "configFiles": [
- {
- "configFile": {
- "identifier": "configFile1",
- "spec": {
- "store": {
- "type": "Harness",
- "spec": {
- "files": [
- "/abcd"
]
}
}
}
}
}
]
}
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Details of the Service Override to be updated
Bad Request
Internal Server Error
Returns the created ServiceOverride
Sample Service Override Request
{- "orgIdentifier": "defaultOrgId",
- "projectIdentifier": "defaultProjId",
- "environmentRef": "defaultEnvRef",
- "serviceRef": "defaultServiceRef",
- "infraIdentifier": "defaultInfraId",
- "type": "ENV_SERVICE_OVERRIDE",
- "spec": {
- "variables": [
- {
- "name": "v1",
- "type": "String",
- "value": "val1"
}
], - "manifests": [
- {
- "manifest": {
- "identifier": "manifest1",
- "type": "K8sManifest",
- "spec": {
- "store": {
- "type": "Github",
- "spec": {
- "connectorRef": "abcdConnector",
- "gitFetchType": "Branch",
- "paths": [
- "files1"
], - "repoName": "abcd",
- "branch": "master"
}
}, - "skipResourceVersioning": false
}
}
}
], - "configFiles": [
- {
- "configFile": {
- "identifier": "configFile1",
- "spec": {
- "store": {
- "type": "Harness",
- "spec": {
- "files": [
- "/abcd"
]
}
}
}
}
}
]
}
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
Returns the Service Override by the identifier and scope derived from accountId, org identifier and project identifier
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
Returns true if the Service Override is deleted
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
Fetches ServiceOverride YAML from Harness DB and creates a remote entity or Fetches ServiceOverride YAML from remote repository and creates a inline entity
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Update git-metadata in remote ServiceOverride and returns the identifier of updated ServiceOverride
Bad Request
Internal Server Error
Returns identifier and associated environmentRef, serviceRef and infraIdentifier of updated ServiceOverride
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}