Skip to main content

organization_settings

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

Overview

Nameorganization_settings
TypeResource
Idgoogle.securitycenter.organization_settings

Fields

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.
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

NameAccessible byRequired ParamsDescription
organizations_get_organization_settingsSELECTorganizationsIdGets the settings for an organization.
organizations_update_organization_settingsUPDATEorganizationsIdUpdates an organization's settings.

SELECT examples

Gets the settings for an organization.

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

UPDATE example

Updates a organization_settings resource.

/*+ update */
UPDATE google.securitycenter.organization_settings
SET
name = '{{ name }}',
enableAssetDiscovery = true|false,
assetDiscoveryConfig = '{{ assetDiscoveryConfig }}'
WHERE
organizationsId = '{{ organizationsId }}';