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

Delegate Token Resource

Contains APIs related to Delegate Token management

Retrieves Delegate Tokens by Account, Organization, Project and status.

get
Query parameters
namestringOptional

Name of Delegate Token (ACTIVE or REVOKED).

accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

statusstring · enumOptional

Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be retrieved

Possible values:
Responses
200

Successfully retrieved list of delegate tokens

uuidstringOptional
accountIdstringOptional
namestringOptional
createdAtinteger · int64Optional
statusstring · enumOptionalPossible values:
valuestringOptional

Value of delegate token. This is only populated when fetching delegate token by name or the user has edit delegate permission.

ownerIdentifierstringOptional
parentUniqueIdstringOptional
revokeAfterinteger · int64Optional
get/delegate-token-ng
GET /gateway/ng/api/delegate-token-ng?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "uuid": "text",
  "accountId": "text",
  "name": "text",
  "createdBy": {
    "uuid": "text",
    "name": "text",
    "email": "text",
    "externalUserId": "text"
  },
  "createdByNgUser": {
    "type": "USER",
    "name": "text",
    "jwtclaims": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    }
  },
  "createdAt": 1,
  "status": "ACTIVE",
  "value": "text",
  "ownerIdentifier": "text",
  "parentUniqueId": "text",
  "revokeAfter": 1
}

Creates Delegate Token.

post
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

tokenNamestringRequired

Delegate Token name

revokeAfterinteger · int64Optional

Epoch time in milliseconds after which the token will be marked as revoked. There can be a delay of upto one hour from the epoch value provided and actual revoking of the token.

Responses
200

Successfully created delegate token

uuidstringOptional
accountIdstringOptional
namestringOptional
createdAtinteger · int64Optional
statusstring · enumOptionalPossible values:
valuestringOptional

Value of delegate token. This is only populated when fetching delegate token by name or the user has edit delegate permission.

ownerIdentifierstringOptional
parentUniqueIdstringOptional
revokeAfterinteger · int64Optional
post/delegate-token-ng
POST /gateway/ng/api/delegate-token-ng?accountIdentifier=text&tokenName=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "uuid": "text",
  "accountId": "text",
  "name": "text",
  "createdBy": {
    "uuid": "text",
    "name": "text",
    "email": "text",
    "externalUserId": "text"
  },
  "createdByNgUser": {
    "type": "USER",
    "name": "text",
    "jwtclaims": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    }
  },
  "createdAt": 1,
  "status": "ACTIVE",
  "value": "text",
  "ownerIdentifier": "text",
  "parentUniqueId": "text",
  "revokeAfter": 1
}

Revokes Delegate Token.

put
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

tokenNamestringRequired

Delegate Token name

Responses
200

Successfully revoked delegate token

uuidstringOptional
accountIdstringOptional
namestringOptional
createdAtinteger · int64Optional
statusstring · enumOptionalPossible values:
valuestringOptional

Value of delegate token. This is only populated when fetching delegate token by name or the user has edit delegate permission.

ownerIdentifierstringOptional
parentUniqueIdstringOptional
revokeAfterinteger · int64Optional
put/delegate-token-ng
PUT /gateway/ng/api/delegate-token-ng?accountIdentifier=text&tokenName=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "uuid": "text",
  "accountId": "text",
  "name": "text",
  "createdBy": {
    "uuid": "text",
    "name": "text",
    "email": "text",
    "externalUserId": "text"
  },
  "createdByNgUser": {
    "type": "USER",
    "name": "text",
    "jwtclaims": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    }
  },
  "createdAt": 1,
  "status": "ACTIVE",
  "value": "text",
  "ownerIdentifier": "text",
  "parentUniqueId": "text",
  "revokeAfter": 1
}

Deletes a revoked Delegate Token.

delete
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

tokenNamestringRequired

Delegate Token name

Responses
204

Successfully deleted delegate token, no content returned

No content

delete/delegate-token-ng
DELETE /gateway/ng/api/delegate-token-ng?accountIdentifier=text&tokenName=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*

No content

Lists delegate groups that are using the specified delegate token.

get
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

delegateTokenNamestringOptional

Delegate Token name

Responses
200

Successfully retrieved list of delegate groups using the specified token

autoUpgradeOffCountinteger · int64Optional
get/delegate-token-ng/delegate-groups
GET /gateway/ng/api/delegate-token-ng/delegate-groups?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "delegateGroupDetails": [
    {
      "groupId": "text",
      "delegateGroupIdentifier": "text",
      "delegateType": "text",
      "groupName": "text",
      "delegateDescription": "text",
      "delegateConfigurationId": "text",
      "groupImplicitSelectors": {
        "ANY_ADDITIONAL_PROPERTY": "PROFILE_NAME"
      },
      "groupCustomSelectors": [
        "text"
      ],
      "lastHeartBeat": 1,
      "connectivityStatus": "text",
      "activelyConnected": true,
      "grpcActive": true,
      "delegateInstanceDetails": [
        {
          "uuid": "text",
          "lastHeartbeat": 1,
          "activelyConnected": true,
          "hostName": "text",
          "tokenActive": true,
          "version": "text",
          "delegateExpirationTime": 1,
          "polllingModeEnabled": true,
          "connections": [
            {
              "uuid": "text",
              "version": "text",
              "lastHeartbeat": 1,
              "lastGrpcHeartbeat": 1
            }
          ],
          "delegateInstanceVersionStatus": "EXPIRED",
          "runner": true,
          "disabled": true,
          "ztsDetails": {
            "ztsEnabled": true,
            "ztsEnforce": true,
            "ztsTimeoutSeconds": 1,
            "ztsRetryCount": 1,
            "ztsMode": "ENFORCE"
          }
        }
      ],
      "tokenActive": true,
      "autoUpgrade": "ON",
      "delegateGroupExpirationTime": 1,
      "delegateVersion": "text",
      "upgraderLastUpdated": 1,
      "immutable": true,
      "groupVersion": "text",
      "delegateGroupVersionStatus": "EXPIRED",
      "delegateVersionStatusInstanceLevelCount": {
        "counts": {
          "ANY_ADDITIONAL_PROPERTY": 1
        }
      },
      "ztsDetails": {
        "ztsEnabled": true,
        "ztsEnforce": true,
        "ztsTimeoutSeconds": 1,
        "ztsRetryCount": 1,
        "ztsMode": "ENFORCE"
      },
      "unsupported": true
    }
  ],
  "delegateVersionStatusAggregatedCount": {
    "counts": {
      "ANY_ADDITIONAL_PROPERTY": 1
    }
  },
  "autoUpgradeOffCount": 1
}

Last updated

Was this helpful?