serviceaccount

List service account

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
required
string
orgIdentifier
string
projectIdentifier
string
identifiers
Array of strings
Responses
200

successful operation

400

Bad Request

500

Internal server error

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

Create service account

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
required
string
orgIdentifier
string
projectIdentifier
string
Request Body schema:
identifier
required
string
name
required
string
email
required
string
description
string [ 0 .. 1024 ] characters
object
accountIdentifier
required
string
orgIdentifier
string
projectIdentifier
string
Responses
200

successful operation

400

Bad Request

500

Internal server error

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

Update service account

Request
Security:
ApiKey (readwrite)
path Parameters
identifier
required
string
query Parameters
accountIdentifier
required
string
orgIdentifier
string
projectIdentifier
string
Request Body schema:
identifier
required
string
name
required
string
email
required
string
description
string [ 0 .. 1024 ] characters
object
accountIdentifier
required
string
orgIdentifier
string
projectIdentifier
string
Responses
200

successful operation

400

Bad Request

500

Internal server error

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

Delete service account

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

successful operation

400

Bad Request

500

Internal server error

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

List service account

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

successful operation

400

Bad Request

500

Internal server error

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

Get service account

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

successful operation

400

Bad Request

500

Internal server error

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