Skip to main content

environments_security_actions_config

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

Overview

Nameenvironments_security_actions_config
TypeResource
Idgoogle.apigee.environments_security_actions_config

Fields

NameDatatypeDescription
namestringThis is a singleton resource, the name will always be set by SecurityActions and any user input will be ignored. The name is always: organizations/{org}/environments/{env}/security_actions_config
enabledbooleanThe flag that controls whether this feature is enabled. This is unset by default. When this flag is false, even if individual rules are enabled, no SecurityActions will be enforced.
updateTimestringOutput only. The update time for configuration.

Methods

NameAccessible byRequired ParamsDescription
organizations_environments_get_security_actions_configSELECTenvironmentsId, organizationsIdGetSecurityActionConfig returns the current SecurityActions configuration.
organizations_environments_update_security_actions_configUPDATEenvironmentsId, organizationsIdUpdateSecurityActionConfig updates the current SecurityActions configuration. This method is used to enable/disable the feature at the environment level.

SELECT examples

GetSecurityActionConfig returns the current SecurityActions configuration.

SELECT
name,
enabled,
updateTime
FROM google.apigee.environments_security_actions_config
WHERE environmentsId = '{{ environmentsId }}'
AND organizationsId = '{{ organizationsId }}';

UPDATE example

Updates a environments_security_actions_config resource.

/*+ update */
UPDATE google.apigee.environments_security_actions_config
SET
enabled = true|false,
name = '{{ name }}'
WHERE
environmentsId = '{{ environmentsId }}'
AND organizationsId = '{{ organizationsId }}';