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

Api Key

This fetches API keys defined in Harness

Fetches the list of API Keys corresponding to the request's filter criteria.

get
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

apiKeyTypestring · enumRequired

This is the API Key type like Personal Access Key or Service Account Key.

Possible values:
parentIdentifierstringRequired

ID of API key's Parent Service Account

identifiersstring[]Optional

This is the list of API Key IDs. Details specific to these IDs would be fetched.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/apikey
GET /gateway/ng/api/apikey?accountIdentifier=text&apiKeyType=USER&parentIdentifier=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"
    }
  ]
}

Creates an API key

post
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Body

This has API Key details defined in Harness.

identifierstringRequired

Identifier of the API Key

namestringRequired

Name of the API Key

descriptionstring · max: 1024Optional

Description of the API Key

apiKeyTypestring · enumOptional

Type of the API Key

Possible values:
parentIdentifierstringRequired

Parent Entity Identifier of the API Key

defaultTimeToExpireTokeninteger · int64Optional

Default expiration time of the Token within API Key.

accountIdentifierstringRequired

Account Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/apikey
POST /gateway/ng/api/apikey?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 14818

{
  "identifier": "text",
  "name": "text",
  "description": "text",
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "apiKeyType": "USER",
  "parentIdentifier": "text",
  "defaultTimeToExpireToken": 1,
  "accountIdentifier": "text",
  "projectIdentifier": "text",
  "orgIdentifier": "text",
  "governanceMetadata": {
    "unknownFields": {
      "empty": true,
      "defaultInstanceForType": {
        "empty": true,
        "defaultInstanceForType": {
          "empty": true,
          "defaultInstanceForType": {
            "empty": true,
            "defaultInstanceForType": "[Circular Reference]",
            "parserForType": {},
            "serializedSize": 1,
            "serializedSizeAsMessageSet": 1,
            "initialized": true
          },
          "parserForType": {},
          "serializedSize": 1,
          "serializedSizeAsMessageSet": 1,
          "initialized": true
        },
        "parserForType": {},
        "serializedSize": 1,
        "serializedSizeAsMessageSet": 1,
        "initialized": true
      },
      "parserForType": {},
      "serializedSize": 1,
      "serializedSizeAsMessageSet": 1,
      "initialized": true
    },
    "message": "text",
    "id": "text",
    "type": "text",
    "timestamp": 1,
    "projectId": "text",
    "status": "text",
    "entity": "text",
    "action": "text",
    "defaultInstanceForType": {
      "unknownFields": {
        "empty": true,
        "defaultInstanceForType": {
          "empty": true,
          "defaultInstanceForType": {
            "empty": true,
            "defaultInstanceForType": {
              "empty": true,
              "defaultInstanceForType": "[Circular Reference]",
              "parserForType": {},
              "serializedSize": 1,
              "serializedSizeAsMessageSet": 1,
              "initialized": true
            },
            "parserForType": {},
            "serializedSize": 1,
            "serializedSizeAsMessageSet": 1,
            "initialized": true
          },
          "parserForType": {},
          "serializedSize": 1,
          "serializedSizeAsMessageSet": 1,
          "initialized": true
        },
        "parserForType": {},
        "serializedSize": 1,
        "serializedSizeAsMessageSet": 1,
        "initialized": true
      },
      "message": "text",
      "id": "text",
      "type": "text",
      "timestamp": 1,
      "projectId": "text",
      "status": "text",
      "entity": "text",
      "action": "text",
      "defaultInstanceForType": {
        "unknownFields": {
          "empty": true,
          "defaultInstanceForType": {
            "empty": true,
            "defaultInstanceForType": {
              "empty": true,
              "defaultInstanceForType": {
                "empty": true,
                "defaultInstanceForType": "[Circular Reference]",
                "parserForType": {},
                "serializedSize": 1,
                "serializedSizeAsMessageSet": 1,
                "initialized": true
              },
              "parserForType": {},
              "serializedSize": 1,
              "serializedSizeAsMessageSet": 1,
              "initialized": true
            },
            "parserForType": {},
            "serializedSize": 1,
            "serializedSizeAsMessageSet": 1,
            "initialized": true
          },
          "parserForType": {},
          "serializedSize": 1,
          "serializedSizeAsMessageSet": 1,
          "initialized": true
        },
        "message": "text",
        "id": "text",
        "type": "text",
        "timestamp": 1,
        "projectId": "text",
        "status": "text",
        "entity": "text",
        "action": "text",
        "defaultInstanceForType": {
          "unknownFields": {
            "empty": true,
            "defaultInstanceForType": {
              "empty": true,
              "defaultInstanceForType": {
                "empty": true,
                "defaultInstanceForType": {
                  "empty": true,
                  "defaultInstanceForType": "[Circular Reference]",
                  "parserForType": {},
                  "serializedSize": 1,
                  "serializedSizeAsMessageSet": 1,
                  "initialized": true
                },
                "parserForType": {},
                "serializedSize": 1,
                "serializedSizeAsMessageSet": 1,
                "initialized": true
              },
              "parserForType": {},
              "serializedSize": 1,
              "serializedSizeAsMessageSet": 1,
              "initialized": true
            },
            "parserForType": {},
            "serializedSize": 1,
            "serializedSizeAsMessageSet": 1,
            "initialized": true
          },
          "message": "text",
          "id": "text",
          "type": "text",
          "timestamp": 1,
          "projectId": "text",
          "status": "text",
          "entity": "text",
          "action": "text",
          "defaultInstanceForType": {
            "unknownFields": {
              "empty": true,
              "defaultInstanceForType": {
                "empty": true,
                "defaultInstanceForType": {
                  "empty": true,
                  "defaultInstanceForType": {
                    "empty": true,
                    "defaultInstanceForType": "[Circular Reference]",
                    "parserForType": {},
                    "serializedSize": 1,
                    "serializedSizeAsMessageSet": 1,
                    "initialized": true
                  },
                  "parserForType": {},
                  "serializedSize": 1,
                  "serializedSizeAsMessageSet": 1,
                  "initialized": true
                },
                "parserForType": {},
                "serializedSize": 1,
                "serializedSizeAsMessageSet": 1,
                "initialized": true
              },
              "parserForType": {},
              "serializedSize": 1,
              "serializedSizeAsMessageSet": 1,
              "initialized": true
            },
            "message": "text",
            "id": "text",
            "type": "text",
            "timestamp": 1,
            "projectId": "text",
            "status": "text",
            "entity": "text",
            "action": "text",
            "defaultInstanceForType": "[Circular Reference]",
            "parserForType": {},
            "serializedSize": 1,
            "typeBytes": {
              "empty": true,
              "validUtf8": true
            },
            "messageBytes": {
              "empty": true,
              "validUtf8": true
            },
            "statusBytes": {
              "empty": true,
              "validUtf8": true
            },
            "accountId": "text",
            "accountIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "orgId": "text",
            "orgIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "projectIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "created": 1,
            "deny": true,
            "detailsList": "[Circular Reference]",
            "idBytes": {
              "empty": true,
              "validUtf8": true
            },
            "detailsCount": 1,
            "detailsOrBuilderList": "[Circular Reference]",
            "entityBytes": {
              "empty": true,
              "validUtf8": true
            },
            "actionBytes": {
              "empty": true,
              "validUtf8": true
            },
            "initialized": true,
            "allFields": {
              "ANY_ADDITIONAL_PROPERTY": {}
            },
            "descriptorForType": "[Circular Reference]",
            "initializationErrorString": "text",
            "memoizedSerializedSize": 1
          },
          "parserForType": {},
          "serializedSize": 1,
          "typeBytes": {
            "empty": true,
            "validUtf8": true
          },
          "messageBytes": {
            "empty": true,
            "validUtf8": true
          },
          "statusBytes": {
            "empty": true,
            "validUtf8": true
          },
          "accountId": "text",
          "accountIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "orgId": "text",
          "orgIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "projectIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "created": 1,
          "deny": true,
          "detailsList": [
            "[Circular Reference]"
          ],
          "idBytes": {
            "empty": true,
            "validUtf8": true
          },
          "detailsCount": 1,
          "detailsOrBuilderList": [
            "[Circular Reference]"
          ],
          "entityBytes": {
            "empty": true,
            "validUtf8": true
          },
          "actionBytes": {
            "empty": true,
            "validUtf8": true
          },
          "initialized": true,
          "allFields": {
            "ANY_ADDITIONAL_PROPERTY": {}
          },
          "descriptorForType": {
            "index": 1,
            "proto": "[Circular Reference]",
            "options": "[Circular Reference]",
            "fullName": "text",
            "file": "[Circular Reference]",
            "containingType": "[Circular Reference]",
            "nestedTypes": "[Circular Reference]",
            "enumTypes": "[Circular Reference]",
            "fields": "[Circular Reference]",
            "extensions": "[Circular Reference]",
            "oneofs": "[Circular Reference]",
            "name": "text",
            "extendable": true,
            "realOneofs": "[Circular Reference]"
          },
          "initializationErrorString": "text",
          "memoizedSerializedSize": 1
        },
        "parserForType": {},
        "serializedSize": 1,
        "typeBytes": {
          "empty": true,
          "validUtf8": true
        },
        "messageBytes": {
          "empty": true,
          "validUtf8": true
        },
        "statusBytes": {
          "empty": true,
          "validUtf8": true
        },
        "accountId": "text",
        "accountIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "orgId": "text",
        "orgIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "projectIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "created": 1,
        "deny": true,
        "detailsList": [
          {
            "unknownFields": "[Circular Reference]",
            "description": "text",
            "projectId": "text",
            "status": "text",
            "defaultInstanceForType": "[Circular Reference]",
            "parserForType": {},
            "serializedSize": 1,
            "identifierBytes": {
              "empty": true,
              "validUtf8": true
            },
            "statusBytes": {
              "empty": true,
              "validUtf8": true
            },
            "accountId": "text",
            "accountIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "orgId": "text",
            "orgIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "projectIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "created": 1,
            "policySetIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "deny": true,
            "policyMetadataList": "[Circular Reference]",
            "policyMetadataCount": 1,
            "policyMetadataOrBuilderList": "[Circular Reference]",
            "policySetName": "text",
            "policySetNameBytes": {
              "empty": true,
              "validUtf8": true
            },
            "descriptionBytes": {
              "empty": true,
              "validUtf8": true
            },
            "policySetId": "text",
            "initialized": true,
            "identifier": "text",
            "allFields": {
              "ANY_ADDITIONAL_PROPERTY": {}
            },
            "descriptorForType": "[Circular Reference]",
            "initializationErrorString": "text",
            "memoizedSerializedSize": 1
          }
        ],
        "idBytes": {
          "empty": true,
          "validUtf8": true
        },
        "detailsCount": 1,
        "detailsOrBuilderList": [
          {
            "description": "text",
            "projectId": "text",
            "status": "text",
            "identifierBytes": {
              "empty": true,
              "validUtf8": true
            },
            "statusBytes": {
              "empty": true,
              "validUtf8": true
            },
            "accountId": "text",
            "accountIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "orgId": "text",
            "orgIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "projectIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "created": 1,
            "policySetIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "deny": true,
            "policyMetadataList": "[Circular Reference]",
            "policyMetadataCount": 1,
            "policyMetadataOrBuilderList": "[Circular Reference]",
            "policySetName": "text",
            "policySetNameBytes": {
              "empty": true,
              "validUtf8": true
            },
            "descriptionBytes": {
              "empty": true,
              "validUtf8": true
            },
            "policySetId": "text",
            "identifier": "text",
            "allFields": {
              "ANY_ADDITIONAL_PROPERTY": {}
            },
            "descriptorForType": "[Circular Reference]",
            "unknownFields": "[Circular Reference]",
            "initializationErrorString": "text",
            "defaultInstanceForType": "[Circular Reference]",
            "initialized": true
          }
        ],
        "entityBytes": {
          "empty": true,
          "validUtf8": true
        },
        "actionBytes": {
          "empty": true,
          "validUtf8": true
        },
        "initialized": true,
        "allFields": {
          "ANY_ADDITIONAL_PROPERTY": {}
        },
        "descriptorForType": {
          "index": 1,
          "proto": "[Circular Reference]",
          "options": "[Circular Reference]",
          "fullName": "text",
          "file": "[Circular Reference]",
          "containingType": "[Circular Reference]",
          "nestedTypes": "[Circular Reference]",
          "enumTypes": "[Circular Reference]",
          "fields": "[Circular Reference]",
          "extensions": "[Circular Reference]",
          "oneofs": "[Circular Reference]",
          "name": "text",
          "extendable": true,
          "realOneofs": "[Circular Reference]"
        },
        "initializationErrorString": "text",
        "memoizedSerializedSize": 1
      },
      "parserForType": {},
      "serializedSize": 1,
      "typeBytes": {
        "empty": true,
        "validUtf8": true
      },
      "messageBytes": {
        "empty": true,
        "validUtf8": true
      },
      "statusBytes": {
        "empty": true,
        "validUtf8": true
      },
      "accountId": "text",
      "accountIdBytes": {
        "empty": true,
        "validUtf8": true
      },
      "orgId": "text",
      "orgIdBytes": {
        "empty": true,
        "validUtf8": true
      },
      "projectIdBytes": {
        "empty": true,
        "validUtf8": true
      },
      "created": 1,
      "deny": true,
      "detailsList": [
        {
          "unknownFields": "[Circular Reference]",
          "description": "text",
          "projectId": "text",
          "status": "text",
          "defaultInstanceForType": "[Circular Reference]",
          "parserForType": {},
          "serializedSize": 1,
          "identifierBytes": {
            "empty": true,
            "validUtf8": true
          },
          "statusBytes": {
            "empty": true,
            "validUtf8": true
          },
          "accountId": "text",
          "accountIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "orgId": "text",
          "orgIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "projectIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "created": 1,
          "policySetIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "deny": true,
          "policyMetadataList": "[Circular Reference]",
          "policyMetadataCount": 1,
          "policyMetadataOrBuilderList": "[Circular Reference]",
          "policySetName": "text",
          "policySetNameBytes": {
            "empty": true,
            "validUtf8": true
          },
          "descriptionBytes": {
            "empty": true,
            "validUtf8": true
          },
          "policySetId": "text",
          "initialized": true,
          "identifier": "text",
          "allFields": {
            "ANY_ADDITIONAL_PROPERTY": {}
          },
          "descriptorForType": "[Circular Reference]",
          "initializationErrorString": "text",
          "memoizedSerializedSize": 1
        }
      ],
      "idBytes": {
        "empty": true,
        "validUtf8": true
      },
      "detailsCount": 1,
      "detailsOrBuilderList": [
        {
          "description": "text",
          "projectId": "text",
          "status": "text",
          "identifierBytes": {
            "empty": true,
            "validUtf8": true
          },
          "statusBytes": {
            "empty": true,
            "validUtf8": true
          },
          "accountId": "text",
          "accountIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "orgId": "text",
          "orgIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "projectIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "created": 1,
          "policySetIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "deny": true,
          "policyMetadataList": "[Circular Reference]",
          "policyMetadataCount": 1,
          "policyMetadataOrBuilderList": "[Circular Reference]",
          "policySetName": "text",
          "policySetNameBytes": {
            "empty": true,
            "validUtf8": true
          },
          "descriptionBytes": {
            "empty": true,
            "validUtf8": true
          },
          "policySetId": "text",
          "identifier": "text",
          "allFields": {
            "ANY_ADDITIONAL_PROPERTY": {}
          },
          "descriptorForType": "[Circular Reference]",
          "unknownFields": "[Circular Reference]",
          "initializationErrorString": "text",
          "defaultInstanceForType": "[Circular Reference]",
          "initialized": true
        }
      ],
      "entityBytes": {
        "empty": true,
        "validUtf8": true
      },
      "actionBytes": {
        "empty": true,
        "validUtf8": true
      },
      "initialized": true,
      "allFields": {
        "ANY_ADDITIONAL_PROPERTY": {}
      },
      "descriptorForType": {
        "index": 1,
        "proto": "[Circular Reference]",
        "options": "[Circular Reference]",
        "fullName": "text",
        "file": "[Circular Reference]",
        "containingType": "[Circular Reference]",
        "nestedTypes": "[Circular Reference]",
        "enumTypes": "[Circular Reference]",
        "fields": "[Circular Reference]",
        "extensions": "[Circular Reference]",
        "oneofs": "[Circular Reference]",
        "name": "text",
        "extendable": true,
        "realOneofs": "[Circular Reference]"
      },
      "initializationErrorString": "text",
      "memoizedSerializedSize": 1
    },
    "parserForType": {},
    "serializedSize": 1,
    "typeBytes": {
      "empty": true,
      "validUtf8": true
    },
    "messageBytes": {
      "empty": true,
      "validUtf8": true
    },
    "statusBytes": {
      "empty": true,
      "validUtf8": true
    },
    "accountId": "text",
    "accountIdBytes": {
      "empty": true,
      "validUtf8": true
    },
    "orgId": "text",
    "orgIdBytes": {
      "empty": true,
      "validUtf8": true
    },
    "projectIdBytes": {
      "empty": true,
      "validUtf8": true
    },
    "created": 1,
    "deny": true,
    "detailsList": [
      {
        "unknownFields": "[Circular Reference]",
        "description": "text",
        "projectId": "text",
        "status": "text",
        "defaultInstanceForType": "[Circular Reference]",
        "parserForType": {},
        "serializedSize": 1,
        "identifierBytes": {
          "empty": true,
          "validUtf8": true
        },
        "statusBytes": {
          "empty": true,
          "validUtf8": true
        },
        "accountId": "text",
        "accountIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "orgId": "text",
        "orgIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "projectIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "created": 1,
        "policySetIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "deny": true,
        "policyMetadataList": "[Circular Reference]",
        "policyMetadataCount": 1,
        "policyMetadataOrBuilderList": "[Circular Reference]",
        "policySetName": "text",
        "policySetNameBytes": {
          "empty": true,
          "validUtf8": true
        },
        "descriptionBytes": {
          "empty": true,
          "validUtf8": true
        },
        "policySetId": "text",
        "initialized": true,
        "identifier": "text",
        "allFields": {
          "ANY_ADDITIONAL_PROPERTY": {}
        },
        "descriptorForType": "[Circular Reference]",
        "initializationErrorString": "text",
        "memoizedSerializedSize": 1
      }
    ],
    "idBytes": {
      "empty": true,
      "validUtf8": true
    },
    "detailsCount": 1,
    "detailsOrBuilderList": [
      {
        "description": "text",
        "projectId": "text",
        "status": "text",
        "identifierBytes": {
          "empty": true,
          "validUtf8": true
        },
        "statusBytes": {
          "empty": true,
          "validUtf8": true
        },
        "accountId": "text",
        "accountIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "orgId": "text",
        "orgIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "projectIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "created": 1,
        "policySetIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "deny": true,
        "policyMetadataList": "[Circular Reference]",
        "policyMetadataCount": 1,
        "policyMetadataOrBuilderList": "[Circular Reference]",
        "policySetName": "text",
        "policySetNameBytes": {
          "empty": true,
          "validUtf8": true
        },
        "descriptionBytes": {
          "empty": true,
          "validUtf8": true
        },
        "policySetId": "text",
        "identifier": "text",
        "allFields": {
          "ANY_ADDITIONAL_PROPERTY": {}
        },
        "descriptorForType": "[Circular Reference]",
        "unknownFields": "[Circular Reference]",
        "initializationErrorString": "text",
        "defaultInstanceForType": "[Circular Reference]",
        "initialized": true
      }
    ],
    "entityBytes": {
      "empty": true,
      "validUtf8": true
    },
    "actionBytes": {
      "empty": true,
      "validUtf8": true
    },
    "initialized": true,
    "allFields": {
      "ANY_ADDITIONAL_PROPERTY": {}
    },
    "descriptorForType": {
      "index": 1,
      "proto": "[Circular Reference]",
      "options": "[Circular Reference]",
      "fullName": "text",
      "file": "[Circular Reference]",
      "containingType": "[Circular Reference]",
      "nestedTypes": "[Circular Reference]",
      "enumTypes": "[Circular Reference]",
      "fields": "[Circular Reference]",
      "extensions": "[Circular Reference]",
      "oneofs": "[Circular Reference]",
      "name": "text",
      "extendable": true,
      "realOneofs": "[Circular Reference]"
    },
    "initializationErrorString": "text",
    "memoizedSerializedSize": 1
  }
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Updates API Key for the provided ID

put
Path parameters
identifierstringRequired

This is the API key ID

Body

This has API Key details defined in Harness.

identifierstringRequired

Identifier of the API Key

namestringRequired

Name of the API Key

descriptionstring · max: 1024Optional

Description of the API Key

apiKeyTypestring · enumOptional

Type of the API Key

Possible values:
parentIdentifierstringRequired

Parent Entity Identifier of the API Key

defaultTimeToExpireTokeninteger · int64Optional

Default expiration time of the Token within API Key.

accountIdentifierstringRequired

Account Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

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

{
  "identifier": "text",
  "name": "text",
  "description": "text",
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "apiKeyType": "USER",
  "parentIdentifier": "text",
  "defaultTimeToExpireToken": 1,
  "accountIdentifier": "text",
  "projectIdentifier": "text",
  "orgIdentifier": "text",
  "governanceMetadata": {
    "unknownFields": {
      "empty": true,
      "defaultInstanceForType": {
        "empty": true,
        "defaultInstanceForType": {
          "empty": true,
          "defaultInstanceForType": {
            "empty": true,
            "defaultInstanceForType": "[Circular Reference]",
            "parserForType": {},
            "serializedSize": 1,
            "serializedSizeAsMessageSet": 1,
            "initialized": true
          },
          "parserForType": {},
          "serializedSize": 1,
          "serializedSizeAsMessageSet": 1,
          "initialized": true
        },
        "parserForType": {},
        "serializedSize": 1,
        "serializedSizeAsMessageSet": 1,
        "initialized": true
      },
      "parserForType": {},
      "serializedSize": 1,
      "serializedSizeAsMessageSet": 1,
      "initialized": true
    },
    "message": "text",
    "id": "text",
    "type": "text",
    "timestamp": 1,
    "projectId": "text",
    "status": "text",
    "entity": "text",
    "action": "text",
    "defaultInstanceForType": {
      "unknownFields": {
        "empty": true,
        "defaultInstanceForType": {
          "empty": true,
          "defaultInstanceForType": {
            "empty": true,
            "defaultInstanceForType": {
              "empty": true,
              "defaultInstanceForType": "[Circular Reference]",
              "parserForType": {},
              "serializedSize": 1,
              "serializedSizeAsMessageSet": 1,
              "initialized": true
            },
            "parserForType": {},
            "serializedSize": 1,
            "serializedSizeAsMessageSet": 1,
            "initialized": true
          },
          "parserForType": {},
          "serializedSize": 1,
          "serializedSizeAsMessageSet": 1,
          "initialized": true
        },
        "parserForType": {},
        "serializedSize": 1,
        "serializedSizeAsMessageSet": 1,
        "initialized": true
      },
      "message": "text",
      "id": "text",
      "type": "text",
      "timestamp": 1,
      "projectId": "text",
      "status": "text",
      "entity": "text",
      "action": "text",
      "defaultInstanceForType": {
        "unknownFields": {
          "empty": true,
          "defaultInstanceForType": {
            "empty": true,
            "defaultInstanceForType": {
              "empty": true,
              "defaultInstanceForType": {
                "empty": true,
                "defaultInstanceForType": "[Circular Reference]",
                "parserForType": {},
                "serializedSize": 1,
                "serializedSizeAsMessageSet": 1,
                "initialized": true
              },
              "parserForType": {},
              "serializedSize": 1,
              "serializedSizeAsMessageSet": 1,
              "initialized": true
            },
            "parserForType": {},
            "serializedSize": 1,
            "serializedSizeAsMessageSet": 1,
            "initialized": true
          },
          "parserForType": {},
          "serializedSize": 1,
          "serializedSizeAsMessageSet": 1,
          "initialized": true
        },
        "message": "text",
        "id": "text",
        "type": "text",
        "timestamp": 1,
        "projectId": "text",
        "status": "text",
        "entity": "text",
        "action": "text",
        "defaultInstanceForType": {
          "unknownFields": {
            "empty": true,
            "defaultInstanceForType": {
              "empty": true,
              "defaultInstanceForType": {
                "empty": true,
                "defaultInstanceForType": {
                  "empty": true,
                  "defaultInstanceForType": "[Circular Reference]",
                  "parserForType": {},
                  "serializedSize": 1,
                  "serializedSizeAsMessageSet": 1,
                  "initialized": true
                },
                "parserForType": {},
                "serializedSize": 1,
                "serializedSizeAsMessageSet": 1,
                "initialized": true
              },
              "parserForType": {},
              "serializedSize": 1,
              "serializedSizeAsMessageSet": 1,
              "initialized": true
            },
            "parserForType": {},
            "serializedSize": 1,
            "serializedSizeAsMessageSet": 1,
            "initialized": true
          },
          "message": "text",
          "id": "text",
          "type": "text",
          "timestamp": 1,
          "projectId": "text",
          "status": "text",
          "entity": "text",
          "action": "text",
          "defaultInstanceForType": {
            "unknownFields": {
              "empty": true,
              "defaultInstanceForType": {
                "empty": true,
                "defaultInstanceForType": {
                  "empty": true,
                  "defaultInstanceForType": {
                    "empty": true,
                    "defaultInstanceForType": "[Circular Reference]",
                    "parserForType": {},
                    "serializedSize": 1,
                    "serializedSizeAsMessageSet": 1,
                    "initialized": true
                  },
                  "parserForType": {},
                  "serializedSize": 1,
                  "serializedSizeAsMessageSet": 1,
                  "initialized": true
                },
                "parserForType": {},
                "serializedSize": 1,
                "serializedSizeAsMessageSet": 1,
                "initialized": true
              },
              "parserForType": {},
              "serializedSize": 1,
              "serializedSizeAsMessageSet": 1,
              "initialized": true
            },
            "message": "text",
            "id": "text",
            "type": "text",
            "timestamp": 1,
            "projectId": "text",
            "status": "text",
            "entity": "text",
            "action": "text",
            "defaultInstanceForType": "[Circular Reference]",
            "parserForType": {},
            "serializedSize": 1,
            "typeBytes": {
              "empty": true,
              "validUtf8": true
            },
            "messageBytes": {
              "empty": true,
              "validUtf8": true
            },
            "statusBytes": {
              "empty": true,
              "validUtf8": true
            },
            "accountId": "text",
            "accountIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "orgId": "text",
            "orgIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "projectIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "created": 1,
            "deny": true,
            "detailsList": "[Circular Reference]",
            "idBytes": {
              "empty": true,
              "validUtf8": true
            },
            "detailsCount": 1,
            "detailsOrBuilderList": "[Circular Reference]",
            "entityBytes": {
              "empty": true,
              "validUtf8": true
            },
            "actionBytes": {
              "empty": true,
              "validUtf8": true
            },
            "initialized": true,
            "allFields": {
              "ANY_ADDITIONAL_PROPERTY": {}
            },
            "descriptorForType": "[Circular Reference]",
            "initializationErrorString": "text",
            "memoizedSerializedSize": 1
          },
          "parserForType": {},
          "serializedSize": 1,
          "typeBytes": {
            "empty": true,
            "validUtf8": true
          },
          "messageBytes": {
            "empty": true,
            "validUtf8": true
          },
          "statusBytes": {
            "empty": true,
            "validUtf8": true
          },
          "accountId": "text",
          "accountIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "orgId": "text",
          "orgIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "projectIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "created": 1,
          "deny": true,
          "detailsList": [
            "[Circular Reference]"
          ],
          "idBytes": {
            "empty": true,
            "validUtf8": true
          },
          "detailsCount": 1,
          "detailsOrBuilderList": [
            "[Circular Reference]"
          ],
          "entityBytes": {
            "empty": true,
            "validUtf8": true
          },
          "actionBytes": {
            "empty": true,
            "validUtf8": true
          },
          "initialized": true,
          "allFields": {
            "ANY_ADDITIONAL_PROPERTY": {}
          },
          "descriptorForType": {
            "index": 1,
            "proto": "[Circular Reference]",
            "options": "[Circular Reference]",
            "fullName": "text",
            "file": "[Circular Reference]",
            "containingType": "[Circular Reference]",
            "nestedTypes": "[Circular Reference]",
            "enumTypes": "[Circular Reference]",
            "fields": "[Circular Reference]",
            "extensions": "[Circular Reference]",
            "oneofs": "[Circular Reference]",
            "name": "text",
            "extendable": true,
            "realOneofs": "[Circular Reference]"
          },
          "initializationErrorString": "text",
          "memoizedSerializedSize": 1
        },
        "parserForType": {},
        "serializedSize": 1,
        "typeBytes": {
          "empty": true,
          "validUtf8": true
        },
        "messageBytes": {
          "empty": true,
          "validUtf8": true
        },
        "statusBytes": {
          "empty": true,
          "validUtf8": true
        },
        "accountId": "text",
        "accountIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "orgId": "text",
        "orgIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "projectIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "created": 1,
        "deny": true,
        "detailsList": [
          {
            "unknownFields": "[Circular Reference]",
            "description": "text",
            "projectId": "text",
            "status": "text",
            "defaultInstanceForType": "[Circular Reference]",
            "parserForType": {},
            "serializedSize": 1,
            "identifierBytes": {
              "empty": true,
              "validUtf8": true
            },
            "statusBytes": {
              "empty": true,
              "validUtf8": true
            },
            "accountId": "text",
            "accountIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "orgId": "text",
            "orgIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "projectIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "created": 1,
            "policySetIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "deny": true,
            "policyMetadataList": "[Circular Reference]",
            "policyMetadataCount": 1,
            "policyMetadataOrBuilderList": "[Circular Reference]",
            "policySetName": "text",
            "policySetNameBytes": {
              "empty": true,
              "validUtf8": true
            },
            "descriptionBytes": {
              "empty": true,
              "validUtf8": true
            },
            "policySetId": "text",
            "initialized": true,
            "identifier": "text",
            "allFields": {
              "ANY_ADDITIONAL_PROPERTY": {}
            },
            "descriptorForType": "[Circular Reference]",
            "initializationErrorString": "text",
            "memoizedSerializedSize": 1
          }
        ],
        "idBytes": {
          "empty": true,
          "validUtf8": true
        },
        "detailsCount": 1,
        "detailsOrBuilderList": [
          {
            "description": "text",
            "projectId": "text",
            "status": "text",
            "identifierBytes": {
              "empty": true,
              "validUtf8": true
            },
            "statusBytes": {
              "empty": true,
              "validUtf8": true
            },
            "accountId": "text",
            "accountIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "orgId": "text",
            "orgIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "projectIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "created": 1,
            "policySetIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "deny": true,
            "policyMetadataList": "[Circular Reference]",
            "policyMetadataCount": 1,
            "policyMetadataOrBuilderList": "[Circular Reference]",
            "policySetName": "text",
            "policySetNameBytes": {
              "empty": true,
              "validUtf8": true
            },
            "descriptionBytes": {
              "empty": true,
              "validUtf8": true
            },
            "policySetId": "text",
            "identifier": "text",
            "allFields": {
              "ANY_ADDITIONAL_PROPERTY": {}
            },
            "descriptorForType": "[Circular Reference]",
            "unknownFields": "[Circular Reference]",
            "initializationErrorString": "text",
            "defaultInstanceForType": "[Circular Reference]",
            "initialized": true
          }
        ],
        "entityBytes": {
          "empty": true,
          "validUtf8": true
        },
        "actionBytes": {
          "empty": true,
          "validUtf8": true
        },
        "initialized": true,
        "allFields": {
          "ANY_ADDITIONAL_PROPERTY": {}
        },
        "descriptorForType": {
          "index": 1,
          "proto": "[Circular Reference]",
          "options": "[Circular Reference]",
          "fullName": "text",
          "file": "[Circular Reference]",
          "containingType": "[Circular Reference]",
          "nestedTypes": "[Circular Reference]",
          "enumTypes": "[Circular Reference]",
          "fields": "[Circular Reference]",
          "extensions": "[Circular Reference]",
          "oneofs": "[Circular Reference]",
          "name": "text",
          "extendable": true,
          "realOneofs": "[Circular Reference]"
        },
        "initializationErrorString": "text",
        "memoizedSerializedSize": 1
      },
      "parserForType": {},
      "serializedSize": 1,
      "typeBytes": {
        "empty": true,
        "validUtf8": true
      },
      "messageBytes": {
        "empty": true,
        "validUtf8": true
      },
      "statusBytes": {
        "empty": true,
        "validUtf8": true
      },
      "accountId": "text",
      "accountIdBytes": {
        "empty": true,
        "validUtf8": true
      },
      "orgId": "text",
      "orgIdBytes": {
        "empty": true,
        "validUtf8": true
      },
      "projectIdBytes": {
        "empty": true,
        "validUtf8": true
      },
      "created": 1,
      "deny": true,
      "detailsList": [
        {
          "unknownFields": "[Circular Reference]",
          "description": "text",
          "projectId": "text",
          "status": "text",
          "defaultInstanceForType": "[Circular Reference]",
          "parserForType": {},
          "serializedSize": 1,
          "identifierBytes": {
            "empty": true,
            "validUtf8": true
          },
          "statusBytes": {
            "empty": true,
            "validUtf8": true
          },
          "accountId": "text",
          "accountIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "orgId": "text",
          "orgIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "projectIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "created": 1,
          "policySetIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "deny": true,
          "policyMetadataList": "[Circular Reference]",
          "policyMetadataCount": 1,
          "policyMetadataOrBuilderList": "[Circular Reference]",
          "policySetName": "text",
          "policySetNameBytes": {
            "empty": true,
            "validUtf8": true
          },
          "descriptionBytes": {
            "empty": true,
            "validUtf8": true
          },
          "policySetId": "text",
          "initialized": true,
          "identifier": "text",
          "allFields": {
            "ANY_ADDITIONAL_PROPERTY": {}
          },
          "descriptorForType": "[Circular Reference]",
          "initializationErrorString": "text",
          "memoizedSerializedSize": 1
        }
      ],
      "idBytes": {
        "empty": true,
        "validUtf8": true
      },
      "detailsCount": 1,
      "detailsOrBuilderList": [
        {
          "description": "text",
          "projectId": "text",
          "status": "text",
          "identifierBytes": {
            "empty": true,
            "validUtf8": true
          },
          "statusBytes": {
            "empty": true,
            "validUtf8": true
          },
          "accountId": "text",
          "accountIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "orgId": "text",
          "orgIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "projectIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "created": 1,
          "policySetIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "deny": true,
          "policyMetadataList": "[Circular Reference]",
          "policyMetadataCount": 1,
          "policyMetadataOrBuilderList": "[Circular Reference]",
          "policySetName": "text",
          "policySetNameBytes": {
            "empty": true,
            "validUtf8": true
          },
          "descriptionBytes": {
            "empty": true,
            "validUtf8": true
          },
          "policySetId": "text",
          "identifier": "text",
          "allFields": {
            "ANY_ADDITIONAL_PROPERTY": {}
          },
          "descriptorForType": "[Circular Reference]",
          "unknownFields": "[Circular Reference]",
          "initializationErrorString": "text",
          "defaultInstanceForType": "[Circular Reference]",
          "initialized": true
        }
      ],
      "entityBytes": {
        "empty": true,
        "validUtf8": true
      },
      "actionBytes": {
        "empty": true,
        "validUtf8": true
      },
      "initialized": true,
      "allFields": {
        "ANY_ADDITIONAL_PROPERTY": {}
      },
      "descriptorForType": {
        "index": 1,
        "proto": "[Circular Reference]",
        "options": "[Circular Reference]",
        "fullName": "text",
        "file": "[Circular Reference]",
        "containingType": "[Circular Reference]",
        "nestedTypes": "[Circular Reference]",
        "enumTypes": "[Circular Reference]",
        "fields": "[Circular Reference]",
        "extensions": "[Circular Reference]",
        "oneofs": "[Circular Reference]",
        "name": "text",
        "extendable": true,
        "realOneofs": "[Circular Reference]"
      },
      "initializationErrorString": "text",
      "memoizedSerializedSize": 1
    },
    "parserForType": {},
    "serializedSize": 1,
    "typeBytes": {
      "empty": true,
      "validUtf8": true
    },
    "messageBytes": {
      "empty": true,
      "validUtf8": true
    },
    "statusBytes": {
      "empty": true,
      "validUtf8": true
    },
    "accountId": "text",
    "accountIdBytes": {
      "empty": true,
      "validUtf8": true
    },
    "orgId": "text",
    "orgIdBytes": {
      "empty": true,
      "validUtf8": true
    },
    "projectIdBytes": {
      "empty": true,
      "validUtf8": true
    },
    "created": 1,
    "deny": true,
    "detailsList": [
      {
        "unknownFields": "[Circular Reference]",
        "description": "text",
        "projectId": "text",
        "status": "text",
        "defaultInstanceForType": "[Circular Reference]",
        "parserForType": {},
        "serializedSize": 1,
        "identifierBytes": {
          "empty": true,
          "validUtf8": true
        },
        "statusBytes": {
          "empty": true,
          "validUtf8": true
        },
        "accountId": "text",
        "accountIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "orgId": "text",
        "orgIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "projectIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "created": 1,
        "policySetIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "deny": true,
        "policyMetadataList": "[Circular Reference]",
        "policyMetadataCount": 1,
        "policyMetadataOrBuilderList": "[Circular Reference]",
        "policySetName": "text",
        "policySetNameBytes": {
          "empty": true,
          "validUtf8": true
        },
        "descriptionBytes": {
          "empty": true,
          "validUtf8": true
        },
        "policySetId": "text",
        "initialized": true,
        "identifier": "text",
        "allFields": {
          "ANY_ADDITIONAL_PROPERTY": {}
        },
        "descriptorForType": "[Circular Reference]",
        "initializationErrorString": "text",
        "memoizedSerializedSize": 1
      }
    ],
    "idBytes": {
      "empty": true,
      "validUtf8": true
    },
    "detailsCount": 1,
    "detailsOrBuilderList": [
      {
        "description": "text",
        "projectId": "text",
        "status": "text",
        "identifierBytes": {
          "empty": true,
          "validUtf8": true
        },
        "statusBytes": {
          "empty": true,
          "validUtf8": true
        },
        "accountId": "text",
        "accountIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "orgId": "text",
        "orgIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "projectIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "created": 1,
        "policySetIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "deny": true,
        "policyMetadataList": "[Circular Reference]",
        "policyMetadataCount": 1,
        "policyMetadataOrBuilderList": "[Circular Reference]",
        "policySetName": "text",
        "policySetNameBytes": {
          "empty": true,
          "validUtf8": true
        },
        "descriptionBytes": {
          "empty": true,
          "validUtf8": true
        },
        "policySetId": "text",
        "identifier": "text",
        "allFields": {
          "ANY_ADDITIONAL_PROPERTY": {}
        },
        "descriptorForType": "[Circular Reference]",
        "unknownFields": "[Circular Reference]",
        "initializationErrorString": "text",
        "defaultInstanceForType": "[Circular Reference]",
        "initialized": true
      }
    ],
    "entityBytes": {
      "empty": true,
      "validUtf8": true
    },
    "actionBytes": {
      "empty": true,
      "validUtf8": true
    },
    "initialized": true,
    "allFields": {
      "ANY_ADDITIONAL_PROPERTY": {}
    },
    "descriptorForType": {
      "index": 1,
      "proto": "[Circular Reference]",
      "options": "[Circular Reference]",
      "fullName": "text",
      "file": "[Circular Reference]",
      "containingType": "[Circular Reference]",
      "nestedTypes": "[Circular Reference]",
      "enumTypes": "[Circular Reference]",
      "fields": "[Circular Reference]",
      "extensions": "[Circular Reference]",
      "oneofs": "[Circular Reference]",
      "name": "text",
      "extendable": true,
      "realOneofs": "[Circular Reference]"
    },
    "initializationErrorString": "text",
    "memoizedSerializedSize": 1
  }
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Deletes the API Key corresponding to the provided ID.

delete
Path parameters
identifierstringRequired

This is the API key ID

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

apiKeyTypestring · enumRequired

This is the API Key type like Personal Access Key or Service Account Key.

Possible values:
parentIdentifierstringRequired

Id of API key's Parent Service Account

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
delete/apikey/{identifier}
DELETE /gateway/ng/api/apikey/{identifier}?accountIdentifier=text&apiKeyType=USER&parentIdentifier=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"
    }
  ]
}

