Services
This contains APIs related to Services
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns the list of services using allowed-values
POST /gateway/ng/api/servicesV2/check-allowed-values?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"
}
]
}Page Index of the results to fetch.Default Value: 0
0Results per page
100Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The word to be searched and included in the list response
List of ServicesIds
Specifies the sorting criteria of the list. Like sorting based on the last updated entity, alphabetical sorting in an ascending or descending order
Filter services by the family of service types they belong to, for example AiService for AI agent services. Can be combined with type to narrow down to a single type.
Filter services by tags. Each entry is of the form key:value, or key for a key-only match. A service matches if it has any of the supplied tags.
Filter services by where the entity is stored. INLINE returns Harness-stored services, REMOTE returns Git-stored services.
The Identifier of deployment template if infrastructure is of type custom deployment
The version label of deployment template if infrastructure is of type custom deployment
Specify true if all accessible Services are to be included
falseBad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns the list of Services for a Project
GET /gateway/ng/api/servicesV2?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.
Service Request details defined in Harness.
Identifier of the Service Request.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Name of the Service Request.
Description of the entity
YAML for the Service Request
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns the created Service
POST /gateway/ng/api/servicesV2?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 546
{
"name": "serviceName",
"identifier": "serviceId",
"tags": {},
"projectIdentifier": "s",
"orgIdentifier": "default",
"yaml": "service:\n name: serviceName\n identifier: serviceId\n tags: {}\n serviceDefinition:\n spec:\n artifacts:\n primary:\n primaryArtifactRef: artifactName\n sources:\n - spec:\n connectorRef: connectorId\n imagePath: imagePath\n tag: tagId\n identifier: artifactName\n type: DockerRegistry\n type: Kubernetes\n"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Account Identifier for the Entity.
Name of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
Path to the root folder of the Entity. [Applicable for Old Git Sync only]
File Path of the Entity.
Commit Message to use for the merge commit.
Its required field during update call request. It can be fetched from the response of GET API call for the entity
If the entity is git-synced, this parameter represents the commit id against which file conflicts are resolved
Name of the default branch.
Identifier of Connector needed for CRUD operations on the respective Entity
last commit id of the file
Checks the new branch
falseIs Harness code repo enabled
Service Request details defined in Harness.
Identifier of the Service Request.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Name of the Service Request.
Description of the entity
YAML for the Service Request
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns the updated Service
PUT /gateway/ng/api/servicesV2?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 546
{
"name": "serviceName",
"identifier": "serviceId",
"tags": {},
"projectIdentifier": "s",
"orgIdentifier": "default",
"yaml": "service:\n name: serviceName\n identifier: serviceId\n tags: {}\n serviceDefinition:\n spec:\n artifacts:\n primary:\n primaryArtifactRef: artifactName\n sources:\n - spec:\n connectorRef: connectorId\n imagePath: imagePath\n tag: tagId\n identifier: artifactName\n type: DockerRegistry\n type: Kubernetes\n"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Account Identifier for the Entity.
Service Request details defined in Harness.
Identifier of the Service Request.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Name of the Service Request.
Description of the entity
YAML for the Service Request
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns the created Services
POST /gateway/ng/api/servicesV2/batch?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 164
[
{
"identifier": "text",
"orgIdentifier": "text",
"projectIdentifier": "text",
"name": "text",
"description": "text",
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"yaml": "text"
}
]{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Account Identifier for the Entity.
Service Request details defined in Harness.
Identifier of the Service Request.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Name of the Service Request.
Description of the entity
YAML for the Service Request
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns the batch creation result with success and failure details
POST /gateway/ng/api/servicesV2/batch/partial?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 164
[
{
"identifier": "text",
"orgIdentifier": "text",
"projectIdentifier": "text",
"name": "text",
"description": "text",
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"yaml": "text"
}
]{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Service Identifier for the entity
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Specify whether Service is deleted or not
falseBad Request
This is Failure entity as defied in Harness
Internal Server Error
The saved Service
GET /gateway/ng/api/servicesV2/{serviceIdentifier}?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"
}
]
}Service Identifier for the entity
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
If true, the Entity will be forced delete, without checking any references/usages
falseBad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns true if the Service is deleted
DELETE /gateway/ng/api/servicesV2/{serviceIdentifier}?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"
}
]
}Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns the list of Helm Command Options
GET /gateway/ng/api/servicesV2/helm/command-flags?serviceSpecType=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"
}
]
}Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns the list of Kubernetes Command Options
GET /gateway/ng/api/servicesV2/k8s/command-flags?serviceSpecType=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"
}
]
}Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns the list of Kustomize Command Flags
GET /gateway/ng/api/servicesV2/kustomize/command-flags HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns the list of Runtime and Serverless Version
GET /gateway/ng/api/servicesV2/plugin-info HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns the list of actions available for service hooks
GET /gateway/ng/api/servicesV2/hooks/actions?serviceSpecType=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.
Service 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.
isForceImport
falseIs Harness code repo enabled
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Fetches Service YAML from Git Repository and saves a record for it in Harness
POST /gateway/ng/api/servicesV2/import?accountIdentifier=text&repoName=text&branch=text&filePath=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"
}
]
}Page Index of the results to fetch.Default Value: 0
0Results per page
100Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The word to be searched and included in the list response
List of ServicesIds
Specifies the sorting criteria of the list. Like sorting based on the last updated entity, alphabetical sorting in an ascending or descending order
The Identifier of deployment template if infrastructure is of type custom deployment
The version label of deployment template if infrastructure is of type custom deployment
Specify true if all accessible Services are to be included
falseBad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns the list of Services for a Project that are accessible
GET /gateway/ng/api/servicesV2/list/access?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"
}
]
}Service Identifier for the entity
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.
Commit Message to use for the merge commit.
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
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Fetches Service YAML from Harness DB and creates a remote entity
POST /gateway/ng/api/servicesV2/move-config/{serviceIdentifier}?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 service and returns the identifier of updated service
Service Identifier for the entity
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.
File Path of the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns identifier of updated Service
PUT /gateway/ng/api/servicesV2/{serviceIdentifier}/update-git-metadata?accountIdentifier=text&orgIdentifier=text&projectIdentifier=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.
Service Request details defined in Harness.
Identifier of the Service Request.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Name of the Service Request.
Description of the entity
YAML for the Service Request
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns the updated Service
PUT /gateway/ng/api/servicesV2/upsert?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 546
{
"name": "serviceName",
"identifier": "serviceId",
"tags": {},
"projectIdentifier": "s",
"orgIdentifier": "default",
"yaml": "service:\n name: serviceName\n identifier: serviceId\n tags: {}\n serviceDefinition:\n spec:\n artifacts:\n primary:\n primaryArtifactRef: artifactName\n sources:\n - spec:\n connectorRef: connectorId\n imagePath: imagePath\n tag: tagId\n identifier: artifactName\n type: DockerRegistry\n type: Kubernetes\n"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?