{ 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 /
  • Microgateway /
avatar image
0
Question by shintaro kurihara · Nov 20, 2019 at 06:09 AM · 47 Views microgatewayproxyproxy configurationedgemicro

How to add new ProxyGateway path to Edge MicroGateway

I have tried to install Edge Microgateway follow this get start guide. default path '/hello' abd /hello/echo' is working. but added proxy target is not working.

I woudl kike to know how to add new ProxyEndpoints path to Edge Microgateway poc process

1. local install is succeesd

$ curl -H 'Authorization: Bearer eyJraW.......' http://localhost:8000/hello
Hello, Guest! 

2. add following ProxyEndpoints to edgemicro_hello and deploy prod and test

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ProxyEndpoint name="test">
    <Description/>
    <FaultRules/>
    <PreFlow name="PreFlow">
        <Request/>
        <Response/>
    </PreFlow>
    <PostFlow name="PostFlow">
        <Request/>
        <Response/>
    </PostFlow>
    <Flows/>
    <HTTPProxyConnection>
        <BasePath>/test</BasePath>
        <Properties/>
        <VirtualHost>default</VirtualHost>
        <VirtualHost>secure</VirtualHost>
    </HTTPProxyConnection>
    <RouteRule name="default">
        <TargetEndpoint>default</TargetEndpoint>
    </RouteRule>
</ProxyEndpoint>

3. reload local Edge Microgateway

$ edgemicro reload -o $ORG -eval -e prod -k $KEY -s $SECRET 


2019-11-20T05:59:23.812Z [14876] [microgateway edgemicro] current nodejs version is v12.13.0
2019-11-20T05:59:23.814Z [14876] [microgateway edgemicro] current edgemicro version is 3.0.10
2019-11-20T05:59:24.834Z [14876] [microgateway-config network] config download from https://edgemicroservices.apigee.net/edgemicro/bootstrap/organization/shintarokurihara-eval/environment/prod returned
2019-11-20T05:59:25.353Z [14876] [microgateway-config network] jwt_public_key download from https://shintarokurihara-eval-prod.apigee.net/edgemicro-auth/publicKey returned
2019-11-20T05:59:25.469Z [14876] [microgateway-config network] products download from https://shintarokurihara-eval-prod.apigee.net/edgemicro-auth/products returned
2019-11-20T05:59:25.527Z [14876] [microgateway gateway] Reload Completed Successfully

4. check new added path. but not working...

$ curl -H 'Authorization: Bearer eyJraW.......' http://localhost:8000/test 
{"message":"no match found for /test","status":404}

# there is not path expression in cache yaml $ grep '/test' -r ~/.edgemicro/ $ echo $? 1
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

0 Answers

  • Sort: 

Follow this Question

Answers Answers and Comments

80 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 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

Using proxy properties in Microgateway (edgemicro) 1 Answer

How to specify HTTP methods for proxy in edgemicro 0 Answers

Wildcard support in proxy basepath with edgemicro 1 Answer

Configuring Edge Microgateway Private Cloud: proxy creation failed. Status code 302 0 Answers

Is it possible to chose a sub-set of proxies to be downloaded to a edgemicro instance? 2 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