gitopsproviders

Validate Identifier is unique

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
string
orgIdentifier
string
projectIdentifier
string
identifier
string
Responses
200

successful operation

400

Bad Request

500

Internal server error

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

Get GitOps Provider

Request
Security:
ApiKey (readwrite)
path Parameters
identifier
required
string
query Parameters
accountIdentifier
string
orgIdentifier
string
projectIdentifier
string
Responses
200

successful operation

400

Bad Request

500

Internal server error

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

Deletes a GitOpsProvider

Request
Security:
ApiKey (readwrite)
path Parameters
identifier
required
string
query Parameters
accountIdentifier
string
orgIdentifier
string
projectIdentifier
string
Responses
200

successful operation

400

Bad Request

500

Internal server error

delete/ng/api/gitopsproviders/{identifier}
Request samples
curl -i -X DELETE \
  'https://app.harness.io/gateway/ng/api/gitopsproviders/:identifier?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "data": true,
  • "metaData": { },
  • "correlationId": "string"
}

Updates a GitOpsProvider

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
string
orgIdentifier
string
Default: "default"
projectIdentifier
string
branch
string
repoIdentifier
string
rootFolder
string
filePath
string
commitMsg
string
baseBranch
string
Request Body schema:
name
required
string
identifier
required
string
description
string
orgIdentifier
string
projectIdentifier
string
object
required
object (GitOpsInfoDTO)
Responses
200

successful operation

400

Bad Request

500

Internal server error

put/ng/api/gitopsproviders
Request samples
{
  • "name": "string",
  • "identifier": "string",
  • "description": "string",
  • "orgIdentifier": "string",
  • "projectIdentifier": "string",
  • "tags": {
    },
  • "spec": { }
}
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}

Creates a GitOpsProvider

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
string
orgIdentifier
string
Default: "default"
projectIdentifier
string
branch
string
repoIdentifier
string
rootFolder
string
filePath
string
commitMsg
string
baseBranch
string
Request Body schema:
name
required
string
identifier
required
string
description
string
orgIdentifier
string
projectIdentifier
string
object
required
object (GitOpsInfoDTO)
Responses
200

successful operation

400

Bad Request

500

Internal server error

post/ng/api/gitopsproviders
Request samples
{
  • "name": "string",
  • "identifier": "string",
  • "description": "string",
  • "orgIdentifier": "string",
  • "projectIdentifier": "string",
  • "tags": {
    },
  • "spec": { }
}
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}

List GitOps Providers

Request
Security:
ApiKey (readwrite)
query Parameters
pageIndex
integer <int32>
Default: 0
pageSize
integer <int32>
Default: 100
sort
Array of strings
accountIdentifier
string
orgIdentifier
string
projectIdentifier
string
searchTerm
string
Responses
200

successful operation

400

Bad Request

500

Internal server error

get/ng/api/gitopsproviders/list
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/ng/api/gitopsproviders/list?pageIndex=0&pageSize=100&sort=string&accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&searchTerm=string' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}