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
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Top-level onboarding execute request
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Identifiers of the resources created during onboarding
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"
}
]
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The kubeConfig (~/.kube/config) file to upload
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Per-context connector-creation hints detected from the kubeConfig
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
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The credential file to upload and store as a secret
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Identifier of the created file secret
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?