Skip to content

Commit 375b68b

Browse files
qiwzhangkurtisvg
andauthored
add api_config_anthos.yaml (#3407)
* add api_config_anthos.yaml * add usage Co-authored-by: Kurtis Van Gent <[email protected]>
1 parent f36ab95 commit 375b68b

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
type: google.api.Service
2+
config_version: 3
3+
4+
#
5+
# Name of the service configuration.
6+
#
7+
name: API_NAME.endpoints.ESP_PROJECT_ID.cloud.goog
8+
9+
#
10+
# API title to appear in the user interface (Google Cloud Console).
11+
#
12+
title: gRPC Bookstore API In Cloud Run Anthos
13+
apis:
14+
- name: endpoints.examples.bookstore.Bookstore
15+
16+
#
17+
# Create a DNS record to map your service nameto IP address
18+
#
19+
endpoints:
20+
- name: API_NAME.endpoints.ESP_PROJECT_ID.cloud.goog
21+
target: INGRESS_IP
22+
23+
#
24+
# Specify the backend address to route to
25+
#
26+
backend:
27+
rules:
28+
- selector: "*"
29+
address: grpc://grpc-bookstore.default.svc.cluster.local
30+
disable_auth: true
31+
32+
#
33+
# API usage restrictions.
34+
#
35+
usage:
36+
rules:
37+
# ListShelves methods can be called without an API Key.
38+
- selector: endpoints.examples.bookstore.Bookstore.ListShelves
39+
allow_unregistered_calls: true
40+

0 commit comments

Comments
 (0)