Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi
gcp.vmwareengine.getExternalAccessRule
Explore with Pulumi AI
Use this data source to get details about a external access rule resource.
To get more information about external address, see:
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const myExternalAccessRule = gcp.vmwareengine.getExternalAccessRule({
name: "my-external-access-rule",
parent: "project/my-project/locations/us-west1-a/networkPolicies/my-network-policy",
});
import pulumi
import pulumi_gcp as gcp
my_external_access_rule = gcp.vmwareengine.get_external_access_rule(name="my-external-access-rule",
parent="project/my-project/locations/us-west1-a/networkPolicies/my-network-policy")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/vmwareengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vmwareengine.LookupExternalAccessRule(ctx, &vmwareengine.LookupExternalAccessRuleArgs{
Name: "my-external-access-rule",
Parent: "project/my-project/locations/us-west1-a/networkPolicies/my-network-policy",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var myExternalAccessRule = Gcp.VMwareEngine.GetExternalAccessRule.Invoke(new()
{
Name = "my-external-access-rule",
Parent = "project/my-project/locations/us-west1-a/networkPolicies/my-network-policy",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
import com.pulumi.gcp.vmwareengine.inputs.GetExternalAccessRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var myExternalAccessRule = VmwareengineFunctions.getExternalAccessRule(GetExternalAccessRuleArgs.builder()
.name("my-external-access-rule")
.parent("project/my-project/locations/us-west1-a/networkPolicies/my-network-policy")
.build());
}
}
variables:
myExternalAccessRule:
fn::invoke:
Function: gcp:vmwareengine:getExternalAccessRule
Arguments:
name: my-external-access-rule
parent: project/my-project/locations/us-west1-a/networkPolicies/my-network-policy
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(name: Optional[str] = None,
parent: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetExternalAccessRuleResult
def get_external_access_rule_output(name: Optional[pulumi.Input[str]] = None,
parent: 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: gcp:vmwareengine/getExternalAccessRule:getExternalAccessRule
arguments:
# arguments dictionary
The following arguments are supported:
getExternalAccessRule Result
The following output properties are available:
- Action string
- Create
Time string - Description string
- Destination
Ip List<GetRanges External Access Rule Destination Ip Range> - Destination
Ports List<string> - Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Protocol string - Name string
- Parent string
- Priority int
- Source
Ip List<GetRanges External Access Rule Source Ip Range> - Source
Ports List<string> - State string
- Uid string
- Update
Time string
- Action string
- Create
Time string - Description string
- Destination
Ip []GetRanges External Access Rule Destination Ip Range - Destination
Ports []string - Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Protocol string - Name string
- Parent string
- Priority int
- Source
Ip []GetRanges External Access Rule Source Ip Range - Source
Ports []string - State string
- Uid string
- Update
Time string
- action String
- create
Time String - description String
- destination
Ip List<GetRanges External Access Rule Destination Ip Range> - destination
Ports List<String> - id String
- The provider-assigned unique ID for this managed resource.
- ip
Protocol String - name String
- parent String
- priority Integer
- source
Ip List<GetRanges External Access Rule Source Ip Range> - source
Ports List<String> - state String
- uid String
- update
Time String
- action string
- create
Time string - description string
- destination
Ip GetRanges External Access Rule Destination Ip Range[] - destination
Ports string[] - id string
- The provider-assigned unique ID for this managed resource.
- ip
Protocol string - name string
- parent string
- priority number
- source
Ip GetRanges External Access Rule Source Ip Range[] - source
Ports string[] - state string
- uid string
- update
Time string
- action str
- create_
time str - description str
- destination_
ip_ Sequence[Getranges External Access Rule Destination Ip Range] - destination_
ports Sequence[str] - id str
- The provider-assigned unique ID for this managed resource.
- ip_
protocol str - name str
- parent str
- priority int
- source_
ip_ Sequence[Getranges External Access Rule Source Ip Range] - source_
ports Sequence[str] - state str
- uid str
- update_
time str
- action String
- create
Time String - description String
- destination
Ip List<Property Map>Ranges - destination
Ports List<String> - id String
- The provider-assigned unique ID for this managed resource.
- ip
Protocol String - name String
- parent String
- priority Number
- source
Ip List<Property Map>Ranges - source
Ports List<String> - state String
- uid String
- update
Time String
Supporting Types
GetExternalAccessRuleDestinationIpRange
- External
Address string - The name of an 'ExternalAddress' resource.
- Ip
Address stringRange - An IP address range in the CIDR format.
- External
Address string - The name of an 'ExternalAddress' resource.
- Ip
Address stringRange - An IP address range in the CIDR format.
- external
Address String - The name of an 'ExternalAddress' resource.
- ip
Address StringRange - An IP address range in the CIDR format.
- external
Address string - The name of an 'ExternalAddress' resource.
- ip
Address stringRange - An IP address range in the CIDR format.
- external_
address str - The name of an 'ExternalAddress' resource.
- ip_
address_ strrange - An IP address range in the CIDR format.
- external
Address String - The name of an 'ExternalAddress' resource.
- ip
Address StringRange - An IP address range in the CIDR format.
GetExternalAccessRuleSourceIpRange
- Ip
Address string - A single IP address.
- Ip
Address stringRange - An IP address range in the CIDR format.
- Ip
Address string - A single IP address.
- Ip
Address stringRange - An IP address range in the CIDR format.
- ip
Address String - A single IP address.
- ip
Address StringRange - An IP address range in the CIDR format.
- ip
Address string - A single IP address.
- ip
Address stringRange - An IP address range in the CIDR format.
- ip_
address str - A single IP address.
- ip_
address_ strrange - An IP address range in the CIDR format.
- ip
Address String - A single IP address.
- ip
Address StringRange - An IP address range in the CIDR format.
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.