Debian Codegraph @

docs/dyn/apigee_v1.organizations.environments.securityActions.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="apigee_v1.html">Apigee API</a> . <a href="apigee_v1.organizations.html">organizations</a> . <a href="apigee_v1.organizations.environments.html">environments</a> . <a href="apigee_v1.organizations.environments.securityActions.html">securityActions</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, securityActionId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">CreateSecurityAction creates a SecurityAction.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Delete a SecurityAction.</p>
86 <p class="toc_element">
87 <code><a href="#disable">disable(name, body=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Disable a SecurityAction. The `state` of the SecurityAction after disabling is `DISABLED`. `DisableSecurityAction` can be called on SecurityActions in the state `ENABLED`; SecurityActions in a different state (including `DISABLED`) return an error.</p>
89 <p class="toc_element">
90 <code><a href="#enable">enable(name, body=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Enable a SecurityAction. The `state` of the SecurityAction after enabling is `ENABLED`. `EnableSecurityAction` can be called on SecurityActions in the state `DISABLED`; SecurityActions in a different state (including `ENABLED) return an error.</p>
92 <p class="toc_element">
93 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
94 <p class="firstline">Get a SecurityAction by name.</p>
95 <p class="toc_element">
96 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Returns a list of SecurityActions. This returns both enabled and disabled actions.</p>
98 <p class="toc_element">
99 <code><a href="#list_next">list_next()</a></code></p>
100 <p class="firstline">Retrieves the next page of results.</p>
101 <p class="toc_element">
102 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Update a SecurityAction.</p>
104 <h3>Method Details</h3>
105 <div class="method">
106 <code class="details" id="close">close()</code>
107 <pre>Close httplib2 connections.</pre>
108 </div>
109
110 <div class="method">
111 <code class="details" id="create">create(parent, body=None, securityActionId=None, x__xgafv=None)</code>
112 <pre>CreateSecurityAction creates a SecurityAction.
113
114 Args:
115 parent: string, Required. The organization and environment that this SecurityAction applies to. Format: organizations/{org}/environments/{env} (required)
116 body: object, The request body.
117 The object takes the form of:
118
119 { # A SecurityAction is rule that can be enforced at an environment level. The result is one of: - A denied API call - An explicitly allowed API call - A flagged API call (HTTP headers added before the target receives it) At least one condition is required to create a SecurityAction.
120 &quot;allow&quot;: { # Message that should be set in case of an Allow Action. This does not have any fields. # Allow a request through if it matches this SecurityAction.
121 },
122 &quot;apiProxies&quot;: [ # Optional. If unset, this would apply to all proxies in the environment. If set, this action is enforced only if at least one proxy in the repeated list is deployed at the time of enforcement. If set, several restrictions are enforced on SecurityActions. There can be at most 100 enabled actions with proxies set in an env. Several other restrictions apply on conditions and are detailed later.
123 &quot;A String&quot;,
124 ],
125 &quot;conditionConfig&quot;: { # The following are a list of conditions. A valid SecurityAction must contain at least one condition. Within a condition, each element is ORed. Across conditions elements are ANDed. For example if a SecurityAction has the following: ip_address_ranges: [&quot;ip1&quot;, &quot;ip2&quot;] and bot_reasons: [&quot;Flooder&quot;, &quot;Robot Abuser&quot;] then this is interpreted as: enforce the action if the incoming request has ((ip_address_ranges = &quot;ip1&quot; OR ip_address_ranges = &quot;ip2&quot;) AND (bot_reasons=&quot;Flooder&quot; OR bot_reasons=&quot;Robot Abuser&quot;)). Conditions other than ip_address_ranges and bot_reasons cannot be ANDed. # Required. A valid SecurityAction must contain at least one condition.
126 &quot;accessTokens&quot;: [ # Optional. A list of access_tokens. Limit 1000 per action.
127 &quot;A String&quot;,
128 ],
129 &quot;apiKeys&quot;: [ # Optional. A list of API keys. Limit 1000 per action.
130 &quot;A String&quot;,
131 ],
132 &quot;apiProducts&quot;: [ # Optional. A list of API Products. Limit 1000 per action.
133 &quot;A String&quot;,
134 ],
135 &quot;asns&quot;: [ # Optional. A list of ASN numbers to act on, e.g. 23. https://en.wikipedia.org/wiki/Autonomous_system_(Internet) This uses int64 instead of uint32 because of https://linter.aip.dev/141/forbidden-types.
136 &quot;A String&quot;,
137 ],
138 &quot;botReasons&quot;: [ # Optional. A list of Bot Reasons. Current options: Flooder, Brute Guessor, Static Content Scraper, OAuth Abuser, Robot Abuser, TorListRule, Advanced Anomaly Detection, Advanced API Scraper, Search Engine Crawlers, Public Clouds, Public Cloud AWS, Public Cloud Azure, and Public Cloud Google.
139 &quot;A String&quot;,
140 ],
141 &quot;developerApps&quot;: [ # Optional. A list of developer apps. Limit 1000 per action.
142 &quot;A String&quot;,
143 ],
144 &quot;developers&quot;: [ # Optional. A list of developers. Limit 1000 per action.
145 &quot;A String&quot;,
146 ],
147 &quot;httpMethods&quot;: [ # Optional. Act only on particular HTTP methods. E.g. A read-only API can block POST/PUT/DELETE methods. Accepted values are: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE and PATCH.
148 &quot;A String&quot;,
149 ],
150 &quot;ipAddressRanges&quot;: [ # Optional. A list of IP addresses. This could be either IPv4 or IPv6. Limited to 100 per action.
151 &quot;A String&quot;,
152 ],
153 &quot;regionCodes&quot;: [ # Optional. A list of countries/region codes to act on, e.g. US. This follows https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2.
154 &quot;A String&quot;,
155 ],
156 &quot;userAgents&quot;: [ # Optional. A list of user agents to deny. We look for exact matches. Limit 50 per action.
157 &quot;A String&quot;,
158 ],
159 },
160 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The create time for this SecurityAction.
161 &quot;deny&quot;: { # Message that should be set in case of a Deny Action. # Deny a request through if it matches this SecurityAction.
162 &quot;responseCode&quot;: 42, # Optional. The HTTP response code if the Action = DENY.
163 },
164 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional user provided description of the SecurityAction.
165 &quot;expireTime&quot;: &quot;A String&quot;, # The expiration for this SecurityAction.
166 &quot;flag&quot;: { # The message that should be set in the case of a Flag action. # Flag a request through if it matches this SecurityAction.
167 &quot;headers&quot;: [ # Optional. A list of HTTP headers to be sent to the target in case of a FLAG SecurityAction. Limit 5 headers per SecurityAction. At least one is mandatory.
168 { # An HTTP header.
169 &quot;name&quot;: &quot;A String&quot;, # The header name to be sent to the target.
170 &quot;value&quot;: &quot;A String&quot;, # The header value to be sent to the target.
171 },
172 ],
173 },
174 &quot;name&quot;: &quot;A String&quot;, # Immutable. This field is ignored during creation as per AIP-133. Please set the `security_action_id` field in the CreateSecurityActionRequest when creating a new SecurityAction. Format: organizations/{org}/environments/{env}/securityActions/{security_action}
175 &quot;state&quot;: &quot;A String&quot;, # Required. Only an ENABLED SecurityAction is enforced. An ENABLED SecurityAction past its expiration time will not be enforced.
176 &quot;ttl&quot;: &quot;A String&quot;, # Input only. The TTL for this SecurityAction.
177 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The update time for this SecurityAction. This reflects when this SecurityAction changed states.
178 }
179
180 securityActionId: string, Required. The ID to use for the SecurityAction, which will become the final component of the action&#x27;s resource name. This value should be 0-61 characters, and valid format is (^[a-z]([a-z0-9-]{​0,61}[a-z0-9])?$).
181 x__xgafv: string, V1 error format.
182 Allowed values
183 1 - v1 error format
184 2 - v2 error format
185
186 Returns:
187 An object of the form:
188
189 { # A SecurityAction is rule that can be enforced at an environment level. The result is one of: - A denied API call - An explicitly allowed API call - A flagged API call (HTTP headers added before the target receives it) At least one condition is required to create a SecurityAction.
190 &quot;allow&quot;: { # Message that should be set in case of an Allow Action. This does not have any fields. # Allow a request through if it matches this SecurityAction.
191 },
192 &quot;apiProxies&quot;: [ # Optional. If unset, this would apply to all proxies in the environment. If set, this action is enforced only if at least one proxy in the repeated list is deployed at the time of enforcement. If set, several restrictions are enforced on SecurityActions. There can be at most 100 enabled actions with proxies set in an env. Several other restrictions apply on conditions and are detailed later.
193 &quot;A String&quot;,
194 ],
195 &quot;conditionConfig&quot;: { # The following are a list of conditions. A valid SecurityAction must contain at least one condition. Within a condition, each element is ORed. Across conditions elements are ANDed. For example if a SecurityAction has the following: ip_address_ranges: [&quot;ip1&quot;, &quot;ip2&quot;] and bot_reasons: [&quot;Flooder&quot;, &quot;Robot Abuser&quot;] then this is interpreted as: enforce the action if the incoming request has ((ip_address_ranges = &quot;ip1&quot; OR ip_address_ranges = &quot;ip2&quot;) AND (bot_reasons=&quot;Flooder&quot; OR bot_reasons=&quot;Robot Abuser&quot;)). Conditions other than ip_address_ranges and bot_reasons cannot be ANDed. # Required. A valid SecurityAction must contain at least one condition.
196 &quot;accessTokens&quot;: [ # Optional. A list of access_tokens. Limit 1000 per action.
197 &quot;A String&quot;,
198 ],
199 &quot;apiKeys&quot;: [ # Optional. A list of API keys. Limit 1000 per action.
200 &quot;A String&quot;,
201 ],
202 &quot;apiProducts&quot;: [ # Optional. A list of API Products. Limit 1000 per action.
203 &quot;A String&quot;,
204 ],
205 &quot;asns&quot;: [ # Optional. A list of ASN numbers to act on, e.g. 23. https://en.wikipedia.org/wiki/Autonomous_system_(Internet) This uses int64 instead of uint32 because of https://linter.aip.dev/141/forbidden-types.
206 &quot;A String&quot;,
207 ],
208 &quot;botReasons&quot;: [ # Optional. A list of Bot Reasons. Current options: Flooder, Brute Guessor, Static Content Scraper, OAuth Abuser, Robot Abuser, TorListRule, Advanced Anomaly Detection, Advanced API Scraper, Search Engine Crawlers, Public Clouds, Public Cloud AWS, Public Cloud Azure, and Public Cloud Google.
209 &quot;A String&quot;,
210 ],
211 &quot;developerApps&quot;: [ # Optional. A list of developer apps. Limit 1000 per action.
212 &quot;A String&quot;,
213 ],
214 &quot;developers&quot;: [ # Optional. A list of developers. Limit 1000 per action.
215 &quot;A String&quot;,
216 ],
217 &quot;httpMethods&quot;: [ # Optional. Act only on particular HTTP methods. E.g. A read-only API can block POST/PUT/DELETE methods. Accepted values are: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE and PATCH.
218 &quot;A String&quot;,
219 ],
220 &quot;ipAddressRanges&quot;: [ # Optional. A list of IP addresses. This could be either IPv4 or IPv6. Limited to 100 per action.
221 &quot;A String&quot;,
222 ],
223 &quot;regionCodes&quot;: [ # Optional. A list of countries/region codes to act on, e.g. US. This follows https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2.
224 &quot;A String&quot;,
225 ],
226 &quot;userAgents&quot;: [ # Optional. A list of user agents to deny. We look for exact matches. Limit 50 per action.
227 &quot;A String&quot;,
228 ],
229 },
230 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The create time for this SecurityAction.
231 &quot;deny&quot;: { # Message that should be set in case of a Deny Action. # Deny a request through if it matches this SecurityAction.
232 &quot;responseCode&quot;: 42, # Optional. The HTTP response code if the Action = DENY.
233 },
234 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional user provided description of the SecurityAction.
235 &quot;expireTime&quot;: &quot;A String&quot;, # The expiration for this SecurityAction.
236 &quot;flag&quot;: { # The message that should be set in the case of a Flag action. # Flag a request through if it matches this SecurityAction.
237 &quot;headers&quot;: [ # Optional. A list of HTTP headers to be sent to the target in case of a FLAG SecurityAction. Limit 5 headers per SecurityAction. At least one is mandatory.
238 { # An HTTP header.
239 &quot;name&quot;: &quot;A String&quot;, # The header name to be sent to the target.
240 &quot;value&quot;: &quot;A String&quot;, # The header value to be sent to the target.
241 },
242 ],
243 },
244 &quot;name&quot;: &quot;A String&quot;, # Immutable. This field is ignored during creation as per AIP-133. Please set the `security_action_id` field in the CreateSecurityActionRequest when creating a new SecurityAction. Format: organizations/{org}/environments/{env}/securityActions/{security_action}
245 &quot;state&quot;: &quot;A String&quot;, # Required. Only an ENABLED SecurityAction is enforced. An ENABLED SecurityAction past its expiration time will not be enforced.
246 &quot;ttl&quot;: &quot;A String&quot;, # Input only. The TTL for this SecurityAction.
247 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The update time for this SecurityAction. This reflects when this SecurityAction changed states.
248 }</pre>
249 </div>
250
251 <div class="method">
252 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
253 <pre>Delete a SecurityAction.
254
255 Args:
256 name: string, Required. The name of the security action to delete. Format: `organizations/{org}/environment/{env}/securityActions/{security_action}` (required)
257 x__xgafv: string, V1 error format.
258 Allowed values
259 1 - v1 error format
260 2 - v2 error format
261
262 Returns:
263 An object of the form:
264
265 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
266 }</pre>
267 </div>
268
269 <div class="method">
270 <code class="details" id="disable">disable(name, body=None, x__xgafv=None)</code>
271 <pre>Disable a SecurityAction. The `state` of the SecurityAction after disabling is `DISABLED`. `DisableSecurityAction` can be called on SecurityActions in the state `ENABLED`; SecurityActions in a different state (including `DISABLED`) return an error.
272
273 Args:
274 name: string, Required. The name of the SecurityAction to disable. Format: organizations/{org}/environments/{env}/securityActions/{security_action} (required)
275 body: object, The request body.
276 The object takes the form of:
277
278 { # Message to disable an enabled SecurityAction.
279 }
280
281 x__xgafv: string, V1 error format.
282 Allowed values
283 1 - v1 error format
284 2 - v2 error format
285
286 Returns:
287 An object of the form:
288
289 { # A SecurityAction is rule that can be enforced at an environment level. The result is one of: - A denied API call - An explicitly allowed API call - A flagged API call (HTTP headers added before the target receives it) At least one condition is required to create a SecurityAction.
290 &quot;allow&quot;: { # Message that should be set in case of an Allow Action. This does not have any fields. # Allow a request through if it matches this SecurityAction.
291 },
292 &quot;apiProxies&quot;: [ # Optional. If unset, this would apply to all proxies in the environment. If set, this action is enforced only if at least one proxy in the repeated list is deployed at the time of enforcement. If set, several restrictions are enforced on SecurityActions. There can be at most 100 enabled actions with proxies set in an env. Several other restrictions apply on conditions and are detailed later.
293 &quot;A String&quot;,
294 ],
295 &quot;conditionConfig&quot;: { # The following are a list of conditions. A valid SecurityAction must contain at least one condition. Within a condition, each element is ORed. Across conditions elements are ANDed. For example if a SecurityAction has the following: ip_address_ranges: [&quot;ip1&quot;, &quot;ip2&quot;] and bot_reasons: [&quot;Flooder&quot;, &quot;Robot Abuser&quot;] then this is interpreted as: enforce the action if the incoming request has ((ip_address_ranges = &quot;ip1&quot; OR ip_address_ranges = &quot;ip2&quot;) AND (bot_reasons=&quot;Flooder&quot; OR bot_reasons=&quot;Robot Abuser&quot;)). Conditions other than ip_address_ranges and bot_reasons cannot be ANDed. # Required. A valid SecurityAction must contain at least one condition.
296 &quot;accessTokens&quot;: [ # Optional. A list of access_tokens. Limit 1000 per action.
297 &quot;A String&quot;,
298 ],
299 &quot;apiKeys&quot;: [ # Optional. A list of API keys. Limit 1000 per action.
300 &quot;A String&quot;,
301 ],
302 &quot;apiProducts&quot;: [ # Optional. A list of API Products. Limit 1000 per action.
303 &quot;A String&quot;,
304 ],
305 &quot;asns&quot;: [ # Optional. A list of ASN numbers to act on, e.g. 23. https://en.wikipedia.org/wiki/Autonomous_system_(Internet) This uses int64 instead of uint32 because of https://linter.aip.dev/141/forbidden-types.
306 &quot;A String&quot;,
307 ],
308 &quot;botReasons&quot;: [ # Optional. A list of Bot Reasons. Current options: Flooder, Brute Guessor, Static Content Scraper, OAuth Abuser, Robot Abuser, TorListRule, Advanced Anomaly Detection, Advanced API Scraper, Search Engine Crawlers, Public Clouds, Public Cloud AWS, Public Cloud Azure, and Public Cloud Google.
309 &quot;A String&quot;,
310 ],
311 &quot;developerApps&quot;: [ # Optional. A list of developer apps. Limit 1000 per action.
312 &quot;A String&quot;,
313 ],
314 &quot;developers&quot;: [ # Optional. A list of developers. Limit 1000 per action.
315 &quot;A String&quot;,
316 ],
317 &quot;httpMethods&quot;: [ # Optional. Act only on particular HTTP methods. E.g. A read-only API can block POST/PUT/DELETE methods. Accepted values are: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE and PATCH.
318 &quot;A String&quot;,
319 ],
320 &quot;ipAddressRanges&quot;: [ # Optional. A list of IP addresses. This could be either IPv4 or IPv6. Limited to 100 per action.
321 &quot;A String&quot;,
322 ],
323 &quot;regionCodes&quot;: [ # Optional. A list of countries/region codes to act on, e.g. US. This follows https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2.
324 &quot;A String&quot;,
325 ],
326 &quot;userAgents&quot;: [ # Optional. A list of user agents to deny. We look for exact matches. Limit 50 per action.
327 &quot;A String&quot;,
328 ],
329 },
330 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The create time for this SecurityAction.
331 &quot;deny&quot;: { # Message that should be set in case of a Deny Action. # Deny a request through if it matches this SecurityAction.
332 &quot;responseCode&quot;: 42, # Optional. The HTTP response code if the Action = DENY.
333 },
334 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional user provided description of the SecurityAction.
335 &quot;expireTime&quot;: &quot;A String&quot;, # The expiration for this SecurityAction.
336 &quot;flag&quot;: { # The message that should be set in the case of a Flag action. # Flag a request through if it matches this SecurityAction.
337 &quot;headers&quot;: [ # Optional. A list of HTTP headers to be sent to the target in case of a FLAG SecurityAction. Limit 5 headers per SecurityAction. At least one is mandatory.
338 { # An HTTP header.
339 &quot;name&quot;: &quot;A String&quot;, # The header name to be sent to the target.
340 &quot;value&quot;: &quot;A String&quot;, # The header value to be sent to the target.
341 },
342 ],
343 },
344 &quot;name&quot;: &quot;A String&quot;, # Immutable. This field is ignored during creation as per AIP-133. Please set the `security_action_id` field in the CreateSecurityActionRequest when creating a new SecurityAction. Format: organizations/{org}/environments/{env}/securityActions/{security_action}
345 &quot;state&quot;: &quot;A String&quot;, # Required. Only an ENABLED SecurityAction is enforced. An ENABLED SecurityAction past its expiration time will not be enforced.
346 &quot;ttl&quot;: &quot;A String&quot;, # Input only. The TTL for this SecurityAction.
347 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The update time for this SecurityAction. This reflects when this SecurityAction changed states.
348 }</pre>
349 </div>
350
351 <div class="method">
352 <code class="details" id="enable">enable(name, body=None, x__xgafv=None)</code>
353 <pre>Enable a SecurityAction. The `state` of the SecurityAction after enabling is `ENABLED`. `EnableSecurityAction` can be called on SecurityActions in the state `DISABLED`; SecurityActions in a different state (including `ENABLED) return an error.
354
355 Args:
356 name: string, Required. The name of the SecurityAction to enable. Format: organizations/{org}/environments/{env}/securityActions/{security_action} (required)
357 body: object, The request body.
358 The object takes the form of:
359
360 { # Message to enable a disabled SecurityAction.
361 }
362
363 x__xgafv: string, V1 error format.
364 Allowed values
365 1 - v1 error format
366 2 - v2 error format
367
368 Returns:
369 An object of the form:
370
371 { # A SecurityAction is rule that can be enforced at an environment level. The result is one of: - A denied API call - An explicitly allowed API call - A flagged API call (HTTP headers added before the target receives it) At least one condition is required to create a SecurityAction.
372 &quot;allow&quot;: { # Message that should be set in case of an Allow Action. This does not have any fields. # Allow a request through if it matches this SecurityAction.
373 },
374 &quot;apiProxies&quot;: [ # Optional. If unset, this would apply to all proxies in the environment. If set, this action is enforced only if at least one proxy in the repeated list is deployed at the time of enforcement. If set, several restrictions are enforced on SecurityActions. There can be at most 100 enabled actions with proxies set in an env. Several other restrictions apply on conditions and are detailed later.
375 &quot;A String&quot;,
376 ],
377 &quot;conditionConfig&quot;: { # The following are a list of conditions. A valid SecurityAction must contain at least one condition. Within a condition, each element is ORed. Across conditions elements are ANDed. For example if a SecurityAction has the following: ip_address_ranges: [&quot;ip1&quot;, &quot;ip2&quot;] and bot_reasons: [&quot;Flooder&quot;, &quot;Robot Abuser&quot;] then this is interpreted as: enforce the action if the incoming request has ((ip_address_ranges = &quot;ip1&quot; OR ip_address_ranges = &quot;ip2&quot;) AND (bot_reasons=&quot;Flooder&quot; OR bot_reasons=&quot;Robot Abuser&quot;)). Conditions other than ip_address_ranges and bot_reasons cannot be ANDed. # Required. A valid SecurityAction must contain at least one condition.
378 &quot;accessTokens&quot;: [ # Optional. A list of access_tokens. Limit 1000 per action.
379 &quot;A String&quot;,
380 ],
381 &quot;apiKeys&quot;: [ # Optional. A list of API keys. Limit 1000 per action.
382 &quot;A String&quot;,
383 ],
384 &quot;apiProducts&quot;: [ # Optional. A list of API Products. Limit 1000 per action.
385 &quot;A String&quot;,
386 ],
387 &quot;asns&quot;: [ # Optional. A list of ASN numbers to act on, e.g. 23. https://en.wikipedia.org/wiki/Autonomous_system_(Internet) This uses int64 instead of uint32 because of https://linter.aip.dev/141/forbidden-types.
388 &quot;A String&quot;,
389 ],
390 &quot;botReasons&quot;: [ # Optional. A list of Bot Reasons. Current options: Flooder, Brute Guessor, Static Content Scraper, OAuth Abuser, Robot Abuser, TorListRule, Advanced Anomaly Detection, Advanced API Scraper, Search Engine Crawlers, Public Clouds, Public Cloud AWS, Public Cloud Azure, and Public Cloud Google.
391 &quot;A String&quot;,
392 ],
393 &quot;developerApps&quot;: [ # Optional. A list of developer apps. Limit 1000 per action.
394 &quot;A String&quot;,
395 ],
396 &quot;developers&quot;: [ # Optional. A list of developers. Limit 1000 per action.
397 &quot;A String&quot;,
398 ],
399 &quot;httpMethods&quot;: [ # Optional. Act only on particular HTTP methods. E.g. A read-only API can block POST/PUT/DELETE methods. Accepted values are: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE and PATCH.
400 &quot;A String&quot;,
401 ],
402 &quot;ipAddressRanges&quot;: [ # Optional. A list of IP addresses. This could be either IPv4 or IPv6. Limited to 100 per action.
403 &quot;A String&quot;,
404 ],
405 &quot;regionCodes&quot;: [ # Optional. A list of countries/region codes to act on, e.g. US. This follows https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2.
406 &quot;A String&quot;,
407 ],
408 &quot;userAgents&quot;: [ # Optional. A list of user agents to deny. We look for exact matches. Limit 50 per action.
409 &quot;A String&quot;,
410 ],
411 },
412 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The create time for this SecurityAction.
413 &quot;deny&quot;: { # Message that should be set in case of a Deny Action. # Deny a request through if it matches this SecurityAction.
414 &quot;responseCode&quot;: 42, # Optional. The HTTP response code if the Action = DENY.
415 },
416 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional user provided description of the SecurityAction.
417 &quot;expireTime&quot;: &quot;A String&quot;, # The expiration for this SecurityAction.
418 &quot;flag&quot;: { # The message that should be set in the case of a Flag action. # Flag a request through if it matches this SecurityAction.
419 &quot;headers&quot;: [ # Optional. A list of HTTP headers to be sent to the target in case of a FLAG SecurityAction. Limit 5 headers per SecurityAction. At least one is mandatory.
420 { # An HTTP header.
421 &quot;name&quot;: &quot;A String&quot;, # The header name to be sent to the target.
422 &quot;value&quot;: &quot;A String&quot;, # The header value to be sent to the target.
423 },
424 ],
425 },
426 &quot;name&quot;: &quot;A String&quot;, # Immutable. This field is ignored during creation as per AIP-133. Please set the `security_action_id` field in the CreateSecurityActionRequest when creating a new SecurityAction. Format: organizations/{org}/environments/{env}/securityActions/{security_action}
427 &quot;state&quot;: &quot;A String&quot;, # Required. Only an ENABLED SecurityAction is enforced. An ENABLED SecurityAction past its expiration time will not be enforced.
428 &quot;ttl&quot;: &quot;A String&quot;, # Input only. The TTL for this SecurityAction.
429 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The update time for this SecurityAction. This reflects when this SecurityAction changed states.
430 }</pre>
431 </div>
432
433 <div class="method">
434 <code class="details" id="get">get(name, x__xgafv=None)</code>
435 <pre>Get a SecurityAction by name.
436
437 Args:
438 name: string, Required. The fully qualified name of the SecurityAction to retrieve. Format: organizations/{org}/environments/{env}/securityActions/{security_action} (required)
439 x__xgafv: string, V1 error format.
440 Allowed values
441 1 - v1 error format
442 2 - v2 error format
443
444 Returns:
445 An object of the form:
446
447 { # A SecurityAction is rule that can be enforced at an environment level. The result is one of: - A denied API call - An explicitly allowed API call - A flagged API call (HTTP headers added before the target receives it) At least one condition is required to create a SecurityAction.
448 &quot;allow&quot;: { # Message that should be set in case of an Allow Action. This does not have any fields. # Allow a request through if it matches this SecurityAction.
449 },
450 &quot;apiProxies&quot;: [ # Optional. If unset, this would apply to all proxies in the environment. If set, this action is enforced only if at least one proxy in the repeated list is deployed at the time of enforcement. If set, several restrictions are enforced on SecurityActions. There can be at most 100 enabled actions with proxies set in an env. Several other restrictions apply on conditions and are detailed later.
451 &quot;A String&quot;,
452 ],
453 &quot;conditionConfig&quot;: { # The following are a list of conditions. A valid SecurityAction must contain at least one condition. Within a condition, each element is ORed. Across conditions elements are ANDed. For example if a SecurityAction has the following: ip_address_ranges: [&quot;ip1&quot;, &quot;ip2&quot;] and bot_reasons: [&quot;Flooder&quot;, &quot;Robot Abuser&quot;] then this is interpreted as: enforce the action if the incoming request has ((ip_address_ranges = &quot;ip1&quot; OR ip_address_ranges = &quot;ip2&quot;) AND (bot_reasons=&quot;Flooder&quot; OR bot_reasons=&quot;Robot Abuser&quot;)). Conditions other than ip_address_ranges and bot_reasons cannot be ANDed. # Required. A valid SecurityAction must contain at least one condition.
454 &quot;accessTokens&quot;: [ # Optional. A list of access_tokens. Limit 1000 per action.
455 &quot;A String&quot;,
456 ],
457 &quot;apiKeys&quot;: [ # Optional. A list of API keys. Limit 1000 per action.
458 &quot;A String&quot;,
459 ],
460 &quot;apiProducts&quot;: [ # Optional. A list of API Products. Limit 1000 per action.
461 &quot;A String&quot;,
462 ],
463 &quot;asns&quot;: [ # Optional. A list of ASN numbers to act on, e.g. 23. https://en.wikipedia.org/wiki/Autonomous_system_(Internet) This uses int64 instead of uint32 because of https://linter.aip.dev/141/forbidden-types.
464 &quot;A String&quot;,
465 ],
466 &quot;botReasons&quot;: [ # Optional. A list of Bot Reasons. Current options: Flooder, Brute Guessor, Static Content Scraper, OAuth Abuser, Robot Abuser, TorListRule, Advanced Anomaly Detection, Advanced API Scraper, Search Engine Crawlers, Public Clouds, Public Cloud AWS, Public Cloud Azure, and Public Cloud Google.
467 &quot;A String&quot;,
468 ],
469 &quot;developerApps&quot;: [ # Optional. A list of developer apps. Limit 1000 per action.
470 &quot;A String&quot;,
471 ],
472 &quot;developers&quot;: [ # Optional. A list of developers. Limit 1000 per action.
473 &quot;A String&quot;,
474 ],
475 &quot;httpMethods&quot;: [ # Optional. Act only on particular HTTP methods. E.g. A read-only API can block POST/PUT/DELETE methods. Accepted values are: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE and PATCH.
476 &quot;A String&quot;,
477 ],
478 &quot;ipAddressRanges&quot;: [ # Optional. A list of IP addresses. This could be either IPv4 or IPv6. Limited to 100 per action.
479 &quot;A String&quot;,
480 ],
481 &quot;regionCodes&quot;: [ # Optional. A list of countries/region codes to act on, e.g. US. This follows https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2.
482 &quot;A String&quot;,
483 ],
484 &quot;userAgents&quot;: [ # Optional. A list of user agents to deny. We look for exact matches. Limit 50 per action.
485 &quot;A String&quot;,
486 ],
487 },
488 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The create time for this SecurityAction.
489 &quot;deny&quot;: { # Message that should be set in case of a Deny Action. # Deny a request through if it matches this SecurityAction.
490 &quot;responseCode&quot;: 42, # Optional. The HTTP response code if the Action = DENY.
491 },
492 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional user provided description of the SecurityAction.
493 &quot;expireTime&quot;: &quot;A String&quot;, # The expiration for this SecurityAction.
494 &quot;flag&quot;: { # The message that should be set in the case of a Flag action. # Flag a request through if it matches this SecurityAction.
495 &quot;headers&quot;: [ # Optional. A list of HTTP headers to be sent to the target in case of a FLAG SecurityAction. Limit 5 headers per SecurityAction. At least one is mandatory.
496 { # An HTTP header.
497 &quot;name&quot;: &quot;A String&quot;, # The header name to be sent to the target.
498 &quot;value&quot;: &quot;A String&quot;, # The header value to be sent to the target.
499 },
500 ],
501 },
502 &quot;name&quot;: &quot;A String&quot;, # Immutable. This field is ignored during creation as per AIP-133. Please set the `security_action_id` field in the CreateSecurityActionRequest when creating a new SecurityAction. Format: organizations/{org}/environments/{env}/securityActions/{security_action}
503 &quot;state&quot;: &quot;A String&quot;, # Required. Only an ENABLED SecurityAction is enforced. An ENABLED SecurityAction past its expiration time will not be enforced.
504 &quot;ttl&quot;: &quot;A String&quot;, # Input only. The TTL for this SecurityAction.
505 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The update time for this SecurityAction. This reflects when this SecurityAction changed states.
506 }</pre>
507 </div>
508
509 <div class="method">
510 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
511 <pre>Returns a list of SecurityActions. This returns both enabled and disabled actions.
512
513 Args:
514 parent: string, Required. The parent, which owns this collection of SecurityActions. Format: organizations/{org}/environments/{env} (required)
515 filter: string, The filter expression to filter List results. https://google.aip.dev/160. Allows for filtering over: state and api_proxies. E.g.: state = ACTIVE AND apiProxies:foo. Filtering by action is not supported https://github.com/aip-dev/google.aip.dev/issues/624
516 pageSize: integer, The maximum number of SecurityActions to return. If unspecified, at most 50 SecurityActions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
517 pageToken: string, A page token, received from a previous `ListSecurityActions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSecurityActions` must match the call that provided the page token.
518 x__xgafv: string, V1 error format.
519 Allowed values
520 1 - v1 error format
521 2 - v2 error format
522
523 Returns:
524 An object of the form:
525
526 { # Contains a list of SecurityActions in response to a ListSecurityActionRequest.
527 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
528 &quot;securityActions&quot;: [ # The SecurityActions for the specified environment.
529 { # A SecurityAction is rule that can be enforced at an environment level. The result is one of: - A denied API call - An explicitly allowed API call - A flagged API call (HTTP headers added before the target receives it) At least one condition is required to create a SecurityAction.
530 &quot;allow&quot;: { # Message that should be set in case of an Allow Action. This does not have any fields. # Allow a request through if it matches this SecurityAction.
531 },
532 &quot;apiProxies&quot;: [ # Optional. If unset, this would apply to all proxies in the environment. If set, this action is enforced only if at least one proxy in the repeated list is deployed at the time of enforcement. If set, several restrictions are enforced on SecurityActions. There can be at most 100 enabled actions with proxies set in an env. Several other restrictions apply on conditions and are detailed later.
533 &quot;A String&quot;,
534 ],
535 &quot;conditionConfig&quot;: { # The following are a list of conditions. A valid SecurityAction must contain at least one condition. Within a condition, each element is ORed. Across conditions elements are ANDed. For example if a SecurityAction has the following: ip_address_ranges: [&quot;ip1&quot;, &quot;ip2&quot;] and bot_reasons: [&quot;Flooder&quot;, &quot;Robot Abuser&quot;] then this is interpreted as: enforce the action if the incoming request has ((ip_address_ranges = &quot;ip1&quot; OR ip_address_ranges = &quot;ip2&quot;) AND (bot_reasons=&quot;Flooder&quot; OR bot_reasons=&quot;Robot Abuser&quot;)). Conditions other than ip_address_ranges and bot_reasons cannot be ANDed. # Required. A valid SecurityAction must contain at least one condition.
536 &quot;accessTokens&quot;: [ # Optional. A list of access_tokens. Limit 1000 per action.
537 &quot;A String&quot;,
538 ],
539 &quot;apiKeys&quot;: [ # Optional. A list of API keys. Limit 1000 per action.
540 &quot;A String&quot;,
541 ],
542 &quot;apiProducts&quot;: [ # Optional. A list of API Products. Limit 1000 per action.
543 &quot;A String&quot;,
544 ],
545 &quot;asns&quot;: [ # Optional. A list of ASN numbers to act on, e.g. 23. https://en.wikipedia.org/wiki/Autonomous_system_(Internet) This uses int64 instead of uint32 because of https://linter.aip.dev/141/forbidden-types.
546 &quot;A String&quot;,
547 ],
548 &quot;botReasons&quot;: [ # Optional. A list of Bot Reasons. Current options: Flooder, Brute Guessor, Static Content Scraper, OAuth Abuser, Robot Abuser, TorListRule, Advanced Anomaly Detection, Advanced API Scraper, Search Engine Crawlers, Public Clouds, Public Cloud AWS, Public Cloud Azure, and Public Cloud Google.
549 &quot;A String&quot;,
550 ],
551 &quot;developerApps&quot;: [ # Optional. A list of developer apps. Limit 1000 per action.
552 &quot;A String&quot;,
553 ],
554 &quot;developers&quot;: [ # Optional. A list of developers. Limit 1000 per action.
555 &quot;A String&quot;,
556 ],
557 &quot;httpMethods&quot;: [ # Optional. Act only on particular HTTP methods. E.g. A read-only API can block POST/PUT/DELETE methods. Accepted values are: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE and PATCH.
558 &quot;A String&quot;,
559 ],
560 &quot;ipAddressRanges&quot;: [ # Optional. A list of IP addresses. This could be either IPv4 or IPv6. Limited to 100 per action.
561 &quot;A String&quot;,
562 ],
563 &quot;regionCodes&quot;: [ # Optional. A list of countries/region codes to act on, e.g. US. This follows https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2.
564 &quot;A String&quot;,
565 ],
566 &quot;userAgents&quot;: [ # Optional. A list of user agents to deny. We look for exact matches. Limit 50 per action.
567 &quot;A String&quot;,
568 ],
569 },
570 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The create time for this SecurityAction.
571 &quot;deny&quot;: { # Message that should be set in case of a Deny Action. # Deny a request through if it matches this SecurityAction.
572 &quot;responseCode&quot;: 42, # Optional. The HTTP response code if the Action = DENY.
573 },
574 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional user provided description of the SecurityAction.
575 &quot;expireTime&quot;: &quot;A String&quot;, # The expiration for this SecurityAction.
576 &quot;flag&quot;: { # The message that should be set in the case of a Flag action. # Flag a request through if it matches this SecurityAction.
577 &quot;headers&quot;: [ # Optional. A list of HTTP headers to be sent to the target in case of a FLAG SecurityAction. Limit 5 headers per SecurityAction. At least one is mandatory.
578 { # An HTTP header.
579 &quot;name&quot;: &quot;A String&quot;, # The header name to be sent to the target.
580 &quot;value&quot;: &quot;A String&quot;, # The header value to be sent to the target.
581 },
582 ],
583 },
584 &quot;name&quot;: &quot;A String&quot;, # Immutable. This field is ignored during creation as per AIP-133. Please set the `security_action_id` field in the CreateSecurityActionRequest when creating a new SecurityAction. Format: organizations/{org}/environments/{env}/securityActions/{security_action}
585 &quot;state&quot;: &quot;A String&quot;, # Required. Only an ENABLED SecurityAction is enforced. An ENABLED SecurityAction past its expiration time will not be enforced.
586 &quot;ttl&quot;: &quot;A String&quot;, # Input only. The TTL for this SecurityAction.
587 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The update time for this SecurityAction. This reflects when this SecurityAction changed states.
588 },
589 ],
590 }</pre>
591 </div>
592
593 <div class="method">
594 <code class="details" id="list_next">list_next()</code>
595 <pre>Retrieves the next page of results.
596
597 Args:
598 previous_request: The request for the previous page. (required)
599 previous_response: The response from the request for the previous page. (required)
600
601 Returns:
602 A request object that you can call &#x27;execute()&#x27; on to request the next
603 page. Returns None if there are no more items in the collection.
604 </pre>
605 </div>
606
607 <div class="method">
608 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
609 <pre>Update a SecurityAction.
610
611 Args:
612 name: string, Immutable. This field is ignored during creation as per AIP-133. Please set the `security_action_id` field in the CreateSecurityActionRequest when creating a new SecurityAction. Format: organizations/{org}/environments/{env}/securityActions/{security_action} (required)
613 body: object, The request body.
614 The object takes the form of:
615
616 { # A SecurityAction is rule that can be enforced at an environment level. The result is one of: - A denied API call - An explicitly allowed API call - A flagged API call (HTTP headers added before the target receives it) At least one condition is required to create a SecurityAction.
617 &quot;allow&quot;: { # Message that should be set in case of an Allow Action. This does not have any fields. # Allow a request through if it matches this SecurityAction.
618 },
619 &quot;apiProxies&quot;: [ # Optional. If unset, this would apply to all proxies in the environment. If set, this action is enforced only if at least one proxy in the repeated list is deployed at the time of enforcement. If set, several restrictions are enforced on SecurityActions. There can be at most 100 enabled actions with proxies set in an env. Several other restrictions apply on conditions and are detailed later.
620 &quot;A String&quot;,
621 ],
622 &quot;conditionConfig&quot;: { # The following are a list of conditions. A valid SecurityAction must contain at least one condition. Within a condition, each element is ORed. Across conditions elements are ANDed. For example if a SecurityAction has the following: ip_address_ranges: [&quot;ip1&quot;, &quot;ip2&quot;] and bot_reasons: [&quot;Flooder&quot;, &quot;Robot Abuser&quot;] then this is interpreted as: enforce the action if the incoming request has ((ip_address_ranges = &quot;ip1&quot; OR ip_address_ranges = &quot;ip2&quot;) AND (bot_reasons=&quot;Flooder&quot; OR bot_reasons=&quot;Robot Abuser&quot;)). Conditions other than ip_address_ranges and bot_reasons cannot be ANDed. # Required. A valid SecurityAction must contain at least one condition.
623 &quot;accessTokens&quot;: [ # Optional. A list of access_tokens. Limit 1000 per action.
624 &quot;A String&quot;,
625 ],
626 &quot;apiKeys&quot;: [ # Optional. A list of API keys. Limit 1000 per action.
627 &quot;A String&quot;,
628 ],
629 &quot;apiProducts&quot;: [ # Optional. A list of API Products. Limit 1000 per action.
630 &quot;A String&quot;,
631 ],
632 &quot;asns&quot;: [ # Optional. A list of ASN numbers to act on, e.g. 23. https://en.wikipedia.org/wiki/Autonomous_system_(Internet) This uses int64 instead of uint32 because of https://linter.aip.dev/141/forbidden-types.
633 &quot;A String&quot;,
634 ],
635 &quot;botReasons&quot;: [ # Optional. A list of Bot Reasons. Current options: Flooder, Brute Guessor, Static Content Scraper, OAuth Abuser, Robot Abuser, TorListRule, Advanced Anomaly Detection, Advanced API Scraper, Search Engine Crawlers, Public Clouds, Public Cloud AWS, Public Cloud Azure, and Public Cloud Google.
636 &quot;A String&quot;,
637 ],
638 &quot;developerApps&quot;: [ # Optional. A list of developer apps. Limit 1000 per action.
639 &quot;A String&quot;,
640 ],
641 &quot;developers&quot;: [ # Optional. A list of developers. Limit 1000 per action.
642 &quot;A String&quot;,
643 ],
644 &quot;httpMethods&quot;: [ # Optional. Act only on particular HTTP methods. E.g. A read-only API can block POST/PUT/DELETE methods. Accepted values are: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE and PATCH.
645 &quot;A String&quot;,
646 ],
647 &quot;ipAddressRanges&quot;: [ # Optional. A list of IP addresses. This could be either IPv4 or IPv6. Limited to 100 per action.
648 &quot;A String&quot;,
649 ],
650 &quot;regionCodes&quot;: [ # Optional. A list of countries/region codes to act on, e.g. US. This follows https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2.
651 &quot;A String&quot;,
652 ],
653 &quot;userAgents&quot;: [ # Optional. A list of user agents to deny. We look for exact matches. Limit 50 per action.
654 &quot;A String&quot;,
655 ],
656 },
657 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The create time for this SecurityAction.
658 &quot;deny&quot;: { # Message that should be set in case of a Deny Action. # Deny a request through if it matches this SecurityAction.
659 &quot;responseCode&quot;: 42, # Optional. The HTTP response code if the Action = DENY.
660 },
661 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional user provided description of the SecurityAction.
662 &quot;expireTime&quot;: &quot;A String&quot;, # The expiration for this SecurityAction.
663 &quot;flag&quot;: { # The message that should be set in the case of a Flag action. # Flag a request through if it matches this SecurityAction.
664 &quot;headers&quot;: [ # Optional. A list of HTTP headers to be sent to the target in case of a FLAG SecurityAction. Limit 5 headers per SecurityAction. At least one is mandatory.
665 { # An HTTP header.
666 &quot;name&quot;: &quot;A String&quot;, # The header name to be sent to the target.
667 &quot;value&quot;: &quot;A String&quot;, # The header value to be sent to the target.
668 },
669 ],
670 },
671 &quot;name&quot;: &quot;A String&quot;, # Immutable. This field is ignored during creation as per AIP-133. Please set the `security_action_id` field in the CreateSecurityActionRequest when creating a new SecurityAction. Format: organizations/{org}/environments/{env}/securityActions/{security_action}
672 &quot;state&quot;: &quot;A String&quot;, # Required. Only an ENABLED SecurityAction is enforced. An ENABLED SecurityAction past its expiration time will not be enforced.
673 &quot;ttl&quot;: &quot;A String&quot;, # Input only. The TTL for this SecurityAction.
674 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The update time for this SecurityAction. This reflects when this SecurityAction changed states.
675 }
676
677 updateMask: string, Optional. The list of fields to update. Valid fields to update are `description`, `state`, `allow`, `deny`, and `flag`, `expire_time`, and `ttl`, `api_proxies`, and `condition_config`.
678 x__xgafv: string, V1 error format.
679 Allowed values
680 1 - v1 error format
681 2 - v2 error format
682
683 Returns:
684 An object of the form:
685
686 { # A SecurityAction is rule that can be enforced at an environment level. The result is one of: - A denied API call - An explicitly allowed API call - A flagged API call (HTTP headers added before the target receives it) At least one condition is required to create a SecurityAction.
687 &quot;allow&quot;: { # Message that should be set in case of an Allow Action. This does not have any fields. # Allow a request through if it matches this SecurityAction.
688 },
689 &quot;apiProxies&quot;: [ # Optional. If unset, this would apply to all proxies in the environment. If set, this action is enforced only if at least one proxy in the repeated list is deployed at the time of enforcement. If set, several restrictions are enforced on SecurityActions. There can be at most 100 enabled actions with proxies set in an env. Several other restrictions apply on conditions and are detailed later.
690 &quot;A String&quot;,
691 ],
692 &quot;conditionConfig&quot;: { # The following are a list of conditions. A valid SecurityAction must contain at least one condition. Within a condition, each element is ORed. Across conditions elements are ANDed. For example if a SecurityAction has the following: ip_address_ranges: [&quot;ip1&quot;, &quot;ip2&quot;] and bot_reasons: [&quot;Flooder&quot;, &quot;Robot Abuser&quot;] then this is interpreted as: enforce the action if the incoming request has ((ip_address_ranges = &quot;ip1&quot; OR ip_address_ranges = &quot;ip2&quot;) AND (bot_reasons=&quot;Flooder&quot; OR bot_reasons=&quot;Robot Abuser&quot;)). Conditions other than ip_address_ranges and bot_reasons cannot be ANDed. # Required. A valid SecurityAction must contain at least one condition.
693 &quot;accessTokens&quot;: [ # Optional. A list of access_tokens. Limit 1000 per action.
694 &quot;A String&quot;,
695 ],
696 &quot;apiKeys&quot;: [ # Optional. A list of API keys. Limit 1000 per action.
697 &quot;A String&quot;,
698 ],
699 &quot;apiProducts&quot;: [ # Optional. A list of API Products. Limit 1000 per action.
700 &quot;A String&quot;,
701 ],
702 &quot;asns&quot;: [ # Optional. A list of ASN numbers to act on, e.g. 23. https://en.wikipedia.org/wiki/Autonomous_system_(Internet) This uses int64 instead of uint32 because of https://linter.aip.dev/141/forbidden-types.
703 &quot;A String&quot;,
704 ],
705 &quot;botReasons&quot;: [ # Optional. A list of Bot Reasons. Current options: Flooder, Brute Guessor, Static Content Scraper, OAuth Abuser, Robot Abuser, TorListRule, Advanced Anomaly Detection, Advanced API Scraper, Search Engine Crawlers, Public Clouds, Public Cloud AWS, Public Cloud Azure, and Public Cloud Google.
706 &quot;A String&quot;,
707 ],
708 &quot;developerApps&quot;: [ # Optional. A list of developer apps. Limit 1000 per action.
709 &quot;A String&quot;,
710 ],
711 &quot;developers&quot;: [ # Optional. A list of developers. Limit 1000 per action.
712 &quot;A String&quot;,
713 ],
714 &quot;httpMethods&quot;: [ # Optional. Act only on particular HTTP methods. E.g. A read-only API can block POST/PUT/DELETE methods. Accepted values are: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE and PATCH.
715 &quot;A String&quot;,
716 ],
717 &quot;ipAddressRanges&quot;: [ # Optional. A list of IP addresses. This could be either IPv4 or IPv6. Limited to 100 per action.
718 &quot;A String&quot;,
719 ],
720 &quot;regionCodes&quot;: [ # Optional. A list of countries/region codes to act on, e.g. US. This follows https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2.
721 &quot;A String&quot;,
722 ],
723 &quot;userAgents&quot;: [ # Optional. A list of user agents to deny. We look for exact matches. Limit 50 per action.
724 &quot;A String&quot;,
725 ],
726 },
727 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The create time for this SecurityAction.
728 &quot;deny&quot;: { # Message that should be set in case of a Deny Action. # Deny a request through if it matches this SecurityAction.
729 &quot;responseCode&quot;: 42, # Optional. The HTTP response code if the Action = DENY.
730 },
731 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional user provided description of the SecurityAction.
732 &quot;expireTime&quot;: &quot;A String&quot;, # The expiration for this SecurityAction.
733 &quot;flag&quot;: { # The message that should be set in the case of a Flag action. # Flag a request through if it matches this SecurityAction.
734 &quot;headers&quot;: [ # Optional. A list of HTTP headers to be sent to the target in case of a FLAG SecurityAction. Limit 5 headers per SecurityAction. At least one is mandatory.
735 { # An HTTP header.
736 &quot;name&quot;: &quot;A String&quot;, # The header name to be sent to the target.
737 &quot;value&quot;: &quot;A String&quot;, # The header value to be sent to the target.
738 },
739 ],
740 },
741 &quot;name&quot;: &quot;A String&quot;, # Immutable. This field is ignored during creation as per AIP-133. Please set the `security_action_id` field in the CreateSecurityActionRequest when creating a new SecurityAction. Format: organizations/{org}/environments/{env}/securityActions/{security_action}
742 &quot;state&quot;: &quot;A String&quot;, # Required. Only an ENABLED SecurityAction is enforced. An ENABLED SecurityAction past its expiration time will not be enforced.
743 &quot;ttl&quot;: &quot;A String&quot;, # Input only. The TTL for this SecurityAction.
744 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The update time for this SecurityAction. This reflects when this SecurityAction changed states.
745 }</pre>
746 </div>
747
748 </body></html>