Skip to main content

key_strings

Creates, updates, deletes, gets or lists a key_strings resource.

Overview

Namekey_strings
TypeResource
Idgoogle.apikeys.key_strings

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
keyStringstringAn encrypted and signed value of the key.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_key_stringselectprojectsId, locationsId, keysIdGet the key string for an API key. NOTE: Key is a global resource; hence the only supported value for location is global.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
keysIdstring
locationsIdstring
projectsIdstring

SELECT examples

Get the key string for an API key. NOTE: Key is a global resource; hence the only supported value for location is global.

SELECT
keyString
FROM google.apikeys.key_strings
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND keysId = '{{ keysId }}' -- required;