7
7
get :
8
8
description : deployed chart listing, with search filters
9
9
parameters :
10
- - name : envs
10
+ - name : envIds
11
11
in : query
12
12
description : environment ids
13
13
required : false
14
14
schema :
15
- type : array
16
- items :
17
- type : string
15
+ type : string
16
+ - name : clusterIds
17
+ in : query
18
+ description : cluster ids
19
+ required : false
20
+ schema :
21
+ type : string
18
22
- name : chartRepoId
19
23
in : query
20
24
description : chart repo ids
21
25
required : false
22
26
schema :
23
- type : array
24
- items :
25
- type : string
27
+ type : string
26
28
- name : appStoreName
27
29
in : query
28
30
description : chart name
@@ -53,6 +55,12 @@ paths:
53
55
required : false
54
56
schema :
55
57
type : integer
58
+ - name : appStatuses
59
+ in : query
60
+ description : app statuses filter
61
+ required : false
62
+ schema :
63
+ type : string
56
64
responses :
57
65
' 200 ' :
58
66
description : deployed chart listing, with search filters
@@ -67,40 +75,44 @@ paths:
67
75
type : string
68
76
description : status
69
77
result :
70
- type : array
71
- description : deployed chart listing, with search filters
72
- items :
73
- $ref : ' #/components/schemas/ChartInfo'
78
+ $ref : ' #/components/schemas/AppListDetail'
74
79
default :
75
80
description : unexpected error
76
81
content :
77
82
application/json :
78
83
schema :
79
84
$ref : ' #/components/schemas/ErrorResponse'
80
- /orchestrator/app-store/installed-app/notes :
85
+ /orchestrator/app-store/installed-app/notes/{installed-app-id}/{env-id} :
81
86
get :
82
87
description : Used to fetch notes.txt for helm charts deployed via gitOps
83
88
parameters :
84
89
- name : env-id
85
- in : query
90
+ in : path
86
91
description : it is an environment id of app
87
92
required : true
88
- type : integer
93
+ schema :
94
+ type : integer
89
95
- name : installed-app-id
90
- in : query
96
+ in : path
91
97
description : it is a installed application id
92
98
required : true
93
- type : integer
99
+ schema :
100
+ type : integer
94
101
responses :
95
102
' 200 ' :
96
103
description : if it is able to fetch the notes.txt then status will be ok
97
104
content :
98
105
application/json :
99
106
schema :
100
107
properties :
101
- notes :
108
+ code :
109
+ type : integer
110
+ description : status code
111
+ status :
102
112
type : string
103
- description : it will provide notes
113
+ description : status
114
+ result :
115
+ $ref : ' #/components/schemas/Notes'
104
116
' 500 ' :
105
117
description : error while fetching notes.txt
106
118
@@ -109,64 +121,88 @@ paths:
109
121
# components mentioned below
110
122
components :
111
123
schemas :
112
- ChartInfo :
124
+ AppListDetail :
113
125
type : object
114
- required :
115
- - installedAppId
116
- - environmentId
117
- - installedAppVersionId
118
- - appStoreApplicationVersionId
119
- - appStoreApplicationName
120
- - status
121
- - appName
122
- - environmentName
123
- - deployedAt
124
- - deployedBy
125
- - readme
126
- - deprecated
127
126
properties :
128
- installedAppId :
129
- type : integer
130
- description : installed chart id
131
- environmentId :
132
- type : integer
133
- description : environment id
134
- installedAppVersionId :
135
- type : integer
136
- description : installed chart version id
137
- appStoreApplicationVersionId :
138
- type : integer
139
- description : team/project id
140
- appStoreApplicationName :
141
- type : string
142
- description : chart name externally
143
- chartName :
127
+ clusterIds :
128
+ type : array
129
+ description : clusters to which result corresponds
130
+ items :
131
+ type : integer
132
+ applicationType :
144
133
type : string
145
- description : chart repo name
146
- icon :
134
+ description : application type inside the array
135
+ enum : [DEVTRON-CHART-STORE, DEVTRON-APP, HELM-APP]
136
+ errored :
137
+ type : boolean
138
+ description : if data fetch for that cluster produced error
139
+ errorMsg :
147
140
type : string
148
- description : image
149
- status :
141
+ description : error msg if client failed to fetch
142
+ helmApps :
143
+ type : array
144
+ description : all helm app list
145
+ items :
146
+ $ref : ' #/components/schemas/HelmAppDetails'
147
+ devtronApps :
148
+ type : array
149
+ description : all devtron app list
150
+ items :
151
+ type : object
152
+
153
+ HelmAppDetails :
154
+ type : object
155
+ properties :
156
+ lastDeployedAt :
150
157
type : string
151
- description : status of deployed chart
158
+ format : date-time
159
+ description : time when this application was last deployed/updated
152
160
appName :
153
161
type : string
154
- description : chart name is app name for devtron
155
- environmentName :
162
+ description : name of the helm application/helm release name
163
+ appId :
164
+ type : string
165
+ description : unique identifier for app
166
+ chartName :
156
167
type : string
157
- description : env name
158
- deployedAt :
168
+ description : name of the chart
169
+ chartAvatar :
159
170
type : string
160
- description : deployement time
161
- deployedBy :
171
+ description : url/location of the chart icon
172
+ projectId :
173
+ type : integer
174
+ description : unique identifier for the project, APP with no project will have id 0
175
+ chartVersion :
176
+ type : string
177
+ description : chart version
178
+ environmentDetail :
179
+ $ref : ' #/components/schemas/EnvironmentDetails'
180
+ appStatus :
181
+ type : string
182
+ description : application status
183
+
184
+ EnvironmentDetails :
185
+ type : object
186
+ properties :
187
+ clusterName :
162
188
type : string
163
- description : user
164
- readme :
189
+ description : cluster corresponding to the environment where application is deployed
190
+ clusterId :
191
+ type : integer
192
+ description : clusterId corresponding to the environment where application is deployed
193
+ namespace :
165
194
type : string
166
- description : readme
167
- deprecated :
195
+ description : namespace where application is deployed
196
+ isVirtualEnvironment :
168
197
type : boolean
169
- description : is deprecated or not
198
+ description : whether environment is virtual or not
199
+
200
+ Notes :
201
+ type : object
202
+ properties :
203
+ gitOpsNotes :
204
+ type : string
205
+ description : notes content
170
206
171
207
ErrorResponse :
172
208
required :
0 commit comments