Get
|
|||||
|
|
List all of the ordered rules present in a single specified policy
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 2 input parameters
Name | Format | Description |
---|---|---|
project Required |
STRING |
Project ID for this request |
securityPolicy Required |
STRING |
Name of the security policy to get |
= Parameter name
= Format
project STRING Required Project ID for this request |
securityPolicy STRING Required Name of the security policy to get |
Output
This building block provides 17 output parameters
Name | Format | Description |
---|---|---|
creationTimestamp |
STRING |
[Output Only] Creation timestamp in RFC3339 text format |
description |
STRING |
An optional description of this resource. Provide this property when you create the resource |
fingerprint |
BINARY |
Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the security policy |
id |
INTEGER |
[Output Only] The unique identifier for the resource. This identifier is defined by the server |
kind |
STRING |
[Output only] Type of the resource. Always compute#securityPolicyfor security policies |
name |
STRING |
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression |
rules[] |
OBJECT |
Represents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny) |
rules[].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 |
rules[].description |
STRING |
An optional description of this resource. Provide this property when you create the resource |
rules[].kind |
STRING |
[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules |
rules[].match |
OBJECT |
Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified |
rules[].match.config |
OBJECT |
|
rules[].match.config.srcIpRanges[] |
STRING |
|
rules[].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 |
rules[].preview |
BOOLEAN |
If set to true, the specified action is not enforced |
rules[].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 |
selfLink |
STRING |
[Output Only] Server-defined URL for the resource |
= Parameter name
= Format
creationTimestamp STRING [Output Only] Creation timestamp in RFC3339 text format |
description STRING An optional description of this resource. Provide this property when you create the resource |
fingerprint BINARY Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the security policy |
id INTEGER [Output Only] The unique identifier for the resource. This identifier is defined by the server |
kind STRING [Output only] Type of the resource. Always compute#securityPolicyfor security policies |
name STRING Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression |
rules[] OBJECT Represents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny) |
rules[].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 |
rules[].description STRING An optional description of this resource. Provide this property when you create the resource |
rules[].kind STRING [Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules |
rules[].match OBJECT Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified |
rules[].match.config OBJECT |
rules[].match.config.srcIpRanges[] STRING |
rules[].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 |
rules[].preview BOOLEAN If set to true, the specified action is not enforced |
rules[].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 |
selfLink STRING [Output Only] Server-defined URL for the resource |