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
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.
- Floating
Ip 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.
- Resource
Controller Url This property is required. string - Resource
Crn This property is required. string - Resource
Group This property is required. string - The ID of the Resource group this public gateway belongs to.
- Resource
Group Name This property is required. string - Resource
Name This property is required. string - Resource
Status This property is required. string - Status
This property is required. string - (String) The status of the public gateway.
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.
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.
- Floating
Ip 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.
- Resource
Controller Url This property is required. string - Resource
Crn This property is required. string - Resource
Group This property is required. string - The ID of the Resource group this public gateway belongs to.
- Resource
Group Name This property is required. string - Resource
Name This property is required. string - Resource
Status This property is required. string - Status
This property is required. string - (String) The status of the public gateway.
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.
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.
- floating
Ip 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.
- resource
Controller Url This property is required. String - resource
Crn This property is required. String - resource
Group This property is required. String - The ID of the Resource group this public gateway belongs to.
- resource
Group Name This property is required. String - resource
Name This property is required. String - resource
Status This property is required. String - status
This property is required. String - (String) The status of the public gateway.
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.
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.
- floating
Ip 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.
- resource
Controller Url This property is required. string - resource
Crn This property is required. string - resource
Group This property is required. string - The ID of the Resource group this public gateway belongs to.
- resource
Group Name This property is required. string - resource
Name This property is required. string - resource
Status This property is required. string - status
This property is required. string - (String) The status of the public gateway.
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.
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.
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.
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.
- floating
Ip 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.
- resource
Controller Url This property is required. String - resource
Crn This property is required. String - resource
Group This property is required. String - The ID of the Resource group this public gateway belongs to.
- resource
Group Name This property is required. String - resource
Name This property is required. String - resource
Status This property is required. String - status
This property is required. String - (String) The status of the public gateway.
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.