templates

Get templates

Request
Security:
ApiKey (readwrite)
query Parameters
team
required
string
Enum: "OTHER" "CD" "CV" "CI" "FFM" "PIPELINE" "PL" "GTM" "UNRECOGNIZED"
Responses
200

successful operation

400

Bad Request

500

Internal server error

get/resourcegroup/api/templates
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/resourcegroup/api/templates?team=OTHER' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "data": [
    ],
  • "metaData": { },
  • "correlationId": "string"
}

Create a template

Request
Security:
ApiKey (readwrite)
Request Body schema: multipart/form-data
file
string <binary>
team
string
Enum: "OTHER" "CD" "CV" "CI" "FFM" "PIPELINE" "PL" "GTM" "UNRECOGNIZED"
identifier
string
harnessManaged
boolean
Responses
200

successful operation

400

Bad Request

500

Internal server error

post/resourcegroup/api/templates
Request samples
curl -i -X POST \
  https://app.harness.io/gateway/resourcegroup/api/templates \
  -H 'Content-Type: multipart/form-data' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -F file=string \
  -F team=OTHER \
  -F identifier=string \
  -F harnessManaged=true
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}

Get template by identifier

Request
Security:
ApiKey (readwrite)
path Parameters
identifier
required
string
query Parameters
team
string
Enum: "OTHER" "CD" "CV" "CI" "FFM" "PIPELINE" "PL" "GTM" "UNRECOGNIZED"
Responses
200

successful operation

400

Bad Request

500

Internal server error

get/resourcegroup/api/templates/{identifier}
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/resourcegroup/api/templates/:identifier?team=OTHER' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}

Delete a template

Request
Security:
ApiKey (readwrite)
path Parameters
identifier
required
string
query Parameters
team
required
string
Enum: "OTHER" "CD" "CV" "CI" "FFM" "PIPELINE" "PL" "GTM" "UNRECOGNIZED"
Responses
200

successful operation

400

Bad Request

500

Internal server error

delete/resourcegroup/api/templates/{identifier}
Request samples
curl -i -X DELETE \
  'https://app.harness.io/gateway/resourcegroup/api/templates/:identifier?team=OTHER' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "data": true,
  • "metaData": { },
  • "correlationId": "string"
}

Update a template if exists else create

Request
Security:
ApiKey (readwrite)
query Parameters
team
string
Enum: "OTHER" "CD" "CV" "CI" "FFM" "PIPELINE" "PL" "GTM" "UNRECOGNIZED"
identifier
string
harnessManaged
boolean
Request Body schema: multipart/form-data
file
string <binary>
Responses
200

successful operation

400

Bad Request

500

Internal server error

put/resourcegroup/api/templates/insertOrUpdate
Request samples
curl -i -X PUT \
  'https://app.harness.io/gateway/resourcegroup/api/templates/insertOrUpdate?team=OTHER&identifier=string&harnessManaged=true' \
  -H 'Content-Type: multipart/form-data' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -F file=string
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}