Returns all containers across every pod of an application, flattened into a single array.
Each entry includes podName as a back-reference. Delegates to pods internally.
Application name.
Optional filters forwarded to pods: namespace, resourceName, appNamespace.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
Flat array of containers with name, image, ready, restartCount, state, and podName.
Creates a new Argo CD application.
Application manifest. At minimum metadata.name and spec are required.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
The created application as stored by Argo CD.
const app = await argocd.applications.create({
metadata: { name: 'guestbook' },
spec: {
project: 'default',
source: { repoURL: 'https://github.com/acme/guestbook.git', path: 'helm', targetRevision: 'HEAD' },
destination: { server: 'https://kubernetes.default.svc', namespace: 'guestbook' },
},
});
Deletes a specific managed Kubernetes resource from an application. Use this to remove individual resources (e.g. a stuck Pod or a Deployment) without syncing.
Application name.
Resource selector: kind, resourceName, version are required by the API.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
Returns only the managed resources whose live state differs from the normalized target state —
i.e. resources that are out of sync. Compares liveState vs normalizedLiveState strings.
Application name.
Optional filters forwarded to managedResources: kind, group, namespace, etc.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
Array of out-of-sync resources (empty if fully synced).
Returns Kubernetes events for an application or a specific resource within it. Useful for diagnosing crash loops, image pull failures, OOM kills, and scheduling issues.
Application name.
Optional filters: resourceName, resourceNamespace, resourceUID, appNamespace.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
Array of events, each with reason, message, type ('Normal' | 'Warning'),
count, firstTimestamp, lastTimestamp, involvedObject, and source.
Gets a single application by name.
Application name.
Optional: appNamespace, project, refresh ('normal' | 'hard').
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
The full application object including spec and status.
Returns the current health status of an application without loading the full object.
Internally calls get and extracts status.health.
Application name.
Optional: appNamespace, project, refresh.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
{ status, message? } — status is one of 'Healthy', 'Degraded',
'Progressing', 'Suspended', 'Missing', 'Unknown'.
Returns the deduplicated list of container images currently running across all resources
of an application. Data sourced from resourceTree node images fields.
Application name.
Optional appNamespace for multi-namespace installs.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
Array of unique image references (e.g. ['my-app:v2.1.0', 'nginx:1.25']).
Lists Argo CD applications, optionally filtered by project, label selector, repo, or namespace.
Optional filters: project, selector, repo, appNamespace, etc.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
Paginated list of applications.
Fetches pod logs for an application. The server streams NDJSON; this method buffers and returns
it as an array. Use params.follow: false (default) for a bounded response.
Application name.
Log options: podName, container, namespace, tailLines, sinceSeconds, filter, etc.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
Array of log entries, each with content, timestamp, podName, and container.
Returns the managed Kubernetes resources for an application, including their live and target
manifests as JSON strings (liveState, targetState, normalizedLiveState).
Application name.
Optional filters: kind, group, namespace, resourceName, version, appNamespace.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
Array of managed resources (empty array if none).
Returns the Kubernetes nodes that host this application's pods, with OS and container runtime
metadata sourced from the resourceTree host list (NodeSystemInfo).
Application name.
Optional appNamespace for multi-namespace installs.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
Array of nodes, each with osImage, operatingSystem, architecture,
kernelVersion, containerRuntimeVersion, and kubeletVersion.
Applies a JSON merge patch to an application. Prefer this over update for partial changes.
Application name.
Partial application object to merge. Only provided fields are changed.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
The patched application.
Returns the live pods for an application, parsed from the managed-resources liveState manifests.
Each pod includes its phase, node assignment, container specs, and container statuses.
Application name.
Optional filters: namespace, resourceName, appNamespace.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
Array of pods, each with containers (including ready and restartCount).
Triggers a normal refresh and returns the updated application. Convenience wrapper for
get(name, { refresh: 'normal' }). Use get(name, { refresh: 'hard' }) for a hard refresh.
Application name.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
The refreshed application.
Returns the live Kubernetes resource tree for an application — all nodes (Deployments, ReplicaSets, Pods, Services…) with health, status, and parent references.
Application name.
Optional appNamespace for multi-namespace installs.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
Tree with nodes, orphanedNodes, and hosts.
Returns Git commit metadata for a specific revision of an application's source.
Application name.
Git ref (branch, tag, or commit SHA).
Optional appNamespace and project for authorization.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
{ author, date, tags, message }.
Rolls back an application to a previous deployment by history ID.
Application name.
Rollback options.
OptionaldryRun?: booleanSimulate without applying changes.
Optionalid?: numberHistory ID to roll back to (from app.status.history).
Optionalprune?: booleanWhether to delete resources not present in the target revision.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
The application after rollback is initiated.
Triggers a sync for an application, reconciling live state with the desired Git state.
Application name.
Optional sync options: revision, prune, dryRun, resources, etc.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
The application after sync is initiated.
Terminates a running sync operation for an application.
Optionalsignal: AbortSignalReplaces an application (full PUT). Use patch for partial updates.
Application name.
Complete application manifest to replace the current one.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
The updated application.
Waits until the application reaches the requested state (health, sync, or operation complete).
Application name.
Wait conditions: health, operation, suspended, timeout, resources.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
The application once it reaches the desired state (or the server times out).
Methods for Argo CD applications.
Applications represent deployed GitOps workloads managed by Argo CD.