Call Hello World

When Apigee hybrid is up and running, you can test the installation by sending a request to the Hello World proxy:

curl -v -k https://your_host_alias/v0/hello

Where your_host_alias is the value of the config.envs.hostAlias property that you specified in this step. For example:

curl -v -k https://foo-test.example.net/v0/hello

If the call succeeds, you will see the following output:

Hello, Guest!

The "hello world" proxy was deployed for you when your hybrid-enabled org was provisioned. If you examine the proxy in the Edge UI, you'll see it has two policies attached: Quota and CORS.

The API call succeeds because the Hello World proxy configuration was downloaded (or synchronized) from the Apigee Edge management plane to your local runtime plane. All of the information needed to successfully execute the proxy in your local Message Processor was downloaded, including the proxy basepath, target endpoint, and policies.

If you get an error, verify that all of the pods are running. You can also take a look at the Message Processor's log files to see if you can find the source of the problem. See Logging.

Repeat the call to the proxy six times quickly. You should get a quota violation message. This is because the proxy has a Quota policy that allows 5 calls in 60 seconds:

curl -kv https://your_domain/v0/hello
Hello, Guest!
curl -kv https://your_domain/v0/hello
Hello, Guest!
curl -kv https://your_domain/v0/hello
Hello, Guest!
curl -kv https://your_domain/v0/hello
Hello, Guest!
curl -kv https://your_domain/v0/hello
Hello, Guest!
curl -kv https://your_domain/v0/hello
Hello, Guest!
{"fault":{"faultstring":"Rate limit quota violation. Quota limit
exceeded. Identifier :
_default","detail":{"errorcode":"policies.ratelimit.QuotaViolation"}}}