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";
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) {
}
}
{}
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const example = ibm.getIsPublicGateways({});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_is_public_gateways()
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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var example = Ibm.GetIsPublicGateways.Invoke();
});
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();
}
}
variables:
example:
fn::invoke:
function: ibm:getIsPublicGateways
arguments: {}
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>
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]
func GetIsPublicGateways(ctx *Context, args *GetIsPublicGatewaysArgs, opts ...InvokeOption) (*GetIsPublicGatewaysResult, error)
func GetIsPublicGatewaysOutput(ctx *Context, args *GetIsPublicGatewaysOutputArgs, opts ...InvokeOption) GetIsPublicGatewaysResultOutput
> 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)
}
public static CompletableFuture<GetIsPublicGatewaysResult> getIsPublicGateways(GetIsPublicGatewaysArgs args, InvokeOptions options)
public static Output<GetIsPublicGatewaysResult> getIsPublicGateways(GetIsPublicGatewaysArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsPublicGateways:getIsPublicGateways
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- (String) ID of the floating ip bound to the public gateway.
- Resource
Group 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.
- Resource
Group 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.
- resource
Group 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.
- resource
Group 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.
- resource
Group 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.
- Public
Gateways List<GetIs Public Gateways Public Gateway> - (List) List of all Public Gateways in the IBM Cloud infrastructure region.
- Resource
Group string
- Id string
- (String) ID of the floating ip bound to the public gateway.
- Public
Gateways []GetIs Public Gateways Public Gateway - (List) List of all Public Gateways in the IBM Cloud infrastructure region.
- Resource
Group string
- id String
- (String) ID of the floating ip bound to the public gateway.
- public
Gateways List<GetIs Public Gateways Public Gateway> - (List) List of all Public Gateways in the IBM Cloud infrastructure region.
- resource
Group String
- id string
- (String) ID of the floating ip bound to the public gateway.
- public
Gateways GetIs Public Gateways Public Gateway[] - (List) List of all Public Gateways in the IBM Cloud infrastructure region.
- resource
Group string
- id str
- (String) ID of the floating ip bound to the public gateway.
- public_
gateways Sequence[GetIs Public Gateways Public Gateway] - (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.
- public
Gateways List<Property Map> - (List) List of all Public Gateways in the IBM Cloud infrastructure region.
- resource
Group String
Supporting Types
GetIsPublicGatewaysPublicGateway
- List<string>
- (List) Access management tags associated for the public gateway.
- Crn string
- (String) The CRN for this public gateway.
- Floating
Ip Dictionary<string, string> - (List) A nested block describing the floating IP of the public gateway.
- Id string
- (String) ID of the floating ip bound to the public gateway.
- Name string
- (String) The name of the public gateway.
- Resource
Controller stringUrl - Resource
Crn string - Resource
Group string - The ID of the Resource group this public gateway belongs to.
- Resource
Group stringName - Resource
Name string - Resource
Status string - Status string
- (String) The status of the public gateway.
- List<string>
- (String) Tags associated with the public gateway.
- Vpc string
- (String) The VPC ID of the public gateway.
- Zone string
- (String) The public gateway zone name.
- []string
- (List) Access management tags associated for the public gateway.
- Crn string
- (String) The CRN for this public gateway.
- Floating
Ip map[string]string - (List) A nested block describing the floating IP of the public gateway.
- Id string
- (String) ID of the floating ip bound to the public gateway.
- Name string
- (String) The name of the public gateway.
- Resource
Controller stringUrl - Resource
Crn string - Resource
Group string - The ID of the Resource group this public gateway belongs to.
- Resource
Group stringName - Resource
Name string - Resource
Status string - Status string
- (String) The status of the public gateway.
- []string
- (String) Tags associated with the public gateway.
- Vpc string
- (String) The VPC ID of the public gateway.
- Zone string
- (String) The public gateway zone name.
- List<String>
- (List) Access management tags associated for the public gateway.
- crn String
- (String) The CRN for this public gateway.
- floating
Ip Map<String,String> - (List) A nested block describing the floating IP of the public gateway.
- id String
- (String) ID of the floating ip bound to the public gateway.
- name String
- (String) The name of the public gateway.
- resource
Controller StringUrl - resource
Crn String - resource
Group String - The ID of the Resource group this public gateway belongs to.
- resource
Group StringName - resource
Name String - resource
Status String - status String
- (String) The status of the public gateway.
- List<String>
- (String) Tags associated with the public gateway.
- vpc String
- (String) The VPC ID of the public gateway.
- zone String
- (String) The public gateway zone name.
- string[]
- (List) Access management tags associated for the public gateway.
- crn string
- (String) The CRN for this public gateway.
- floating
Ip {[key: string]: string} - (List) A nested block describing the floating IP of the public gateway.
- id string
- (String) ID of the floating ip bound to the public gateway.
- name string
- (String) The name of the public gateway.
- resource
Controller stringUrl - resource
Crn string - resource
Group string - The ID of the Resource group this public gateway belongs to.
- resource
Group stringName - resource
Name string - resource
Status string - status string
- (String) The status of the public gateway.
- string[]
- (String) Tags associated with the public gateway.
- vpc string
- (String) The VPC ID of the public gateway.
- zone string
- (String) The public gateway zone name.
- 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) A nested block describing the floating IP of the public gateway.
- id str
- (String) ID of the floating ip bound to the public gateway.
- name str
- (String) The name of the public gateway.
- resource_
controller_ strurl - resource_
crn str - resource_
group str - The ID of the Resource group this public gateway belongs to.
- resource_
group_ strname - resource_
name str - resource_
status str - status str
- (String) The status of the public gateway.
- Sequence[str]
- (String) Tags associated with the public gateway.
- vpc str
- (String) The VPC ID of the public gateway.
- zone str
- (String) The public gateway zone name.
- List<String>
- (List) Access management tags associated for the public gateway.
- crn String
- (String) The CRN for this public gateway.
- floating
Ip Map<String> - (List) A nested block describing the floating IP of the public gateway.
- id String
- (String) ID of the floating ip bound to the public gateway.
- name String
- (String) The name of the public gateway.
- resource
Controller StringUrl - resource
Crn String - resource
Group String - The ID of the Resource group this public gateway belongs to.
- resource
Group StringName - resource
Name String - resource
Status String - status String
- (String) The status of the public gateway.
- List<String>
- (String) Tags associated with the public gateway.
- vpc String
- (String) The VPC ID of the public 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.