Skip to main content

parameters

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

Overview

Nameparameters
TypeResource
Idgoogle.parametermanager.parameters

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. [Output only] The resource name of the Parameter in the format projects/*/locations/*/parameters/*.
createTimestring (google-datetime)Output only. [Output only] Create time stamp
formatstringOptional. Specifies the format of a Parameter.
kmsKeystringOptional. Customer managed encryption key (CMEK) to use for encrypting the Parameter Versions. If not set, the default Google-managed encryption key will be used. Cloud KMS CryptoKeys must reside in the same location as the Parameter. The expected format is projects/*/locations/*/keyRings/*/cryptoKeys/*.
labelsobjectOptional. Labels as key value pairs
policyMemberobjectOutput only. [Output-only] policy member strings of a Google Cloud resource. (id: ResourcePolicyMember)
updateTimestring (google-datetime)Output only. [Output only] Update time stamp

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, parametersIdGets details of a single Parameter.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists Parameters in a given project and location.
createinsertprojectsId, locationsIdparameterId, requestIdCreates a new Parameter in a given project and location.
patchupdateprojectsId, locationsId, parametersIdupdateMask, requestIdUpdates a single Parameter.
deletedeleteprojectsId, locationsId, parametersIdrequestIdDeletes a single Parameter.

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
locationsIdstring
parametersIdstring
projectsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
parameterIdstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single Parameter.

SELECT
name,
createTime,
format,
kmsKey,
labels,
policyMember,
updateTime
FROM google.parametermanager.parameters
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND parametersId = '{{ parametersId }}' -- required;

INSERT examples

Creates a new Parameter in a given project and location.

INSERT INTO google.parametermanager.parameters (
data__name,
data__labels,
data__format,
data__kmsKey,
projectsId,
locationsId,
parameterId,
requestId
)
SELECT
'{{ name }}',
'{{ labels }}',
'{{ format }}',
'{{ kmsKey }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ parameterId }}',
'{{ requestId }}'
RETURNING
name,
createTime,
format,
kmsKey,
labels,
policyMember,
updateTime
;

UPDATE examples

Updates a single Parameter.

UPDATE google.parametermanager.parameters
SET
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__format = '{{ format }}',
data__kmsKey = '{{ kmsKey }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND parametersId = '{{ parametersId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
createTime,
format,
kmsKey,
labels,
policyMember,
updateTime;

DELETE examples

Deletes a single Parameter.

DELETE FROM google.parametermanager.parameters
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND parametersId = '{{ parametersId }}' --required
AND requestId = '{{ requestId }}';