Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Harness Resource Group

This contains APIs specific to the Harness Resource Group

List Resource Groups

get

Get list of resource groups

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

searchTermstringOptional

Details of all the resource groups having this string in their name or identifier will be returned.

pageIndexinteger · int32Optional

Page Index of the results to fetch.Default Value: 0

Default: 0
pageSizeinteger · int32 · min: 1 · max: 100Optional

Results per page(min 1, max 100)Default Value: 50

Default: 50
pageTokenstringOptional

Page Token of the next results to fetch.Default Value: ''

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/v2/resourcegroup
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 Resource Group

post

Create a resource group

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body

Contains resource group request

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/v2/resourcegroup
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 Resource Group

get

Get a resource group by identifier

Path parameters
identifierstringRequired

Identifier for the Entity.

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/v2/resourcegroup/{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 Resource Group

put

Update a resource group

Path parameters
identifierstringRequired

Identifier for the Entity.

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body

Contains resource group request

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/v2/resourcegroup/{identifier}
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 Resource Group

delete

Delete a resource group

Path parameters
identifierstringRequired

Identifier for the Entity.

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
delete/v2/resourcegroup/{identifier}
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"
    }
  ]
}

List Resource Groups by filter

post

This fetches a filtered list of Resource Groups

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

pageIndexinteger · int32Optional

Page Index of the results to fetch.Default Value: 0

Default: 0
pageSizeinteger · int32 · min: 1 · max: 100Optional

Results per page(min 1, max 100)Default Value: 50

Default: 50
pageTokenstringOptional

Page Token of the next results to fetch.Default Value: ''

Body

Contains information of filters for Resource Group

accountIdentifierstringRequired

Filter by account identifier

orgIdentifierstringOptional

Filter by organization identifier

projectIdentifierstringOptional

Filter by project identifier

searchTermstringOptional

Filter resource group matching by identifier/name

identifierFilterstring[]Optional

Filter by resource group identifiers

managedFilterstring · enumOptional

Filter based on whether the resource group is Harness managed

Possible values:
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/v2/resourcegroup/filter
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?