This repo shows a sample of how to use the External Callout policy with Apigee X/hybrid.
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
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
}
}'
Deploy the API Proxy included here.
This is not an officially supported Google product