ibm.getIsPublicGateway
Explore with Pulumi AI
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.
- Resource
Group 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.
- Resource
Group 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.
- resource
Group 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.
- resource
Group 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.
- resource
Group 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:
- 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) 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.
- Resource
Controller stringUrl - Resource
Crn string - Resource
Group string - Resource
Group stringName - Resource
Name string - Resource
Status string - Status string
- (String) The status of the gateway.
- 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.
- []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) 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.
- Resource
Controller stringUrl - Resource
Crn string - Resource
Group string - Resource
Group stringName - Resource
Name string - Resource
Status string - Status string
- (String) The status of the gateway.
- []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.
- 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) 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.
- resource
Controller StringUrl - resource
Crn String - resource
Group String - resource
Group StringName - resource
Name String - resource
Status String - status String
- (String) The status of the gateway.
- 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.
- 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) 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.
- resource
Controller stringUrl - resource
Crn string - resource
Group string - resource
Group stringName - resource
Name string - resource
Status string - status string
- (String) The status of the gateway.
- 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.
- 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_ strurl - resource_
crn str - resource_
group str - resource_
group_ strname - resource_
name str - resource_
status str - status str
- (String) The status of the gateway.
- 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.
- 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) 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.
- resource
Controller StringUrl - resource
Crn String - resource
Group String - resource
Group StringName - resource
Name String - resource
Status String - status String
- (String) The status of the gateway.
- 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.