Bad Request
Internal Server Error
Returns the list of Services for a Project
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Details of the Service to be updated
Bad Request
Internal Server Error
Returns the updated Service
Sample Service payload
{- "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": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Details of the Service to be created
Bad Request
Internal Server Error
Returns the created Service
Sample Service payload
{- "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": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Details of the Services to be created, maximum 1000 services can be created.
Bad Request
Internal Server Error
Returns the created Services
[- {
- "identifier": "string",
- "orgIdentifier": "string",
- "projectIdentifier": "string",
- "name": "string",
- "description": "string",
- "tags": {
- "property1": "string",
- "property2": "string"
}, - "yaml": "string"
}
]
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
The saved Service
{- "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 is deleted
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
Returns the list of Kubernetes Command Options
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
Returns the list of Kustomize Command Flags
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
Returns the list of actions available for service hooks
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
Fetches Service YAML from Git Repository and saves a record for it in Harness
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
Returns the list of Services for a Project that are accessible
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
Fetches Service YAML from Harness DB and creates a remote entity
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Update git-metadata in remote service and returns the identifier of updated service
Bad Request
Internal Server Error
Returns identifier of updated Service
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Details of the Service to be upserted
Bad Request
Internal Server Error
Returns the updated Service
Sample Service payload
{- "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": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}