You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
{"statusCode":400,"message":"no changes found between source and destination applications","error":"Bad Request"}
158
-
```
159
48
160
-
##Get list of pipeline by name
161
49
162
-
Get the list of pipelines that correspond to the name passed as the query parameter.
163
-
You can either pass the complete name of the pipeline or a partial name. In which case, returns all pipelines including those characters.
164
-
by pipeline name or ID.
50
+
###Query parameters
165
51
52
+
`
166
53
167
-
###Headers
168
-
The API authorization token must be included in the header of the API request. See[Authorization](#authorization).
169
-
170
-
```
171
-
content-type: application/json
172
-
Authorization: <TOKEN>
173
-
```
174
-
175
-
###Request body
176
-
177
-
For a description of the fields, see[Request parameters](#request-parameters).
178
-
179
-
180
-
181
-
###Request example
54
+
{: .table .table-bordered .table-hover}
55
+
| Setting | Description | Data Type | Required/Optional
56
+
|`name`| The name of the pipeline or a part of the name by which to filter the pipelines. For example, ??? retrieves only pipelines that match the whole name.`e-to-e` retrieves all pipelines that include`e-to-e` in their names.| string| Optional|
182
57
183
-
The request is an HTTP GET request.
184
58
185
-
```
186
-
GET https://g.codefresh.io/api/analytics/reports/pipelinesDropdown/?filters={"name":["<pipeline-name>"]}
187
-
```
188
-
###Response example
189
59
190
-
####Success
60
+
####Reponse
191
61
Here's an example of the response for a successful request.
192
62
193
63
For each pipeline, the following data is returned.
@@ -288,171 +158,8 @@ Here's an example of the
288
158
289
159
290
160
291
-
##POST`/promotions/pullRequest`
292
-
293
-
Promotes the application from the source environment to the destination or target environment through a`pull request` as the promotion action.
curl -X POST https://codefresh-hosted-gitops-runtime.com/api/promotions/pullRequest \
322
-
--header "content-type: application/json" \
323
-
--header "Authorization: 214ffb**************" \
324
-
--data "{
325
-
\"srcAppId\": {
326
-
\"runtime\": \"codefresh\",
327
-
\"namespace\": \"membership-staging\",
328
-
\"name\": \"membership-staging\"
329
-
},
330
-
\"destAppId\": {
331
-
\"runtime\": \"codefresh\",
332
-
\"namespace\": \"membership-prod\",
333
-
\"name\": \"membership-prod\"
334
-
},
335
-
\"head\": \"main\",
336
-
\"title\": \"Merge new-accounts\",
337
-
\"description\": \"Added new accounts and git sources\",
338
-
\"commitMessage\": \"Merge new-accounts\",
339
-
\"commitDescription\": \"Approved new accounts and git sources\",
340
-
}"
341
-
342
-
```
343
-
###`pullRequest` response example
344
-
345
-
####Success
346
-
TBD
347
-
348
-
349
-
####Failure
350
-
TBD
351
-
352
161
353
162
354
-
##Request query parameters
355
-
356
-
{: .table .table-bordered .table-hover}
357
-
| Parameter| Description|
358
-
| ----------| --------|
359
-
|`dateRange`| The time frame for which to send report data. This can be in the from-to format for a custom time frame, or a predefined fixed range.<br>For from-to date ranges, the format is`yyyy-mm-dd`. For example,`?dateRange=2024-04-30&dateRange=2023-08-01`. The from date must be earlier than the to date. <br>For fixed date ranges, use one of the following:<br>-`today`: Today's date.<br>-`Last 7 days`: <br>-`Last 30 days`:`dateRange=last%203%20month` (NIMA: need to find what are the fixed date ranges supported and how to add them?)|
<td colspan="3">The application in the source environment to promote through the <code class="highlighter-rouge">runtime</code>, <code class="highlighter-rouge">namespace</code>, and <code class="highlighter-rouge">name</code> key-value pairs.</td>
383
-
</tr>
384
-
<tr>
385
-
<td><code class="highlighter-rouge">srcAppId.runtime</code>: The name of the GitOps Runtime associated with the source application.</td>
386
-
<td>String</td>
387
-
<td>Required</td>
388
-
</tr>
389
-
<tr>
390
-
<td><code class="highlighter-rouge">srcAppId.namespace</code>: The namespace where the source application is deployed.</td>
391
-
<td>String</td>
392
-
<td>Required</td>
393
-
</tr>
394
-
<tr>
395
-
<td><code class="highlighter-rouge">srcAppId.name</code>: The name of the source application to be promoted.</td>
<td colspan="3">The application in the destination environment to be promoted through the <code class="highlighter-rouge">runtime</code>, <code class="highlighter-rouge">namespace</code>, and <code class="highlighter-rouge">name</code> key-value pairs.</td>
402
-
</tr>
403
-
<tr>
404
-
<td><code class="highlighter-rouge">destAppId.runtime</code>: The name of the GitOps Runtime associated with the application in the destination environment.</td>
405
-
<td>String</td>
406
-
<td>Required</td>
407
-
</tr>
408
-
<tr>
409
-
<td><code class="highlighter-rouge">destAppId.namespace</code>: The namespace in the destination environment where the application being promoted is deployed.</td>
410
-
<td>String</td>
411
-
<td>Required</td>
412
-
</tr>
413
-
<tr>
414
-
<td><code class="highlighter-rouge">destAppId.name</code>: The name of the application in the destination environment to be promoted.</td>
<td>Applies to <code class="highlighter-rouge">commit</code> promotion actions.<br>The commit message to associate for the commit promotion action.(limits)</td>
<td>Applies to <code class="highlighter-rouge">pull request</code> promotion actions.<br>The branch of the application in the destination environment on which to open the PR.</td>
<td>Applies to <code class="highlighter-rouge">pull request</code> promotion actions.<br>Additional information on the commit message when the pull request is approved. </td>