Index
AssetService
(interface)Asset
(message)ContentType
(enum)ListAssetsRequest
(message)ListAssetsResponse
(message)Resource
(message)
AssetService
Asset service definition.
ListAssets | |
---|---|
Lists assets with time and resource types and returns paged results in response.
|
Asset
An asset in Google Cloud. An asset can be any resource in the Google Cloud resource hierarchy, a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy). See Supported asset types for more information.
Fields | ||
---|---|---|
name |
The full name of the asset. Example: See Resource names for more information. |
|
asset_type |
The type of the asset. Example: See Supported asset types for more information. |
|
resource |
A representation of the resource. |
|
iam_policy |
A representation of the Cloud IAM policy set on a Google Cloud resource. There can be a maximum of one Cloud IAM policy set on any given resource. In addition, Cloud IAM policies inherit their granted access scope from any policies set on parent resources in the resource hierarchy. Therefore, the effectively policy is the union of both the policy set on this resource and each policy set on all of the resource's ancestry resource levels in the hierarchy. See this topic for more information. |
|
org_policy[] |
A representation of an organization policy. There can be more than one organization policy with different constraints set on a given resource. |
|
ancestors[] |
The ancestry path of an asset in Google Cloud resource hierarchy, represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. If the asset is a project, folder, or organization, the ancestry path starts from the asset itself. Example: |
|
Union field access_context_policy . A representation of an access policy. access_context_policy can be only one of the following: |
||
access_policy |
Please also refer to the access policy user guide. |
|
access_level |
Please also refer to the access level user guide. |
|
service_perimeter |
Please also refer to the service perimeter user guide. |
ContentType
Asset content type.
Enums | |
---|---|
CONTENT_TYPE_UNSPECIFIED |
Unspecified content type. |
RESOURCE |
Resource metadata. |
IAM_POLICY |
The actual IAM policy set on a resource. |
ORG_POLICY |
The Cloud Organization Policy set on an asset. |
ACCESS_POLICY |
The Cloud Access context mananger Policy set on an asset. |
ListAssetsRequest
ListAssets request.
Fields | |
---|---|
parent |
Required. Name of the organization or project the assets belong to. Format: "organizations/[organization-number]" (such as "organizations/123"), "projects/[project-number]" (such as "projects/my-project-id"), or "projects/[project-id]" (such as "projects/12345"). Authorization requires one or more of the following IAM permissions on the specified resource
|
read_time |
Timestamp to take an asset snapshot. This can only be set to a timestamp between the current time and the current time minus 35 days (inclusive). If not specified, the current time will be used. Due to delays in resource data collection and indexing, there is a volatile window during which running the same query may get different results. |
asset_types[] |
A list of asset types to take a snapshot for. For example: "compute.googleapis.com/Disk". Regular expression is also supported. For example:
See RE2 for all supported regular expression syntax. If the regular expression does not match any supported asset type, an INVALID_ARGUMENT error will be returned. If specified, only matching assets will be returned, otherwise, it will snapshot all asset types. See Introduction to Cloud Asset Inventory for all supported asset types. |
content_type |
Asset content type. If not specified, no content but the asset name will be returned. |
page_size |
The maximum number of assets to be returned in a single response. Default is 100, minimum is 1, and maximum is 1000. |
page_token |
The |
ListAssetsResponse
ListAssets response.
Fields | |
---|---|
read_time |
Time the snapshot was taken. |
assets[] |
Assets. |
next_page_token |
Token to retrieve the next page of results. It expires 72 hours after the page token for the first page is generated. Set to empty if there are no remaining results. |
Resource
A representation of a Google Cloud resource.
Fields | |
---|---|
version |
The API version. Example: "v1". |
discovery_document_uri |
The URL of the discovery document containing the resource's JSON schema. Example: This value is unspecified for resources that do not have an API based on a discovery document, such as Cloud Bigtable. |
discovery_name |
The JSON schema name listed in the discovery document. Example: This value is unspecified for resources that do not have an API based on a discovery document, such as Cloud Bigtable. |
resource_url |
The REST URL for accessing the resource. An HTTP This value is unspecified for resources without a REST API. |
parent |
The full name of the immediate parent of this resource. See Resource Names for more information. For Google Cloud assets, this value is the parent resource defined in the Cloud IAM policy hierarchy. Example: For third-party assets, this field may be set differently. |
data |
The content of the resource, in which some sensitive fields are removed and may not be present. |