1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsPublicGateway
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getIsPublicGateway

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Retrieve information of an existing public gateway data source as a read only data source. For more information, about an VPC public gateway, see about networking.

    Note: VPC infrastructure services are a regional specific based endpoint, by default targets to us-south. Please make sure to target right region in the provider block as shown in the provider.tf file, if VPC service is created in region other than us-south.

    provider.tf

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    

    Using getIsPublicGateway

    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 getIsPublicGateway(args: GetIsPublicGatewayArgs, opts?: InvokeOptions): Promise<GetIsPublicGatewayResult>
    function getIsPublicGatewayOutput(args: GetIsPublicGatewayOutputArgs, opts?: InvokeOptions): Output<GetIsPublicGatewayResult>
    def get_is_public_gateway(id: Optional[str] = None,
                              name: Optional[str] = None,
                              resource_group: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetIsPublicGatewayResult
    def get_is_public_gateway_output(id: Optional[pulumi.Input[str]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              resource_group: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetIsPublicGatewayResult]
    func LookupIsPublicGateway(ctx *Context, args *LookupIsPublicGatewayArgs, opts ...InvokeOption) (*LookupIsPublicGatewayResult, error)
    func LookupIsPublicGatewayOutput(ctx *Context, args *LookupIsPublicGatewayOutputArgs, opts ...InvokeOption) LookupIsPublicGatewayResultOutput

    > Note: This function is named LookupIsPublicGateway in the Go SDK.

    public static class GetIsPublicGateway 
    {
        public static Task<GetIsPublicGatewayResult> InvokeAsync(GetIsPublicGatewayArgs args, InvokeOptions? opts = null)
        public static Output<GetIsPublicGatewayResult> Invoke(GetIsPublicGatewayInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsPublicGatewayResult> getIsPublicGateway(GetIsPublicGatewayArgs args, InvokeOptions options)
    public static Output<GetIsPublicGatewayResult> getIsPublicGateway(GetIsPublicGatewayArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsPublicGateway:getIsPublicGateway
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the gateway.
    Id string
    (String) The ID of the public gateway.
    ResourceGroup string
    The resource group ID of the public gateway. Note This parameter is supported only for VPC Generation 2 infrastructure.
    Name string
    The name of the gateway.
    Id string
    (String) The ID of the public gateway.
    ResourceGroup string
    The resource group ID of the public gateway. Note This parameter is supported only for VPC Generation 2 infrastructure.
    name String
    The name of the gateway.
    id String
    (String) The ID of the public gateway.
    resourceGroup String
    The resource group ID of the public gateway. Note This parameter is supported only for VPC Generation 2 infrastructure.
    name string
    The name of the gateway.
    id string
    (String) The ID of the public gateway.
    resourceGroup string
    The resource group ID of the public gateway. Note This parameter is supported only for VPC Generation 2 infrastructure.
    name str
    The name of the gateway.
    id str
    (String) The ID of the public gateway.
    resource_group str
    The resource group ID of the public gateway. Note This parameter is supported only for VPC Generation 2 infrastructure.
    name String
    The name of the gateway.
    id String
    (String) The ID of the public gateway.
    resourceGroup String
    The resource group ID of the public gateway. Note This parameter is supported only for VPC Generation 2 infrastructure.

    getIsPublicGateway Result

    The following output properties are available:

    AccessTags List<string>
    (List) Access management tags associated for the public gateway.
    Crn string
    (String) The CRN for this public gateway.
    FloatingIp Dictionary<string, string>
    (List) List of the nested block describes the floating IP of the gateway with the id and address details.
    Id string
    (String) The ID of the public gateway.
    Name string
    (String) The name of the public gateway.
    ResourceControllerUrl string
    ResourceCrn string
    ResourceGroup string
    ResourceGroupName string
    ResourceName string
    ResourceStatus string
    Status string
    (String) The status of the gateway.
    Tags List<string>
    (String) Tags associated with the Public gateway.
    Vpc string
    (String) The VPC ID of the gateway.
    Zone string
    (String) The public gateway zone name.
    AccessTags []string
    (List) Access management tags associated for the public gateway.
    Crn string
    (String) The CRN for this public gateway.
    FloatingIp map[string]string
    (List) List of the nested block describes the floating IP of the gateway with the id and address details.
    Id string
    (String) The ID of the public gateway.
    Name string
    (String) The name of the public gateway.
    ResourceControllerUrl string
    ResourceCrn string
    ResourceGroup string
    ResourceGroupName string
    ResourceName string
    ResourceStatus string
    Status string
    (String) The status of the gateway.
    Tags []string
    (String) Tags associated with the Public gateway.
    Vpc string
    (String) The VPC ID of the gateway.
    Zone string
    (String) The public gateway zone name.
    accessTags List<String>
    (List) Access management tags associated for the public gateway.
    crn String
    (String) The CRN for this public gateway.
    floatingIp Map<String,String>
    (List) List of the nested block describes the floating IP of the gateway with the id and address details.
    id String
    (String) The ID of the public gateway.
    name String
    (String) The name of the public gateway.
    resourceControllerUrl String
    resourceCrn String
    resourceGroup String
    resourceGroupName String
    resourceName String
    resourceStatus String
    status String
    (String) The status of the gateway.
    tags List<String>
    (String) Tags associated with the Public gateway.
    vpc String
    (String) The VPC ID of the gateway.
    zone String
    (String) The public gateway zone name.
    accessTags string[]
    (List) Access management tags associated for the public gateway.
    crn string
    (String) The CRN for this public gateway.
    floatingIp {[key: string]: string}
    (List) List of the nested block describes the floating IP of the gateway with the id and address details.
    id string
    (String) The ID of the public gateway.
    name string
    (String) The name of the public gateway.
    resourceControllerUrl string
    resourceCrn string
    resourceGroup string
    resourceGroupName string
    resourceName string
    resourceStatus string
    status string
    (String) The status of the gateway.
    tags string[]
    (String) Tags associated with the Public gateway.
    vpc string
    (String) The VPC ID of the gateway.
    zone string
    (String) The public gateway zone name.
    access_tags Sequence[str]
    (List) Access management tags associated for the public gateway.
    crn str
    (String) The CRN for this public gateway.
    floating_ip Mapping[str, str]
    (List) List of the nested block describes the floating IP of the gateway with the id and address details.
    id str
    (String) The ID of the public gateway.
    name str
    (String) The name of the public gateway.
    resource_controller_url str
    resource_crn str
    resource_group str
    resource_group_name str
    resource_name str
    resource_status str
    status str
    (String) The status of the gateway.
    tags Sequence[str]
    (String) Tags associated with the Public gateway.
    vpc str
    (String) The VPC ID of the gateway.
    zone str
    (String) The public gateway zone name.
    accessTags List<String>
    (List) Access management tags associated for the public gateway.
    crn String
    (String) The CRN for this public gateway.
    floatingIp Map<String>
    (List) List of the nested block describes the floating IP of the gateway with the id and address details.
    id String
    (String) The ID of the public gateway.
    name String
    (String) The name of the public gateway.
    resourceControllerUrl String
    resourceCrn String
    resourceGroup String
    resourceGroupName String
    resourceName String
    resourceStatus String
    status String
    (String) The status of the gateway.
    tags List<String>
    (String) Tags associated with the Public gateway.
    vpc String
    (String) The VPC ID of the gateway.
    zone String
    (String) The public gateway zone name.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud