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.vmwareengine/v1.getExternalAccessRule
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 external access rule.
Using getExternalAccessRule
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 getExternalAccessRule(args: GetExternalAccessRuleArgs, opts?: InvokeOptions): Promise<GetExternalAccessRuleResult>
function getExternalAccessRuleOutput(args: GetExternalAccessRuleOutputArgs, opts?: InvokeOptions): Output<GetExternalAccessRuleResult>
def get_external_access_rule(external_access_rule_id: Optional[str] = None,
location: Optional[str] = None,
network_policy_id: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetExternalAccessRuleResult
def get_external_access_rule_output(external_access_rule_id: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
network_policy_id: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetExternalAccessRuleResult]
func LookupExternalAccessRule(ctx *Context, args *LookupExternalAccessRuleArgs, opts ...InvokeOption) (*LookupExternalAccessRuleResult, error)
func LookupExternalAccessRuleOutput(ctx *Context, args *LookupExternalAccessRuleOutputArgs, opts ...InvokeOption) LookupExternalAccessRuleResultOutput
> Note: This function is named LookupExternalAccessRule
in the Go SDK.
public static class GetExternalAccessRule
{
public static Task<GetExternalAccessRuleResult> InvokeAsync(GetExternalAccessRuleArgs args, InvokeOptions? opts = null)
public static Output<GetExternalAccessRuleResult> Invoke(GetExternalAccessRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetExternalAccessRuleResult> getExternalAccessRule(GetExternalAccessRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:vmwareengine/v1:getExternalAccessRule
arguments:
# arguments dictionary
The following arguments are supported:
- External
Access stringRule Id - Location string
- Network
Policy stringId - Project string
- External
Access stringRule Id - Location string
- Network
Policy stringId - Project string
- external
Access StringRule Id - location String
- network
Policy StringId - project String
- external
Access stringRule Id - location string
- network
Policy stringId - project string
- external_
access_ strrule_ id - location str
- network_
policy_ strid - project str
- external
Access StringRule Id - location String
- network
Policy StringId - project String
getExternalAccessRule Result
The following output properties are available:
- Action string
- The action that the external access rule performs.
- Create
Time string - Creation time of this resource.
- Description string
- User-provided description for this external access rule.
- Destination
Ip List<Pulumi.Ranges Google Native. VMware Engine. V1. Outputs. Ip Range Response> - If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify
0.0.0.0/0
. To match a specific external IP address, specify it using theIpRange.external_address
property. - Destination
Ports List<string> - A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example:
["22"]
,["80","443"]
, or["12345-12349"]
. To match all destination ports, specify["0-65535"]
. - Ip
Protocol string - The IP protocol to which the external access rule applies. This value can be one of the following three protocol strings (not case-sensitive):
tcp
,udp
, oricmp
. - Name string
- The resource name of this external access rule. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule
- Priority int
- External access rule priority, which determines the external access rule to use when multiple rules apply. If multiple rules have the same priority, their ordering is non-deterministic. If specific ordering is required, assign unique priorities to enforce such ordering. The external access rule priority is an integer from 100 to 4096, both inclusive. Lower integers indicate higher precedence. For example, a rule with priority
100
has higher precedence than a rule with priority101
. - Source
Ip List<Pulumi.Ranges Google Native. VMware Engine. V1. Outputs. Ip Range Response> - If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported,
ExternalAddress
resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify0.0.0.0/0
. - Source
Ports List<string> - A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example:
["22"]
,["80","443"]
, or["12345-12349"]
. To match all source ports, specify["0-65535"]
. - State string
- The state of the resource.
- Uid string
- System-generated unique identifier for the resource.
- Update
Time string - Last update time of this resource.
- Action string
- The action that the external access rule performs.
- Create
Time string - Creation time of this resource.
- Description string
- User-provided description for this external access rule.
- Destination
Ip []IpRanges Range Response - If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify
0.0.0.0/0
. To match a specific external IP address, specify it using theIpRange.external_address
property. - Destination
Ports []string - A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example:
["22"]
,["80","443"]
, or["12345-12349"]
. To match all destination ports, specify["0-65535"]
. - Ip
Protocol string - The IP protocol to which the external access rule applies. This value can be one of the following three protocol strings (not case-sensitive):
tcp
,udp
, oricmp
. - Name string
- The resource name of this external access rule. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule
- Priority int
- External access rule priority, which determines the external access rule to use when multiple rules apply. If multiple rules have the same priority, their ordering is non-deterministic. If specific ordering is required, assign unique priorities to enforce such ordering. The external access rule priority is an integer from 100 to 4096, both inclusive. Lower integers indicate higher precedence. For example, a rule with priority
100
has higher precedence than a rule with priority101
. - Source
Ip []IpRanges Range Response - If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported,
ExternalAddress
resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify0.0.0.0/0
. - Source
Ports []string - A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example:
["22"]
,["80","443"]
, or["12345-12349"]
. To match all source ports, specify["0-65535"]
. - State string
- The state of the resource.
- Uid string
- System-generated unique identifier for the resource.
- Update
Time string - Last update time of this resource.
- action String
- The action that the external access rule performs.
- create
Time String - Creation time of this resource.
- description String
- User-provided description for this external access rule.
- destination
Ip List<IpRanges Range Response> - If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify
0.0.0.0/0
. To match a specific external IP address, specify it using theIpRange.external_address
property. - destination
Ports List<String> - A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example:
["22"]
,["80","443"]
, or["12345-12349"]
. To match all destination ports, specify["0-65535"]
. - ip
Protocol String - The IP protocol to which the external access rule applies. This value can be one of the following three protocol strings (not case-sensitive):
tcp
,udp
, oricmp
. - name String
- The resource name of this external access rule. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule
- priority Integer
- External access rule priority, which determines the external access rule to use when multiple rules apply. If multiple rules have the same priority, their ordering is non-deterministic. If specific ordering is required, assign unique priorities to enforce such ordering. The external access rule priority is an integer from 100 to 4096, both inclusive. Lower integers indicate higher precedence. For example, a rule with priority
100
has higher precedence than a rule with priority101
. - source
Ip List<IpRanges Range Response> - If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported,
ExternalAddress
resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify0.0.0.0/0
. - source
Ports List<String> - A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example:
["22"]
,["80","443"]
, or["12345-12349"]
. To match all source ports, specify["0-65535"]
. - state String
- The state of the resource.
- uid String
- System-generated unique identifier for the resource.
- update
Time String - Last update time of this resource.
- action string
- The action that the external access rule performs.
- create
Time string - Creation time of this resource.
- description string
- User-provided description for this external access rule.
- destination
Ip IpRanges Range Response[] - If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify
0.0.0.0/0
. To match a specific external IP address, specify it using theIpRange.external_address
property. - destination
Ports string[] - A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example:
["22"]
,["80","443"]
, or["12345-12349"]
. To match all destination ports, specify["0-65535"]
. - ip
Protocol string - The IP protocol to which the external access rule applies. This value can be one of the following three protocol strings (not case-sensitive):
tcp
,udp
, oricmp
. - name string
- The resource name of this external access rule. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule
- priority number
- External access rule priority, which determines the external access rule to use when multiple rules apply. If multiple rules have the same priority, their ordering is non-deterministic. If specific ordering is required, assign unique priorities to enforce such ordering. The external access rule priority is an integer from 100 to 4096, both inclusive. Lower integers indicate higher precedence. For example, a rule with priority
100
has higher precedence than a rule with priority101
. - source
Ip IpRanges Range Response[] - If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported,
ExternalAddress
resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify0.0.0.0/0
. - source
Ports string[] - A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example:
["22"]
,["80","443"]
, or["12345-12349"]
. To match all source ports, specify["0-65535"]
. - state string
- The state of the resource.
- uid string
- System-generated unique identifier for the resource.
- update
Time string - Last update time of this resource.
- action str
- The action that the external access rule performs.
- create_
time str - Creation time of this resource.
- description str
- User-provided description for this external access rule.
- destination_
ip_ Sequence[Ipranges Range Response] - If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify
0.0.0.0/0
. To match a specific external IP address, specify it using theIpRange.external_address
property. - destination_
ports Sequence[str] - A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example:
["22"]
,["80","443"]
, or["12345-12349"]
. To match all destination ports, specify["0-65535"]
. - ip_
protocol str - The IP protocol to which the external access rule applies. This value can be one of the following three protocol strings (not case-sensitive):
tcp
,udp
, oricmp
. - name str
- The resource name of this external access rule. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule
- priority int
- External access rule priority, which determines the external access rule to use when multiple rules apply. If multiple rules have the same priority, their ordering is non-deterministic. If specific ordering is required, assign unique priorities to enforce such ordering. The external access rule priority is an integer from 100 to 4096, both inclusive. Lower integers indicate higher precedence. For example, a rule with priority
100
has higher precedence than a rule with priority101
. - source_
ip_ Sequence[Ipranges Range Response] - If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported,
ExternalAddress
resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify0.0.0.0/0
. - source_
ports Sequence[str] - A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example:
["22"]
,["80","443"]
, or["12345-12349"]
. To match all source ports, specify["0-65535"]
. - state str
- The state of the resource.
- uid str
- System-generated unique identifier for the resource.
- update_
time str - Last update time of this resource.
- action String
- The action that the external access rule performs.
- create
Time String - Creation time of this resource.
- description String
- User-provided description for this external access rule.
- destination
Ip List<Property Map>Ranges - If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify
0.0.0.0/0
. To match a specific external IP address, specify it using theIpRange.external_address
property. - destination
Ports List<String> - A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example:
["22"]
,["80","443"]
, or["12345-12349"]
. To match all destination ports, specify["0-65535"]
. - ip
Protocol String - The IP protocol to which the external access rule applies. This value can be one of the following three protocol strings (not case-sensitive):
tcp
,udp
, oricmp
. - name String
- The resource name of this external access rule. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule
- priority Number
- External access rule priority, which determines the external access rule to use when multiple rules apply. If multiple rules have the same priority, their ordering is non-deterministic. If specific ordering is required, assign unique priorities to enforce such ordering. The external access rule priority is an integer from 100 to 4096, both inclusive. Lower integers indicate higher precedence. For example, a rule with priority
100
has higher precedence than a rule with priority101
. - source
Ip List<Property Map>Ranges - If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported,
ExternalAddress
resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify0.0.0.0/0
. - source
Ports List<String> - A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example:
["22"]
,["80","443"]
, or["12345-12349"]
. To match all source ports, specify["0-65535"]
. - state String
- The state of the resource.
- uid String
- System-generated unique identifier for the resource.
- update
Time String - Last update time of this resource.
Supporting Types
IpRangeResponse
- External
Address string - The name of an
ExternalAddress
resource. The external address must have been reserved in the scope of this external access rule's parent network policy. Provide the external address name in the form ofprojects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}
. For example:projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address
. - Ip
Address string - A single IP address. For example:
10.0.0.5
. - Ip
Address stringRange - An IP address range in the CIDR format. For example:
10.0.0.0/24
.
- External
Address string - The name of an
ExternalAddress
resource. The external address must have been reserved in the scope of this external access rule's parent network policy. Provide the external address name in the form ofprojects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}
. For example:projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address
. - Ip
Address string - A single IP address. For example:
10.0.0.5
. - Ip
Address stringRange - An IP address range in the CIDR format. For example:
10.0.0.0/24
.
- external
Address String - The name of an
ExternalAddress
resource. The external address must have been reserved in the scope of this external access rule's parent network policy. Provide the external address name in the form ofprojects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}
. For example:projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address
. - ip
Address String - A single IP address. For example:
10.0.0.5
. - ip
Address StringRange - An IP address range in the CIDR format. For example:
10.0.0.0/24
.
- external
Address string - The name of an
ExternalAddress
resource. The external address must have been reserved in the scope of this external access rule's parent network policy. Provide the external address name in the form ofprojects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}
. For example:projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address
. - ip
Address string - A single IP address. For example:
10.0.0.5
. - ip
Address stringRange - An IP address range in the CIDR format. For example:
10.0.0.0/24
.
- external_
address str - The name of an
ExternalAddress
resource. The external address must have been reserved in the scope of this external access rule's parent network policy. Provide the external address name in the form ofprojects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}
. For example:projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address
. - ip_
address str - A single IP address. For example:
10.0.0.5
. - ip_
address_ strrange - An IP address range in the CIDR format. For example:
10.0.0.0/24
.
- external
Address String - The name of an
ExternalAddress
resource. The external address must have been reserved in the scope of this external access rule's parent network policy. Provide the external address name in the form ofprojects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}
. For example:projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address
. - ip
Address String - A single IP address. For example:
10.0.0.5
. - ip
Address StringRange - An IP address range in the CIDR format. For example:
10.0.0.0/24
.
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