This tool was created to extract non runtime statistics from an API Connect 2018 system and as a sample for how to call API Connects provider APIs.
To run the tool either go to the releases page here or to build from source. To build from source clone the repo and run make in the root directory.
A Sample default output is below this information.
Please note if parameters are not set the user is prompted for the required values.
Chriss-MacBook-Pro-2:APIC-Profiler chris$ ./api-profiler-osx-v1.01-1561420129 --help
Usage of api-profiler-osx-v1.01:
-APIMorg string
Organiztion List to investigate. Please multiple orgs in csv, e.g. dev,test,chrisp,marketting
-APIMpassword string
APIConnect Password for logging into the API Manager Endpoint, if this is not set it is prompted
-APIMrealm string
Realm for logging into the API Manager Endpoint, if this is not set it is prompted
-APIMuser string
APIConnect User for logging into the API Manager Endpoint, if this is not set it is prompted
-CMpassword string
APIConnect Password for logging into the Cloud Manager Endpoint, if this is not set it is prompted
-CMrealm string
Realm for logging into the Cloud Manager Endpoint, if this is not set it is prompted
-CMuser string
APIConnect User for logging into the Cloud Manager Endpoint, if this is not set it is prompted
-debug
Enable trace for this appication
-output string
Dictates the output type for the script. Value must be one of [ table | json | yaml | verbose ] (default "table")
-server string
APIConnect Cloud endpoint, if this is not set it is prompted (default "unset")
-1 means an issue retreiving the data
Cloud Manager Details
NUMBER OF ORGS | 19 |
---|---|
Number of Members | 2 |
Number of Member Invites | 0 |
Number of Oauth Providers | 0 |
Number of User Registries | 7 |
Number of Mail Servers | 1 |
NAME | NUMBER OF V5C GWS | NUMBER OF API GWS | NUMBER OF PORTALS | NUMBER OF ANALYTICS |
---|---|---|---|---|
availability-zone-default | 1 | 2 | 1 | 1 |
performance-testing | 1 | 1 | 0 | 0 |
NAME | MEMBERS | MEMBERINVITES | DRAFTAPIS | AVG API SIZE | MAX API SIZE | DRAFTPRODUCTS | TLS PROFILES | OAUTH PROIVDERS | USER REGISTRIES | KEYSTORES | TRUSTSTORES | CATALOGS | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
chrisp | 2 | 0 | 5 | 43589 | 91159 | 28 | 13 | 2 | 8 | 0 | 0 | 3 | |
chrisp3 | 1 | 0 | 9 | 130794 | 941383 | 8 | 13 | 2 | 6 | 0 | 0 | 1 | |
chrisp2 | 1 | 0 | 0 | 0 | 0 | 0 | 10 | 0 | 4 | 0 | 0 | 1 | |
ORG | CATALOG NAME | MEMBERS | MEMBERINVITES | APIS | AVG API SIZE | MAX API SIZE | PRODUCTS | CONSUMERORGS | PORTAL | TLSPROFILES | OAUTHPROS | USERREGS | SPACES | APPS | SUBSCRIPTIONS | WEBHOOKS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
chrisp | a6f7f15e-0290-40af-afb5-ab7ab998a484 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
chrisp | Sandbox | 2 | 0 | 2 | 15355 | 25171 | 2 | 3 | true | 1 | 0 | 0 | 0 | 1 | 0 | 2 |
chrisp | spacetes asdfa;dfauidh adfafd | 2 | 0 | 3 | 29642 | 45289 | 1 | 0 | false | 2 | 0 | 0 | 3 | 0 | 0 | 1 |
chrisp3 | Sandbox | 1 | 0 | 0 | 0 | 0 | 0 | 1 | false | 1 | 1 | 0 | 0 | 2 | 0 | 2 |
chrisp2 | Sandbox | 1 | 0 | 0 | 0 | 0 | 0 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
WEBHOOK ID | ORGANIZATION | CATALOG | STATE | LEVEL | TITLE | CREATED AT | UPDATED AT |
---|---|---|---|---|---|---|---|
96daa6b3-81ed-448e-8c21-1994a08165ad | chrisp | a6f7f15e-0290-40af-afb5-ab7ab998a484 | online_configured | sync | idg77v-v5c | 2019-04-26T10:43:03.193Z | 2019-06-03T22:57:06.048Z |
(8643dbab-b431-4602-a083-8d8fa29d2f6e) | (a6f7f15e-0290-40af-afb5-ab7ab998a484) | ||||||
d8d14f26-7a09-47db-8998-c0b5313bf944 | chrisp | a6f7f15e-0290-40af-afb5-ab7ab998a484 | online_configured | sync | Performance Testing Gateway | 2019-04-26T10:43:45.085Z | 2019-04-29T16:06:35.458Z |
(8643dbab-b431-4602-a083-8d8fa29d2f6e) | (a6f7f15e-0290-40af-afb5-ab7ab998a484) | ||||||
2bddcbbb-ac02-4d9b-98ce-898030d8b121 | chrisp | Sandbox | online | sync | IBM Developer Portal | 2019-04-24T11:12:10.119Z | 2019-06-26T08:48:16.042Z |
(8643dbab-b431-4602-a083-8d8fa29d2f6e) | (bf4c0ec9-95c8-4e71-a2fd-fec37bbb79d1) | ||||||
f510da41-d49e-4c97-9814-3f4beb493baf | chrisp | Sandbox | offline_configured | sync | idg77v-v5c | 2019-03-08T17:38:45.159Z | 2019-06-03T23:02:48.675Z |
(8643dbab-b431-4602-a083-8d8fa29d2f6e) | (bf4c0ec9-95c8-4e71-a2fd-fec37bbb79d1) | ||||||
125a63ff-699c-4249-ba7b-9557eb9e09d5 | chrisp | spacetes asdfa;dfauidh adfafd | online_configured | sync | idg77v-v5c | 2019-04-24T11:55:47.721Z | 2019-06-03T22:57:14.197Z |
(8643dbab-b431-4602-a083-8d8fa29d2f6e) | (42298b69-0edf-4cc3-83b4-232786976bbe) | ||||||
f1d48c28-d420-4d01-ba70-4aea110323b4 | chrisp3 | Sandbox | online_configured | sync | idg77v-v5c | 2019-03-25T08:59:25.592Z | 2019-06-03T22:57:32.700Z |
(b7cc4351-6be1-4047-a645-b1cc01942c9a) | (6db92f5f-2f10-4d91-bd20-98427ff58f5c) | ||||||
7c16e811-dc9e-4897-873c-39798cc3a157 | chrisp3 | Sandbox | online_configured | sync | Performance Testing Gateway | 2019-04-26T10:44:17.148Z | 2019-04-29T16:06:46.215Z |
(b7cc4351-6be1-4047-a645-b1cc01942c9a) | (6db92f5f-2f10-4d91-bd20-98427ff58f5c) |