ibm.getIsVpnGateways
Explore with Pulumi AI
Retrieve information of an existing VPN gateways. For more information, about IBM Cloud VPN gateways, see configuring ACLs and security groups for use with VPN.
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.getIsVpnGateways({});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_is_vpn_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.GetIsVpnGateways(ctx, &ibm.GetIsVpnGatewaysArgs{}, 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.GetIsVpnGateways.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.GetIsVpnGatewaysArgs;
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.getIsVpnGateways();
}
}
variables:
example:
fn::invoke:
function: ibm:getIsVpnGateways
arguments: {}
Using getIsVpnGateways
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 getIsVpnGateways(args: GetIsVpnGatewaysArgs, opts?: InvokeOptions): Promise<GetIsVpnGatewaysResult>
function getIsVpnGatewaysOutput(args: GetIsVpnGatewaysOutputArgs, opts?: InvokeOptions): Output<GetIsVpnGatewaysResult>
def get_is_vpn_gateways(id: Optional[str] = None,
mode: Optional[str] = None,
resource_group: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsVpnGatewaysResult
def get_is_vpn_gateways_output(id: Optional[pulumi.Input[str]] = None,
mode: Optional[pulumi.Input[str]] = None,
resource_group: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsVpnGatewaysResult]
func GetIsVpnGateways(ctx *Context, args *GetIsVpnGatewaysArgs, opts ...InvokeOption) (*GetIsVpnGatewaysResult, error)
func GetIsVpnGatewaysOutput(ctx *Context, args *GetIsVpnGatewaysOutputArgs, opts ...InvokeOption) GetIsVpnGatewaysResultOutput
> Note: This function is named GetIsVpnGateways
in the Go SDK.
public static class GetIsVpnGateways
{
public static Task<GetIsVpnGatewaysResult> InvokeAsync(GetIsVpnGatewaysArgs args, InvokeOptions? opts = null)
public static Output<GetIsVpnGatewaysResult> Invoke(GetIsVpnGatewaysInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsVpnGatewaysResult> getIsVpnGateways(GetIsVpnGatewaysArgs args, InvokeOptions options)
public static Output<GetIsVpnGatewaysResult> getIsVpnGateways(GetIsVpnGatewaysArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsVpnGateways:getIsVpnGateways
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- (String) - The unique identifier for this VPC.
- Mode string
- The mode of this VPN Gateway. Available options are
policy
androute
. - Resource
Group string - The ID of the Resource group this vpn gateway belongs to
- Id string
- (String) - The unique identifier for this VPC.
- Mode string
- The mode of this VPN Gateway. Available options are
policy
androute
. - Resource
Group string - The ID of the Resource group this vpn gateway belongs to
- id String
- (String) - The unique identifier for this VPC.
- mode String
- The mode of this VPN Gateway. Available options are
policy
androute
. - resource
Group String - The ID of the Resource group this vpn gateway belongs to
- id string
- (String) - The unique identifier for this VPC.
- mode string
- The mode of this VPN Gateway. Available options are
policy
androute
. - resource
Group string - The ID of the Resource group this vpn gateway belongs to
- id str
- (String) - The unique identifier for this VPC.
- mode str
- The mode of this VPN Gateway. Available options are
policy
androute
. - resource_
group str - The ID of the Resource group this vpn gateway belongs to
- id String
- (String) - The unique identifier for this VPC.
- mode String
- The mode of this VPN Gateway. Available options are
policy
androute
. - resource
Group String - The ID of the Resource group this vpn gateway belongs to
getIsVpnGateways Result
The following output properties are available:
- Id string
- (String) - The unique identifier for this VPC.
- Vpn
Gateways List<GetIs Vpn Gateways Vpn Gateway> - (List) Collection of VPN Gateways.
- Mode string
- (String) The VPN gateway mode, supported values are
policy
androute
. - Resource
Group string - (String) The resource group ID.
- Id string
- (String) - The unique identifier for this VPC.
- Vpn
Gateways []GetIs Vpn Gateways Vpn Gateway - (List) Collection of VPN Gateways.
- Mode string
- (String) The VPN gateway mode, supported values are
policy
androute
. - Resource
Group string - (String) The resource group ID.
- id String
- (String) - The unique identifier for this VPC.
- vpn
Gateways List<GetIs Vpn Gateways Vpn Gateway> - (List) Collection of VPN Gateways.
- mode String
- (String) The VPN gateway mode, supported values are
policy
androute
. - resource
Group String - (String) The resource group ID.
- id string
- (String) - The unique identifier for this VPC.
- vpn
Gateways GetIs Vpn Gateways Vpn Gateway[] - (List) Collection of VPN Gateways.
- mode string
- (String) The VPN gateway mode, supported values are
policy
androute
. - resource
Group string - (String) The resource group ID.
- id str
- (String) - The unique identifier for this VPC.
- vpn_
gateways Sequence[GetIs Vpn Gateways Vpn Gateway] - (List) Collection of VPN Gateways.
- mode str
- (String) The VPN gateway mode, supported values are
policy
androute
. - resource_
group str - (String) The resource group ID.
- id String
- (String) - The unique identifier for this VPC.
- vpn
Gateways List<Property Map> - (List) Collection of VPN Gateways.
- mode String
- (String) The VPN gateway mode, supported values are
policy
androute
. - resource
Group String - (String) The resource group ID.
Supporting Types
GetIsVpnGatewaysVpnGateway
- List<string>
- (List) Access management tags associated for the vpn gateway.
- Created
At string - (Timestamp) The date and time the VPN gateway was created.
- Crn string
- (String) The CRN for this VPC.
- Health
Reasons List<GetIs Vpn Gateways Vpn Gateway Health Reason> - (List) The reasons for the current health_state (if any).
- Health
State string - (String) The health of this resource.
- Lifecycle
Reasons List<GetIs Vpn Gateways Vpn Gateway Lifecycle Reason> - (List) The reasons for the current lifecycle_reasons (if any).
- Lifecycle
State string - (String) The lifecycle state of the VPN gateway.
- Members
List<Get
Is Vpn Gateways Vpn Gateway Member> - (List) Collection of VPN gateway members.
- Mode string
- The mode of this VPN Gateway. Available options are
policy
androute
. - Name string
- (String) - The unique user-defined name for this VPC.
- Resource
Group string - The ID of the Resource group this vpn gateway belongs to
- Resource
Type string - (String) The resource type, supported value is
vpn_gateway
. - Status string
- Subnet string
- (String) The VPN gateway subnet information.
- List<string>
- (Optional, Array of Strings) A list of tags associated with the instance.
- Vpcs
List<Get
Is Vpn Gateways Vpn Gateway Vpc> - (String) The VPC this VPN server resides in.
- []string
- (List) Access management tags associated for the vpn gateway.
- Created
At string - (Timestamp) The date and time the VPN gateway was created.
- Crn string
- (String) The CRN for this VPC.
- Health
Reasons []GetIs Vpn Gateways Vpn Gateway Health Reason - (List) The reasons for the current health_state (if any).
- Health
State string - (String) The health of this resource.
- Lifecycle
Reasons []GetIs Vpn Gateways Vpn Gateway Lifecycle Reason - (List) The reasons for the current lifecycle_reasons (if any).
- Lifecycle
State string - (String) The lifecycle state of the VPN gateway.
- Members
[]Get
Is Vpn Gateways Vpn Gateway Member - (List) Collection of VPN gateway members.
- Mode string
- The mode of this VPN Gateway. Available options are
policy
androute
. - Name string
- (String) - The unique user-defined name for this VPC.
- Resource
Group string - The ID of the Resource group this vpn gateway belongs to
- Resource
Type string - (String) The resource type, supported value is
vpn_gateway
. - Status string
- Subnet string
- (String) The VPN gateway subnet information.
- []string
- (Optional, Array of Strings) A list of tags associated with the instance.
- Vpcs
[]Get
Is Vpn Gateways Vpn Gateway Vpc - (String) The VPC this VPN server resides in.
- List<String>
- (List) Access management tags associated for the vpn gateway.
- created
At String - (Timestamp) The date and time the VPN gateway was created.
- crn String
- (String) The CRN for this VPC.
- health
Reasons List<GetIs Vpn Gateways Vpn Gateway Health Reason> - (List) The reasons for the current health_state (if any).
- health
State String - (String) The health of this resource.
- lifecycle
Reasons List<GetIs Vpn Gateways Vpn Gateway Lifecycle Reason> - (List) The reasons for the current lifecycle_reasons (if any).
- lifecycle
State String - (String) The lifecycle state of the VPN gateway.
- members
List<Get
Is Vpn Gateways Vpn Gateway Member> - (List) Collection of VPN gateway members.
- mode String
- The mode of this VPN Gateway. Available options are
policy
androute
. - name String
- (String) - The unique user-defined name for this VPC.
- resource
Group String - The ID of the Resource group this vpn gateway belongs to
- resource
Type String - (String) The resource type, supported value is
vpn_gateway
. - status String
- subnet String
- (String) The VPN gateway subnet information.
- List<String>
- (Optional, Array of Strings) A list of tags associated with the instance.
- vpcs
List<Get
Is Vpn Gateways Vpn Gateway Vpc> - (String) The VPC this VPN server resides in.
- string[]
- (List) Access management tags associated for the vpn gateway.
- created
At string - (Timestamp) The date and time the VPN gateway was created.
- crn string
- (String) The CRN for this VPC.
- health
Reasons GetIs Vpn Gateways Vpn Gateway Health Reason[] - (List) The reasons for the current health_state (if any).
- health
State string - (String) The health of this resource.
- lifecycle
Reasons GetIs Vpn Gateways Vpn Gateway Lifecycle Reason[] - (List) The reasons for the current lifecycle_reasons (if any).
- lifecycle
State string - (String) The lifecycle state of the VPN gateway.
- members
Get
Is Vpn Gateways Vpn Gateway Member[] - (List) Collection of VPN gateway members.
- mode string
- The mode of this VPN Gateway. Available options are
policy
androute
. - name string
- (String) - The unique user-defined name for this VPC.
- resource
Group string - The ID of the Resource group this vpn gateway belongs to
- resource
Type string - (String) The resource type, supported value is
vpn_gateway
. - status string
- subnet string
- (String) The VPN gateway subnet information.
- string[]
- (Optional, Array of Strings) A list of tags associated with the instance.
- vpcs
Get
Is Vpn Gateways Vpn Gateway Vpc[] - (String) The VPC this VPN server resides in.
- Sequence[str]
- (List) Access management tags associated for the vpn gateway.
- created_
at str - (Timestamp) The date and time the VPN gateway was created.
- crn str
- (String) The CRN for this VPC.
- health_
reasons Sequence[GetIs Vpn Gateways Vpn Gateway Health Reason] - (List) The reasons for the current health_state (if any).
- health_
state str - (String) The health of this resource.
- lifecycle_
reasons Sequence[GetIs Vpn Gateways Vpn Gateway Lifecycle Reason] - (List) The reasons for the current lifecycle_reasons (if any).
- lifecycle_
state str - (String) The lifecycle state of the VPN gateway.
- members
Sequence[Get
Is Vpn Gateways Vpn Gateway Member] - (List) Collection of VPN gateway members.
- mode str
- The mode of this VPN Gateway. Available options are
policy
androute
. - name str
- (String) - The unique user-defined name for this VPC.
- resource_
group str - The ID of the Resource group this vpn gateway belongs to
- resource_
type str - (String) The resource type, supported value is
vpn_gateway
. - status str
- subnet str
- (String) The VPN gateway subnet information.
- Sequence[str]
- (Optional, Array of Strings) A list of tags associated with the instance.
- vpcs
Sequence[Get
Is Vpn Gateways Vpn Gateway Vpc] - (String) The VPC this VPN server resides in.
- List<String>
- (List) Access management tags associated for the vpn gateway.
- created
At String - (Timestamp) The date and time the VPN gateway was created.
- crn String
- (String) The CRN for this VPC.
- health
Reasons List<Property Map> - (List) The reasons for the current health_state (if any).
- health
State String - (String) The health of this resource.
- lifecycle
Reasons List<Property Map> - (List) The reasons for the current lifecycle_reasons (if any).
- lifecycle
State String - (String) The lifecycle state of the VPN gateway.
- members List<Property Map>
- (List) Collection of VPN gateway members.
- mode String
- The mode of this VPN Gateway. Available options are
policy
androute
. - name String
- (String) - The unique user-defined name for this VPC.
- resource
Group String - The ID of the Resource group this vpn gateway belongs to
- resource
Type String - (String) The resource type, supported value is
vpn_gateway
. - status String
- subnet String
- (String) The VPN gateway subnet information.
- List<String>
- (Optional, Array of Strings) A list of tags associated with the instance.
- vpcs List<Property Map>
- (String) The VPC this VPN server resides in.
GetIsVpnGatewaysVpnGatewayHealthReason
GetIsVpnGatewaysVpnGatewayLifecycleReason
GetIsVpnGatewaysVpnGatewayMember
- Address string
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- Private
Address string - (String) The private IP address assigned to the VPN gateway member. Same as
private_ip.0.address
. - Role string
- (String) The high availability role assigned to the VPN gateway member.
- Status string
- Address string
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- Private
Address string - (String) The private IP address assigned to the VPN gateway member. Same as
private_ip.0.address
. - Role string
- (String) The high availability role assigned to the VPN gateway member.
- Status string
- address String
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- private
Address String - (String) The private IP address assigned to the VPN gateway member. Same as
private_ip.0.address
. - role String
- (String) The high availability role assigned to the VPN gateway member.
- status String
- address string
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- private
Address string - (String) The private IP address assigned to the VPN gateway member. Same as
private_ip.0.address
. - role string
- (String) The high availability role assigned to the VPN gateway member.
- status string
- address str
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- private_
address str - (String) The private IP address assigned to the VPN gateway member. Same as
private_ip.0.address
. - role str
- (String) The high availability role assigned to the VPN gateway member.
- status str
- address String
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- private
Address String - (String) The private IP address assigned to the VPN gateway member. Same as
private_ip.0.address
. - role String
- (String) The high availability role assigned to the VPN gateway member.
- status String
GetIsVpnGatewaysVpnGatewayVpc
- Crn string
- (String) The CRN for this VPC.
- Deleteds
List<Get
Is Vpn Gateways Vpn Gateway Vpc Deleted> - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information. Nested scheme for deleted:
- Href string
- (String) - The URL for this VPC
- Id string
- (String) - The unique identifier for this VPC.
- Name string
- (String) - The unique user-defined name for this VPC.
- Crn string
- (String) The CRN for this VPC.
- Deleteds
[]Get
Is Vpn Gateways Vpn Gateway Vpc Deleted - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information. Nested scheme for deleted:
- Href string
- (String) - The URL for this VPC
- Id string
- (String) - The unique identifier for this VPC.
- Name string
- (String) - The unique user-defined name for this VPC.
- crn String
- (String) The CRN for this VPC.
- deleteds
List<Get
Is Vpn Gateways Vpn Gateway Vpc Deleted> - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information. Nested scheme for deleted:
- href String
- (String) - The URL for this VPC
- id String
- (String) - The unique identifier for this VPC.
- name String
- (String) - The unique user-defined name for this VPC.
- crn string
- (String) The CRN for this VPC.
- deleteds
Get
Is Vpn Gateways Vpn Gateway Vpc Deleted[] - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information. Nested scheme for deleted:
- href string
- (String) - The URL for this VPC
- id string
- (String) - The unique identifier for this VPC.
- name string
- (String) - The unique user-defined name for this VPC.
- crn str
- (String) The CRN for this VPC.
- deleteds
Sequence[Get
Is Vpn Gateways Vpn Gateway Vpc Deleted] - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information. Nested scheme for deleted:
- href str
- (String) - The URL for this VPC
- id str
- (String) - The unique identifier for this VPC.
- name str
- (String) - The unique user-defined name for this VPC.
- crn String
- (String) The CRN for this VPC.
- deleteds List<Property Map>
- (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information. Nested scheme for deleted:
- href String
- (String) - The URL for this VPC
- id String
- (String) - The unique identifier for this VPC.
- name String
- (String) - The unique user-defined name for this VPC.
GetIsVpnGatewaysVpnGatewayVpcDeleted
- More
Info string - (String) Link to documentation about deleted resources.
- More
Info string - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
- more
Info string - (String) Link to documentation about deleted resources.
- more_
info str - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.