Overview
The Application Service API provides comprehensive CRUD operations for Application resources. Applications represent the desired state of a Kubernetes application managed by Argo CD. Base Path:/api/v1/applications
gRPC Service: application.ApplicationService
Application Resource
An Application defines the source repository, destination cluster, and sync policies.Application Spec
Reference to the location of manifests or chart (single-source)
Multiple sources for multi-source applications
Target Kubernetes cluster and namespace
Project name (use “default” if not specified)
Sync policy configuration
Example Application
API Operations
List Applications
Retrieve a list of applications.Filter by project names
Label selector (e.g.,
app=myapp,env=prod)Filter by repository URL
Filter by application namespace
Get Application
Retrieve a specific application by name.Application name
Force refresh from Git (“normal” or “hard”)
Project filter for validation
Application namespace
Create Application
Create a new application.Complete Application resource definition
Update if already exists (default: false)
Validate before creating (default: true)
Update Application
Update an existing application.Updated Application resource
Validate before updating
Update Application Spec
Update only the application spec.Application name
Updated specification
Patch Application
Partially update an application.Application name
JSON patch or merge patch content
Patch type: “json”, “merge”, or “strategic”
Delete Application
Delete an application.Application name
Delete application resources (default: true)
Kubernetes propagation policy: “foreground”, “background”, or “orphan”
Application namespace
Sync Operations
Sync Application
Trigger a sync operation to deploy the application.Application name
Target revision to sync (default: spec.targetRevision)
Delete resources not in Git
Preview sync without applying changes
Sync strategy (hook, apply)
Specific resources to sync
Sync options (e.g., “PruneLast=true”)
Terminate Operation
Cancel a running sync operation.Rollback Application
Rollback to a previous revision.Application name
History ID to rollback to
Prune resources during rollback
Preview rollback
Resource Operations
Get Resource
Get a specific resource managed by the application.Resource namespace
Resource name
API version (e.g., “v1”)
API group (empty for core)
Resource kind (e.g., “Deployment”)
Delete Resource
Delete a specific resource.Patch Resource
Patch a specific resource.Monitoring & Observability
Get Resource Tree
Get the application’s resource hierarchy.Watch Resource Tree
Stream resource tree updates.Get Pod Logs
Stream logs from application pods.Container name
Stream logs
Number of lines to tail
Logs from last N seconds
Watch Applications
Stream application change events.Next Steps
ApplicationSet API
Manage ApplicationSets
Project API
Configure projects for applications