yaml-snippet

Get Yaml Snippet

Request
Security:
ApiKey (readwrite)
path Parameters
identifier
required
string
query Parameters
projectIdentifier
string
orgIdentifier
string
scope
string
Enum: "account" "org" "project" "unknown"
Responses
200

successful operation

400

Bad Request

500

Internal server error

get/ng/api/yaml-snippet/{identifier}
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/ng/api/yaml-snippet/:identifier?projectIdentifier=string&orgIdentifier=string&scope=account' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}

Get Yaml Snippet Metadata

Request
Security:
ApiKey (readwrite)
query Parameters
tags
required
Array of strings
Items Enum: "k8s" "git" "docker" "connector" "secretmanager" "secret" "secretText" "secretFile" "sshKey" "service" "infra" "steps" "pipeline" "http" "splunk" "appdynamics" "vault" "azurekeyvault" "local" "gcpkms" "gcp" "aws" "awskms" "awssecretmanager" "artifactory" "jira" "nexus" "github" "gitlab" "bitbucket" "ceaws" "ceazure" "cek8s" "codecommit" "httphelmrepo" "newrelic" "gcpcloudcost" "prometheus" "datadog" "sumologic" "dynatrace" "pagerduty"
Responses
200

successful operation

400

Bad Request

500

Internal server error

get/ng/api/yaml-snippet
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/ng/api/yaml-snippet?tags=k8s' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}