apim-cli
apim-cli copied to clipboard
apim-cli export using api-path doesn't work
APIM-CLI version
1.14.4
API-Management version
7.7.0.20240228
Bug description
Hi Team, We are using 7.7 Feb'24 supported apim-cli version 1.14.4 and exporting API using api-path doesn't work. It says no existing API found and loopkup for the apipath as 'C:/Git/apim' Please find the debug logs below:
apim api get -s esz-emea -a /apim -o json 2024-08-06 15:32:10,148 [APIManagerCLI] INFO : API-Manager CLI: 1.14.4 2024-08-06 15:32:10,150 [APIManagerCLI] INFO : Module: API - E X P O R T / U T I L S (1.14.4) 2024-08-06 15:32:10,163 [EnvironmentProperties] DEBUG: Trying to load environment properties from file: env.properties ... not found. 2024-08-06 15:32:10,176 [EnvironmentProperties] DEBUG: Loaded environment properties from file: env.esz-emea.properties 2024-08-06 15:32:12,136 [APIMHttpClient] DEBUG: API Manager CLI http client timeout : 30000 2024-08-06 15:32:12,196 [RestAPICall] DEBUG: Http verb:POST and URI: https://ews-esz-emea.api.bosch.com:8075/api/portal/v1.4/login 2024-08-06 15:32:16,973 [RestAPICall] DEBUG: Http verb:GET and URI: https://ews-esz-emea.api.bosch.com:8075/api/portal/v1.4/currentuser 2024-08-06 15:32:17,103 [APIManagerOrganizationAdapter] WARN : Using OrgAdmin only to load all organizations. 2024-08-06 15:32:17,103 [APIManagerOrganizationAdapter] DEBUG: Load organizations from API-Manager using filter: OrgFilter [name=null, id=a7270d5e-2429-4b2f-8054-a181075f65e0] 2024-08-06 15:32:17,103 [APIManagerOrganizationAdapter] DEBUG: Load organization with URI: https://ews-esz-emea.api.bosch.com:8075/api/portal/v1.4/organizations/a7270d5e-2429-4b2f-8054-a181075f65e0 2024-08-06 15:32:17,104 [RestAPICall] DEBUG: Http verb:GET and URI: https://ews-esz-emea.api.bosch.com:8075/api/portal/v1.4/organizations/a7270d5e-2429-4b2f-8054-a181075f65e0 2024-08-06 15:32:17,150 [APIManagerOrganizationAdapter] DEBUG: Organization id to be cached : /a7270d5e-2429-4b2f-8054-a181075f65e0 2024-08-06 15:32:17,181 [RestAPICall] DEBUG: Http verb:GET and URI: https://ews-esz-emea.api.bosch.com:8075/api/portal/v1.4/config 2024-08-06 15:32:17,224 [APIManagerAdapter] INFO : Organization Administrator Self Service Enabled : false 2024-08-06 15:32:17,225 [APIManagerAdapter] INFO : Successfully connected to API-Manager (7.7.20240228) on: https://ews-esz-emea.api.bosch.com:8075 2024-08-06 15:32:17,228 [APIManagerCustomPropertiesAdapter] DEBUG: Read configured custom properties from API-Manager 2024-08-06 15:32:17,228 [RestAPICall] DEBUG: Http verb:GET and URI: https://ews-esz-emea.api.bosch.com:8075/api/portal/v1.4/config/customproperties 2024-08-06 15:32:17,288 [RestAPICall] DEBUG: Http verb:GET and URI: https://ews-esz-emea.api.bosch.com:8075/api/portal/v1.4/proxies?field=path&op=eq&value=C%3A%2FGit%2Fapim 2024-08-06 15:32:17,829 [APIManagerAPIAdapter] DEBUG: No existing API found based on filter: [apiPath=C:/Git/apim] 2024-08-06 15:32:17,830 [APIExportApp] INFO : No APIs found using filter: APIFilter{id='null', apiId='null', name='null', vhost='null', apiPath='C:/Git/apim', queryStringVersion='null', state='null', backendBasepath='null', inboundSecurity='null', outboundAuthentication='null', organization='null', createdOn='null', type=CUSTOM, policyName='null', tag='null', customProperties=[supportContact, inboundOAuthJwksUri, visibility, outboundOAuthTokenEndpoint, inboundOAuthIssuer], deprecated=false, retired=false, version ='null', translateMethodMode=AS_NAME, loadBackendAPI=false, includeOperations=false, includeQuotas=true, includeClientOrganizations=true, includeClientApplications=true, includeClientAppQuota=false, includeImage=true, includeRemoteHost=true, includeOriginalAPIDefinition=true, useFEAPIDefinition=false, failOnError=false, includeMethods=false, translatePolicyMode=TO_NAME} 2024-08-06 15:32:17,830 [APIManagerAdapter] DEBUG: Closing cache ... 2024-08-06 15:32:18,004 [RestAPICall] DEBUG: Http verb:DELETE and URI: https://ews-esz-emea.api.bosch.com:8075/api/portal/v1.4/login
Thanks.
Steps to reproduce
No response
Relevant log output
No response