@@ -6,70 +6,24 @@ Additionally, you can call the APIM CLI directly with a given command according
6
6
7
7
## Inputs
8
8
9
- ## ` apimHostname `
9
+ ## ` command `
10
10
11
- ** Required** The hostname of the API-Manager to use.
12
-
13
- ## ` apimUsername `
14
-
15
- ** Required** The username to use for the API-Manager.
16
-
17
- ## ` apimPassword `
18
-
19
- ** Required** The password to use for the API-Manager.
20
-
21
- ## ` apimPort `
22
-
23
- The API-Manager port.
24
-
25
- ## ` apimExtraArgs `
26
-
27
- ** Required** Some extra parameters which should be used by the APIM-CLI. For instance '-port 443', '-force' or '-returnCodeMapping 10:0'
28
-
29
- ## ` apiDirectory `
30
-
31
- The directory containing your APIs. Each API in a separate directory.
32
-
33
- ## ` orgDirectory `
34
-
35
- The directory containing your organizations. Each organization in a separate directory.
36
-
37
- ## ` appDirectory `
38
-
39
- The directory containing your applications. Each application in a separate directory.
40
-
41
- ## ` userDirectory `
42
-
43
- The directory containing your users. Each user in a separate directory.
44
-
45
- ## ` apimCLICommand `
46
-
47
- Run an APIM-CLI command. For example: 'apim api check-certs'. You may combine this with apimExtraArgs depending on you the command you use.
11
+ Run an APIM-CLI command. For example: 'apim api get -h api.demo.axway.com -u serviceaccount -p ${{ secrets.password }}'.
48
12
49
13
## Example usage
50
14
51
15
``` yaml
52
- - name : Import APIs and Applications
53
- uses : Axway-API-Management-Plus/apim-cli-github-action@v1.5.1
16
+ - name : Get all applications
17
+ uses : Axway-API-Management-Plus/apim-cli-github-action@v1.6.8
54
18
with :
55
- apimHostname : ' manager.customer.com'
56
- apimUsername : ' apiadmin'
57
- apimPassword : ' 1234567890'
58
- apimExtraArgs : ' -port 443 -force -returnCodeMapping 10:0'
59
- apiDirectory : ' axway/api-management/APIs'
60
- appDirectory : ' axway/api-management/Apps'
19
+ command : apim api get -h api.demo.axway.com -u serviceaccount -p ${{ secrets.password }}
61
20
env :
62
- BACKEND_HOST : ' http://mocked-apis:8280 '
21
+ LOG_LEVEL : ' DEBUG '
63
22
` ` `
64
23
65
24
` ` ` yaml
66
- - name : Validate certificates
67
- uses : Axway-API-Management-Plus/apim-cli-github-action@v1.5.1
25
+ - name : Import APIs
26
+ uses : Axway-API-Management-Plus/apim-cli-github-action@v1.6.8
68
27
with :
69
- apimHostname : ' ${{ github.event.inputs.apimHost }}'
70
- apimPort : " 443"
71
- apimUsername : ${{ github.event.inputs.apimUsername }}
72
- apimPassword : ${{ github.event.inputs.apimPassword }}
73
- apimCLICommand : ' api check-certs'
74
- apimExtraArgs : ' -days 60'
28
+ command : " apim api import -c api-config.json -a api.json -h maverick.demo.axway.com -u apiadmin -p ${{ secrets.password }}"
75
29
` ` `
0 commit comments