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.networksecurity/v1.getRule
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
Gets details of a single GatewaySecurityPolicyRule.
Using getRule
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 getRule(args: GetRuleArgs, opts?: InvokeOptions): Promise<GetRuleResult>
function getRuleOutput(args: GetRuleOutputArgs, opts?: InvokeOptions): Output<GetRuleResult>
def get_rule(gateway_security_policy_id: Optional[str] = None,
location: Optional[str] = None,
project: Optional[str] = None,
rule_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRuleResult
def get_rule_output(gateway_security_policy_id: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
rule_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRuleResult]
func LookupRule(ctx *Context, args *LookupRuleArgs, opts ...InvokeOption) (*LookupRuleResult, error)
func LookupRuleOutput(ctx *Context, args *LookupRuleOutputArgs, opts ...InvokeOption) LookupRuleResultOutput
> Note: This function is named LookupRule
in the Go SDK.
public static class GetRule
{
public static Task<GetRuleResult> InvokeAsync(GetRuleArgs args, InvokeOptions? opts = null)
public static Output<GetRuleResult> Invoke(GetRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRuleResult> getRule(GetRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:networksecurity/v1:getRule
arguments:
# arguments dictionary
The following arguments are supported:
- Gateway
Security stringPolicy Id - Location string
- Rule
Id string - Project string
- Gateway
Security stringPolicy Id - Location string
- Rule
Id string - Project string
- gateway
Security StringPolicy Id - location String
- rule
Id String - project String
- gateway
Security stringPolicy Id - location string
- rule
Id string - project string
- gateway_
security_ strpolicy_ id - location str
- rule_
id str - project str
- gateway
Security StringPolicy Id - location String
- rule
Id String - project String
getRule Result
The following output properties are available:
- Application
Matcher string - Optional. CEL expression for matching on L7/application level criteria.
- Basic
Profile string - Profile which tells what the primitive action should be.
- Create
Time string - Time when the rule was created.
- Description string
- Optional. Free-text description of the resource.
- Enabled bool
- Whether the rule is enforced.
- Name string
- Immutable. Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^a-z?$).
- Priority int
- Priority of the rule. Lower number corresponds to higher precedence.
- Session
Matcher string - CEL expression for matching on session criteria.
- Tls
Inspection boolEnabled - Optional. Flag to enable TLS inspection of traffic matching on , can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig.
- Update
Time string - Time when the rule was updated.
- Application
Matcher string - Optional. CEL expression for matching on L7/application level criteria.
- Basic
Profile string - Profile which tells what the primitive action should be.
- Create
Time string - Time when the rule was created.
- Description string
- Optional. Free-text description of the resource.
- Enabled bool
- Whether the rule is enforced.
- Name string
- Immutable. Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^a-z?$).
- Priority int
- Priority of the rule. Lower number corresponds to higher precedence.
- Session
Matcher string - CEL expression for matching on session criteria.
- Tls
Inspection boolEnabled - Optional. Flag to enable TLS inspection of traffic matching on , can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig.
- Update
Time string - Time when the rule was updated.
- application
Matcher String - Optional. CEL expression for matching on L7/application level criteria.
- basic
Profile String - Profile which tells what the primitive action should be.
- create
Time String - Time when the rule was created.
- description String
- Optional. Free-text description of the resource.
- enabled Boolean
- Whether the rule is enforced.
- name String
- Immutable. Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^a-z?$).
- priority Integer
- Priority of the rule. Lower number corresponds to higher precedence.
- session
Matcher String - CEL expression for matching on session criteria.
- tls
Inspection BooleanEnabled - Optional. Flag to enable TLS inspection of traffic matching on , can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig.
- update
Time String - Time when the rule was updated.
- application
Matcher string - Optional. CEL expression for matching on L7/application level criteria.
- basic
Profile string - Profile which tells what the primitive action should be.
- create
Time string - Time when the rule was created.
- description string
- Optional. Free-text description of the resource.
- enabled boolean
- Whether the rule is enforced.
- name string
- Immutable. Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^a-z?$).
- priority number
- Priority of the rule. Lower number corresponds to higher precedence.
- session
Matcher string - CEL expression for matching on session criteria.
- tls
Inspection booleanEnabled - Optional. Flag to enable TLS inspection of traffic matching on , can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig.
- update
Time string - Time when the rule was updated.
- application_
matcher str - Optional. CEL expression for matching on L7/application level criteria.
- basic_
profile str - Profile which tells what the primitive action should be.
- create_
time str - Time when the rule was created.
- description str
- Optional. Free-text description of the resource.
- enabled bool
- Whether the rule is enforced.
- name str
- Immutable. Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^a-z?$).
- priority int
- Priority of the rule. Lower number corresponds to higher precedence.
- session_
matcher str - CEL expression for matching on session criteria.
- tls_
inspection_ boolenabled - Optional. Flag to enable TLS inspection of traffic matching on , can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig.
- update_
time str - Time when the rule was updated.
- application
Matcher String - Optional. CEL expression for matching on L7/application level criteria.
- basic
Profile String - Profile which tells what the primitive action should be.
- create
Time String - Time when the rule was created.
- description String
- Optional. Free-text description of the resource.
- enabled Boolean
- Whether the rule is enforced.
- name String
- Immutable. Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^a-z?$).
- priority Number
- Priority of the rule. Lower number corresponds to higher precedence.
- session
Matcher String - CEL expression for matching on session criteria.
- tls
Inspection BooleanEnabled - Optional. Flag to enable TLS inspection of traffic matching on , can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig.
- update
Time String - Time when the rule was updated.
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