Fetches the API Keys details corresponding to the provided ID and Scope.

get
Path parameters
identifierstringRequired

This is the API key ID

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

apiKeyTypestring · enumRequired

This is the API Key type like Personal Access Key or Service Account Key.

Possible values:
parentIdentifierstringRequired

ID of API key's Parent Service Account

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/apikey/aggregate/{identifier}
GET /gateway/ng/api/apikey/aggregate/{identifier}?accountIdentifier=text&apiKeyType=USER&parentIdentifier=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"
    }
  ]
}

Fetches the list of Aggregated API Keys corresponding to the request's filter criteria.

get
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

apiKeyTypestring · enumRequired

This is the API Key type like Personal Access Key or Service Account Key.

Possible values:
parentIdentifierstringRequired

ID of API key's Parent Service Account

identifiersstring[]Optional

This is the list of API Key IDs. Details specific to these IDs would be fetched.

pageIndexinteger · int32Optional

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

Default: 0
pageSizeinteger · int32 · max: 100Optional

Results per page(max 100)Default Value: 50

Default: 50
pageTokenstringOptional

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

searchTermstringOptional

This would be used to filter API keys. Any API key having the specified string in its Name, ID and Tag would be filtered.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/apikey/aggregate
GET /gateway/ng/api/apikey/aggregate?accountIdentifier=text&apiKeyType=USER&parentIdentifier=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"
    }
  ]
}

Last updated

Was this helpful?