Argo Projects
ListForAgent lists all ArgoCD AppProjects mapped to this agent.
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
A successful response.
An unexpected error response.
GET /api/v2/agents/{agentIdentifier}/argoprojects HTTP/1.1
Accept: */*
{
"content": [
{
"id": "text",
"accountIdentifier": "text",
"projectIdentifier": "text",
"orgIdentifier": "text",
"name": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"agentIdentifier": "text",
"appProject": {
"metadata": {
"name": "text",
"generateName": "text",
"namespace": "text",
"selfLink": "text",
"uid": "text",
"resourceVersion": "text",
"generation": "text",
"creationTimestamp": {
"seconds": "text",
"nanos": 1
},
"deletionTimestamp": {
"seconds": "text",
"nanos": 1
},
"deletionGracePeriodSeconds": "text",
"labels": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"annotations": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"ownerReferences": [
{
"apiVersion": "text",
"kind": "text",
"name": "text",
"uid": "text",
"controller": true,
"blockOwnerDeletion": true
}
],
"finalizers": [
"text"
],
"managedFields": [
{
"manager": "text",
"operation": "text",
"apiVersion": "text",
"time": {
"seconds": "text",
"nanos": 1
},
"fieldsType": "text",
"fieldsV1": {
"Raw": "Ynl0ZXM="
},
"subresource": "text"
}
]
},
"spec": {
"sourceRepos": [
"text"
],
"destinations": [
{
"server": "text",
"namespace": "text",
"name": "text"
}
],
"description": "text",
"roles": [
{
"name": "text",
"description": "text",
"policies": [
"text"
],
"jwtTokens": [
{
"iat": "text",
"exp": "text",
"id": "text"
}
],
"groups": [
"text"
]
}
],
"clusterResourceWhitelist": [
{
"group": "text",
"kind": "text",
"name": "text"
}
],
"namespaceResourceBlacklist": [
{
"group": "text",
"kind": "text"
}
],
"orphanedResources": {
"warn": true,
"ignore": [
{
"group": "text",
"kind": "text",
"name": "text"
}
]
},
"syncWindows": [
{
"kind": "text",
"schedule": "text",
"duration": "text",
"applications": [
"text"
],
"namespaces": [
"text"
],
"clusters": [
"text"
],
"manualSync": true,
"timeZone": "text",
"project": "text"
}
],
"namespaceResourceWhitelist": [
{
"group": "text",
"kind": "text"
}
],
"signatureKeys": [
{
"keyID": "text"
}
],
"clusterResourceBlacklist": [
{
"group": "text",
"kind": "text",
"name": "text"
}
],
"sourceNamespaces": [
"text"
],
"permitOnlyProjectScopedClusters": true,
"destinationServiceAccounts": [
{
"server": "text",
"namespace": "text",
"defaultServiceAccount": "text"
}
],
"sourceIntegrity": {
"git": {
"policies": [
{
"repos": [
{
"url": "text"
}
],
"gpg": {
"mode": "text",
"keys": [
"text"
]
}
}
]
}
}
},
"status": {
"jwtTokensByRole": {
"ANY_ADDITIONAL_PROPERTY": {
"items": [
{
"iat": "text",
"exp": "text",
"id": "text"
}
]
}
}
}
}
}
],
"totalPages": 1,
"totalItems": 1,
"pageItemCount": 1,
"pageSize": 1,
"pageIndex": 1,
"empty": true
}Create creates an ArgoCD AppProject CRD in the cluster and auto-creates a Harness mapping if one does not exist. If a mapping already exists it is reused.
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Project Identifier for the Entity.
Organization Identifier for the Entity.
Enable automated creation of service,environment and cluster-env link. Defaults to false.
ProjectCreateRequest defines project creation parameters.
A successful response.
AppProject resource with harness metadata and additional fields.
Account Identifier for the ArgoProject.
Project Identifier for the ArgoProject. (Depends on mapping)
Organization Identifier for the ArgoProject. (Depends on mapping)
Agent identifier for ArgoProject. This will be prefixed with scope.
An unexpected error response.
POST /api/v2/agents/{agentIdentifier}/argoprojects HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 1955
{
"project": {
"metadata": {
"name": "text",
"generateName": "text",
"namespace": "text",
"selfLink": "text",
"uid": "text",
"resourceVersion": "text",
"generation": "text",
"creationTimestamp": {
"seconds": "text",
"nanos": 1
},
"deletionTimestamp": {
"seconds": "text",
"nanos": 1
},
"deletionGracePeriodSeconds": "text",
"labels": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"annotations": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"ownerReferences": [
{
"apiVersion": "text",
"kind": "text",
"name": "text",
"uid": "text",
"controller": true,
"blockOwnerDeletion": true
}
],
"finalizers": [
"text"
],
"managedFields": [
{
"manager": "text",
"operation": "text",
"apiVersion": "text",
"time": {
"seconds": "text",
"nanos": 1
},
"fieldsType": "text",
"fieldsV1": {
"Raw": "Ynl0ZXM="
},
"subresource": "text"
}
]
},
"spec": {
"sourceRepos": [
"text"
],
"destinations": [
{
"server": "text",
"namespace": "text",
"name": "text"
}
],
"description": "text",
"roles": [
{
"name": "text",
"description": "text",
"policies": [
"text"
],
"jwtTokens": [
{
"iat": "text",
"exp": "text",
"id": "text"
}
],
"groups": [
"text"
]
}
],
"clusterResourceWhitelist": [
{
"group": "text",
"kind": "text",
"name": "text"
}
],
"namespaceResourceBlacklist": [
{
"group": "text",
"kind": "text"
}
],
"orphanedResources": {
"warn": true,
"ignore": [
{
"group": "text",
"kind": "text",
"name": "text"
}
]
},
"syncWindows": [
{
"kind": "text",
"schedule": "text",
"duration": "text",
"applications": [
"text"
],
"namespaces": [
"text"
],
"clusters": [
"text"
],
"manualSync": true,
"timeZone": "text",
"project": "text"
}
],
"namespaceResourceWhitelist": [
{
"group": "text",
"kind": "text"
}
],
"signatureKeys": [
{
"keyID": "text"
}
],
"clusterResourceBlacklist": [
{
"group": "text",
"kind": "text",
"name": "text"
}
],
"sourceNamespaces": [
"text"
],
"permitOnlyProjectScopedClusters": true,
"destinationServiceAccounts": [
{
"server": "text",
"namespace": "text",
"defaultServiceAccount": "text"
}
],
"sourceIntegrity": {
"git": {
"policies": [
{
"repos": [
{
"url": "text"
}
],
"gpg": {
"mode": "text",
"keys": [
"text"
]
}
}
]
}
}
},
"status": {
"jwtTokensByRole": {
"ANY_ADDITIONAL_PROPERTY": {
"items": [
{
"iat": "text",
"exp": "text",
"id": "text"
}
]
}
}
}
},
"upsert": true
}{
"id": "text",
"accountIdentifier": "text",
"projectIdentifier": "text",
"orgIdentifier": "text",
"name": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"agentIdentifier": "text",
"appProject": {
"metadata": {
"name": "text",
"generateName": "text",
"namespace": "text",
"selfLink": "text",
"uid": "text",
"resourceVersion": "text",
"generation": "text",
"creationTimestamp": {
"seconds": "text",
"nanos": 1
},
"deletionTimestamp": {
"seconds": "text",
"nanos": 1
},
"deletionGracePeriodSeconds": "text",
"labels": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"annotations": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"ownerReferences": [
{
"apiVersion": "text",
"kind": "text",
"name": "text",
"uid": "text",
"controller": true,
"blockOwnerDeletion": true
}
],
"finalizers": [
"text"
],
"managedFields": [
{
"manager": "text",
"operation": "text",
"apiVersion": "text",
"time": {
"seconds": "text",
"nanos": 1
},
"fieldsType": "text",
"fieldsV1": {
"Raw": "Ynl0ZXM="
},
"subresource": "text"
}
]
},
"spec": {
"sourceRepos": [
"text"
],
"destinations": [
{
"server": "text",
"namespace": "text",
"name": "text"
}
],
"description": "text",
"roles": [
{
"name": "text",
"description": "text",
"policies": [
"text"
],
"jwtTokens": [
{
"iat": "text",
"exp": "text",
"id": "text"
}
],
"groups": [
"text"
]
}
],
"clusterResourceWhitelist": [
{
"group": "text",
"kind": "text",
"name": "text"
}
],
"namespaceResourceBlacklist": [
{
"group": "text",
"kind": "text"
}
],
"orphanedResources": {
"warn": true,
"ignore": [
{
"group": "text",
"kind": "text",
"name": "text"
}
]
},
"syncWindows": [
{
"kind": "text",
"schedule": "text",
"duration": "text",
"applications": [
"text"
],
"namespaces": [
"text"
],
"clusters": [
"text"
],
"manualSync": true,
"timeZone": "text",
"project": "text"
}
],
"namespaceResourceWhitelist": [
{
"group": "text",
"kind": "text"
}
],
"signatureKeys": [
{
"keyID": "text"
}
],
"clusterResourceBlacklist": [
{
"group": "text",
"kind": "text",
"name": "text"
}
],
"sourceNamespaces": [
"text"
],
"permitOnlyProjectScopedClusters": true,
"destinationServiceAccounts": [
{
"server": "text",
"namespace": "text",
"defaultServiceAccount": "text"
}
],
"sourceIntegrity": {
"git": {
"policies": [
{
"repos": [
{
"url": "text"
}
],
"gpg": {
"mode": "text",
"keys": [
"text"
]
}
}
]
}
}
},
"status": {
"jwtTokensByRole": {
"ANY_ADDITIONAL_PROPERTY": {
"items": [
{
"iat": "text",
"exp": "text",
"id": "text"
}
]
}
}
}
}
}Get returns an ArgoCD AppProject by name. Must be mapped to a Harness project.
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
A successful response.
AppProject resource with harness metadata and additional fields.
Account Identifier for the ArgoProject.
Project Identifier for the ArgoProject. (Depends on mapping)
Organization Identifier for the ArgoProject. (Depends on mapping)
Agent identifier for ArgoProject. This will be prefixed with scope.
An unexpected error response.
GET /api/v2/agents/{agentIdentifier}/argoprojects/{query.name} HTTP/1.1
Accept: */*
{
"id": "text",
"accountIdentifier": "text",
"projectIdentifier": "text",
"orgIdentifier": "text",
"name": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"agentIdentifier": "text",
"appProject": {
"metadata": {
"name": "text",
"generateName": "text",
"namespace": "text",
"selfLink": "text",
"uid": "text",
"resourceVersion": "text",
"generation": "text",
"creationTimestamp": {
"seconds": "text",
"nanos": 1
},
"deletionTimestamp": {
"seconds": "text",
"nanos": 1
},
"deletionGracePeriodSeconds": "text",
"labels": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"annotations": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"ownerReferences": [
{
"apiVersion": "text",
"kind": "text",
"name": "text",
"uid": "text",
"controller": true,
"blockOwnerDeletion": true
}
],
"finalizers": [
"text"
],
"managedFields": [
{
"manager": "text",
"operation": "text",
"apiVersion": "text",
"time": {
"seconds": "text",
"nanos": 1
},
"fieldsType": "text",
"fieldsV1": {
"Raw": "Ynl0ZXM="
},
"subresource": "text"
}
]
},
"spec": {
"sourceRepos": [
"text"
],
"destinations": [
{
"server": "text",
"namespace": "text",
"name": "text"
}
],
"description": "text",
"roles": [
{
"name": "text",
"description": "text",
"policies": [
"text"
],
"jwtTokens": [
{
"iat": "text",
"exp": "text",
"id": "text"
}
],
"groups": [
"text"
]
}
],
"clusterResourceWhitelist": [
{
"group": "text",
"kind": "text",
"name": "text"
}
],
"namespaceResourceBlacklist": [
{
"group": "text",
"kind": "text"
}
],
"orphanedResources": {
"warn": true,
"ignore": [
{
"group": "text",
"kind": "text",
"name": "text"
}
]
},
"syncWindows": [
{
"kind": "text",
"schedule": "text",
"duration": "text",
"applications": [
"text"
],
"namespaces": [
"text"
],
"clusters": [
"text"
],
"manualSync": true,
"timeZone": "text",
"project": "text"
}
],
"namespaceResourceWhitelist": [
{
"group": "text",
"kind": "text"
}
],
"signatureKeys": [
{
"keyID": "text"
}
],
"clusterResourceBlacklist": [
{
"group": "text",
"kind": "text",
"name": "text"
}
],
"sourceNamespaces": [
"text"
],
"permitOnlyProjectScopedClusters": true,
"destinationServiceAccounts": [
{
"server": "text",
"namespace": "text",
"defaultServiceAccount": "text"
}
],
"sourceIntegrity": {
"git": {
"policies": [
{
"repos": [
{
"url": "text"
}
],
"gpg": {
"mode": "text",
"keys": [
"text"
]
}
}
]
}
}
},
"status": {
"jwtTokensByRole": {
"ANY_ADDITIONAL_PROPERTY": {
"items": [
{
"iat": "text",
"exp": "text",
"id": "text"
}
]
}
}
}
}
}Delete deletes an ArgoCD AppProject from the cluster. Must be mapped. Does not remove the Harness mapping.
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
A successful response.
An unexpected error response.
DELETE /api/v2/agents/{agentIdentifier}/argoprojects/{query.name} HTTP/1.1
Accept: */*
{}ListEvents returns Kubernetes events for a named ArgoCD AppProject. Must be mapped.
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
A successful response.
EventList is a list of events.
An unexpected error response.
GET /api/v2/agents/{agentIdentifier}/argoprojects/{query.name}/events HTTP/1.1
Accept: */*
{
"metadata": {
"selfLink": "text",
"resourceVersion": "text",
"continue": "text",
"remainingItemCount": "text",
"shardInfo": {
"selector": "text"
}
},
"items": [
{
"metadata": {
"name": "text",
"generateName": "text",
"namespace": "text",
"selfLink": "text",
"uid": "text",
"resourceVersion": "text",
"generation": "text",
"creationTimestamp": {
"seconds": "text",
"nanos": 1
},
"deletionTimestamp": {
"seconds": "text",
"nanos": 1
},
"deletionGracePeriodSeconds": "text",
"labels": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"annotations": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"ownerReferences": [
{
"apiVersion": "text",
"kind": "text",
"name": "text",
"uid": "text",
"controller": true,
"blockOwnerDeletion": true
}
],
"finalizers": [
"text"
],
"managedFields": [
{
"manager": "text",
"operation": "text",
"apiVersion": "text",
"time": {
"seconds": "text",
"nanos": 1
},
"fieldsType": "text",
"fieldsV1": {
"Raw": "Ynl0ZXM="
},
"subresource": "text"
}
]
},
"involvedObject": {
"kind": "text",
"namespace": "text",
"name": "text",
"uid": "text",
"apiVersion": "text",
"resourceVersion": "text",
"fieldPath": "text"
},
"reason": "text",
"message": "text",
"source": {
"component": "text",
"host": "text"
},
"firstTimestamp": {
"seconds": "text",
"nanos": 1
},
"lastTimestamp": {
"seconds": "text",
"nanos": 1
},
"count": 1,
"type": "text",
"eventTime": {
"seconds": "text",
"nanos": 1
},
"series": {
"count": 1,
"lastObservedTime": {
"seconds": "text",
"nanos": 1
}
},
"action": "text",
"related": {
"kind": "text",
"namespace": "text",
"name": "text",
"uid": "text",
"apiVersion": "text",
"resourceVersion": "text",
"fieldPath": "text"
},
"reportingComponent": "text",
"reportingInstance": "text",
"firstTimestampTs": "2026-01-01T00:00:00.000Z",
"lastTimestampTs": "2026-01-01T00:00:00.000Z"
}
]
}Update updates an ArgoCD AppProject spec. Must be mapped to a Harness project.
Agent identifier for entity.
Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
A successful response.
AppProject resource with harness metadata and additional fields.
Account Identifier for the ArgoProject.
Project Identifier for the ArgoProject. (Depends on mapping)
Organization Identifier for the ArgoProject. (Depends on mapping)
Agent identifier for ArgoProject. This will be prefixed with scope.
An unexpected error response.
PUT /api/v2/agents/{agentIdentifier}/argoprojects/{request.project.metadata.name} HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 1941
{
"project": {
"metadata": {
"name": "text",
"generateName": "text",
"namespace": "text",
"selfLink": "text",
"uid": "text",
"resourceVersion": "text",
"generation": "text",
"creationTimestamp": {
"seconds": "text",
"nanos": 1
},
"deletionTimestamp": {
"seconds": "text",
"nanos": 1
},
"deletionGracePeriodSeconds": "text",
"labels": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"annotations": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"ownerReferences": [
{
"apiVersion": "text",
"kind": "text",
"name": "text",
"uid": "text",
"controller": true,
"blockOwnerDeletion": true
}
],
"finalizers": [
"text"
],
"managedFields": [
{
"manager": "text",
"operation": "text",
"apiVersion": "text",
"time": {
"seconds": "text",
"nanos": 1
},
"fieldsType": "text",
"fieldsV1": {
"Raw": "Ynl0ZXM="
},
"subresource": "text"
}
]
},
"spec": {
"sourceRepos": [
"text"
],
"destinations": [
{
"server": "text",
"namespace": "text",
"name": "text"
}
],
"description": "text",
"roles": [
{
"name": "text",
"description": "text",
"policies": [
"text"
],
"jwtTokens": [
{
"iat": "text",
"exp": "text",
"id": "text"
}
],
"groups": [
"text"
]
}
],
"clusterResourceWhitelist": [
{
"group": "text",
"kind": "text",
"name": "text"
}
],
"namespaceResourceBlacklist": [
{
"group": "text",
"kind": "text"
}
],
"orphanedResources": {
"warn": true,
"ignore": [
{
"group": "text",
"kind": "text",
"name": "text"
}
]
},
"syncWindows": [
{
"kind": "text",
"schedule": "text",
"duration": "text",
"applications": [
"text"
],
"namespaces": [
"text"
],
"clusters": [
"text"
],
"manualSync": true,
"timeZone": "text",
"project": "text"
}
],
"namespaceResourceWhitelist": [
{
"group": "text",
"kind": "text"
}
],
"signatureKeys": [
{
"keyID": "text"
}
],
"clusterResourceBlacklist": [
{
"group": "text",
"kind": "text",
"name": "text"
}
],
"sourceNamespaces": [
"text"
],
"permitOnlyProjectScopedClusters": true,
"destinationServiceAccounts": [
{
"server": "text",
"namespace": "text",
"defaultServiceAccount": "text"
}
],
"sourceIntegrity": {
"git": {
"policies": [
{
"repos": [
{
"url": "text"
}
],
"gpg": {
"mode": "text",
"keys": [
"text"
]
}
}
]
}
}
},
"status": {
"jwtTokensByRole": {
"ANY_ADDITIONAL_PROPERTY": {
"items": [
{
"iat": "text",
"exp": "text",
"id": "text"
}
]
}
}
}
}
}{
"id": "text",
"accountIdentifier": "text",
"projectIdentifier": "text",
"orgIdentifier": "text",
"name": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"agentIdentifier": "text",
"appProject": {
"metadata": {
"name": "text",
"generateName": "text",
"namespace": "text",
"selfLink": "text",
"uid": "text",
"resourceVersion": "text",
"generation": "text",
"creationTimestamp": {
"seconds": "text",
"nanos": 1
},
"deletionTimestamp": {
"seconds": "text",
"nanos": 1
},
"deletionGracePeriodSeconds": "text",
"labels": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"annotations": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"ownerReferences": [
{
"apiVersion": "text",
"kind": "text",
"name": "text",
"uid": "text",
"controller": true,
"blockOwnerDeletion": true
}
],
"finalizers": [
"text"
],
"managedFields": [
{
"manager": "text",
"operation": "text",
"apiVersion": "text",
"time": {
"seconds": "text",
"nanos": 1
},
"fieldsType": "text",
"fieldsV1": {
"Raw": "Ynl0ZXM="
},
"subresource": "text"
}
]
},
"spec": {
"sourceRepos": [
"text"
],
"destinations": [
{
"server": "text",
"namespace": "text",
"name": "text"
}
],
"description": "text",
"roles": [
{
"name": "text",
"description": "text",
"policies": [
"text"
],
"jwtTokens": [
{
"iat": "text",
"exp": "text",
"id": "text"
}
],
"groups": [
"text"
]
}
],
"clusterResourceWhitelist": [
{
"group": "text",
"kind": "text",
"name": "text"
}
],
"namespaceResourceBlacklist": [
{
"group": "text",
"kind": "text"
}
],
"orphanedResources": {
"warn": true,
"ignore": [
{
"group": "text",
"kind": "text",
"name": "text"
}
]
},
"syncWindows": [
{
"kind": "text",
"schedule": "text",
"duration": "text",
"applications": [
"text"
],
"namespaces": [
"text"
],
"clusters": [
"text"
],
"manualSync": true,
"timeZone": "text",
"project": "text"
}
],
"namespaceResourceWhitelist": [
{
"group": "text",
"kind": "text"
}
],
"signatureKeys": [
{
"keyID": "text"
}
],
"clusterResourceBlacklist": [
{
"group": "text",
"kind": "text",
"name": "text"
}
],
"sourceNamespaces": [
"text"
],
"permitOnlyProjectScopedClusters": true,
"destinationServiceAccounts": [
{
"server": "text",
"namespace": "text",
"defaultServiceAccount": "text"
}
],
"sourceIntegrity": {
"git": {
"policies": [
{
"repos": [
{
"url": "text"
}
],
"gpg": {
"mode": "text",
"keys": [
"text"
]
}
}
]
}
}
},
"status": {
"jwtTokensByRole": {
"ANY_ADDITIONAL_PROPERTY": {
"items": [
{
"iat": "text",
"exp": "text",
"id": "text"
}
]
}
}
}
}
}Last updated
Was this helpful?