2018-05-16 23:30:28 +00:00
|
|
|
syntax = "proto2";
|
2021-04-01 18:44:18 +00:00
|
|
|
option go_package = "github.com/argoproj/argo-cd/v2/pkg/apiclient/application";
|
2018-02-19 11:39:03 +00:00
|
|
|
|
|
|
|
|
// Application Service
|
|
|
|
|
//
|
2018-05-16 23:30:28 +00:00
|
|
|
// Application Service API performs CRUD actions against application resources
|
2018-02-19 11:39:03 +00:00
|
|
|
package application;
|
|
|
|
|
|
|
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
|
import "k8s.io/api/core/v1/generated.proto";
|
2018-04-06 20:08:29 +00:00
|
|
|
import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
|
2021-04-01 18:44:18 +00:00
|
|
|
import "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/generated.proto";
|
|
|
|
|
import "github.com/argoproj/argo-cd/v2/reposerver/repository/repository.proto";
|
2018-02-19 11:39:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// ApplicationQuery is a query for application resources
|
|
|
|
|
message ApplicationQuery {
|
2019-10-08 17:04:30 +00:00
|
|
|
// the application's name
|
2018-05-16 23:30:28 +00:00
|
|
|
optional string name = 1;
|
2019-10-08 17:04:30 +00:00
|
|
|
// forces application reconciliation if set to true
|
2018-12-18 02:23:35 +00:00
|
|
|
optional string refresh = 2;
|
2019-10-08 17:04:30 +00:00
|
|
|
// the project names to restrict returned list applications
|
2018-06-22 17:05:57 +00:00
|
|
|
repeated string project = 3 [(gogoproto.customname) = "Projects"];
|
2019-10-08 17:04:30 +00:00
|
|
|
// when specified with a watch call, shows changes that occur after that particular version of a resource.
|
2019-05-13 21:58:22 +00:00
|
|
|
optional string resourceVersion = 4 [(gogoproto.nullable) = false];
|
2019-10-08 17:04:30 +00:00
|
|
|
// the selector to to restrict returned list to applications only with matched labels
|
|
|
|
|
optional string selector = 5 [(gogoproto.nullable) = false];
|
2021-03-12 17:07:22 +00:00
|
|
|
// the repoURL to restrict returned list applications
|
|
|
|
|
optional string repo = 6 [(gogoproto.nullable) = false];
|
2018-02-19 11:39:03 +00:00
|
|
|
}
|
|
|
|
|
|
2021-01-05 20:28:14 +00:00
|
|
|
message NodeQuery {
|
|
|
|
|
// the application's name
|
|
|
|
|
optional string name = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2019-06-21 22:51:48 +00:00
|
|
|
message RevisionMetadataQuery{
|
|
|
|
|
// the application's name
|
|
|
|
|
required string name = 1;
|
|
|
|
|
// the revision of the app
|
|
|
|
|
required string revision = 2;
|
|
|
|
|
}
|
|
|
|
|
|
2018-05-30 22:30:58 +00:00
|
|
|
// ApplicationEventsQuery is a query for application resource events
|
|
|
|
|
message ApplicationResourceEventsQuery {
|
2018-06-01 00:21:09 +00:00
|
|
|
required string name = 1;
|
2018-12-03 22:53:11 +00:00
|
|
|
required string resourceNamespace = 2 [(gogoproto.nullable) = false];
|
|
|
|
|
required string resourceName = 3 [(gogoproto.nullable) = false];
|
|
|
|
|
required string resourceUID = 4 [(gogoproto.nullable) = false];
|
2018-05-30 22:30:58 +00:00
|
|
|
}
|
|
|
|
|
|
2018-05-17 23:33:04 +00:00
|
|
|
// ManifestQuery is a query for manifest resources
|
2018-06-01 00:21:09 +00:00
|
|
|
message ApplicationManifestQuery {
|
|
|
|
|
required string name = 1;
|
|
|
|
|
optional string revision = 2 [(gogoproto.nullable) = false];
|
2018-05-17 23:33:04 +00:00
|
|
|
}
|
|
|
|
|
|
2018-02-19 11:39:03 +00:00
|
|
|
message ApplicationResponse {}
|
|
|
|
|
|
2018-05-31 21:21:08 +00:00
|
|
|
message ApplicationCreateRequest {
|
2021-04-01 18:44:18 +00:00
|
|
|
required github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.Application application = 1 [(gogoproto.nullable) = false];
|
2018-06-01 00:21:09 +00:00
|
|
|
optional bool upsert = 2;
|
2020-07-30 20:28:36 +00:00
|
|
|
optional bool validate = 3;
|
2018-05-31 21:21:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ApplicationUpdateRequest {
|
2021-04-01 18:44:18 +00:00
|
|
|
required github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.Application application = 1;
|
2020-07-30 20:28:36 +00:00
|
|
|
optional bool validate = 2;
|
2018-05-31 21:21:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ApplicationDeleteRequest {
|
2018-05-16 23:30:28 +00:00
|
|
|
required string name = 1;
|
|
|
|
|
optional bool cascade = 2;
|
2021-03-15 16:27:41 +00:00
|
|
|
optional string propagationPolicy = 3;
|
2018-03-16 23:17:03 +00:00
|
|
|
}
|
|
|
|
|
|
2021-02-12 00:12:05 +00:00
|
|
|
message SyncOptions {
|
|
|
|
|
repeated string items = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2018-02-28 11:07:56 +00:00
|
|
|
// ApplicationSyncRequest is a request to apply the config state to live state
|
|
|
|
|
message ApplicationSyncRequest {
|
2018-05-16 23:30:28 +00:00
|
|
|
required string name = 1;
|
2018-07-07 07:54:06 +00:00
|
|
|
optional string revision = 2 [(gogoproto.nullable) = false];
|
|
|
|
|
optional bool dryRun = 3 [(gogoproto.nullable) = false];
|
|
|
|
|
optional bool prune = 4 [(gogoproto.nullable) = false];
|
2021-04-01 18:44:18 +00:00
|
|
|
optional github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.SyncStrategy strategy = 5;
|
|
|
|
|
repeated github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.SyncOperationResource resources = 7 [(gogoproto.nullable) = false];
|
2019-06-18 02:09:43 +00:00
|
|
|
repeated string manifests = 8;
|
2021-04-01 18:44:18 +00:00
|
|
|
repeated github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.Info infos = 9;
|
|
|
|
|
optional github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.RetryStrategy retryStrategy = 10;
|
2021-02-12 00:12:05 +00:00
|
|
|
optional SyncOptions syncOptions = 11;
|
2018-09-24 15:52:43 +00:00
|
|
|
}
|
|
|
|
|
|
2018-06-01 00:54:27 +00:00
|
|
|
// ApplicationUpdateSpecRequest is a request to update application spec
|
|
|
|
|
message ApplicationUpdateSpecRequest {
|
2018-06-01 00:21:09 +00:00
|
|
|
required string name = 1;
|
2021-04-01 18:44:18 +00:00
|
|
|
required github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.ApplicationSpec spec = 2 [(gogoproto.nullable) = false];
|
2020-07-30 20:28:36 +00:00
|
|
|
optional bool validate = 3;
|
2018-05-03 22:55:01 +00:00
|
|
|
}
|
|
|
|
|
|
2019-02-25 22:25:25 +00:00
|
|
|
// ApplicationPatchRequest is a request to patch an application
|
|
|
|
|
message ApplicationPatchRequest {
|
|
|
|
|
required string name = 1;
|
|
|
|
|
required string patch = 2 [(gogoproto.nullable) = false];
|
2019-07-02 20:41:25 +00:00
|
|
|
required string patchType = 3 [(gogoproto.nullable) = false];
|
2019-02-25 22:25:25 +00:00
|
|
|
}
|
|
|
|
|
|
2018-04-24 20:34:03 +00:00
|
|
|
message ApplicationRollbackRequest {
|
2018-05-16 23:30:28 +00:00
|
|
|
required string name = 1;
|
|
|
|
|
required int64 id = 2 [(gogoproto.customname) = "ID", (gogoproto.nullable) = false];
|
2018-07-07 07:54:06 +00:00
|
|
|
optional bool dryRun = 3 [(gogoproto.nullable) = false];
|
|
|
|
|
optional bool prune = 4 [(gogoproto.nullable) = false];
|
2018-04-24 20:34:03 +00:00
|
|
|
}
|
|
|
|
|
|
2018-11-28 21:38:02 +00:00
|
|
|
message ApplicationResourceRequest {
|
2018-06-01 00:21:09 +00:00
|
|
|
required string name = 1;
|
2018-11-28 21:38:02 +00:00
|
|
|
required string namespace = 2 [(gogoproto.nullable) = false];
|
|
|
|
|
required string resourceName = 3 [(gogoproto.nullable) = false];
|
|
|
|
|
required string version = 4 [(gogoproto.nullable) = false];
|
|
|
|
|
required string group = 5 [(gogoproto.nullable) = false];
|
|
|
|
|
required string kind = 6 [(gogoproto.nullable) = false];
|
|
|
|
|
}
|
|
|
|
|
|
2018-12-28 23:57:52 +00:00
|
|
|
message ApplicationResourcePatchRequest {
|
|
|
|
|
required string name = 1;
|
|
|
|
|
required string namespace = 2 [(gogoproto.nullable) = false];
|
|
|
|
|
required string resourceName = 3 [(gogoproto.nullable) = false];
|
|
|
|
|
required string version = 4 [(gogoproto.nullable) = false];
|
|
|
|
|
required string group = 5 [(gogoproto.nullable) = false];
|
|
|
|
|
required string kind = 6 [(gogoproto.nullable) = false];
|
|
|
|
|
required string patch = 7 [(gogoproto.nullable) = false];
|
|
|
|
|
required string patchType = 8 [(gogoproto.nullable) = false];
|
|
|
|
|
}
|
|
|
|
|
|
2018-12-07 00:00:10 +00:00
|
|
|
message ApplicationResourceDeleteRequest {
|
|
|
|
|
required string name = 1;
|
|
|
|
|
required string namespace = 2 [(gogoproto.nullable) = false];
|
|
|
|
|
required string resourceName = 3 [(gogoproto.nullable) = false];
|
|
|
|
|
required string version = 4 [(gogoproto.nullable) = false];
|
|
|
|
|
required string group = 5 [(gogoproto.nullable) = false];
|
|
|
|
|
required string kind = 6 [(gogoproto.nullable) = false];
|
2018-12-07 18:50:40 +00:00
|
|
|
optional bool force = 7 [(gogoproto.nullable) = true];
|
2021-03-09 13:04:14 +00:00
|
|
|
optional bool orphan = 8 [(gogoproto.nullable) = true];
|
2018-12-07 00:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
2019-04-16 21:50:44 +00:00
|
|
|
message ResourceActionRunRequest {
|
|
|
|
|
required string name = 1;
|
|
|
|
|
required string namespace = 2 [(gogoproto.nullable) = false];
|
2019-04-19 17:27:12 +00:00
|
|
|
required string resourceName = 3 [(gogoproto.nullable) = false];
|
2019-04-16 21:50:44 +00:00
|
|
|
required string version = 4 [(gogoproto.nullable) = false];
|
|
|
|
|
required string group = 5 [(gogoproto.nullable) = false];
|
|
|
|
|
required string kind = 6 [(gogoproto.nullable) = false];
|
|
|
|
|
required string action = 7 [(gogoproto.nullable) = false];
|
|
|
|
|
}
|
2018-12-07 00:00:10 +00:00
|
|
|
|
2019-04-16 21:50:44 +00:00
|
|
|
message ResourceActionsListResponse {
|
2021-04-01 18:44:18 +00:00
|
|
|
repeated github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.ResourceAction actions = 1 [(gogoproto.nullable) = false];
|
2019-04-16 21:50:44 +00:00
|
|
|
}
|
2018-11-28 21:38:02 +00:00
|
|
|
|
|
|
|
|
message ApplicationResourceResponse {
|
|
|
|
|
required string manifest = 1 [(gogoproto.nullable) = false];
|
2018-04-09 17:39:46 +00:00
|
|
|
}
|
|
|
|
|
|
2018-06-01 00:21:09 +00:00
|
|
|
message ApplicationPodLogsQuery {
|
|
|
|
|
required string name = 1;
|
2018-11-30 23:40:01 +00:00
|
|
|
required string namespace = 2 [(gogoproto.nullable) = false];
|
2021-02-08 17:27:24 +00:00
|
|
|
optional string podName = 3;
|
2018-11-30 23:40:01 +00:00
|
|
|
required string container = 4 [(gogoproto.nullable) = false];
|
|
|
|
|
required int64 sinceSeconds = 5 [(gogoproto.nullable) = false];
|
|
|
|
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 6;
|
|
|
|
|
required int64 tailLines = 7 [(gogoproto.nullable) = false];
|
|
|
|
|
required bool follow = 8 [(gogoproto.nullable) = false];
|
2021-01-25 19:48:49 +00:00
|
|
|
optional string untilTime = 9;
|
2021-01-27 23:48:37 +00:00
|
|
|
optional string filter = 10;
|
2021-02-08 17:27:24 +00:00
|
|
|
optional string kind = 11;
|
|
|
|
|
optional string group = 12;
|
|
|
|
|
optional string resourceName = 13 ;
|
2018-04-06 20:08:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message LogEntry {
|
2018-05-16 23:30:28 +00:00
|
|
|
required string content = 1 [(gogoproto.nullable) = false];
|
2021-01-25 19:48:49 +00:00
|
|
|
// deprecated in favor of timeStampStr since meta.v1.Time don't support nano time
|
|
|
|
|
required k8s.io.apimachinery.pkg.apis.meta.v1.Time timeStamp = 2 [(gogoproto.nullable) = false, deprecated=true];
|
2020-10-29 16:37:59 +00:00
|
|
|
required bool last = 3 [(gogoproto.nullable) = false];
|
2021-01-25 19:48:49 +00:00
|
|
|
required string timeStampStr = 4 [(gogoproto.nullable) = false];
|
2021-02-11 01:58:13 +00:00
|
|
|
required string podName = 5 [(gogoproto.nullable) = false];
|
2018-04-06 20:08:29 +00:00
|
|
|
}
|
|
|
|
|
|
2018-07-14 00:13:31 +00:00
|
|
|
message OperationTerminateRequest {
|
|
|
|
|
required string name = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-08 22:20:19 +00:00
|
|
|
message ApplicationSyncWindowsQuery {
|
2019-10-01 22:23:09 +00:00
|
|
|
required string name = 1;
|
2018-07-14 00:13:31 +00:00
|
|
|
}
|
|
|
|
|
|
2019-10-08 22:20:19 +00:00
|
|
|
message ApplicationSyncWindowsResponse {
|
|
|
|
|
repeated ApplicationSyncWindow activeWindows = 1;
|
|
|
|
|
repeated ApplicationSyncWindow assignedWindows = 2;
|
|
|
|
|
required bool canSync = 3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ApplicationSyncWindow {
|
|
|
|
|
required string kind = 1;
|
|
|
|
|
required string schedule = 2;
|
|
|
|
|
required string duration = 3;
|
|
|
|
|
required bool manualSync = 4;
|
2019-10-01 22:23:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message OperationTerminateResponse {
|
|
|
|
|
}
|
2019-02-13 23:20:40 +00:00
|
|
|
|
2019-12-26 22:42:56 +00:00
|
|
|
|
2019-02-13 23:20:40 +00:00
|
|
|
message ResourcesQuery {
|
|
|
|
|
required string applicationName = 1 [(gogoproto.nullable) = true];
|
2019-12-26 22:42:56 +00:00
|
|
|
|
|
|
|
|
optional string namespace = 2 [(gogoproto.nullable) = false];
|
|
|
|
|
optional string name = 3 [(gogoproto.nullable) = false];
|
|
|
|
|
optional string version = 4 [(gogoproto.nullable) = false];
|
|
|
|
|
optional string group = 5 [(gogoproto.nullable) = false];
|
|
|
|
|
optional string kind = 6 [(gogoproto.nullable) = false];
|
2019-02-13 23:20:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ManagedResourcesResponse {
|
2021-04-01 18:44:18 +00:00
|
|
|
repeated github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.ResourceDiff items = 1;
|
2019-02-13 23:20:40 +00:00
|
|
|
}
|
|
|
|
|
|
2018-03-16 23:17:03 +00:00
|
|
|
// ApplicationService
|
2018-02-19 11:39:03 +00:00
|
|
|
service ApplicationService {
|
|
|
|
|
|
|
|
|
|
// List returns list of applications
|
2021-04-01 18:44:18 +00:00
|
|
|
rpc List(ApplicationQuery) returns (github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.ApplicationList) {
|
2018-02-19 11:39:03 +00:00
|
|
|
option (google.api.http).get = "/api/v1/applications";
|
|
|
|
|
}
|
|
|
|
|
|
2018-05-30 22:30:58 +00:00
|
|
|
// ListResourceEvents returns a list of event resources
|
|
|
|
|
rpc ListResourceEvents(ApplicationResourceEventsQuery) returns (k8s.io.api.core.v1.EventList) {
|
2018-06-01 00:21:09 +00:00
|
|
|
option (google.api.http).get = "/api/v1/applications/{name}/events";
|
2018-05-30 22:30:58 +00:00
|
|
|
}
|
|
|
|
|
|
2020-10-20 18:28:57 +00:00
|
|
|
// Watch returns stream of application change events
|
2021-04-01 18:44:18 +00:00
|
|
|
rpc Watch(ApplicationQuery) returns (stream github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.ApplicationWatchEvent) {
|
2018-02-28 05:37:23 +00:00
|
|
|
option (google.api.http).get = "/api/v1/stream/applications";
|
|
|
|
|
}
|
|
|
|
|
|
2018-02-28 11:07:56 +00:00
|
|
|
// Create creates an application
|
2021-04-01 18:44:18 +00:00
|
|
|
rpc Create (ApplicationCreateRequest) returns (github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.Application) {
|
2018-02-19 11:39:03 +00:00
|
|
|
option (google.api.http) = {
|
|
|
|
|
post: "/api/v1/applications"
|
2018-06-01 00:54:27 +00:00
|
|
|
body: "application"
|
2018-02-19 11:39:03 +00:00
|
|
|
};
|
|
|
|
|
}
|
2018-03-16 23:17:03 +00:00
|
|
|
|
|
|
|
|
// Get returns an application by name
|
2021-04-01 18:44:18 +00:00
|
|
|
rpc Get (ApplicationQuery) returns (github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.Application) {
|
2018-02-19 11:39:03 +00:00
|
|
|
option (google.api.http).get = "/api/v1/applications/{name}";
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-16 17:03:15 +00:00
|
|
|
// Get returns sync windows of the application
|
2019-10-08 22:20:19 +00:00
|
|
|
rpc GetApplicationSyncWindows (ApplicationSyncWindowsQuery) returns (ApplicationSyncWindowsResponse) {
|
|
|
|
|
option (google.api.http).get = "/api/v1/applications/{name}/syncwindows";
|
2019-10-01 22:23:09 +00:00
|
|
|
}
|
|
|
|
|
|
2019-06-21 22:51:48 +00:00
|
|
|
// Get the meta-data (author, date, tags, message) for a specific revision of the application
|
2021-04-01 18:44:18 +00:00
|
|
|
rpc RevisionMetadata (RevisionMetadataQuery) returns (github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.RevisionMetadata) {
|
2019-06-21 22:51:48 +00:00
|
|
|
option (google.api.http).get = "/api/v1/applications/{name}/revisions/{revision}/metadata";
|
|
|
|
|
}
|
|
|
|
|
|
2018-05-30 20:49:20 +00:00
|
|
|
// GetManifests returns application manifests
|
2019-10-08 22:20:19 +00:00
|
|
|
rpc GetManifests (ApplicationManifestQuery) returns (repository.ManifestResponse) {
|
2018-06-01 00:21:09 +00:00
|
|
|
option (google.api.http).get = "/api/v1/applications/{name}/manifests";
|
2018-05-17 23:33:04 +00:00
|
|
|
}
|
|
|
|
|
|
2018-02-28 11:07:56 +00:00
|
|
|
// Update updates an application
|
2021-04-01 18:44:18 +00:00
|
|
|
rpc Update(ApplicationUpdateRequest) returns (github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.Application) {
|
2018-02-19 11:39:03 +00:00
|
|
|
option (google.api.http) = {
|
2018-06-01 00:54:27 +00:00
|
|
|
put: "/api/v1/applications/{application.metadata.name}"
|
|
|
|
|
body: "application"
|
2018-02-19 11:39:03 +00:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2018-06-25 20:49:38 +00:00
|
|
|
// UpdateSpec updates an application spec
|
2021-04-01 18:44:18 +00:00
|
|
|
rpc UpdateSpec(ApplicationUpdateSpecRequest) returns (github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.ApplicationSpec) {
|
2018-05-03 22:55:01 +00:00
|
|
|
option (google.api.http) = {
|
2018-06-01 00:21:09 +00:00
|
|
|
put: "/api/v1/applications/{name}/spec"
|
2018-06-01 00:54:27 +00:00
|
|
|
body: "spec"
|
2018-05-03 22:55:01 +00:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2019-02-25 22:25:25 +00:00
|
|
|
// Patch patch an application
|
2021-04-01 18:44:18 +00:00
|
|
|
rpc Patch(ApplicationPatchRequest) returns (github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.Application) {
|
2019-02-25 22:25:25 +00:00
|
|
|
option (google.api.http) = {
|
|
|
|
|
patch: "/api/v1/applications/{name}"
|
|
|
|
|
body: "*"
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2018-02-28 11:07:56 +00:00
|
|
|
// Delete deletes an application
|
2018-05-31 21:21:08 +00:00
|
|
|
rpc Delete(ApplicationDeleteRequest) returns (ApplicationResponse) {
|
2018-02-19 11:39:03 +00:00
|
|
|
option (google.api.http).delete = "/api/v1/applications/{name}";
|
|
|
|
|
}
|
|
|
|
|
|
2018-02-28 11:07:56 +00:00
|
|
|
// Sync syncs an application to its target state
|
2021-04-01 18:44:18 +00:00
|
|
|
rpc Sync(ApplicationSyncRequest) returns (github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.Application) {
|
2018-03-08 19:18:37 +00:00
|
|
|
option (google.api.http) = {
|
|
|
|
|
post: "/api/v1/applications/{name}/sync"
|
|
|
|
|
body: "*"
|
|
|
|
|
};
|
2018-02-28 11:07:56 +00:00
|
|
|
}
|
|
|
|
|
|
2020-10-20 18:28:57 +00:00
|
|
|
// ManagedResources returns list of managed resources
|
2019-02-13 23:20:40 +00:00
|
|
|
rpc ManagedResources(ResourcesQuery) returns (ManagedResourcesResponse) {
|
2018-11-30 18:32:31 +00:00
|
|
|
option (google.api.http).get = "/api/v1/applications/{applicationName}/managed-resources";
|
2018-11-28 21:38:02 +00:00
|
|
|
}
|
|
|
|
|
|
2020-10-20 18:28:57 +00:00
|
|
|
// ResourceTree returns resource tree
|
2021-04-01 18:44:18 +00:00
|
|
|
rpc ResourceTree(ResourcesQuery) returns (github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.ApplicationTree) {
|
2018-11-30 18:32:31 +00:00
|
|
|
option (google.api.http).get = "/api/v1/applications/{applicationName}/resource-tree";
|
2018-11-17 01:10:04 +00:00
|
|
|
}
|
2020-08-31 17:18:12 +00:00
|
|
|
|
|
|
|
|
// Watch returns stream of application resource tree
|
2021-04-01 18:44:18 +00:00
|
|
|
rpc WatchResourceTree(ResourcesQuery) returns (stream github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.ApplicationTree) {
|
2020-08-31 17:18:12 +00:00
|
|
|
option (google.api.http).get = "/api/v1/stream/applications/{applicationName}/resource-tree";
|
|
|
|
|
}
|
|
|
|
|
|
2018-06-25 20:49:38 +00:00
|
|
|
// Rollback syncs an application to its target state
|
2021-04-01 18:44:18 +00:00
|
|
|
rpc Rollback(ApplicationRollbackRequest) returns (github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.Application) {
|
2018-04-24 20:34:03 +00:00
|
|
|
option (google.api.http) = {
|
|
|
|
|
post: "/api/v1/applications/{name}/rollback"
|
|
|
|
|
body: "*"
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2018-07-14 00:13:31 +00:00
|
|
|
// TerminateOperation terminates the currently running operation
|
|
|
|
|
rpc TerminateOperation(OperationTerminateRequest) returns (OperationTerminateResponse) {
|
|
|
|
|
option (google.api.http) = {
|
|
|
|
|
delete: "/api/v1/applications/{name}/operation";
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2018-11-28 21:38:02 +00:00
|
|
|
// GetResource returns single application resource
|
|
|
|
|
rpc GetResource(ApplicationResourceRequest) returns (ApplicationResourceResponse) {
|
|
|
|
|
option (google.api.http).get = "/api/v1/applications/{name}/resource";
|
|
|
|
|
}
|
|
|
|
|
|
2018-12-28 23:57:52 +00:00
|
|
|
// PatchResource patch single application resource
|
|
|
|
|
rpc PatchResource(ApplicationResourcePatchRequest) returns (ApplicationResourceResponse) {
|
2019-02-26 23:57:47 +00:00
|
|
|
option (google.api.http) = {
|
|
|
|
|
post: "/api/v1/applications/{name}/resource"
|
|
|
|
|
body: "patch"
|
|
|
|
|
};
|
2018-12-28 23:57:52 +00:00
|
|
|
}
|
|
|
|
|
|
2020-10-20 18:28:57 +00:00
|
|
|
// ListResourceActions returns list of resource actions
|
2019-04-16 21:50:44 +00:00
|
|
|
rpc ListResourceActions(ApplicationResourceRequest) returns (ResourceActionsListResponse) {
|
|
|
|
|
option (google.api.http).get = "/api/v1/applications/{name}/resource/actions";
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-20 18:28:57 +00:00
|
|
|
// RunResourceAction run resource action
|
2019-04-16 21:50:44 +00:00
|
|
|
rpc RunResourceAction(ResourceActionRunRequest) returns (ApplicationResponse) {
|
|
|
|
|
option (google.api.http) = {
|
2019-04-19 17:27:12 +00:00
|
|
|
post: "/api/v1/applications/{name}/resource/actions"
|
2019-10-08 22:20:19 +00:00
|
|
|
body: "action"
|
2019-04-16 21:50:44 +00:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2018-08-15 22:01:29 +00:00
|
|
|
// DeleteResource deletes a single application resource
|
2018-12-07 00:00:10 +00:00
|
|
|
rpc DeleteResource(ApplicationResourceDeleteRequest) returns (ApplicationResponse) {
|
2018-08-15 22:01:29 +00:00
|
|
|
option (google.api.http).delete = "/api/v1/applications/{name}/resource";
|
2018-04-09 17:39:46 +00:00
|
|
|
}
|
|
|
|
|
|
2018-04-06 20:08:29 +00:00
|
|
|
// PodLogs returns stream of log entries for the specified pod. Pod
|
2018-06-01 00:21:09 +00:00
|
|
|
rpc PodLogs(ApplicationPodLogsQuery) returns (stream LogEntry) {
|
2021-02-11 01:58:13 +00:00
|
|
|
option (google.api.http) = {
|
|
|
|
|
get: "/api/v1/applications/{name}/pods/{podName}/logs"
|
|
|
|
|
additional_bindings {
|
|
|
|
|
get: "/api/v1/applications/{name}/logs"
|
|
|
|
|
}
|
|
|
|
|
};
|
2018-04-06 20:08:29 +00:00
|
|
|
}
|
2018-02-19 11:39:03 +00:00
|
|
|
}
|