security_actions_config
Creates, updates, deletes, gets or lists a security_actions_config
resource.
Overview
Name | security_actions_config |
Type | Resource |
Id | google.apigee.security_actions_config |
Fields
The following fields are returned by SELECT
queries:
- organizations_environments_get_security_actions_config
Successful response
Name | Datatype | Description |
---|---|---|
name | string | This 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 |
enabled | boolean | The 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. |
updateTime | string (google-datetime) | Output only. The update time for configuration. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
organizations_environments_get_security_actions_config | select | organizationsId , environmentsId | GetSecurityActionConfig returns the current SecurityActions configuration. | |
organizations_environments_update_security_actions_config | update | organizationsId , environmentsId | updateMask | UpdateSecurityActionConfig updates the current SecurityActions configuration. This method is used to enable/disable the feature at the environment level. |
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.
Name | Datatype | Description |
---|---|---|
environmentsId | string | |
organizationsId | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- organizations_environments_get_security_actions_config
GetSecurityActionConfig returns the current SecurityActions configuration.
SELECT
name,
enabled,
updateTime
FROM google.apigee.security_actions_config
WHERE organizationsId = '{{ organizationsId }}' -- required
AND environmentsId = '{{ environmentsId }}' -- required;
UPDATE
examples
- organizations_environments_update_security_actions_config
UpdateSecurityActionConfig updates the current SecurityActions configuration. This method is used to enable/disable the feature at the environment level.
UPDATE google.apigee.security_actions_config
SET
data__name = '{{ name }}',
data__enabled = {{ enabled }}
WHERE
organizationsId = '{{ organizationsId }}' --required
AND environmentsId = '{{ environmentsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
enabled,
updateTime;