Environment Group
This contains APIs related to EnvironmentGroup.
Account Identifier for the Entity.
Name of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
if true, return all the default entities
This is the EnvironmentGroupRequest entity defined in Harness
Organization Identifier for the Entity.
Project Identifier for the Entity.
Identifier of the Environment Group.
^[a-zA-Z_][0-9a-zA-Z_]{0,127}$Color of the Environment Group.
Yaml of the Environment Group.
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
If the YAML is valid, returns created Environment Group. If not, it sends what is wrong with the YAML
POST /gateway/ng/api/environmentGroup?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 378
{
"name": "environmentGroup",
"identifier": "environmentGroupId",
"orgIdentifier": "default",
"projectIdentifier": "projectIdentifier",
"yaml": "environmentGroup:\n name: environmentGroup\n identifier: environmentGroupId\n description: \"\"\n tags: {}\n orgIdentifier: default\n projectIdentifier: projectIdentifier\n envIdentifiers:\n - EnvironmentId1\n - EnvironmentId2\n"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Environment Group Identifier for the entity
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Specify whether environment group is deleted or not
falseName of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
if true, return all the default entities
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
The saved Environment Group
GET /gateway/ng/api/environmentGroup/{envGroupIdentifier}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Environment Group Identifier for the entity
Account Identifier for the Entity.
Name of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
Path to the root folder of the Entity. [Applicable for Old Git Sync only]
File Path of the Entity.
Commit Message to use for the merge commit.
Its required field during update call request. It can be fetched from the response of GET API call for the entity
If the entity is git-synced, this parameter represents the commit id against which file conflicts are resolved
Name of the default branch.
Identifier of Connector needed for CRUD operations on the respective Entity
last commit id of the file
Checks the new branch
falseIs Harness code repo enabled
This is the EnvironmentGroupRequest entity defined in Harness
Organization Identifier for the Entity.
Project Identifier for the Entity.
Identifier of the Environment Group.
^[a-zA-Z_][0-9a-zA-Z_]{0,127}$Color of the Environment Group.
Yaml of the Environment Group.
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns the updated Environment Group
PUT /gateway/ng/api/environmentGroup/{envGroupIdentifier}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 378
{
"name": "environmentGroup",
"identifier": "environmentGroupId",
"orgIdentifier": "default",
"projectIdentifier": "projectIdentifier",
"yaml": "environmentGroup:\n name: environmentGroup\n identifier: environmentGroupId\n description: \"\"\n tags: {}\n orgIdentifier: default\n projectIdentifier: projectIdentifier\n envIdentifiers:\n - EnvironmentId1\n - EnvironmentId2\n"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Environment Group Identifier for the entity
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Name of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
Path to the root folder of the Entity. [Applicable for Old Git Sync only]
File Path of the Entity.
Commit Message to use for the merge commit.
Last Object Id
If true, the Entity will be forced delete, without checking any references/usages
falseBad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns true if the Environment Group is deleted
DELETE /gateway/ng/api/environmentGroup/{envGroupIdentifier}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The word to be searched and included in the list response
Page Index of the results to fetch.Default Value: 0
0Results per page
25Sort criteria for the elements.
Filter identifier
Name of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
if true, return all the default entities
Specify true if all accessible environment groups are to be included
falseProperties of the Filter entity defined in Harness.
This specifies the corresponding Entity of the filter.
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Returns the list of Environment Groups
POST /gateway/ng/api/environmentGroup/list?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 68
{
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"filterType": "Connector"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?