Skip to main content

keyvaluemaps

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

Overview​

Namekeyvaluemaps
TypeResource
Idgoogle.apigee.keyvaluemaps

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringRequired. ID of the key value map.
encryptedbooleanRequired. Flag that specifies whether entry values will be encrypted. This field is retained for backward compatibility and the value of encrypted will always be true. Apigee X and hybrid do not support unencrypted key value maps.
maskedValuesbooleanOptional. Flag that specifies whether entry values will be masked when returned.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_apis_keyvaluemaps_getselectorganizationsId, apisId, keyvaluemapsIdGet the key value map scoped to an organization, environment, or API proxy.
organizations_environments_keyvaluemaps_getselectorganizationsId, environmentsId, keyvaluemapsIdGet the key value map scoped to an organization, environment, or API proxy.
organizations_keyvaluemaps_getselectorganizationsId, keyvaluemapsIdGet the key value map scoped to an organization, environment, or API proxy.
organizations_apis_keyvaluemaps_createinsertorganizationsId, apisIdCreates a key value map in an API proxy.
organizations_environments_keyvaluemaps_createinsertorganizationsId, environmentsIdCreates a key value map in an environment.
organizations_keyvaluemaps_createinsertorganizationsIdCreates a key value map in an organization.
organizations_apis_keyvaluemaps_updatereplaceorganizationsId, apisId, keyvaluemapsIdUpdate the key value map scoped to an organization, environment, or API proxy.
organizations_environments_keyvaluemaps_updatereplaceorganizationsId, environmentsId, keyvaluemapsIdUpdate the key value map scoped to an organization, environment, or API proxy.
organizations_keyvaluemaps_updatereplaceorganizationsId, keyvaluemapsIdUpdate the key value map scoped to an organization, environment, or API proxy.
organizations_apis_keyvaluemaps_deletedeleteorganizationsId, apisId, keyvaluemapsIdDeletes a key value map from an API proxy.
organizations_environments_keyvaluemaps_deletedeleteorganizationsId, environmentsId, keyvaluemapsIdDeletes a key value map from an environment.
organizations_keyvaluemaps_deletedeleteorganizationsId, keyvaluemapsIdDeletes a key value map from an organization.

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
apisIdstring
environmentsIdstring
keyvaluemapsIdstring
organizationsIdstring

SELECT examples​

Get the key value map scoped to an organization, environment, or API proxy.

SELECT
name,
encrypted,
maskedValues
FROM google.apigee.keyvaluemaps
WHERE organizationsId = '{{ organizationsId }}' -- required
AND apisId = '{{ apisId }}' -- required
AND keyvaluemapsId = '{{ keyvaluemapsId }}' -- required
;

INSERT examples​

Creates a key value map in an API proxy.

INSERT INTO google.apigee.keyvaluemaps (
data__encrypted,
data__maskedValues,
data__name,
organizationsId,
apisId
)
SELECT
{{ encrypted }},
{{ maskedValues }},
'{{ name }}',
'{{ organizationsId }}',
'{{ apisId }}'
RETURNING
name,
encrypted,
maskedValues
;

REPLACE examples​

Update the key value map scoped to an organization, environment, or API proxy.

REPLACE google.apigee.keyvaluemaps
SET
data__encrypted = {{ encrypted }},
data__maskedValues = {{ maskedValues }},
data__name = '{{ name }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND apisId = '{{ apisId }}' --required
AND keyvaluemapsId = '{{ keyvaluemapsId }}' --required
RETURNING
name,
encrypted,
maskedValues;

DELETE examples​

Deletes a key value map from an API proxy.

DELETE FROM google.apigee.keyvaluemaps
WHERE organizationsId = '{{ organizationsId }}' --required
AND apisId = '{{ apisId }}' --required
AND keyvaluemapsId = '{{ keyvaluemapsId }}' --required
;