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

Accounts

This contains APIs related to accounts as defined in Harness

Gets an account

get
Path parameters
accountIdentifierstringRequired

Account 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/accounts/{accountIdentifier}
GET /gateway/ng/api/accounts/{accountIdentifier} HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Returns a list of all enabled feature flags in the account

get
Path parameters
accountIdentifierstringRequired

Account 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/accounts/feature-flags/{accountIdentifier}
GET /gateway/ng/api/accounts/feature-flags/{accountIdentifier} HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Checks if immutable delegate is enabled for account

get
Path parameters
accountIdentifierstringRequired

Account 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/accounts/{accountIdentifier}/immutable-delegate-enabled
GET /gateway/ng/api/accounts/{accountIdentifier}/immutable-delegate-enabled HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

License update from UI

put
Path parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Query parameters
accountStatusstringRequired

Account License Status for the Entity.

accountTypestringRequired

Account License Type for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/accounts/license/update/{accountIdentifier}
PUT /gateway/ng/api/accounts/license/update/{accountIdentifier}?accountStatus=text&accountType=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"
    }
  ]
}

Update Account Name

put
Path parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Body

Account details defined in Harness.

identifierstringOptional

Account Identifier.

namestringOptional

Name of the Account.

companyNamestringOptional

Name of the Company.

accountTypestringOptional

Type of the Account

accountStatusstringOptional

Status of the Account

clusterstringOptional

Name of the cluster associated with this Account.

defaultExperiencestring · enumOptional

Default experience of the Account.

Possible values:
authenticationMechanismstring · enumOptional

Authentication mechanism associated with the account.

Possible values:
createdAtinteger · int64Optional

Account creation time in epoch

expiryTimeinteger · int64Optional

Account's license expiry time in epoch

ringNamestringOptional

Specifies delegate ring version for account

subdomainURLstringOptional

Specifies subdomain url for account

sessionTimeoutInMinutesinteger · int32Optional

SessionTimeout in minutes

publicAccessEnabledbooleanOptional

Specifies if Account has public access enabled.

absoluteSessionTimeoutInMinutesinteger · int32Optional

Absolute SessionTimeout in minutes

pricingTypestring · enumOptional

Specifies the pricing type of account

Possible values:
editionstring · enumOptional

Specified the edition of account in flex pricing model

Possible values:
contractStartDateinteger · int64Optional

Contract Start Date in epoch

contractEndDateinteger · int64Optional

Contract End Date in epoch

harnessSupportAccessAllowedbooleanOptional
nextGenEnabledbooleanOptional
twoFactorAdminEnforcedbooleanOptional
oauthEnabledbooleanOptional
productLedbooleanOptional
crossGenerationAccessEnabledbooleanOptional
cannyUsernameAbbreviationEnabledbooleanOptional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/accounts/{accountIdentifier}/name
PUT /gateway/ng/api/accounts/{accountIdentifier}/name HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 686

{
  "identifier": "text",
  "name": "text",
  "companyName": "text",
  "accountType": "text",
  "accountStatus": "text",
  "cluster": "text",
  "defaultExperience": "NG",
  "authenticationMechanism": "USER_PASSWORD",
  "serviceAccountConfig": {
    "apiKeyLimit": 1,
    "tokenLimit": 1
  },
  "createdAt": 1,
  "expiryTime": 1,
  "ringName": "text",
  "subdomainURL": "text",
  "sessionTimeoutInMinutes": 1,
  "publicAccessEnabled": true,
  "absoluteSessionTimeoutInMinutes": 1,
  "pricingType": "FLEX",
  "edition": "COMMUNITY",
  "contractStartDate": 1,
  "contractEndDate": 1,
  "harnessSupportAccessAllowed": true,
  "nextGenEnabled": true,
  "twoFactorAdminEnforced": true,
  "oauthEnabled": true,
  "productLed": true,
  "crossGenerationAccessEnabled": true,
  "cannyUsernameAbbreviationEnabled": true
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Update Default Experience

put
Path parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Body

Account details defined in Harness.

identifierstringOptional

Account Identifier.

namestringOptional

Name of the Account.

companyNamestringOptional

Name of the Company.

accountTypestringOptional

Type of the Account

accountStatusstringOptional

Status of the Account

clusterstringOptional

Name of the cluster associated with this Account.

defaultExperiencestring · enumOptional

Default experience of the Account.

Possible values:
authenticationMechanismstring · enumOptional

Authentication mechanism associated with the account.

Possible values:
createdAtinteger · int64Optional

Account creation time in epoch

expiryTimeinteger · int64Optional

Account's license expiry time in epoch

ringNamestringOptional

Specifies delegate ring version for account

subdomainURLstringOptional

Specifies subdomain url for account

sessionTimeoutInMinutesinteger · int32Optional

SessionTimeout in minutes

publicAccessEnabledbooleanOptional

Specifies if Account has public access enabled.

absoluteSessionTimeoutInMinutesinteger · int32Optional

Absolute SessionTimeout in minutes

pricingTypestring · enumOptional

Specifies the pricing type of account

Possible values:
editionstring · enumOptional

Specified the edition of account in flex pricing model

Possible values:
contractStartDateinteger · int64Optional

Contract Start Date in epoch

contractEndDateinteger · int64Optional

Contract End Date in epoch

harnessSupportAccessAllowedbooleanOptional
nextGenEnabledbooleanOptional
twoFactorAdminEnforcedbooleanOptional
oauthEnabledbooleanOptional
productLedbooleanOptional
crossGenerationAccessEnabledbooleanOptional
cannyUsernameAbbreviationEnabledbooleanOptional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/accounts/{accountIdentifier}/default-experience
PUT /gateway/ng/api/accounts/{accountIdentifier}/default-experience HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 686

{
  "identifier": "text",
  "name": "text",
  "companyName": "text",
  "accountType": "text",
  "accountStatus": "text",
  "cluster": "text",
  "defaultExperience": "NG",
  "authenticationMechanism": "USER_PASSWORD",
  "serviceAccountConfig": {
    "apiKeyLimit": 1,
    "tokenLimit": 1
  },
  "createdAt": 1,
  "expiryTime": 1,
  "ringName": "text",
  "subdomainURL": "text",
  "sessionTimeoutInMinutes": 1,
  "publicAccessEnabled": true,
  "absoluteSessionTimeoutInMinutes": 1,
  "pricingType": "FLEX",
  "edition": "COMMUNITY",
  "contractStartDate": 1,
  "contractEndDate": 1,
  "harnessSupportAccessAllowed": true,
  "nextGenEnabled": true,
  "twoFactorAdminEnforced": true,
  "oauthEnabled": true,
  "productLed": true,
  "crossGenerationAccessEnabled": true,
  "cannyUsernameAbbreviationEnabled": true
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Last updated

Was this helpful?