organization_settings
Creates, updates, deletes, gets or lists a organization_settings
resource.
Overview
Name | organization_settings |
Type | Resource |
Id | google.securitycenter.organization_settings |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/organizationSettings". |
assetDiscoveryConfig | object | The configuration used for Asset Discovery runs. |
enableAssetDiscovery | boolean | A 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
Name | Accessible by | Required Params | Description |
---|---|---|---|
organizations_get_organization_settings | SELECT | organizationsId | Gets the settings for an organization. |
organizations_update_organization_settings | UPDATE | organizationsId | Updates 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 }}';