Application Service
Application Service API performs CRUD actions against application resources.Service Definition
Package:application
Service: ApplicationService
The ApplicationService provides comprehensive management capabilities for Argo CD applications, including creation, updates, synchronization, rollback, and resource management.
RPC Methods
List
Returns list of applications. Request:ApplicationQuery
The application’s name
Forces application reconciliation if set to ‘hard’
The project names to restrict returned list applications
When specified with a watch call, shows changes that occur after that particular version of a resource
The selector to restrict returned list to applications only with matched labels
The repoURL to restrict returned list applications
The application’s namespace
ApplicationList
REST Endpoint: GET /api/v1/applications
Get
Returns an application by name. Request:ApplicationQuery
The application’s name
The application’s namespace
Application
REST Endpoint: GET /api/v1/applications/{name}
Create
Creates an application. Request:ApplicationCreateRequest
The application to create
Whether to create or update the application if it already exists
Whether to validate the application before creating
Application
REST Endpoint: POST /api/v1/applications
Update
Updates an application. Request:ApplicationUpdateRequest
The application to update
Whether to validate the application before updating
The project name
Application
REST Endpoint: PUT /api/v1/applications/{application.metadata.name}
Delete
Deletes an application. Request:ApplicationDeleteRequest
The application’s name
Whether to cascade delete resources
The deletion propagation policy (Foreground, Background, or Orphan)
The application’s namespace
The project name
ApplicationResponse
REST Endpoint: DELETE /api/v1/applications/{name}
Sync
Syncs an application to its target state. Request:ApplicationSyncRequest
The application’s name
The revision to sync to
Whether to perform a dry run
Whether to prune resources
The sync strategy to use
The specific resources to sync
Additional manifests to sync
Sync options
The application’s namespace
Revisions for multi-source applications
Application
REST Endpoint: POST /api/v1/applications/{name}/sync
Rollback
Rollbacks an application to a previous revision. Request:ApplicationRollbackRequest
The application’s name
The history ID to rollback to
Whether to perform a dry run
Whether to prune resources
The application’s namespace
Application
REST Endpoint: POST /api/v1/applications/{name}/rollback
Watch
Returns stream of application change events. Request:ApplicationQuery
Response: Stream of ApplicationWatchEvent
REST Endpoint: GET /api/v1/stream/applications
GetManifests
Returns application manifests. Request:ApplicationManifestQuery
The application’s name
The revision to get manifests for
The application’s namespace
Whether to bypass the cache
ManifestResponse
REST Endpoint: GET /api/v1/applications/{name}/manifests
UpdateSpec
Updates an application spec. Request:ApplicationUpdateSpecRequest
The application’s name
The new application spec
Whether to validate the spec before updating
The application’s namespace
ApplicationSpec
REST Endpoint: PUT /api/v1/applications/{name}/spec
Patch
Patches an application. Request:ApplicationPatchRequest
The application’s name
The patch to apply
The patch type (json, merge, or strategic)
The application’s namespace
Application
REST Endpoint: PATCH /api/v1/applications/{name}
ResourceTree
Returns resource tree for an application. Request:ResourcesQuery
The application’s name
Filter by namespace
Filter by resource name
Filter by API version
Filter by API group
Filter by resource kind
The application’s namespace
ApplicationTree
REST Endpoint: GET /api/v1/applications/{applicationName}/resource-tree
WatchResourceTree
Returns stream of application resource tree updates. Request:ResourcesQuery
Response: Stream of ApplicationTree
REST Endpoint: GET /api/v1/stream/applications/{applicationName}/resource-tree
GetResource
Returns a single application resource. Request:ApplicationResourceRequest
The application’s name
The resource’s namespace
The resource’s name
The API version
The API group
The resource kind
The application’s namespace
ApplicationResourceResponse
The resource manifest in YAML or JSON format
GET /api/v1/applications/{name}/resource
PatchResource
Patches a single application resource. Request:ApplicationResourcePatchRequest
The application’s name
The resource’s namespace
The resource’s name
The API version
The API group
The resource kind
The patch to apply
The patch type
ApplicationResourceResponse
REST Endpoint: POST /api/v1/applications/{name}/resource
DeleteResource
Deletes a single application resource. Request:ApplicationResourceDeleteRequest
The application’s name
The resource’s namespace
The resource’s name
The API version
The API group
The resource kind
Whether to force delete
Whether to orphan the resource
ApplicationResponse
REST Endpoint: DELETE /api/v1/applications/{name}/resource
PodLogs
Returns stream of log entries for the specified pod. Request:ApplicationPodLogsQuery
The application’s name
The pod’s namespace
The pod’s name
The container name
Logs since N seconds ago
Number of lines to tail
Whether to follow the log stream
Filter pattern for logs
Whether to get logs from previous container instance
LogEntry
The log content
The timestamp of the log entry
The pod name
Whether this is the last log entry
GET /api/v1/applications/{name}/pods/{podName}/logs
TerminateOperation
Terminates the currently running operation. Request:OperationTerminateRequest
The application’s name
The application’s namespace
OperationTerminateResponse
REST Endpoint: DELETE /api/v1/applications/{name}/operation
ManagedResources
Returns list of managed resources. Request:ResourcesQuery
Response: ManagedResourcesResponse
List of managed resources with their diff status
GET /api/v1/applications/{applicationName}/managed-resources
ListResourceEvents
Returns a list of event resources. Request:ApplicationResourceEventsQuery
The application’s name
The resource’s namespace
The resource’s name
The resource’s UID
EventList
REST Endpoint: GET /api/v1/applications/{name}/events
ListResourceActions
Returns list of available resource actions. Request:ApplicationResourceRequest
Response: ResourceActionsListResponse
List of available actions for the resource
GET /api/v1/applications/{name}/resource/actions
RunResourceActionV2
Runs a resource action with parameters. Request:ResourceActionRunRequestV2
The application’s name
The resource’s namespace
The resource’s name
The API version
The API group
The resource kind
The action name to run
Parameters for the action
ApplicationResponse
REST Endpoint: POST /api/v1/applications/{name}/resource/actions/v2
GetApplicationSyncWindows
Returns sync windows of the application. Request:ApplicationSyncWindowsQuery
The application’s name
The application’s namespace
ApplicationSyncWindowsResponse
Currently active sync windows
All assigned sync windows
Whether the application can sync now
GET /api/v1/applications/{name}/syncwindows
RevisionMetadata
Returns the metadata for a specific revision. Request:RevisionMetadataQuery
The application’s name
The revision to get metadata for
The application’s namespace
RevisionMetadata
REST Endpoint: GET /api/v1/applications/{name}/revisions/{revision}/metadata
ListLinks
Returns the list of all application deep links. Request:ListAppLinksRequest
The application’s name
The application’s namespace
LinksResponse
List of deep links
GET /api/v1/applications/{name}/links