Skip to content

Commit e2ddb67

Browse files
author
rathnapandi
committed
- change entrypoint.sh
1 parent cf7e7d8 commit e2ddb67

File tree

1 file changed

+9
-55
lines changed

1 file changed

+9
-55
lines changed

README.md

Lines changed: 9 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -6,70 +6,24 @@ Additionally, you can call the APIM CLI directly with a given command according
66

77
## Inputs
88

9-
## `apimHostname`
9+
## `command`
1010

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 }}'.
4812

4913
## Example usage
5014

5115
```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
5418
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 }}
6120
env:
62-
BACKEND_HOST: 'http://mocked-apis:8280'
21+
LOG_LEVEL: 'DEBUG'
6322
```
6423
6524
```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
6827
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 }}"
7529
```

0 commit comments

Comments
 (0)