1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsPublicGateways
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getIsPublicGateways

Explore with Pulumi AI

Retrieve information of an existing public gateways 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";
Copy
import pulumi
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => 
{
});
Copy
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) {
    }
}
Copy
{}
Copy

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const example = ibm.getIsPublicGateways({});
Copy
import pulumi
import pulumi_ibm as ibm

example = ibm.get_is_public_gateways()
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.GetIsPublicGateways(ctx, &ibm.GetIsPublicGatewaysArgs{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var example = Ibm.GetIsPublicGateways.Invoke();

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetIsPublicGatewaysArgs;
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 example = IbmFunctions.getIsPublicGateways();

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: ibm:getIsPublicGateways
      arguments: {}
Copy

Using getIsPublicGateways

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 getIsPublicGateways(args: GetIsPublicGatewaysArgs, opts?: InvokeOptions): Promise<GetIsPublicGatewaysResult>
function getIsPublicGatewaysOutput(args: GetIsPublicGatewaysOutputArgs, opts?: InvokeOptions): Output<GetIsPublicGatewaysResult>
Copy
def get_is_public_gateways(id: Optional[str] = None,
                           resource_group: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetIsPublicGatewaysResult
def get_is_public_gateways_output(id: Optional[pulumi.Input[str]] = None,
                           resource_group: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetIsPublicGatewaysResult]
Copy
func GetIsPublicGateways(ctx *Context, args *GetIsPublicGatewaysArgs, opts ...InvokeOption) (*GetIsPublicGatewaysResult, error)
func GetIsPublicGatewaysOutput(ctx *Context, args *GetIsPublicGatewaysOutputArgs, opts ...InvokeOption) GetIsPublicGatewaysResultOutput
Copy

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

public static class GetIsPublicGateways 
{
    public static Task<GetIsPublicGatewaysResult> InvokeAsync(GetIsPublicGatewaysArgs args, InvokeOptions? opts = null)
    public static Output<GetIsPublicGatewaysResult> Invoke(GetIsPublicGatewaysInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIsPublicGatewaysResult> getIsPublicGateways(GetIsPublicGatewaysArgs args, InvokeOptions options)
public static Output<GetIsPublicGatewaysResult> getIsPublicGateways(GetIsPublicGatewaysArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getIsPublicGateways:getIsPublicGateways
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id string
(String) ID of the floating ip bound to the public gateway.
ResourceGroup string
The ID of the Resource group this public gateway belongs to.
Id string
(String) ID of the floating ip bound to the public gateway.
ResourceGroup string
The ID of the Resource group this public gateway belongs to.
id String
(String) ID of the floating ip bound to the public gateway.
resourceGroup String
The ID of the Resource group this public gateway belongs to.
id string
(String) ID of the floating ip bound to the public gateway.
resourceGroup string
The ID of the Resource group this public gateway belongs to.
id str
(String) ID of the floating ip bound to the public gateway.
resource_group str
The ID of the Resource group this public gateway belongs to.
id String
(String) ID of the floating ip bound to the public gateway.
resourceGroup String
The ID of the Resource group this public gateway belongs to.

getIsPublicGateways Result

The following output properties are available:

Id string
(String) ID of the floating ip bound to the public gateway.
PublicGateways List<GetIsPublicGatewaysPublicGateway>
(List) List of all Public Gateways in the IBM Cloud infrastructure region.
ResourceGroup string
Id string
(String) ID of the floating ip bound to the public gateway.
PublicGateways []GetIsPublicGatewaysPublicGateway
(List) List of all Public Gateways in the IBM Cloud infrastructure region.
ResourceGroup string
id String
(String) ID of the floating ip bound to the public gateway.
publicGateways List<GetIsPublicGatewaysPublicGateway>
(List) List of all Public Gateways in the IBM Cloud infrastructure region.
resourceGroup String
id string
(String) ID of the floating ip bound to the public gateway.
publicGateways GetIsPublicGatewaysPublicGateway[]
(List) List of all Public Gateways in the IBM Cloud infrastructure region.
resourceGroup string
id str
(String) ID of the floating ip bound to the public gateway.
public_gateways Sequence[GetIsPublicGatewaysPublicGateway]
(List) List of all Public Gateways in the IBM Cloud infrastructure region.
resource_group str
id String
(String) ID of the floating ip bound to the public gateway.
publicGateways List<Property Map>
(List) List of all Public Gateways in the IBM Cloud infrastructure region.
resourceGroup String

Supporting Types

GetIsPublicGatewaysPublicGateway

AccessTags This property is required. List<string>
(List) Access management tags associated for the public gateway.
Crn This property is required. string
(String) The CRN for this public gateway.
FloatingIp This property is required. Dictionary<string, string>
(List) A nested block describing the floating IP of the public gateway.
Id This property is required. string
(String) ID of the floating ip bound to the public gateway.
Name This property is required. string
(String) The name of the public gateway.
ResourceControllerUrl This property is required. string
ResourceCrn This property is required. string
ResourceGroup This property is required. string
The ID of the Resource group this public gateway belongs to.
ResourceGroupName This property is required. string
ResourceName This property is required. string
ResourceStatus This property is required. string
Status This property is required. string
(String) The status of the public gateway.
Tags This property is required. List<string>
(String) Tags associated with the public gateway.
Vpc This property is required. string
(String) The VPC ID of the public gateway.
Zone This property is required. string
(String) The public gateway zone name.
AccessTags This property is required. []string
(List) Access management tags associated for the public gateway.
Crn This property is required. string
(String) The CRN for this public gateway.
FloatingIp This property is required. map[string]string
(List) A nested block describing the floating IP of the public gateway.
Id This property is required. string
(String) ID of the floating ip bound to the public gateway.
Name This property is required. string
(String) The name of the public gateway.
ResourceControllerUrl This property is required. string
ResourceCrn This property is required. string
ResourceGroup This property is required. string
The ID of the Resource group this public gateway belongs to.
ResourceGroupName This property is required. string
ResourceName This property is required. string
ResourceStatus This property is required. string
Status This property is required. string
(String) The status of the public gateway.
Tags This property is required. []string
(String) Tags associated with the public gateway.
Vpc This property is required. string
(String) The VPC ID of the public gateway.
Zone This property is required. string
(String) The public gateway zone name.
accessTags This property is required. List<String>
(List) Access management tags associated for the public gateway.
crn This property is required. String
(String) The CRN for this public gateway.
floatingIp This property is required. Map<String,String>
(List) A nested block describing the floating IP of the public gateway.
id This property is required. String
(String) ID of the floating ip bound to the public gateway.
name This property is required. String
(String) The name of the public gateway.
resourceControllerUrl This property is required. String
resourceCrn This property is required. String
resourceGroup This property is required. String
The ID of the Resource group this public gateway belongs to.
resourceGroupName This property is required. String
resourceName This property is required. String
resourceStatus This property is required. String
status This property is required. String
(String) The status of the public gateway.
tags This property is required. List<String>
(String) Tags associated with the public gateway.
vpc This property is required. String
(String) The VPC ID of the public gateway.
zone This property is required. String
(String) The public gateway zone name.
accessTags This property is required. string[]
(List) Access management tags associated for the public gateway.
crn This property is required. string
(String) The CRN for this public gateway.
floatingIp This property is required. {[key: string]: string}
(List) A nested block describing the floating IP of the public gateway.
id This property is required. string
(String) ID of the floating ip bound to the public gateway.
name This property is required. string
(String) The name of the public gateway.
resourceControllerUrl This property is required. string
resourceCrn This property is required. string
resourceGroup This property is required. string
The ID of the Resource group this public gateway belongs to.
resourceGroupName This property is required. string
resourceName This property is required. string
resourceStatus This property is required. string
status This property is required. string
(String) The status of the public gateway.
tags This property is required. string[]
(String) Tags associated with the public gateway.
vpc This property is required. string
(String) The VPC ID of the public gateway.
zone This property is required. string
(String) The public gateway zone name.
access_tags This property is required. Sequence[str]
(List) Access management tags associated for the public gateway.
crn This property is required. str
(String) The CRN for this public gateway.
floating_ip This property is required. Mapping[str, str]
(List) A nested block describing the floating IP of the public gateway.
id This property is required. str
(String) ID of the floating ip bound to the public gateway.
name This property is required. str
(String) The name of the public gateway.
resource_controller_url This property is required. str
resource_crn This property is required. str
resource_group This property is required. str
The ID of the Resource group this public gateway belongs to.
resource_group_name This property is required. str
resource_name This property is required. str
resource_status This property is required. str
status This property is required. str
(String) The status of the public gateway.
tags This property is required. Sequence[str]
(String) Tags associated with the public gateway.
vpc This property is required. str
(String) The VPC ID of the public gateway.
zone This property is required. str
(String) The public gateway zone name.
accessTags This property is required. List<String>
(List) Access management tags associated for the public gateway.
crn This property is required. String
(String) The CRN for this public gateway.
floatingIp This property is required. Map<String>
(List) A nested block describing the floating IP of the public gateway.
id This property is required. String
(String) ID of the floating ip bound to the public gateway.
name This property is required. String
(String) The name of the public gateway.
resourceControllerUrl This property is required. String
resourceCrn This property is required. String
resourceGroup This property is required. String
The ID of the Resource group this public gateway belongs to.
resourceGroupName This property is required. String
resourceName This property is required. String
resourceStatus This property is required. String
status This property is required. String
(String) The status of the public gateway.
tags This property is required. List<String>
(String) Tags associated with the public gateway.
vpc This property is required. String
(String) The VPC ID of the public gateway.
zone This property is required. 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.