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
Copy file name to clipboardExpand all lines: docs/flashpipe-cli.md
+88-15Lines changed: 88 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,10 @@ _FlashPipe_ provides a fully functional CLI with the following commands to inter
5
5
-**[update package](#2-update-package)**
6
6
-**[deploy](#3-deploy)**
7
7
-**[sync](#4-sync)**
8
-
-**[sync apim](#5-sync-apim)**
9
-
-**[snapshot](#6-snapshot)**
10
-
-**[snapshot restore](#7-snapshot-restore)**
8
+
-**[sync apiproxy](#5-sync-apiproxy)**
9
+
-**[sync apiproduct](#6-sync-apiproduct)**
10
+
-**[snapshot](#7-snapshot)**
11
+
-**[snapshot restore](#8-snapshot-restore)**
11
12
12
13
13
14
These commands perform the _magic_ that significantly simplifies the steps required to execute the build and deploy steps in a CI/CD pipeline.
@@ -326,19 +327,19 @@ Environment variables set before call:
326
327
FLASHPIPE_SYNC_PACKAGE_DETAILS: true
327
328
```
328
329
329
-
### 5. sync apim
330
-
This command is used to sync API Management artifacts between a tenant and a Git repository. It will compare any differences (new, deleted, changed) in files between tenant and the Git repository before synchronising them.
330
+
### 5. sync apiproxy
331
+
This command is used to sync API Proxies from API Management between a tenant and a Git repository. It will compare any differences (new, deleted, changed) in files between tenant and the Git repository before synchronising them.
331
332
- dependent artifacts of the API Proxy are included like API Provider, Key Value Maps
332
333
333
334
#### Usage
334
335
```bash
335
-
flashpipe sync apim -h
336
+
flashpipe sync apiproxy -h
336
337
337
-
Synchronise API Management artifacts between SAP Integration Suite
338
+
Synchronise API Management proxies (with dependent artifacts) between SAP Integration Suite
338
339
tenant and a Git repository.
339
340
340
341
Usage:
341
-
flashpipe sync apim [flags]
342
+
flashpipe sync apiproxy [flags]
342
343
343
344
Flags:
344
345
--dir-artifacts string Directory containing contents of artifacts
@@ -348,7 +349,7 @@ Flags:
348
349
--git-commit-msg string Message used in commit (default "Sync repo from tenant")
349
350
--git-commit-user string User used in commit (default "github-actions[bot]")
350
351
--git-skip-commit Skip committing changes to Git repository
351
-
-h, --help helpforapim
352
+
-h, --help helpforapiproxy
352
353
--ids-exclude strings List of excluded artifact IDs
353
354
--ids-include strings List of included artifact IDs
354
355
--target Target of sync. Allowed values: git, tenant (default "git")
@@ -364,7 +365,7 @@ Global Flags:
364
365
```
365
366
366
367
#### CLI flags and environment variables list
367
-
The following is the list of flags for the `sync apim`command and their corresponding environment variable name. The fourth column indicates whether the flag is valid for the specific value of --target.
368
+
The following is the list of flags for the `sync apiproxy`command and their corresponding environment variable name. The fourth column indicates whether the flag is valid for the specific value of --target.
368
369
369
370
| CLI flag name | Environment variable name | Mandatory | Applicable for value of --target | Shell expansion supported |
This command is used to sync API Products from API Management between a tenant and a Git repository. It will compare any differences (new, deleted, changed) between tenant and the Git repository before synchronising them.
403
+
404
+
_NOTE:_ Due to limitation of SAP's public API, updates are not synced to tenant.
405
+
406
+
#### Usage
407
+
```bash
408
+
flashpipe sync apiproduct -h
409
+
410
+
Synchronise API Management products between SAP Integration Suite
411
+
tenant and a Git repository.
412
+
413
+
Usage:
414
+
flashpipe sync apiproduct [flags]
415
+
416
+
Flags:
417
+
--dir-artifacts string Directory containing contents of artifacts
418
+
--dir-git-repo string Directory of Git repository
419
+
--dir-work string Working directory for in-transit files (default "/tmp")
420
+
--git-commit-email string Email used in commit (default "41898282+github-actions[bot]@users.noreply.github.com")
421
+
--git-commit-msg string Message used in commit (default "Sync repo from tenant")
422
+
--git-commit-user string User used in commit (default "github-actions[bot]")
423
+
--git-skip-commit Skip committing changes to Git repository
424
+
-h, --help help for apiproduct
425
+
--ids-exclude strings List of excluded artifact IDs
426
+
--ids-include strings List of included artifact IDs
427
+
--target Target of sync. Allowed values: git, tenant (default "git")
428
+
429
+
Global Flags:
430
+
--config string config file (default is $HOME/flashpipe.yaml)
431
+
--debug Show debug logs
432
+
--oauth-clientid string Client ID for using OAuth
433
+
--oauth-clientsecret string Client Secret for using OAuth
434
+
--oauth-host string Host for OAuth token server excluding https://
435
+
--oauth-path string Path for OAuth token server (default "/oauth/token")
436
+
--tmn-host string Host for API Portal for API Management excluding https://
437
+
```
438
+
439
+
#### CLI flags and environment variables list
440
+
The following is the list of flags for the `sync apiproduct` command and their corresponding environment variable name. The fourth column indicates whether the flag is valid for the specific value of --target.
441
+
442
+
| CLI flag name | Environment variable name | Mandatory | Applicable for value of --target | Shell expansion supported |
This command is used to capture a snapshot of the Cloud Integration tenant's artifacts and integration package details (optional) to a Git repository. It will compare any differences (new, deleted, changed) in files from tenant and commit/push to the Git repository.
402
475
403
476
@@ -471,7 +544,7 @@ Environment variables set before call:
471
544
FLASHPIPE_DIR_GIT_REPO: "TrialTenant"
472
545
```
473
546
474
-
### 7. snapshot restore
547
+
### 8. snapshot restore
475
548
This command is used to restore a snapshot of the Cloud Integration artifacts and integration package details from a Git repository back to the tenant. It will compare any differences (new, deleted, changed) in files from Git repository and update to the tenant.
Copy file name to clipboardExpand all lines: docs/github-actions-sync-apim.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,12 +39,13 @@ Skip the templates and choose `set up a workflow yourself`.
39
39
40
40
Provide a suitable name for the workflow file e.g. `sync-apim-to-git.yml` and replace the default content with the code sample below. Replace the tenant and authentication details accordingly - note that the host refers to the management node of the API Portal which differs from the tenant management node of Cloud Integration.
41
41
42
-
**NOTE** - FlashPipe comes with companion GitHub Action [engswee/flashpipe-action](https://github.com/engswee/flashpipe-action) that simplifies usage in a workflow. The following action is used in the workflow:
**NOTE** - FlashPipe comes with companion GitHub Action [engswee/flashpipe-action](https://github.com/engswee/flashpipe-action) that simplifies usage in a workflow. The following actions are used in the workflow:
0 commit comments