Get Rule
|
|||||
|
|
Gets a rule at the specified priority
Authorization
To use this building block you will have to grant access to at least one of the following scopes:
- View and manage your data across Google Cloud Platform services
- View and manage your Google Compute Engine resources
- View your Google Compute Engine resources
Input
This building block consumes 3 input parameters
Name | Format | Description |
---|---|---|
project Required |
STRING |
Project ID for this request |
securityPolicy Required |
STRING |
Name of the security policy to which the queried rule belongs |
priority |
INTEGER |
The priority of the rule to get from the security policy |
= Parameter name
= Format
project STRING Required Project ID for this request |
securityPolicy STRING Required Name of the security policy to which the queried rule belongs |
priority INTEGER The priority of the rule to get from the security policy |
Output
This building block provides 9 output parameters
Name | Format | Description |
---|---|---|
action |
STRING |
The Action to preform when the client connection triggers the rule. Can currently be either "allow" or "deny()" where valid values for status are 403, 404, and 502 |
description |
STRING |
An optional description of this resource. Provide this property when you create the resource |
kind |
STRING |
[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules |
match |
OBJECT |
Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified |
match.config |
OBJECT |
|
match.config.srcIpRanges[] |
STRING |
|
match.versionedExpr |
ENUMERATION |
Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config |
preview |
BOOLEAN |
If set to true, the specified action is not enforced |
priority |
INTEGER |
An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest prority |
= Parameter name
= Format
action STRING The Action to preform when the client connection triggers the rule. Can currently be either "allow" or "deny()" where valid values for status are 403, 404, and 502 |
description STRING An optional description of this resource. Provide this property when you create the resource |
kind STRING [Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules |
match OBJECT Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified |
match.config OBJECT |
match.config.srcIpRanges[] STRING |
match.versionedExpr ENUMERATION Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config |
preview BOOLEAN If set to true, the specified action is not enforced |
priority INTEGER An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest prority |