external-callout

module
v0.0.0-...-e229cca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2021 License: Apache-2.0

README

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

Directories

Path Synopsis
cmd
server
go run cmd/server/main.go
go run cmd/server/main.go
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL