{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Edge/API Management /
avatar image
1
Question by Sushant Shambharkar · Jan 11, 2019 at 08:08 PM · 740 Views importbundle

tips and tricks for uploading API proxy in Proxy Bundle

Hello All,

I am trying to upload the sample projects in the Zip formats to my workspace. Sometimes I am able to import sometimes not.

Can anyone please me help with some basics of this Zip files , like

  • what is the folder tree structure
  • what should be there as a must and minimum to get uploaded.
  • what should not be there.
  • if we have all the policies and proxy default files. how can we Zip them to upload them using Proxy Bundle Import functionality

thanks

Sushanth

Comment
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Close

1 Answer

  • Sort: 
avatar image
0

Answer by Dino-at-Google   · Jan 11, 2019 at 11:59 PM

yes I can help

Here is an example ZIP showing the structure :

  Length  Date         Time      File
--------  -----------  --------  ---------------------------------------------
       0   9-Nov-2018  16:32:12  apiproxy/
     368   9-Nov-2018  16:32:12  apiproxy/logging-example-1.xml
       0   9-Nov-2018  16:53:48  apiproxy/policies/
     744   9-Nov-2018  16:37:46  apiproxy/policies/AM-1.xml
     878   9-Nov-2018  16:39:24  apiproxy/policies/AM-2.xml
     263   9-Nov-2018  16:38:00  apiproxy/policies/AM-Response-1.xml
     421  30-May-2017  08:45:20  apiproxy/policies/RF-UnknownRequest.xml
     273   9-Nov-2018  16:38:18  apiproxy/policies/AM-Response-2.xml
     167   6-Dec-2017  08:53:32  apiproxy/policies/AM-CleanResponseHeaders.xml
       0  11-Dec-2018  16:58:10  apiproxy/proxies/
    1509  11-Dec-2018  16:58:10  apiproxy/proxies/endpoint1.xml
    1581  11-Dec-2018  16:56:28  README.md
--------  -----------  --------  ---------------------------------------------
    6204                         12 files

Extraneous entries at the toplevel are ignored. Extraneous entries in other directories will often (but not always) lead to problems.

A good way to generate a basic "bare minimum" ZIP bundle is to use the Apigee Admin UI to generate a passthrough proxy, then click "download" to get the zip.

I keep my proxies stored "unzipped" on my filesystem, and zip them only to import them. I use macos, and here is the command I use to zip a proxy bundle:

zip apiproxy-bundle.zip -r apiproxy -x \*.\*~  

The -x option there omits backup files from the bundle - these are files named with a twiddle (~) that get auto-generated by my text editor.

If you are interested, there are scripts and tools that zip up bundles for you, and can import and deploy too.

For example

  • here is a script in nodejs
  • here is a powershell module that lets you do this:

    PS C:\dev\ps> Import-EdgeApi -Name dino-test-6 -Source c:\my\directory
Comment
Add comment Show 2 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image kailash joshi · Jul 03, 2020 at 12:10 PM 0
Link

hello Dino,

I am downloaded bundle from opdk 4.19.06 and tried to upload the same on apigee-hybrid1.2. But it is giving me bundle contains error.

Can you please help to solve this. I can't share the bundle but it is valid as I can reimport it on opdk.

Below is a line from the logs I can see is relevant other stuff is not at all helpful.

status: {code: 3 message: "bundle contains errors"

Thanks

avatar image Dino-at-Google ♦♦ kailash joshi   · Jul 06, 2020 at 05:58 PM 0
Link

I'm sorry that error message is not very clear or helpful.

Yes. I can help a bit.

First, This seems like a new question. I know it's related to bundle structure, but it's not the same question as asked originally here, in 2019. Please in the future, click the green "Ask a Question" button instead of posting a question as a comment to an existing answer.

There are some features that are supported in OPDK, which are not supported in Apigee hybrid. View the comparison table here. An example of a difference for OPDK and hybrid, the LDAP policy is supported only in OPDK, as far as I know.

To get further information and assistance diagnosing the problem, try posting a new question with "hybrid" in the title.

Follow this Question

Answers Answers and Comments

64 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

API proxy size limitation? 1 Answer

export all Developers, Apps, and Products to a .CSV file programmatically 1 Answer

Is this API to verify but not upload an API proxy bundle supported? 2 Answers

How can we identify the downloaded proxy bundle is REST service or SOAP service? 1 Answer

Is it possible to import existing APIs from a Swagger 2.0 definition into Apigee Edge? 5 Answers

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges