resourcegroup

Get a resource group by identifier

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

403

Unauthorized

500

Internal server error

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

Update a resource group

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

successful operation

400

Bad Request

403

Unauthorized

500

Internal server error

put/resourcegroup/api/resourcegroup/{identifier}
Request samples
{
  • "resourcegroup": {
    }
}
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}

Delete a resource group

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

403

Unauthorized

500

Internal server error

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

Get filtered resource group list

Request
Security:
ApiKey (readwrite)
query Parameters
pageIndex
integer <int32>
Default: 0
pageSize
integer <int32> <= 100
Default: 50
sortOrders
Array of strings
Request Body schema:
accountIdentifier
string
orgIdentifier
string
projectIdentifier
string
searchTerm
string
identifierFilter
Array of strings unique
Array of objects (ResourceSelectorFilter) unique
managedFilter
string
Enum: "NO_FILTER" "ONLY_MANAGED" "ONLY_CUSTOM"
Responses
200

successful operation

400

Bad Request

403

Unauthorized

500

Internal server error

post/resourcegroup/api/resourcegroup/filter
Request samples
{
  • "accountIdentifier": "string",
  • "orgIdentifier": "string",
  • "projectIdentifier": "string",
  • "searchTerm": "string",
  • "identifierFilter": [
    ],
  • "resourceSelectorFilterList": [
    ],
  • "managedFilter": "NO_FILTER"
}
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}

Get list of resource groups

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

successful operation

400

Bad Request

403

Unauthorized

500

Internal server error

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

Create a resource group

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
required
string
orgIdentifier
string
projectIdentifier
string
Request Body schema:
required
object (resourcegroupResourceGroupDTO)
Responses
200

successful operation

400

Bad Request

403

Unauthorized

500

Internal server error

post/resourcegroup/api/resourcegroup
Request samples
{
  • "resourcegroup": {
    }
}
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}