Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.recaptchaenterprise/v1.getFirewallpolicy
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Returns the specified firewall policy.
Using getFirewallpolicy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getFirewallpolicy(args: GetFirewallpolicyArgs, opts?: InvokeOptions): Promise<GetFirewallpolicyResult>
function getFirewallpolicyOutput(args: GetFirewallpolicyOutputArgs, opts?: InvokeOptions): Output<GetFirewallpolicyResult>
def get_firewallpolicy(firewallpolicy_id: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFirewallpolicyResult
def get_firewallpolicy_output(firewallpolicy_id: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFirewallpolicyResult]
func LookupFirewallpolicy(ctx *Context, args *LookupFirewallpolicyArgs, opts ...InvokeOption) (*LookupFirewallpolicyResult, error)
func LookupFirewallpolicyOutput(ctx *Context, args *LookupFirewallpolicyOutputArgs, opts ...InvokeOption) LookupFirewallpolicyResultOutput
> Note: This function is named LookupFirewallpolicy
in the Go SDK.
public static class GetFirewallpolicy
{
public static Task<GetFirewallpolicyResult> InvokeAsync(GetFirewallpolicyArgs args, InvokeOptions? opts = null)
public static Output<GetFirewallpolicyResult> Invoke(GetFirewallpolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFirewallpolicyResult> getFirewallpolicy(GetFirewallpolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:recaptchaenterprise/v1:getFirewallpolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Firewallpolicy
Id string - Project string
- Firewallpolicy
Id string - Project string
- firewallpolicy
Id String - project String
- firewallpolicy
Id string - project string
- firewallpolicy_
id str - project str
- firewallpolicy
Id String - project String
getFirewallpolicy Result
The following output properties are available:
- Actions
List<Pulumi.
Google Native.re CAPTCHAEnterprise. V1. Outputs. Google Cloud Recaptchaenterprise V1Firewall Action Response> - Optional. The actions that the caller should take regarding user access. There should be at most one terminal action. A terminal action is any action that forces a response, such as
AllowAction
,BlockAction
orSubstituteAction
. Zero or more non-terminal actions such asSetHeader
might be specified. A single policy can contain up to 16 actions. - Condition string
- Optional. A CEL (Common Expression Language) conditional expression that specifies if this policy applies to an incoming user request. If this condition evaluates to true and the requested path matched the path pattern, the associated actions should be executed by the caller. The condition string is checked for CEL syntax correctness on creation. For more information, see the CEL spec and its language definition. A condition has a max length of 500 characters.
- Description string
- Optional. A description of what this policy aims to achieve, for convenience purposes. The description can at most include 256 UTF-8 characters.
- Name string
- Identifier. The resource name for the FirewallPolicy in the format
projects/{project}/firewallpolicies/{firewallpolicy}
. - Path string
- Optional. The path for which this policy applies, specified as a glob pattern. For more information on glob, see the manual page. A path has a max length of 200 characters.
- Actions
[]Google
Cloud Recaptchaenterprise V1Firewall Action Response - Optional. The actions that the caller should take regarding user access. There should be at most one terminal action. A terminal action is any action that forces a response, such as
AllowAction
,BlockAction
orSubstituteAction
. Zero or more non-terminal actions such asSetHeader
might be specified. A single policy can contain up to 16 actions. - Condition string
- Optional. A CEL (Common Expression Language) conditional expression that specifies if this policy applies to an incoming user request. If this condition evaluates to true and the requested path matched the path pattern, the associated actions should be executed by the caller. The condition string is checked for CEL syntax correctness on creation. For more information, see the CEL spec and its language definition. A condition has a max length of 500 characters.
- Description string
- Optional. A description of what this policy aims to achieve, for convenience purposes. The description can at most include 256 UTF-8 characters.
- Name string
- Identifier. The resource name for the FirewallPolicy in the format
projects/{project}/firewallpolicies/{firewallpolicy}
. - Path string
- Optional. The path for which this policy applies, specified as a glob pattern. For more information on glob, see the manual page. A path has a max length of 200 characters.
- actions
List<Google
Cloud Recaptchaenterprise V1Firewall Action Response> - Optional. The actions that the caller should take regarding user access. There should be at most one terminal action. A terminal action is any action that forces a response, such as
AllowAction
,BlockAction
orSubstituteAction
. Zero or more non-terminal actions such asSetHeader
might be specified. A single policy can contain up to 16 actions. - condition String
- Optional. A CEL (Common Expression Language) conditional expression that specifies if this policy applies to an incoming user request. If this condition evaluates to true and the requested path matched the path pattern, the associated actions should be executed by the caller. The condition string is checked for CEL syntax correctness on creation. For more information, see the CEL spec and its language definition. A condition has a max length of 500 characters.
- description String
- Optional. A description of what this policy aims to achieve, for convenience purposes. The description can at most include 256 UTF-8 characters.
- name String
- Identifier. The resource name for the FirewallPolicy in the format
projects/{project}/firewallpolicies/{firewallpolicy}
. - path String
- Optional. The path for which this policy applies, specified as a glob pattern. For more information on glob, see the manual page. A path has a max length of 200 characters.
- actions
Google
Cloud Recaptchaenterprise V1Firewall Action Response[] - Optional. The actions that the caller should take regarding user access. There should be at most one terminal action. A terminal action is any action that forces a response, such as
AllowAction
,BlockAction
orSubstituteAction
. Zero or more non-terminal actions such asSetHeader
might be specified. A single policy can contain up to 16 actions. - condition string
- Optional. A CEL (Common Expression Language) conditional expression that specifies if this policy applies to an incoming user request. If this condition evaluates to true and the requested path matched the path pattern, the associated actions should be executed by the caller. The condition string is checked for CEL syntax correctness on creation. For more information, see the CEL spec and its language definition. A condition has a max length of 500 characters.
- description string
- Optional. A description of what this policy aims to achieve, for convenience purposes. The description can at most include 256 UTF-8 characters.
- name string
- Identifier. The resource name for the FirewallPolicy in the format
projects/{project}/firewallpolicies/{firewallpolicy}
. - path string
- Optional. The path for which this policy applies, specified as a glob pattern. For more information on glob, see the manual page. A path has a max length of 200 characters.
- actions
Sequence[Google
Cloud Recaptchaenterprise V1Firewall Action Response] - Optional. The actions that the caller should take regarding user access. There should be at most one terminal action. A terminal action is any action that forces a response, such as
AllowAction
,BlockAction
orSubstituteAction
. Zero or more non-terminal actions such asSetHeader
might be specified. A single policy can contain up to 16 actions. - condition str
- Optional. A CEL (Common Expression Language) conditional expression that specifies if this policy applies to an incoming user request. If this condition evaluates to true and the requested path matched the path pattern, the associated actions should be executed by the caller. The condition string is checked for CEL syntax correctness on creation. For more information, see the CEL spec and its language definition. A condition has a max length of 500 characters.
- description str
- Optional. A description of what this policy aims to achieve, for convenience purposes. The description can at most include 256 UTF-8 characters.
- name str
- Identifier. The resource name for the FirewallPolicy in the format
projects/{project}/firewallpolicies/{firewallpolicy}
. - path str
- Optional. The path for which this policy applies, specified as a glob pattern. For more information on glob, see the manual page. A path has a max length of 200 characters.
- actions List<Property Map>
- Optional. The actions that the caller should take regarding user access. There should be at most one terminal action. A terminal action is any action that forces a response, such as
AllowAction
,BlockAction
orSubstituteAction
. Zero or more non-terminal actions such asSetHeader
might be specified. A single policy can contain up to 16 actions. - condition String
- Optional. A CEL (Common Expression Language) conditional expression that specifies if this policy applies to an incoming user request. If this condition evaluates to true and the requested path matched the path pattern, the associated actions should be executed by the caller. The condition string is checked for CEL syntax correctness on creation. For more information, see the CEL spec and its language definition. A condition has a max length of 500 characters.
- description String
- Optional. A description of what this policy aims to achieve, for convenience purposes. The description can at most include 256 UTF-8 characters.
- name String
- Identifier. The resource name for the FirewallPolicy in the format
projects/{project}/firewallpolicies/{firewallpolicy}
. - path String
- Optional. The path for which this policy applies, specified as a glob pattern. For more information on glob, see the manual page. A path has a max length of 200 characters.
Supporting Types
GoogleCloudRecaptchaenterpriseV1FirewallActionResponse
- Allow
Pulumi.
Google Native.re CAPTCHAEnterprise. V1. Inputs. Google Cloud Recaptchaenterprise V1Firewall Action Allow Action Response - The user request did not match any policy and should be allowed access to the requested resource.
- Block
Pulumi.
Google Native.re CAPTCHAEnterprise. V1. Inputs. Google Cloud Recaptchaenterprise V1Firewall Action Block Action Response - This action will deny access to a given page. The user will get an HTTP error code.
- Redirect
Pulumi.
Google Native.re CAPTCHAEnterprise. V1. Inputs. Google Cloud Recaptchaenterprise V1Firewall Action Redirect Action Response - This action will redirect the request to a ReCaptcha interstitial to attach a token.
- Set
Header Pulumi.Google Native.re CAPTCHAEnterprise. V1. Inputs. Google Cloud Recaptchaenterprise V1Firewall Action Set Header Action Response - This action will set a custom header but allow the request to continue to the customer backend.
- Substitute
Pulumi.
Google Native.re CAPTCHAEnterprise. V1. Inputs. Google Cloud Recaptchaenterprise V1Firewall Action Substitute Action Response - This action will transparently serve a different page to an offending user.
- Allow
Google
Cloud Recaptchaenterprise V1Firewall Action Allow Action Response - The user request did not match any policy and should be allowed access to the requested resource.
- Block
Google
Cloud Recaptchaenterprise V1Firewall Action Block Action Response - This action will deny access to a given page. The user will get an HTTP error code.
- Redirect
Google
Cloud Recaptchaenterprise V1Firewall Action Redirect Action Response - This action will redirect the request to a ReCaptcha interstitial to attach a token.
- Set
Header GoogleCloud Recaptchaenterprise V1Firewall Action Set Header Action Response - This action will set a custom header but allow the request to continue to the customer backend.
- Substitute
Google
Cloud Recaptchaenterprise V1Firewall Action Substitute Action Response - This action will transparently serve a different page to an offending user.
- allow
Google
Cloud Recaptchaenterprise V1Firewall Action Allow Action Response - The user request did not match any policy and should be allowed access to the requested resource.
- block
Google
Cloud Recaptchaenterprise V1Firewall Action Block Action Response - This action will deny access to a given page. The user will get an HTTP error code.
- redirect
Google
Cloud Recaptchaenterprise V1Firewall Action Redirect Action Response - This action will redirect the request to a ReCaptcha interstitial to attach a token.
- set
Header GoogleCloud Recaptchaenterprise V1Firewall Action Set Header Action Response - This action will set a custom header but allow the request to continue to the customer backend.
- substitute
Google
Cloud Recaptchaenterprise V1Firewall Action Substitute Action Response - This action will transparently serve a different page to an offending user.
- allow
Google
Cloud Recaptchaenterprise V1Firewall Action Allow Action Response - The user request did not match any policy and should be allowed access to the requested resource.
- block
Google
Cloud Recaptchaenterprise V1Firewall Action Block Action Response - This action will deny access to a given page. The user will get an HTTP error code.
- redirect
Google
Cloud Recaptchaenterprise V1Firewall Action Redirect Action Response - This action will redirect the request to a ReCaptcha interstitial to attach a token.
- set
Header GoogleCloud Recaptchaenterprise V1Firewall Action Set Header Action Response - This action will set a custom header but allow the request to continue to the customer backend.
- substitute
Google
Cloud Recaptchaenterprise V1Firewall Action Substitute Action Response - This action will transparently serve a different page to an offending user.
- allow
Google
Cloud Recaptchaenterprise V1Firewall Action Allow Action Response - The user request did not match any policy and should be allowed access to the requested resource.
- block
Google
Cloud Recaptchaenterprise V1Firewall Action Block Action Response - This action will deny access to a given page. The user will get an HTTP error code.
- redirect
Google
Cloud Recaptchaenterprise V1Firewall Action Redirect Action Response - This action will redirect the request to a ReCaptcha interstitial to attach a token.
- set_
header GoogleCloud Recaptchaenterprise V1Firewall Action Set Header Action Response - This action will set a custom header but allow the request to continue to the customer backend.
- substitute
Google
Cloud Recaptchaenterprise V1Firewall Action Substitute Action Response - This action will transparently serve a different page to an offending user.
- allow Property Map
- The user request did not match any policy and should be allowed access to the requested resource.
- block Property Map
- This action will deny access to a given page. The user will get an HTTP error code.
- redirect Property Map
- This action will redirect the request to a ReCaptcha interstitial to attach a token.
- set
Header Property Map - This action will set a custom header but allow the request to continue to the customer backend.
- substitute Property Map
- This action will transparently serve a different page to an offending user.
GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderActionResponse
GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteActionResponse
- Path string
- Optional. The address to redirect to. The target is a relative path in the current host. Example: "/blog/404.html".
- Path string
- Optional. The address to redirect to. The target is a relative path in the current host. Example: "/blog/404.html".
- path String
- Optional. The address to redirect to. The target is a relative path in the current host. Example: "/blog/404.html".
- path string
- Optional. The address to redirect to. The target is a relative path in the current host. Example: "/blog/404.html".
- path str
- Optional. The address to redirect to. The target is a relative path in the current host. Example: "/blog/404.html".
- path String
- Optional. The address to redirect to. The target is a relative path in the current host. Example: "/blog/404.html".
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi