Harness Resource Group
This contains APIs specific to the Harness Resource Group
Get list of resource groups
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Details of all the resource groups having this string in their name or identifier will be returned.
Page Index of the results to fetch.Default Value: 0
0Results per page(min 1, max 100)Default Value: 50
50Page Token of the next results to fetch.Default Value: ''
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
This contains a list of Resource Groups
GET /gateway/authz/api/v2/resourcegroup?accountIdentifier=text HTTP/1.1
Host: access-control-79894d6ccb-ltplk
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Create a resource group
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Contains resource group request
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Successfully created a Resource Group
POST /gateway/authz/api/v2/resourcegroup?accountIdentifier=text HTTP/1.1
Host: access-control-79894d6ccb-ltplk
Content-Type: application/json
Accept: */*
Content-Length: 547
{
"resourceGroup": {
"accountIdentifier": "text",
"orgIdentifier": "text",
"projectIdentifier": "text",
"identifier": "text",
"name": "text",
"color": "text",
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"description": "text",
"allowedScopeLevels": [
"text"
],
"includedScopes": [
{
"filter": "EXCLUDING_CHILD_SCOPES",
"accountIdentifier": "text",
"orgIdentifier": "text",
"projectIdentifier": "text"
}
],
"resourceFilter": {
"resources": [
{
"resourceType": "text",
"identifiers": [
"text"
],
"attributeFilter": {
"attributeName": "text",
"attributeValues": [
"text"
]
}
}
],
"includeAllResources": true
}
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Get a resource group by identifier
Identifier for the Entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
This returns a Resource Group specific to the Identifier
GET /gateway/authz/api/v2/resourcegroup/{identifier}?accountIdentifier=text HTTP/1.1
Host: access-control-79894d6ccb-ltplk
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Update a resource group
Identifier for the Entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Contains resource group request
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Successfully updated a Resource Group
PUT /gateway/authz/api/v2/resourcegroup/{identifier}?accountIdentifier=text HTTP/1.1
Host: access-control-79894d6ccb-ltplk
Content-Type: application/json
Accept: */*
Content-Length: 547
{
"resourceGroup": {
"accountIdentifier": "text",
"orgIdentifier": "text",
"projectIdentifier": "text",
"identifier": "text",
"name": "text",
"color": "text",
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"description": "text",
"allowedScopeLevels": [
"text"
],
"includedScopes": [
{
"filter": "EXCLUDING_CHILD_SCOPES",
"accountIdentifier": "text",
"orgIdentifier": "text",
"projectIdentifier": "text"
}
],
"resourceFilter": {
"resources": [
{
"resourceType": "text",
"identifiers": [
"text"
],
"attributeFilter": {
"attributeName": "text",
"attributeValues": [
"text"
]
}
}
],
"includeAllResources": true
}
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Delete a resource group
Identifier for the Entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Successfully deleted a Resource Group
DELETE /gateway/authz/api/v2/resourcegroup/{identifier}?accountIdentifier=text HTTP/1.1
Host: access-control-79894d6ccb-ltplk
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}This fetches a filtered list of Resource Groups
Account Identifier for the Entity.
Page Index of the results to fetch.Default Value: 0
0Results per page(min 1, max 100)Default Value: 50
50Page Token of the next results to fetch.Default Value: ''
Contains information of filters for Resource Group
Filter by account identifier
Filter by organization identifier
Filter by project identifier
Filter resource group matching by identifier/name
Filter by resource group identifiers
Filter based on whether the resource group is Harness managed
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
This fetches the list of Resource Groups filtered by multiple fields.
POST /gateway/authz/api/v2/resourcegroup/filter?accountIdentifier=text HTTP/1.1
Host: access-control-79894d6ccb-ltplk
Content-Type: application/json
Accept: */*
Content-Length: 369
{
"accountIdentifier": "text",
"orgIdentifier": "text",
"projectIdentifier": "text",
"searchTerm": "text",
"identifierFilter": [
"text"
],
"resourceSelectorFilterList": [
{
"resourceType": "text",
"resourceIdentifier": "text"
}
],
"managedFilter": "NO_FILTER",
"includedScopes": [
{
"filter": "EXCLUDING_CHILD_SCOPES",
"accountIdentifier": "text",
"orgIdentifier": "text",
"projectIdentifier": "text"
}
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?