@@ -17,6 +17,10 @@ Alternatively, you can call the APIM CLI directly according to your needs.
17
17
18
18
** Required** The password to use for the API-Manager.
19
19
20
+ ## ` apimPort `
21
+
22
+ The API-Manager port.
23
+
20
24
## ` apimExtraArgs `
21
25
22
26
** Required** Some extra parameters which should be used by the APIM-CLI. For instance '-port 443', '-force' or '-returnCodeMapping 10:0'
@@ -37,16 +41,34 @@ The directory containing your applications. Each application in a separate direc
37
41
38
42
The directory containing your users. Each user in a separate directory.
39
43
44
+ ## ` apimCLICommand `
45
+
46
+ Run an APIM-CLI command. For example: 'apim api check-certs'. You may combine this with apimExtraArgs depending on you the command you use.
47
+
40
48
## Example usage
41
49
42
- uses: Axway-API-Management-Plus/apim-cli-github-action@v1.5.1
43
50
``` yaml
51
+ - name : Import APIs and Applications
52
+ uses : Axway-API-Management-Plus/apim-cli-github-action@v1.5.1
44
53
with :
45
54
apimHostname : ' manager.customer.com'
46
55
apimUsername : ' apiadmin'
47
56
apimPassword : ' 1234567890'
48
57
apimExtraArgs : ' -port 443 -force -returnCodeMapping 10:0'
49
58
apiDirectory : ' axway/api-management/APIs'
59
+ appDirectory : ' axway/api-management/Apps'
50
60
env :
51
61
BACKEND_HOST : ' http://mocked-apis:8280'
62
+ ` ` `
63
+
64
+ ` ` ` yaml
65
+ - name : Validate certificates
66
+ uses : Axway-API-Management-Plus/apim-cli-github-action@v1.5.1
67
+ with :
68
+ apimHostname : ' ${{ github.event.inputs.apimHost }}'
69
+ apimPort : " 443"
70
+ apimUsername : ${{ github.event.inputs.apimUsername }}
71
+ apimPassword : ${{ github.event.inputs.apimPassword }}
72
+ apimCLICommand : ' api check-certs'
73
+ apimExtraArgs : ' -days 60'
52
74
` ` `
0 commit comments