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

Onboarding

This contains APIs related to platform onboarding flows

Provisions secrets, connectors, and a Kubernetes service (with GitHub manifest and DockerHub artifact) in dependency order from a single declarative context

post
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body

Top-level onboarding execute request

Responses
400

Bad Request

This is Failure entity as defied in Harness

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

{
  "input": {
    "context": {
      "strategy": "rolling",
      "deployment_type": "kubernetes",
      "environment_identifier": "text",
      "infrastructure_identifier": "text",
      "service_type": "text",
      "service_identifier": "text",
      "service_name": "text",
      "service_agentName": "text",
      "service_source": "container",
      "service_image": "text",
      "service_bucketName": "text",
      "service_key": "text",
      "service_runtime": "text",
      "service_entryPoint": "text",
      "service_executionRoleArn": "text",
      "manifest_type": "github",
      "manifest_id": "text",
      "manifest_connectorRef": "text",
      "manifest_authType": "UsernameToken",
      "manifest_username": "text",
      "manifest_token": "text",
      "manifest_tokenRef": "text",
      "manifest_refreshTokenRef": "text",
      "manifest_repoUrl": "text",
      "manifest_fetchType": "branch",
      "manifest_branch": "text",
      "manifest_commitId": "text",
      "manifest_repoName": "text",
      "manifest_paths": "text",
      "artifact_type": "DockerRegistry",
      "artifact_id": "text",
      "artifact_connectorRef": "text",
      "artifact_providerType": "DockerHub",
      "artifact_registryUrl": "text",
      "artifact_username": "text",
      "artifact_password": "text",
      "artifact_accessKey": "text",
      "artifact_secretKey": "text",
      "artifact_sessionKey": "text",
      "artifact_region": "text",
      "artifact_artifactoryServerUrl": "text",
      "artifact_repository": "text",
      "artifact_imagePath": "text",
      "artifact_tag": "text",
      "env_id": "text",
      "env_name": "text",
      "env_type": "text",
      "infra_type": "text",
      "infra_id": "text",
      "infra_connectorRef": "text",
      "infra_name": "text",
      "infra_namespace": "text",
      "infra_releaseName": "text",
      "infra_connectorType": "text",
      "infra_clusterUrl": "text",
      "infra_credentialType": "ManualConfig",
      "infra_authType": "text",
      "infra_serviceAccountToken": "text",
      "infra_delegateSelectors": "text",
      "infra_gcpCredentialSecretRef": "text",
      "infra_cluster": "text",
      "infra_project": "text",
      "infra_awsAccessKey": "text",
      "infra_awsSecretKey": "text",
      "infra_awsSessionToken": "text",
      "infra_region": "text"
    }
  }
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Upload and process a kubeconfig file for onboarding

post
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
filestring · binaryOptional

The kubeConfig (~/.kube/config) file to upload

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/onboarding/kubeconfig/upload
POST /gateway/ng/api/onboarding/kubeconfig/upload?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: multipart/form-data
Accept: */*
Content-Length: 17

{
  "file": "binary"
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Upload a credential file (e.g. a GCP service-account key file), persist it as an encrypted file secret, and return the created secret's identifier for use in a subsequent onboarding/execute call

post
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
filestring · binaryOptional

The credential file to upload and store as a secret

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/onboarding/secret-file/upload
POST /gateway/ng/api/onboarding/secret-file/upload?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: multipart/form-data
Accept: */*
Content-Length: 17

{
  "file": "binary"
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Last updated

Was this helpful?