Skip to main content

cloudasset_assets_history

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

Overview

Namecloudasset_assets_history
TypeResource
Idgoogle.cloudasset.cloudasset_assets_history

Fields

NameDatatypeDescription
assetsarrayA list of assets with valid time windows.

Methods

NameAccessible byRequired ParamsDescription
batch_get_assets_historySELECTparent, parentTypeBatch gets the update history of assets that overlap a time window. For IAM_POLICY content, this API outputs history when the asset and its attached IAM POLICY both exist. This can create gaps in the output history. Otherwise, this API outputs history with asset in both non-delete or deleted status. If a specified asset does not exist, this API returns an INVALID_ARGUMENT error.

SELECT examples

Batch gets the update history of assets that overlap a time window. For IAM_POLICY content, this API outputs history when the asset and its attached IAM POLICY both exist. This can create gaps in the output history. Otherwise, this API outputs history with asset in both non-delete or deleted status. If a specified asset does not exist, this API returns an INVALID_ARGUMENT error.

SELECT
assets
FROM google.cloudasset.cloudasset_assets_history
WHERE parent = '{{ parent }}'
AND parentType = '{{ parentType }}';