1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-11 07:29:40 +00:00

gcloud: Wed Feb 5 10:43:28 UTC 2025

This commit is contained in:
Automated 2025-02-05 10:43:28 +00:00
parent 50090ced80
commit c854ee0644
87 changed files with 3843 additions and 232 deletions

View file

@ -15,7 +15,7 @@ DESCRIPTION
Create an API key.
EXAMPLES
To create a key with display name and allowed ips specified:
To create a key with display name and allowed IPs specified:
$ gcloud services api-keys create --display-name="test name" \
--allowed-ips=2620:15c:2c4:203:2776:1f90:6b3b:217,104.133.8.78
@ -24,7 +24,7 @@ EXAMPLES
$ gcloud services api-keys create --annotations=foo=bar,abc=def
To create a key with user-specified key id:
To create a key with user-specified key ID:
$ gcloud services api-keys create --key-id="my-key-id"
@ -34,29 +34,29 @@ EXAMPLES
--allowed-referrers="https://www.example.com/*,http://sub.exampl\
e.com/*"
To create a key with allowed ios app bundle ids:
To create a key with allowed IOS app bundle IDs:
$ gcloud services api-keys create --allowed-bundle-ids=my.app
To create a key with allowed android application:
To create a key with allowed Android application:
$ gcloud services api-keys create \
--allowed-application=sha1_fingerprint=foo1,\
package_name=bar.foo \
--allowed-application=sha1_fingerprint=foo2,package_name=foo.bar
To create a key with allowed api targets (service name only):
To create a key with allowed API targets (service name only):
$ gcloud services api-keys create \
--api-target=service=bar.service.com \
--api-target=service=foo.service.com
To create a keys with allowed api targets (service and methods are
To create a key with allowed API targets (service and methods are
specified):
$ gcloud services api-keys create --flags-file=my-flags.yaml
The content of 'my-flags.yaml' is as following:
The content of 'my-flags.yaml' is as follows:
- --api-target:
service: "foo.service.com"