/external-callout

Primary LanguageGoApache License 2.0Apache-2.0

external-callout

This repo shows a sample of how to use the External Callout policy with Apigee X/hybrid.

Components

External Callout Service

A sample external callout service is implemented here. You can install the service on Cloud Run (GCE and GKE also work perfectly fine). A Cloud Build install script is included here. You can build & deploy with

gcloud submit builds

Setup Target Server

Configure a target server to call the External Service.

auth="Authorization: Bearer $(gcloud auth print-access-token)"

curl "https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/targetservers" -X POST -H $auth -H "Content-Type: application/json" --data-raw '{
  "name": "grpcserver",
  "host": "HOSTNAME",
  "port": 443,
  "isEnabled": true,
  "protocol": "GRPC",
  "sSLInfo": {
      "enabled": true,
      "ignoreValidationErrors": true
  }
}'

API Proxy

Deploy the API Proxy included here.


Support

This is not an officially supported Google product