Index
ApiKeys
(interface)AndroidApplication
(message)AndroidKeyRestrictions
(message)ApiTarget
(message)BrowserKeyRestrictions
(message)CreateKeyRequest
(message)DeleteKeyRequest
(message)GetKeyRequest
(message)GetKeyStringRequest
(message)GetKeyStringResponse
(message)IosKeyRestrictions
(message)Key
(message)ListKeysRequest
(message)ListKeysResponse
(message)LookupKeyRequest
(message)LookupKeyResponse
(message)Restrictions
(message)ServerKeyRestrictions
(message)UndeleteKeyRequest
(message)UpdateKeyRequest
(message)
ApiKeys
Manages the API keys associated with projects.
CreateKey |
---|
Creates a new API key. NOTE: Key is a global resource; hence the only supported value for location is
|
DeleteKey |
---|
Deletes an API key. Deleted key can be retrieved within 30 days of deletion. Afterward, key will be purged from the project. NOTE: Key is a global resource; hence the only supported value for location is
|
GetKey |
---|
Gets the metadata for an API key. The key string of the API key isn't included in the response. NOTE: Key is a global resource; hence the only supported value for location is
|
GetKeyString |
---|
Get the key string for an API key. NOTE: Key is a global resource; hence the only supported value for location is
|
ListKeys |
---|
Lists the API keys owned by a project. The key string of the API key isn't included in the response. NOTE: Key is a global resource; hence the only supported value for location is
|
LookupKey |
---|
Find the parent project and resource name of the API key that matches the key string in the request. If the API key has been purged, resource name will not be set. The service account must have the
|
UndeleteKey |
---|
Undeletes an API key which was deleted within 30 days. NOTE: Key is a global resource; hence the only supported value for location is
|
UpdateKey |
---|
Patches the modifiable fields of an API key. The key string of the API key isn't included in the response. NOTE: Key is a global resource; hence the only supported value for location is
|
AndroidApplication
Identifier of an Android application for key use.
Fields | |
---|---|
sha1_fingerprint |
The SHA1 fingerprint of the application. For example, both sha1 formats are acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. Output format is the latter. |
package_name |
The package name of the application. |
AndroidKeyRestrictions
The Android apps that are allowed to use the key.
Fields | |
---|---|
allowed_applications[] |
A list of Android applications that are allowed to make API calls with this key. |
ApiTarget
A restriction for a specific service and optionally one or multiple specific methods. Both fields are case insensitive.
Fields | |
---|---|
service |
The service for this restriction. It should be the canonical service name, for example: |
methods[] |
Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol. Valid examples: |
BrowserKeyRestrictions
The HTTP referrers (websites) that are allowed to use the key.
Fields | |
---|---|
allowed_referrers[] |
A list of regular expressions for the referrer URLs that are allowed to make API calls with this key. |
CreateKeyRequest
Request message for CreateKey
method.
Fields | |
---|---|
parent |
Required. The project in which the API key is created. Authorization requires the following IAM permission on the specified resource
|
key |
Required. The API key fields to set at creation time. You can configure only the |
key_id |
User specified key id (optional). If specified, it will become the final component of the key resource name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. In another word, the id must match the regular expression: The id must NOT be a UUID-like string. |
DeleteKeyRequest
Request message for DeleteKey
method.
Fields | |
---|---|
name |
Required. The resource name of the API key to be deleted. Authorization requires the following IAM permission on the specified resource
|
etag |
Optional. The etag known to the client for the expected state of the key. This is to be used for optimistic concurrency. |
GetKeyRequest
Request message for GetKey
method.
Fields | |
---|---|
name |
Required. The resource name of the API key to get. Authorization requires the following IAM permission on the specified resource
|
GetKeyStringRequest
Request message for GetKeyString
method.
Fields | |
---|---|
name |
Required. The resource name of the API key to be retrieved. Authorization requires the following IAM permission on the specified resource
|
GetKeyStringResponse
Response message for GetKeyString
method.
Fields | |
---|---|
key_string |
An encrypted and signed value of the key. |
IosKeyRestrictions
The iOS apps that are allowed to use the key.
Fields | |
---|---|
allowed_bundle_ids[] |
A list of bundle IDs that are allowed when making API calls with this key. |
Key
The representation of a key managed by the API Keys API.
Fields | |
---|---|
name |
Output only. The resource name of the key. The NOTE: Key is a global resource; hence the only supported value for location is |
uid |
Output only. Unique id in UUID4 format. |
display_name |
Human-readable display name of this key that you can modify. The maximum length is 63 characters. |
key_string |
Output only. An encrypted and signed value held by this key. This field can be accessed only through the |
create_time |
Output only. A timestamp identifying the time this key was originally created. |
update_time |
Output only. A timestamp identifying the time this key was last updated. |
delete_time |
Output only. A timestamp when this key was deleted. If the resource is not deleted, this must be empty. |
annotations |
Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. |
restrictions |
Key restrictions. |
etag |
Output only. A checksum computed by the server based on the current value of the Key resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. See https://google.aip.dev/154. |
ListKeysRequest
Request message for ListKeys
method.
Fields | |
---|---|
parent |
Required. Lists all API keys associated with this project. Authorization requires the following IAM permission on the specified resource
|
page_size |
Optional. Specifies the maximum number of results to be returned at a time. |
page_token |
Optional. Requests a specific page of results. |
show_deleted |
Optional. Indicate that keys deleted in the past 30 days should also be returned. |
ListKeysResponse
Response message for ListKeys
method.
Fields | |
---|---|
keys[] |
A list of API keys. |
next_page_token |
The pagination token for the next page of results. |
LookupKeyRequest
Request message for LookupKey
method.
Fields | |
---|---|
key_string |
Required. Finds the project that owns the key string value. |
LookupKeyResponse
Response message for LookupKey
method.
Fields | |
---|---|
parent |
The project that owns the key with the value specified in the request. |
name |
The resource name of the API key. If the API key has been purged, resource name is empty. |
Restrictions
Describes the restrictions on the key.
Fields | |
---|---|
api_targets[] |
A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed. |
Union field client_restrictions . The websites, IP addresses, Android apps, or iOS apps (the clients) that are allowed to use the key. You can specify only one type of client restrictions per key. client_restrictions can be only one of the following: |
|
browser_key_restrictions |
The HTTP referrers (websites) that are allowed to use the key. |
server_key_restrictions |
The IP addresses of callers that are allowed to use the key. |
android_key_restrictions |
The Android apps that are allowed to use the key. |
ios_key_restrictions |
The iOS apps that are allowed to use the key. |
ServerKeyRestrictions
The IP addresses of callers that are allowed to use the key.
Fields | |
---|---|
allowed_ips[] |
A list of the caller IP addresses that are allowed to make API calls with this key. |
UndeleteKeyRequest
Request message for UndeleteKey
method.
Fields | |
---|---|
name |
Required. The resource name of the API key to be undeleted. Authorization requires the following IAM permission on the specified resource
|
UpdateKeyRequest
Request message for UpdateKey
method.
Fields | |
---|---|
key |
Required. Set the Authorization requires the following IAM permission on the specified resource
|
update_mask |
The field mask specifies which fields to be updated as part of this request. All other fields are ignored. Mutable fields are: |