Skip to content

Latest commit

 

History

History
853 lines (669 loc) · 55.9 KB

CHANGELOG.md

File metadata and controls

853 lines (669 loc) · 55.9 KB

Axway API-Management CLI Change Log

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[1.15.2] In progress

Fixed

  • api import failed with Error taking over application quota to new API ... "No constraints" if an application subscribed to the API has an overridden application quota without any restriction (#593). The quota of an application is now only taken over to the newly created API, if that application has a restriction for the replaced API. Before, one application with such a restriction caused the update of all following applications, including those with an empty quota, which API-Manager rejects.

[1.15.1] 2026-11-25

Added

  • New option -credentialType for app get to export only applications having at least one credential of the given type (#601). Supported types are oauth, apikeys and extclients; several types can be given comma separated, e.g. apim app get -s api-env -credentialType oauth -o json -t /tmp/exported_apps. The option can be combined with -credential and -redirectUrl, in which case the matching credential must be of the given type.
  • APIImportApp returns the details of an error (#594). Applications, which use the class to import APIs (e.g. in a service used by a CI/CD pipeline), get the error code, the name of the error, the message and the details of the underlying causes instead of only the return code: APIImportApp.importAPIwithDetails(params) returns a one-line JSON, e.g. {"errorCode":25,"error":"CANT_SEND_HTTP_REQUEST","mappedErrorCode":25,"message":"Can't login to API-Manager","details":["Connect to https://localhost:8075 failed: Connection refused"]}. mappedErrorCode is the return code of the CLI, which differs from errorCode if -returnCodeMapping is used.
  • The CLI prints the same one-line JSON to stderr, if api import fails and the environment variable print_error_details=true is set. Nothing changes if the variable is not set.

Fixed

  • Applications with the same name (in the same or in different organizations) were not all exported by app get: the second application was skipped, or with -deleteTarget replaced the export of the first one, as the export folder was derived from the application name only (#600). Each application is now exported into its own folder; a repeated name gets a numeric suffix (My-App, My-App_1, My-App_2). This applies to the JSON and YAML export.
  • Updating the quota of an API corrupted restrictions that use the same method, e.g. a throttle and a throttlemb restriction for * (#592). Restrictions were matched by method only, which turned one restriction into the other. They are now identified by method, type, period and per. Restrictions of the same type and method with a different period (e.g. 100 messages per second and 10000 messages per day) are kept apart. Changing the limit updates the restriction, changing the type, period or per replaces it.
  • Application quota restrictions of different APIs, which are given by apiPath, were all applied to the first API. The API lookup reused the cached response of a previous lookup by another API path, as the cache key of the API filter ignored the API path (#567). The same applies to any other lookup of APIs by apiPath, state, deprecated, retired or createdOn within one execution.
  • Updating an API failed with "No operation found with name: ''" if an inbound or outbound profile exists for a specific operation and the API is updated more than once during an import, for example when the backendBasepath is changed together with other properties (#581).
  • OpenAPI 3.1 specifications with resolve_openapi_ref=true failed silently on import (#582):
    • The resolved specification was ignored, as the original specification was used after resolving the references.
    • The resolved OpenAPI 3.1 model was serialized with a plain Jackson mapper instead of the one of swagger-core, which fails for boolean schemas like additionalProperties: false. Mixed up swagger library versions (NoSuchMethodError for booleanSchemaValue) were fixed by aligning swagger-models and swagger-core.
    • Errors while resolving the references now fail the import with a message. References are only resolved for OpenAPI 3.x specifications.
    • Errors thrown by a command, which are no longer lost silently, are now logged by the CLI.

Changed

  • Improved the performance of commands loading remote hosts, like api get, api import and the settings export. The users (createdBy) and organizations of remote hosts are only loaded for the requested remote hosts, instead of one by one (/users/{id}) for all remote hosts on every lookup (#462).
  • Upgraded dependencies:
    • swagger-parser 2.1.19 to 2.1.48
    • swagger-models 2.2.0 to 2.2.55 (swagger-core 2.2.55 is now managed as well). The 3.x line of swagger-models requires Jackson 3 and is not supported by swagger-parser yet, so it is not used.
    • Ehcache 3.10.8 to 3.12.0, now using its jakarta build together with jaxb-runtime 4.0.9 (jakarta.xml.bind) instead of the javax based jaxb-runtime 2.3.9 to read cacheConfig.xml. A customized conf/cacheConfig.xml keeps working.

Removed

  • OData support was removed. Passing an OData $metadata / EDMX document (OData V2, V3 and V4) as the API definition of api import is no longer supported and fails with a message pointing to the replacement. The conversion was built on Apache Olingo, which is no longer maintained. It moved to the separate project apim-cli-odata, which converts OData V2/V4 metadata into an OpenAPI 3 specification:
    apim-odata convert -m <metadata file or URL> -b <backend of the OData service> -o openapi.json
    
    Convert the metadata first, then import the resulting OpenAPI file with the CLI as usual. Everything else about importing such an API stays the same. The OData-Routing policy is still required for these APIs. API-Specification filters can still be applied, as they now work on the converted OpenAPI file.
  • Removed the OData example configurations from examples/basic and the Apache Olingo dependencies.

[1.14.16] 2026-11-12

Fixed

  • API import of a WSDL based API with -overrideSpecBasePath ignores backendBasepath and uses the endpoint from the WSDL

  • Updating an existing application with an extclients credential failed with a 404 when its clientId was the same as the clientId of an existing OAuth credential, because the OAuth credential was matched instead. Credentials are now matched by type as well as by ID (#597).

Changed

  • With -quotaMode replace an API without an application or system quota now removes the quota configured for the API in API-Manager. With the other quota modes a missing quota still keeps the existing one.
  • Upgraded dependencies:
    • Apache HttpClient 4.5.14 (end-of-life) to HttpClient 5 (httpclient5 5.6.4)
    • jackson-* to 2.22.4 to fix security issues
    • log4j to 2.26.1 and slf4j-api from 1.7.36 to 2.0.20. log4j-slf4j-impl is replaced by log4j-slf4j2-impl
  • Quota restrictions are now added, updated and removed individually using the API-Manager endpoints below /quotas/{id}/constraints instead of replacing the complete quota document. This leaves the restrictions of other APIs untouched and avoids lost updates. API-Managers older than 7.7.20261130 keep using the previous document level update, and the CLI falls back to it automatically if the endpoints are not served.

Added

  • API import supports -quotaUpdateMode (auto, legacy, constraints) to control how quotas are written to API-Manager. Defaults to auto.

Deprecated

  • OData support is deprecated and will be removed in the next release. Passing an OData $metadata / EDMX document as the API definition, which the CLI detects and converts to OpenAPI before importing, is affected for all three versions: OData V2, V3 and V4. The conversion is built on Apache Olingo, which is no longer maintained, so it cannot be kept up to date or secured within this project. The conversion will move to a separate project that turns OData metadata into an OpenAPI definition. Convert the metadata there first, then import the resulting OpenAPI document with the CLI as usual. Everything else about importing such an API, including the generated API-Methods, stays the same.

[1.14.15] 2026-8-26

Fixed

  • Can't write certificate to disc #591

Added

  • API import supports -safeUpdate to prevent updates when an existing API path belongs to a different API name #556
  • Allow deletion of application credentials like oauth/apikey #583
  • Extend the functionality of "override_certificates" environment property #565

[1.14.14] 2026-07-13

Fixed

  • code 102 and message "Quota constraint not found" #588
  • API Methods summary fields are being lost after api import #587
  • template generate -includeMethods does not work in 1.14.12 #586
  • Creating external application developer user with apim-cli #577
  • APIM CLI -state Parameter Not Working #576

Added

  • Show outbound security in export #569

[1.14.13] 2026-02-05

Fixed

  • Parameter to override apiBasepath doesn't work #568
  • Fix issue with updating of external credentials #570

Added

  • Full export API in JSON file (See issue #557)
    • Added new environment parameter RESOLVE_OPENAPI_REF to resolve open api references

[1.14.12] 2025-08-17

Fixed

  • Exporting multiple APIs with the same path overwrites configuration files in the same target directory (See issue #545)
  • apim api get doesn't give the list of APIs (See issue #543)

Added

  • Full export API in JSON file (See issue #559)
  • Support may 2025 APIM release (See issue #562)
  • Support OpenAPI 3.1.x (See issue #537)

[1.14.11] 2025-02-26

Fixed

  • Error 409 from API Gateway API when creating API-Access for application(See issue #538)
  • APIM-cli import breaks feAPIs with basic auth w/out password(See issue #470)

[1.14.10] 2025-02-04

Fixed

  • Regression when updating API proxy(See issue #535)
  • Custom Properties not exported correctly (empty or with wrong value)(See issue #473)

[1.14.9] 2025-01-27

Fixed

  • File extension is missing in apiSpecification.resource when exporting API(See issue #528)

Added

  • Support csv format for organization export (See issue #534)
  • Generate api-config.json with permethod override and methods tags (See issue #522)
  • import .dat APIs (See issue #532)

[1.14.8] 2024-11-06

Fixed

  • Removing existing GLOBAL quotas in Api Manager(See issue #442)
  • Property "queryStringPassThrough" (See issue #517)
  • Axway apimcli: Format and version discrepancies - read-only (Swagger 2.0, single-line) vs editable APIs (Swagger 1.1, formatted) (See issue #516)
  • Quota replacement for method: * (See issue #514)

Added

  • Allow APIM Cli to retire old API when importing apis using zeroDowntimeUpdate (See issue #511)

[1.14.7] 2024-10-24

Fixed

  • NullPointerException: Cannot invoke "com.axway.apim.api.model.APIMethod.getName() (See issue #512)
  • Enable caching for API Import action (See issue #500)

Added

  • allow APIM cli to connect to API Manager protected by Cloudflare (See issue #505)

    • Added new paramater named customHeaders to handle additonal headers. E.g ./apim.sh api get -n CalculatorService3 -o json -h localhost -u apiadmin -customHeaders abc:xyz
  • Support August 2024 APIM Release (See issue #504)

[1.14.6] 2024-10-11

Fixed

  • Importing SOAP API with different endpoints (for import and for runtime calls) (See issue #501)
  • -returnCodeMapping option does not work on apim-cli org import (See issue #496)
  • The output of command 'apim api get' is not containing the complete list of client applications (array) of the api (See issue #495)
  • Update API with Assigned Quota (See issue #499)

Added

  • Force APIM-cli to download the latest Trusted Certificates in a Frontend API (See issue #494)

Changed

  • Updated libs to fix security vulnerabilities
    • com.graphql-java:graphql-java from 21.3 to 21.5
    • commons-io:commons-io from 2.11.0 to 2.14.0

[1.14.5] 2024-07-12

Fixed

  • Outside environment variables should not affect tests (See issue #488)
  • API deployment does not set new auth basic password (See issue #481)
  • Issue on Windows where exporting all Applications (See issue #483)

Added

  • Support May 2024 APIM Release (See issue #486)

Changed

  • Citrus integration framework upgraded to version 4.1.1

[1.14.4] 2024-03-21

Fixed

  • "ERROR: Cannot validate/fulfill configuration file." when importing back downloaded API (See issue #466)
  • APIM-cli import conflicts with older retired versions of a feAPI (See issue #469)
  • API with star (*) on the name fails to be exported (See issue #467)
  • Missing error code when " Backend API Definition is not available for the API " (See issue #465)
  • Issues exporting and importing an API (See issue #460)
  • Error importing APIs with inbound OAuth (See issue #459)
  • Deleting a V-Host is not considered as a modification (See issue #457)
  • NullPointerException Error when importing a new API with system quotas (See issue #474)

Added

  • Support Feb 2024 APIM Release (See issue #461)

[1.14.3] 2023-12-07

Fixed

  • APIM CLI to check/skip already removed API (See issue #417)
  • Error mapping is not applied when importing "app" (See issue #437)
  • Handling backend changes and removal of organization from api-config json file in one command #441
  • Handling removing of existing quota in API (See issue #438)
  • Regression in handling removing existing quota in API Manager (See issue #434)

Added

  • Support APIM November 2023 release (See issue #444)
  • Support Graphql (See issue #443)

[1.14.2] 2023-08-29

Fixed

  • Regression in host (See issue #413)
  • gson library 2.4 has vulnerability CVE-2022-25647 (See issue #425)
  • Support August 2023 release (See issue #426)

[1.14.1] 2023-07-31

Fixed

  • Null pointer when converting OData -> Open API (See issue #399)
  • nullpointer exception occuring while try to import an api (See issue #390)
  • Backend basepath issue (See issue #412)
  • No change is returning RC 0 instead of RC 10 (See issue #401)

Added

  • Add revoke API access command from Org/Application (See issue #419)

Changed

  • Updated libs
    • jackson-* from 2.14.2 to 2.15.2
    • commons-csv from 1.9.0 to 1.10.0
    • org.ehcache from 3.9.9 to 3.10.8
    • log4j-slf4j-impl from 2.19.0 to 2.20.0
    • org.glassfish.jaxb 2.3.7 to 2.3.8
    • org.apache.httpcomponent 4.5.13 4.5.14

[1.14.0] 2023-07-07

Fixed

  • Inbound Security - Query String Pass Through is not included in api get (See issue #392)
  • breaking changes with overrideSpecBasePath = true (See issue #397)

Added

  • Add an option to output the json config file in console(See issue #322)
    • Introduced an environment variable print_console.
      • If the value is set to true, the json config file wille printed on console.
      • Default value is false
  • Support 7.7 May 2023 release (See issue #391)
    • If settings are imported from old versions to May 2023 release, set following values to null as os and architecture elements are removed, (Refer RDAPI-29419)
    {
      "os" : null,
      "architecture" : null
    }

[1.13.7] 2023-04-21

Fixed

  • Add output for apim.sh api check-cert (See issue #374)
  • A change in application quota is not detected (See issue #382)
  • Snakeyaml size limitation (Nullpointer Exception when downloading API Spec via apim CLI) (See issue #384)

[1.13.6] 2023-04-03

Fixed

  • Command Line Option "zeroDowntimeUpdate" is not working (See issue #370)
  • Error updating existing app quota that has no pre-existing quota (See issue #371)
  • [APIExportApp] ERROR: An error happened during export. Please check the log (See issue #376)

Added

  • Support of All / Global quotas for API and application. (See issue #362)
  • Host docker cli images on github docker registry (See issue #373)

[1.13.5] 2023-03-15

Fixed

  • apim does not import the whole chain in a PEM certificate (See issue #361)
  • Field BackendBasePath in api-config.json not used (See issue #354)
  • APIM-CLI Fails to export API WSDL Specifications starting with comments (See issue #364)
  • APIM-CLI - parsing valid metadata fails for OdataV4 api (See issue #363)

Added

  • Introduced new parameter overrideSpecBasePath to fix issue #354
  • Introduced new parameter timeout to handle read, connection and socket timout. The default value is 30 seconds.

[1.13.4] 2023-02-28

Fixed

  • Retry-Delay does not appear in help text (See issue #349)
  • Dat file is not exported if Export API with an Organization that have a virtual host containing a ":" (See issue #352)
  • backendBasepath not working correctly when server url missing in swagger (See issue #348)

Added

  • Support yaml configuration for apim cli (Beta)
  • Support for APIM February 2023 release #346

[1.13.3] 2023-02-08

Fixed

  • Special characters in Policy name used request, response or routing policy of an API (See issue #336)
  • Export of API created manually in API Manager fails with apim-cli (See issue #337)
  • Support API Gateway environment variable (${env.backend}) in Backend base path (See issue #332)
  • BackendBasepath not handled properly for open api specification (See issue #341)

Added

  • APIM Multiple Organization support
  • Sonar cloud code coverage - SonarCloud.

Removed

  • APIM 7.6.2 support
  • Parameters ignoreAdminAccount and allowOrgAdminsToPublish in favor of multi organization support
  • Parameter replaceHostInSwagger.

[1.13.2] 2022-12-13

Fixed

  • Export apiRoutingKey (See issue #323)
  • apim-cli behaviour during restoration of 2 identical apis but exposed on two different virtual host (See issue #331)
  • APIM UI FeAPI via UI WSDL import, exported and imported by CLI fails, due to wsdl file reference api-config.json (See issue #328)
    • Added an environment variable with value retain.backend.url=true to add URL used to import WSDL to API manger to api-config.json instead of writing WSDL to file system.
  • BUILD SUCCESSFUL despite errors during pipeline execution for publish and un-publish operations (See issue #330)
  • Upgraded jackson, ascii-table and log4j jars to latest versions

Added

  • Support for November 2022 APIM release (7.7-20221130)

[1.13.1] 2022-11-15

Fixed

  • Get API causes an error when related certificates contains slash character '/' in their CN (See issue #315)
  • globalrequest and response polices are not handled correctly using apim settings import (See issue #325)
  • Add support for OData V4 specifications (See issue #234)
  • Security fix - Bump commons-text from 1.9 to 1.10.0
  • Security fix Bump jackson-databind from 2.13.3 to 2.13.4.1

Changed

  • Cleaned up some System.out.println to reduce console output

Added

  • command "api check-certs -days 90 -s api-env -o json" command writes json output on console

[1.13.0] 2022-09-23

Fixed

  • Junit fix (See issue #305)
  • Attempt to import WSDL API definition produces HTTP error code 400 when creating front end API (See issue #308)
  • AXWAY_APIM_CLI_HOME in the environment may break tests (See issue #306)
  • Allow override per method for tags (See issue #162)
  • apim cli always use first org for api deployment if user is assigned to multiple org (See issue #311)

Added

  • Automate APIM CLI config file creation based on openapi specification
  • Support for release 7.7-20220830

[1.12.3] 2022-08-09

Fixed

  • oas 3.0 base path handling (See issue #297)
  • BackendBasepath problem exporting SOAP API with apim-cli (See issue #299)
  • Importing SOAP API with apim-cli adds "+" instead of spaces for the Backend API name (See issue #301)

Changed

  • Added new parameter disableCompression. The parameter enables logging API Gateway responses for debugging.
    • Usage - api get -u apiadmin -p SpaceSalt25 -h 208.67.129.25 -port 8075 -n "PetStore 3.0" -o json -disableCompression
    • Enable http client header and payload logging using jvm -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.apache.commons.logging.simplelog.showdatetime=true -Dorg.apache.commons.logging.simplelog.log.org.apache.http=DEBUG
  • If backendBasepath is present in api-config.json, Openapi (OAS 3) servers.url will be modified based on the values. E.g

[1.12.2] 2022-07-28

Fixed

  • APIManagerAPIAdapter keeps old parameters (See issue #293)
  • Proxy Authentication is not working (See issue #295)
  • JsonAPIExporter.saveAPILocally logs Exception, but APIExportApp.exportAPI returns 0 (See issue #298)

Changed

  • Sample Dockerfile for apimcli
  • Environmentalize log level in log42.xml with environment variable LOG_LEVEL. Default LOG_LEVEL is info

[1.12.1] 2022-07-06

Fixed

  • Configured API access of an organization not updated (See issue #290)

[1.12.0] 2022-06-09

Added

  • New parameter apimanagerUrl added, which can be used instead of host and port.
  • Support for release 7.7-20220530
  • Support for API-Manager feature flag api.manager.orgadmin.selfservice.enabled (See issue #217)

Fixed

  • APIM-CLI was not able to connect to API-Manager running on GKE using ingress class: gce-internal due to the port 443 part of the host header
  • Logging improved for failed REST-API requests
  • Changing the application organization was not recognized as a change (See issue #284)

Changed

  • Dropped support for release 7.7-20200130
  • Now using API-Manager REST-API version /api/portal/v1.4
  • Updated libs
    • jackson-* from 2.13.2 to 2.13.3
    • olingo-odata2-api from 2.0.11 to 2.0.12
    • log4j-slf4j-impl from 2.17.1 to 2.17.2
    • ascii-table from 1.1.0 to 1.2.0
  • Changed the way the APIM-CLI install folder is located (See issue #276)

[1.11.0] 2022-04-22

Fixed

  • Now underlying cache is based on API-Manager Hostname and Port (See issue #265)
  • Problem on filtering API with policy name (See issue #268)
  • Application export always returned error code 0 (See issue #278)
  • Password protected WSDL Specifications dont work (See issue #277)

Changed

  • Now, when using toggle: -useFEAPIDefinition it is no longer using swaggerVersion 2.0 by default, instead it tries to download the spec using version 3.0, 2.0 and 1.1

Changed

  • Updated jackson-* from 2.13.0 to 2.13.2
  • Updated commons-csv from 1.8 to 1.9.0
  • Updated swagger-models from 2.1.11 to 2.2.0

Security

  • Updated Jackson Databind from version 2.13.0 to 2.13.2.1 to fix CWE-787

[1.10.1] 2022-02-25

Fixed

  • API-Import fails when using Method-Level quotas (See issue #261)
  • Export API to JSON fails if V-Host of API contains a port (See issue #262)
  • Exported quota methods now contain the method-name (operationId) instead of the internal ID
  • try again the REST-API call on the quota endpoint if the response is API found
    • this is required for the API-Management release 7.7.0.20220228

[1.10.0] 2022-02-17

Added

  • Support to provide a list of local markdown description files that can be combined with the original description

Fixed

  • Now the given parameter -port is trimmed to avoid a number format exception

[1.9.0] 2022-02-09

Added

  • Support to filter API-Specifications Models/Schemas

Changed

  • Include/Exclude filter structure changed from single object to an array of filters

[1.8.0] 2022-02-01

Added

  • Support to filter API-Specifications based on the Paths or Tags (See issue #238)
  • Support to filter for the creator of an application (See issue #252)
  • CSV- and Application-Console export now contains the creator of an application (See issue #252)

Fixed

  • Environment-Variables in API-config file gets not substituted anymore (See issue #257)

[1.7.1] 2022-01-20

Fixed

  • Backend service URL not configured for SOAP-Services (See issue #255)

[1.7.0] 2022-01-14

Changed

  • Renamed log4j.xml into log4j2.xml
  • Customer specific Cache-Configuration now read from conf/cacheConfig.xml

Security

  • Updated Apache Log4J from version 2.17.0 to 2.17.1

Fixed

  • App-Export - AppQuota contains API-ID instead of API-Name (See issue #145)
  • Outbound-AuthN OAuth-Provider-Profile only translated into FED-Name for _default profile (See issue #246)
  • Backslashes in user passwords are ignored (See issue #244)

Added

  • Support to use a cache for import actions (See issue #253)
  • UpdateOnly toggle (See issue #251)
  • Support to delete applications from API-Manager
  • Support for API-Method level quotas

[1.6.1] 2021-12-20

Security

  • Updated Apache Log4J from version 2.16.0 to 2.17.0

[1.6.0] 2021-12-17

Added

  • Logging improved if APIM-CLI is running in batch mode

Security

  • Updated Apache Log4J from version 2.15.0 to 2.16.0 (See issue #225)

Changed

  • Updated commons-cli from 1.4 to 1.5.0
  • Updated commons-io from 2.8.0 to 2.11.0
  • Updated commons-lang3 from 3.11 to 3.12.0
  • Updated commons-text from 1.8 to 1.9
  • Updated jackson-* from 2.11.3 to 2.13.0
  • Updated ehcache from 3.8.1 to 3.9.7 (requires to add dependency: org.glassfish.jaxb:jaxb-runtime:2.3.5)

[1.5.1] 2021-12-13

Security

  • Updated Apache Log4J from version 1.2.17 to 2.15.0

[1.5.0] 2021-11-11

Fixed

  • API-Manager Remote-Hosts export not working - Filtered incorrectly (See issue #225)

Added

  • Added support for OData V2 EDMX specifications (See issue #228)
  • Add check expired certificates command (See issue #233)
  • Control application user permissions (See issue #186)
  • Entity import should fail if a required custom property is missing (See issue #229)
  • APIM-CLI should check & fail, when RouteType is Policy without providing a RoutingPolicy (See issue #227)
  • Improved logging for missing policies. Now the type of the missing policy is logged.

[1.4.0] 2021-10-08

Fixed

  • No change detected when updating the role of a user (See issue #219)
  • API-Import with Method-Level Outbound-Profiles failes if no custom Outbound-Authentication is given (See issue #220)
  • Outbound SSL-Authentication is not working (See issue #221)

Added

  • WADL support (See issue #222)

Changed

  • Dropped support for API-Manager version 7.6.2

[1.3.13] 2021-09-21

Fixed

  • Error upgrading access to newer API - The entity could not be found. (See issue #218)

[1.3.12] 2021-09-10

Added

  • Provide option to configure the Retry-Delay for some of the API-Manager REST-API calls (See issue #213)

[1.3.11] 2021-09-06

Added

  • Feature to grant API access for organization during import (See issue #196)
  • Feature to manually define the stage configuration file (See issue #195)
  • User-Import now supports staging and variables as the other entity types
  • Feature to filter APIs with -createdOn based on their creation date. (See issue #209)
  • The API-Creation date is now exported into the CSV- and Console-Format (See issue #208)

Fixed

  • Changed the Log-Threshold to DEBUG for Console-Logger to make debugging working according to the documentation
  • Application-JSON-Export - Credentials should not contain ApplicationID (See issue #146)
  • Import Application scopes doesn't work (See issue #206)

[1.3.10] 2021-07-16

Fixed

  • No change detected when changing authenticationProfile in outboundProfiles (See issue #184) by @ftriolet
  • A WSDL file with a long comment at the beginning is not recognized as a WSDL specification. (See issue #190)

Added

  • Added feature to export APIs as DAT-Files (See issue #191)

[1.3.9] 2021-07-02

Fixed

  • Update RemoteHost lost CreatedBy & CreatedOn (See issue #180)
  • Manually configured API-Quotas get lost, when API is re-created (See issue #187)
  • Cannot delete API with an image, when the image is changed during deletion (See issue #188)

[1.3.8] 2021-06-17

Fixed

  • CLI does not realize changed policy when updating an API (See issue #179)
  • API-ManagerApps Adpater now handles 404 if searching for an Application based on the ID that does not exists (See issue #168)
  • vhost="" no longer creates a new API each time (See issue #169)
  • apim api publish resets API VHost to configured Default virtual host (See issue #170)
  • Malformed URL for Backend-URL no longer causing the CLI to fail (See issue #175)
  • Application import with no changes no longer logs an exception (See issue #176)

Added

  • Trailing slash added to given backendBasepath (See issue #178)

[1.3.7] 2021-04-19

Fixed

  • apim.sh fails if CWD has a space (See issue #160)
  • Streams not closed bring to a FileSystemException (See issue #161)
  • Streams not closed bring to a FileSystemException (See issue #165)
  • Command grant access ignores given api path (See issue #164
  • Export-Error when using a Custom-Properties-Model for APIs/Apps/Orgs (See issue #163)

Added

  • Resolve system environment variables in environment property files (See issue #166)
  • Support for API-Management 7.7-2021-March release (See issue #167)

[1.3.6] 2021-03-16

Fixed

  • Avoid NPE if given OAuth-Provider Profile is invalid (See issue #143)
  • Actual API-Lookup when using additional criteria V-Host and QueryRoutingVersion (See issue #151)

Changed

  • Retry request at API access endpoint also for return code 404 (See issue #157)
  • If the useFEAPIDefinition flag is set, then the exported API specification is updated with the backend API information (host, basePath, schemes). (See issue #158)

Added

  • Exported API-Manager settings now include Null-Values for not set properties (See issue #150)
  • Now Login to API-Manager is considered as successul if Status-Code is between 200-299 or 301 (See issue #148)
  • New api grant-access command allowing to grant access to multiple APIs & Orgs with one command (See issue #153)

[1.3.5] 2020-11-29

Added

  • Support set the API-Manager REST-API basepath (See issue #141)

[1.3.4] 2020-11-27

Fixed

  • java.lang.ClassCastException when trying to change an API (See issue #131)
  • apim api publish command outputs misleading error messages (See issue #134)
  • Existing App-Credentials should be updated and not always replaced (See issue #138)
  • When publish an API using the APIM CLI, events logs generated have null values for client, app & org (See issue #136)
  • When publish an API using the APIM CLI, events logs generated have null values for client, app & org (See issue #136)
  • API export to csv fails if API-Version is missing (See issue #130)
  • Bug on api approve without providing retirement date, working on v 1.3.2 (See issue #132)

Changed

  • Renamed command "api upgrade" to "api upgrade-access" (See issue #139)

[1.3.3] 2020-11-27

Fixed

  • New API-Manager 7.7-September release settings are ignored during import (See issue #119)
  • Policies not shown in console view if API is not using a Routing-Policy (See issue #121)

Added

  • Support to upgrade one or multiple APIs (See issue #120)

[1.3.2] 2020-11-25

Fixed

  • Application-Subscription not restored, when API is Republished to be updated and no applications given the API-Config (See issue #117)

[1.3.1] 2020-11-24

Fixed

  • Created BE-API response was parsing the response wrong. This could lead to an issue, if the API contains a createdOn field. (See issue #112)
  • Unicode API-Name was not shown correctly in the Backend-API overview (See issue #113)
  • Application-Subscription not restored, when API is Republished to be updated (See issue #114)
  • Filters not taken into consideration when deleting orgs

Added

  • Support to use a proxy for the API-Manager communication (See issue #109)

[1.3.0] 2020-11-10

Added

  • Search for APIs based on configured Inbound- and Outbound-Security (See issue #86)
  • Added support for API-Manager Config/Alerts/Remote-Hosts (See issue #68)
  • APIs now updated without Re-Creating them if possible (See issue #95)
  • Support to manage the full Remote-Host introduced with the API-Manager September/2020 release
  • Capability to filter APIs based on their organization
  • New command to approve one or more APIs that are in pending state (See issue #97)
  • Scripts apim.sh and apim.bat now optionally use AXWAY_APIM_CLI_HOME to setup the classpath (See issue #100)
  • Staging support for applications, users and organizations
  • Support for custom properties for applications, users and organizations (See issue #93)
  • Support to read the API-Description from a local markdown file See issue #110)

Fixed

  • Avoid NPE during API-Export if API-Custom-properties are not configured (See issue #90)
  • Disabled applications not created as disabled in API-Manager (See issue #89)
  • Support for special characters like an accent (See issue #88)
  • Organizations now validated based on given stage (See issue #58)
  • API-Import is now stopped if host and backendBasepath is missing (See issue #53)
  • Command-Line option with or without arguments can now be given interchangeable (See issue #102)
  • apim.bat now works with or without JAVA_HOME set (See issue #105)

Changed

  • APIs no longer Re-Created if not needed (See issue #95)
  • CLI Options parser refactored to be more flexible and support future requirements (See PR #103)
  • Updated Commons-text from version 1.8 to version 1.9
  • Updated Jackson-Databind from version 2.9.10.5 to 2.9.10.6
  • Updated commons-lang3 from version 3.10 to 3.11
  • Updated commons-io from version 2.7 to 2.8.0
  • Updated org.apache.httpcomponents httpclient from version 4.5.12 to 4.5.13
  • Updated Jackson from 2.9.10 to 2.11.3

[1.2.3] 2020-09-24

Added

  • Search for APIs based on configured tags (See issue #82)
  • Error handling improved if custom properties configuration is invalid (Switch or Select without configured options)
  • Added support to import application scopes (See PR #77)
  • Leverage "com.axway.apimanager.api.model.disable.confidential.fields" option (See PR #71)
  • Support for Stage-Config & Variable substitution for Orgs, Client-Apps and Users
  • Support to export & import API-Manager configuration

Fixed

  • Changing an APIs fails due to a ClassCastException (See issue #85)
  • NullPointerException when retrieving APIs on console with mode ultra (See issue #80)
  • Quota- and Tag-Information always shown as false in console view, even if configured for an API (See issue #81)
  • Handling of ExtClient configuration fixed when importing applications (See PR #78)
  • Error when updating an organization (See issue #73)
  • NPE when updating backendBasepath in a Swagger not having a host configured (See issue #72)

Changed

  • Internal parameter handling refactore to make it easier to integrate the CLI into other Java-Programs (See PR #83)

[1.2.2] 2020-09-09

Added

  • Added new CSV-Export for applications (See issue #70)
  • Toggle ignoreCache added to the usage (See issue #52)
  • Added new forceUpdate flag to force re-creation (See issue #56)

Fixed

  • apim.sh now starts the CLI in the current directory (See issue #60)
  • ErrorHandling improved when API-Config file can't be found
  • HTTP-Basic Outbound handling fixed, if no password is given
  • CSRF-Token handling improved (See issue #67)
  • Error when updating organization (See issue #69)

Changed

  • Added 7.7-July and 7.6.2-SP5 releases to the list of tested releases
  • apim.sh & apim.bat script now support path with blanks. Thanks to @cbrowet-axway
  • Handling NPE for Application credential search (See issue #57)
  • If FE-Security is a Custom-Policy, the name of the Custom-Policy is now exported (See issue #61)

[1.2.1] 2020-07-22

Fixed

  • Outbound Method-Configuration not working (See issue #50)

[1.2.0] 2020-07-17

Added

  • Support to import and export organizations
  • Support to import and export users
  • Support to publish APIs
  • Support to change the backend URL of an API (See issue #43)
  • Support to search applications based on their credentials (API-Key & Client-ID) (See issue #44)
  • Support to search applications based on their OAuth Redirect-URL
  • Stabilized API-Access handling (See issue #35)
  • Unkown API-Specifications are now handled gracefully and exported as text files

Changed

  • Library Apache httpclient Version: 4.5.6 to 4.5.12
  • Library Apache commons-io Version: 2.6 to 2.7
  • Library Apache commons-text Version: 1.7 to 1.8
  • Library Apache commons-lang 2.6 to commons-lang3 3.10
  • Library Apache httpmime Version: 4.5.6 to 4.5.12
  • Library slf4j-log4j12 Version: 1.7.25 to 1.7.30
  • Test library testng Version: 6.9.10 to 6.9.13.6

Fixed

  • Fixed NPE when API has no security configured (See issue #46)
  • apim.sh changed to improve support on Mac/Linux systems. Identified by @cbrowet-axway (See issue #42)
  • Improving support for OpenAPI 3.x spec having no servers declared (See issue #40)
  • API export with methods doesn't contain anymore the internal method-id (See issue #39)
  • CLI tool is now taking over RC given by each module (See issue #33)
  • Policies are now exported with their name instead of the internal ID

[1.1.0] 2020-06-25

Added

  • Feature to use a YAML based API-Definition for Swagger & OpenAPI (API-Manager 7.7 only)
  • API Backend-Server information in wide and ultra view console get view
  • Option to filter API having a specified backendBasepath
  • Show detailed API information if only 1 API is returned (See issue #11)
  • Feature to load the API-Definition from the FE-API (See issue #4)
  • Feature to export APIs as a CSV-File incl. used polices and subscribed applications
  • CLI usage information for all operations improved
  • CLI now properly logs out from API-Manager after the execution
  • API Custom-Properties are exported into CSV and Console view

Changed

  • API Console ultra view not longer renders API-Tags in detail. Only indicated with True & False
  • renamed parameter -l / --localFolder TO -t / --target
  • renamed parameter -df / --deleteFolder TO -deleteTarget
  • renamed parameter -f / --format TO -o --output

Fixed

  • Wrong info text during deletion of an unpublished API proxy (See issue #25)

Security

  • Bump jackson-databind from 2.9.10.4 to 2.9.10.5

[1.0.1] 2020-06-17

Fixed

  • Custom-Properties missing in API-Export (See issue #13)
  • NullPointerException during App export when using OrgAdmin (See issue #16)
  • NullPointerException with option -ultra when using OrgAdmin (See issue #12)
  • Wrong info text during update of an unpublished API proxy (See issue #15)

[1.0.0] 2020-06-15

Added

  • Initial version of the APIM-CLI
  • Swagger-Promote completely refactored
  • Migrated API-Import & Export to dedicated modules
  • New modules to manage applications (Import and Export)
  • Get APIs and Applications (Filtered, different formats)
  • Delete APIs (Front and Backend)
  • Publish APIs
  • Introduced API-Management programming interface

Fixed

  • Cannot set Oauth authentication Profile using its name (See issue #2)