gcp.compute.getGlobalForwardingRule
Explore with Pulumi AI
Get a global forwarding rule within GCE from its name.
Example Usage
data "google_compute_global_forwarding_rule" "my-forwarding-rule" {
name = "forwarding-rule-global"
}
Using getGlobalForwardingRule
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 getGlobalForwardingRule(args: GetGlobalForwardingRuleArgs, opts?: InvokeOptions): Promise<GetGlobalForwardingRuleResult>
function getGlobalForwardingRuleOutput(args: GetGlobalForwardingRuleOutputArgs, opts?: InvokeOptions): Output<GetGlobalForwardingRuleResult>
def get_global_forwarding_rule(name: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGlobalForwardingRuleResult
def get_global_forwarding_rule_output(name: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGlobalForwardingRuleResult]
func LookupGlobalForwardingRule(ctx *Context, args *LookupGlobalForwardingRuleArgs, opts ...InvokeOption) (*LookupGlobalForwardingRuleResult, error)
func LookupGlobalForwardingRuleOutput(ctx *Context, args *LookupGlobalForwardingRuleOutputArgs, opts ...InvokeOption) LookupGlobalForwardingRuleResultOutput
> Note: This function is named LookupGlobalForwardingRule
in the Go SDK.
public static class GetGlobalForwardingRule
{
public static Task<GetGlobalForwardingRuleResult> InvokeAsync(GetGlobalForwardingRuleArgs args, InvokeOptions? opts = null)
public static Output<GetGlobalForwardingRuleResult> Invoke(GetGlobalForwardingRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGlobalForwardingRuleResult> getGlobalForwardingRule(GetGlobalForwardingRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:compute/getGlobalForwardingRule:getGlobalForwardingRule
arguments:
# arguments dictionary
The following arguments are supported:
getGlobalForwardingRule Result
The following output properties are available:
- Allow
Psc boolGlobal Access - Base
Forwarding stringRule - Description string
- Effective
Labels Dictionary<string, string> - Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - Ip
Protocol string - Ip
Version string - Label
Fingerprint string - Labels Dictionary<string, string>
- Load
Balancing stringScheme - Metadata
Filters List<GetGlobal Forwarding Rule Metadata Filter> - Name string
- Network string
- No
Automate boolDns Zone - Port
Range string - Psc
Connection stringId - Psc
Connection stringStatus - Pulumi
Labels Dictionary<string, string> - Self
Link string - Service
Directory List<GetRegistrations Global Forwarding Rule Service Directory Registration> - Source
Ip List<string>Ranges - Subnetwork string
- Target string
- Project string
- Allow
Psc boolGlobal Access - Base
Forwarding stringRule - Description string
- Effective
Labels map[string]string - Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - Ip
Protocol string - Ip
Version string - Label
Fingerprint string - Labels map[string]string
- Load
Balancing stringScheme - Metadata
Filters []GetGlobal Forwarding Rule Metadata Filter - Name string
- Network string
- No
Automate boolDns Zone - Port
Range string - Psc
Connection stringId - Psc
Connection stringStatus - Pulumi
Labels map[string]string - Self
Link string - Service
Directory []GetRegistrations Global Forwarding Rule Service Directory Registration - Source
Ip []stringRanges - Subnetwork string
- Target string
- Project string
- allow
Psc BooleanGlobal Access - base
Forwarding StringRule - description String
- effective
Labels Map<String,String> - id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - ip
Protocol String - ip
Version String - label
Fingerprint String - labels Map<String,String>
- load
Balancing StringScheme - metadata
Filters List<GetGlobal Forwarding Rule Metadata Filter> - name String
- network String
- no
Automate BooleanDns Zone - port
Range String - psc
Connection StringId - psc
Connection StringStatus - pulumi
Labels Map<String,String> - self
Link String - service
Directory List<GetRegistrations Global Forwarding Rule Service Directory Registration> - source
Ip List<String>Ranges - subnetwork String
- target String
- project String
- allow
Psc booleanGlobal Access - base
Forwarding stringRule - description string
- effective
Labels {[key: string]: string} - id string
- The provider-assigned unique ID for this managed resource.
- ip
Address string - ip
Protocol string - ip
Version string - label
Fingerprint string - labels {[key: string]: string}
- load
Balancing stringScheme - metadata
Filters GetGlobal Forwarding Rule Metadata Filter[] - name string
- network string
- no
Automate booleanDns Zone - port
Range string - psc
Connection stringId - psc
Connection stringStatus - pulumi
Labels {[key: string]: string} - self
Link string - service
Directory GetRegistrations Global Forwarding Rule Service Directory Registration[] - source
Ip string[]Ranges - subnetwork string
- target string
- project string
- allow_
psc_ boolglobal_ access - base_
forwarding_ strrule - description str
- effective_
labels Mapping[str, str] - id str
- The provider-assigned unique ID for this managed resource.
- ip_
address str - ip_
protocol str - ip_
version str - label_
fingerprint str - labels Mapping[str, str]
- load_
balancing_ strscheme - metadata_
filters Sequence[GetGlobal Forwarding Rule Metadata Filter] - name str
- network str
- no_
automate_ booldns_ zone - port_
range str - psc_
connection_ strid - psc_
connection_ strstatus - pulumi_
labels Mapping[str, str] - self_
link str - service_
directory_ Sequence[Getregistrations Global Forwarding Rule Service Directory Registration] - source_
ip_ Sequence[str]ranges - subnetwork str
- target str
- project str
- allow
Psc BooleanGlobal Access - base
Forwarding StringRule - description String
- effective
Labels Map<String> - id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - ip
Protocol String - ip
Version String - label
Fingerprint String - labels Map<String>
- load
Balancing StringScheme - metadata
Filters List<Property Map> - name String
- network String
- no
Automate BooleanDns Zone - port
Range String - psc
Connection StringId - psc
Connection StringStatus - pulumi
Labels Map<String> - self
Link String - service
Directory List<Property Map>Registrations - source
Ip List<String>Ranges - subnetwork String
- target String
- project String
Supporting Types
GetGlobalForwardingRuleMetadataFilter
- Filter
Labels List<GetGlobal Forwarding Rule Metadata Filter Filter Label> The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria
This list must not be empty and can have at the most 64 entries.
- Filter
Match stringCriteria Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match.
MATCH_ANY - At least one of the filterLabels must have a matching label in the provided metadata. MATCH_ALL - All filterLabels must have matching labels in the provided metadata. Possible values: ["MATCH_ANY", "MATCH_ALL"]
- Filter
Labels []GetGlobal Forwarding Rule Metadata Filter Filter Label The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria
This list must not be empty and can have at the most 64 entries.
- Filter
Match stringCriteria Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match.
MATCH_ANY - At least one of the filterLabels must have a matching label in the provided metadata. MATCH_ALL - All filterLabels must have matching labels in the provided metadata. Possible values: ["MATCH_ANY", "MATCH_ALL"]
- filter
Labels List<GetGlobal Forwarding Rule Metadata Filter Filter Label> The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria
This list must not be empty and can have at the most 64 entries.
- filter
Match StringCriteria Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match.
MATCH_ANY - At least one of the filterLabels must have a matching label in the provided metadata. MATCH_ALL - All filterLabels must have matching labels in the provided metadata. Possible values: ["MATCH_ANY", "MATCH_ALL"]
- filter
Labels GetGlobal Forwarding Rule Metadata Filter Filter Label[] The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria
This list must not be empty and can have at the most 64 entries.
- filter
Match stringCriteria Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match.
MATCH_ANY - At least one of the filterLabels must have a matching label in the provided metadata. MATCH_ALL - All filterLabels must have matching labels in the provided metadata. Possible values: ["MATCH_ANY", "MATCH_ALL"]
- filter_
labels Sequence[GetGlobal Forwarding Rule Metadata Filter Filter Label] The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria
This list must not be empty and can have at the most 64 entries.
- filter_
match_ strcriteria Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match.
MATCH_ANY - At least one of the filterLabels must have a matching label in the provided metadata. MATCH_ALL - All filterLabels must have matching labels in the provided metadata. Possible values: ["MATCH_ANY", "MATCH_ALL"]
- filter
Labels List<Property Map> The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria
This list must not be empty and can have at the most 64 entries.
- filter
Match StringCriteria Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match.
MATCH_ANY - At least one of the filterLabels must have a matching label in the provided metadata. MATCH_ALL - All filterLabels must have matching labels in the provided metadata. Possible values: ["MATCH_ANY", "MATCH_ALL"]
GetGlobalForwardingRuleMetadataFilterFilterLabel
GetGlobalForwardingRuleServiceDirectoryRegistration
- Namespace string
- Service Directory namespace to register the forwarding rule under.
- Service
Directory stringRegion - [Optional] Service Directory region to register this global forwarding rule under. Default to "us-central1". Only used for PSC for Google APIs. All PSC for Google APIs Forwarding Rules on the same network should use the same Service Directory region.
- Namespace string
- Service Directory namespace to register the forwarding rule under.
- Service
Directory stringRegion - [Optional] Service Directory region to register this global forwarding rule under. Default to "us-central1". Only used for PSC for Google APIs. All PSC for Google APIs Forwarding Rules on the same network should use the same Service Directory region.
- namespace String
- Service Directory namespace to register the forwarding rule under.
- service
Directory StringRegion - [Optional] Service Directory region to register this global forwarding rule under. Default to "us-central1". Only used for PSC for Google APIs. All PSC for Google APIs Forwarding Rules on the same network should use the same Service Directory region.
- namespace string
- Service Directory namespace to register the forwarding rule under.
- service
Directory stringRegion - [Optional] Service Directory region to register this global forwarding rule under. Default to "us-central1". Only used for PSC for Google APIs. All PSC for Google APIs Forwarding Rules on the same network should use the same Service Directory region.
- namespace str
- Service Directory namespace to register the forwarding rule under.
- service_
directory_ strregion - [Optional] Service Directory region to register this global forwarding rule under. Default to "us-central1". Only used for PSC for Google APIs. All PSC for Google APIs Forwarding Rules on the same network should use the same Service Directory region.
- namespace String
- Service Directory namespace to register the forwarding rule under.
- service
Directory StringRegion - [Optional] Service Directory region to register this global forwarding rule under. Default to "us-central1". Only used for PSC for Google APIs. All PSC for Google APIs Forwarding Rules on the same network should use the same Service Directory region.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.