Is It Possible To Get The Schemas For Harness Entities In The Current Generation?

Module

  • Harness Platform

Environment

  • Infrastructure: Harness Saas
  • OS: Mac, Windows or Linux

Issue

Is it possible to get the schemas for Harness entities in the Current Generation?

Resolution

APIs to fetch the schemas for Harness entities were introduced in the Harness Next-Generation and we do not have it in the Harness Current-Generation. You can follow the API given below to fetch the schema for Harness entities. Make sure you replace projectId, orgId and AccountId accordingly.

curl -i -X GET \

'https://app.harness.io/gateway/pipeline/api/yaml-schema?entityType=Pipelines&projectIdentifier=<project identifier>&orgIdentifier=<org identifier>&accountIdentifier=<account identifier>&scope=project' \

-H 'x-api-key: <YOUR_API_KEY_HERE>'**