Skip to content

Commit 5011328

Browse files
committed
add usage
1 parent dea2a8e commit 5011328

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

endpoints/bookstore-grpc/api_config_anthos.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,13 @@ backend:
2828
- selector: "*"
2929
address: grpc://grpc-bookstore.default.svc.cluster.local
3030
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)