class OrganizationsAssets extends Resource (View source)

The "assets" collection of methods.

Typical usage is:

 $securitycenterService = new Google\Service\SecurityCommandCenter(...);
 $assets = $securitycenterService->organizations_assets;

Methods

group(string $parent, GroupAssetsRequest $postBody, array $optParams = [])

Filters an organization's assets and groups them by their specified properties. (assets.group)

listOrganizationsAssets(string $parent, array $optParams = [])

Lists an organization's assets. (assets.listOrganizationsAssets)

runDiscovery(string $parent, RunAssetDiscoveryRequest $postBody, array $optParams = [])

Runs asset discovery. The discovery is tracked with a long-running operation.

updateSecurityMarks(string $name, SecurityMarks $postBody, array $optParams = [])

Updates security marks. (assets.updateSecurityMarks)

Details

GroupAssetsResponse group(string $parent, GroupAssetsRequest $postBody, array $optParams = [])

Filters an organization's assets and groups them by their specified properties. (assets.group)

Parameters

string $parent

Required. The name of the parent to group the assets by. Its format is organizations/[organization_id], folders/[folder_id], or projects/[project_id].

GroupAssetsRequest $postBody
array $optParams

Optional parameters.

Return Value

GroupAssetsResponse

Exceptions

Exception

ListAssetsResponse listOrganizationsAssets(string $parent, array $optParams = [])

Lists an organization's assets. (assets.listOrganizationsAssets)

Parameters

string $parent

Required. The name of the parent resource that contains the assets. The value that you can specify on parent depends on the method in which you specify parent. You can specify one of the following values: organizations/[organization_id], folders/[folder_id], or projects/[project_id].

array $optParams

Optional parameters.

Return Value

ListAssetsResponse

Exceptions

Exception

Operation runDiscovery(string $parent, RunAssetDiscoveryRequest $postBody, array $optParams = [])

Runs asset discovery. The discovery is tracked with a long-running operation.

This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error. (assets.runDiscovery)

Parameters

string $parent

Required. Name of the organization to run asset discovery for. Its format is organizations/[organization_id].

RunAssetDiscoveryRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

SecurityMarks updateSecurityMarks(string $name, SecurityMarks $postBody, array $optParams = [])

Updates security marks. (assets.updateSecurityMarks)

Parameters

string $name

The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: "organizations/{organization_id}/assets/{asset_id}/securityMarks" " organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/sec urityMarks".

SecurityMarks $postBody
array $optParams

Optional parameters.

Return Value

SecurityMarks

Exceptions

Exception