Skip to main content

retired_resources

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

Overview

Nameretired_resources
TypeResource
Idgoogle.cloudkms.retired_resources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringOutput only. Identifier. The resource name for this RetiredResource in the format projects/*/locations/*/retiredResources/*.
deleteTimestring (google-datetime)Output only. The time at which the original resource was deleted and this RetiredResource record was created.
originalResourcestringOutput only. The full resource name of the original CryptoKey that was deleted in the format projects/*/locations/*/keyRings/*/cryptoKeys/*.
resourceTypestringOutput only. The resource type of the original deleted resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, retiredResourcesIdRetrieves a specific RetiredResource resource, which represents the record of a deleted CryptoKey.
listselectprojectsId, locationsIdpageSize, pageTokenLists the RetiredResources which are the records of deleted CryptoKeys. RetiredResources prevent the reuse of these resource names after deletion.

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
projectsIdstring
retiredResourcesIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Retrieves a specific RetiredResource resource, which represents the record of a deleted CryptoKey.

SELECT
name,
deleteTime,
originalResource,
resourceType
FROM google.cloudkms.retired_resources
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND retiredResourcesId = '{{ retiredResourcesId }}' -- required
;