Skip to main content

organization_settings

Creates, updates, deletes, gets or lists an organization_settings resource.

Overview

Nameorganization_settings
TypeResource
Idgoogle.securitycenter.organization_settings

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringThe relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/organizationSettings".
assetDiscoveryConfigobjectThe configuration used for Asset Discovery runs. (id: AssetDiscoveryConfig)
enableAssetDiscoverybooleanA flag that indicates if Asset Discovery should be enabled. If the flag is set to true, then discovery of assets will occur. If it is set to false, all historical assets will remain, but discovery of future assets will not occur.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_get_organization_settingsselectorganizationsIdGets the settings for an organization.
organizations_update_organization_settingsupdateorganizationsIdupdateMaskUpdates an organization's settings.

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
organizationsIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets the settings for an organization.

SELECT
name,
assetDiscoveryConfig,
enableAssetDiscovery
FROM google.securitycenter.organization_settings
WHERE organizationsId = '{{ organizationsId }}' -- required;

UPDATE examples

Updates an organization's settings.

UPDATE google.securitycenter.organization_settings
SET
data__name = '{{ name }}',
data__enableAssetDiscovery = {{ enableAssetDiscovery }},
data__assetDiscoveryConfig = '{{ assetDiscoveryConfig }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
assetDiscoveryConfig,
enableAssetDiscovery;