cloudasset_assets_history
Creates, updates, deletes, gets or lists a cloudasset_assets_history
resource.
Overview
Name | cloudasset_assets_history |
Type | Resource |
Id | google.cloudasset.cloudasset_assets_history |
Fields
Name | Datatype | Description |
---|---|---|
assets | array | A list of assets with valid time windows. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
batch_get_assets_history | SELECT | parent, parentType | 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
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 }}';