Retrieve information of an existing VPN gateway connections. For more information, see adding connections to a VPN gateway.
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.getIsVpnGatewayServiceConnections({
vpnGateway: exampleIbmIsVpnGateway.id,
});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_is_vpn_gateway_service_connections(vpn_gateway=example_ibm_is_vpn_gateway["id"])
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.GetIsVpnGatewayServiceConnections(ctx, &ibm.GetIsVpnGatewayServiceConnectionsArgs{
VpnGateway: exampleIbmIsVpnGateway.Id,
}, 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.GetIsVpnGatewayServiceConnections.Invoke(new()
{
VpnGateway = exampleIbmIsVpnGateway.Id,
});
});
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.GetIsVpnGatewayServiceConnectionsArgs;
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.getIsVpnGatewayServiceConnections(GetIsVpnGatewayServiceConnectionsArgs.builder()
.vpnGateway(exampleIbmIsVpnGateway.id())
.build());
}
}
variables:
example:
fn::invoke:
function: ibm:getIsVpnGatewayServiceConnections
arguments:
vpnGateway: ${exampleIbmIsVpnGateway.id}
Using getIsVpnGatewayServiceConnections
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 getIsVpnGatewayServiceConnections(args: GetIsVpnGatewayServiceConnectionsArgs, opts?: InvokeOptions): Promise<GetIsVpnGatewayServiceConnectionsResult>
function getIsVpnGatewayServiceConnectionsOutput(args: GetIsVpnGatewayServiceConnectionsOutputArgs, opts?: InvokeOptions): Output<GetIsVpnGatewayServiceConnectionsResult>def get_is_vpn_gateway_service_connections(id: Optional[str] = None,
vpn_gateway: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsVpnGatewayServiceConnectionsResult
def get_is_vpn_gateway_service_connections_output(id: Optional[pulumi.Input[str]] = None,
vpn_gateway: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsVpnGatewayServiceConnectionsResult]func GetIsVpnGatewayServiceConnections(ctx *Context, args *GetIsVpnGatewayServiceConnectionsArgs, opts ...InvokeOption) (*GetIsVpnGatewayServiceConnectionsResult, error)
func GetIsVpnGatewayServiceConnectionsOutput(ctx *Context, args *GetIsVpnGatewayServiceConnectionsOutputArgs, opts ...InvokeOption) GetIsVpnGatewayServiceConnectionsResultOutput> Note: This function is named GetIsVpnGatewayServiceConnections in the Go SDK.
public static class GetIsVpnGatewayServiceConnections
{
public static Task<GetIsVpnGatewayServiceConnectionsResult> InvokeAsync(GetIsVpnGatewayServiceConnectionsArgs args, InvokeOptions? opts = null)
public static Output<GetIsVpnGatewayServiceConnectionsResult> Invoke(GetIsVpnGatewayServiceConnectionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIsVpnGatewayServiceConnectionsResult> getIsVpnGatewayServiceConnections(GetIsVpnGatewayServiceConnectionsArgs args, InvokeOptions options)
public static Output<GetIsVpnGatewayServiceConnectionsResult> getIsVpnGatewayServiceConnections(GetIsVpnGatewayServiceConnectionsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsVpnGatewayServiceConnections:getIsVpnGatewayServiceConnections
arguments:
# arguments dictionaryThe following arguments are supported:
- Vpn
Gateway string - The VPN gateway ID.
- Id string
- The unique identifier for this VPN gateway service connection.
- Vpn
Gateway string - The VPN gateway ID.
- Id string
- The unique identifier for this VPN gateway service connection.
- vpn
Gateway String - The VPN gateway ID.
- id String
- The unique identifier for this VPN gateway service connection.
- vpn
Gateway string - The VPN gateway ID.
- id string
- The unique identifier for this VPN gateway service connection.
- vpn_
gateway str - The VPN gateway ID.
- id str
- The unique identifier for this VPN gateway service connection.
- vpn
Gateway String - The VPN gateway ID.
- id String
- The unique identifier for this VPN gateway service connection.
getIsVpnGatewayServiceConnections Result
The following output properties are available:
- Id string
- The unique identifier for this VPN gateway service connection.
- Service
Connections List<GetIs Vpn Gateway Service Connections Service Connection> - (List) List VPN gateway service connections.
- Vpn
Gateway string
- Id string
- The unique identifier for this VPN gateway service connection.
- Service
Connections []GetIs Vpn Gateway Service Connections Service Connection - (List) List VPN gateway service connections.
- Vpn
Gateway string
- id String
- The unique identifier for this VPN gateway service connection.
- service
Connections List<GetIs Vpn Gateway Service Connections Service Connection> - (List) List VPN gateway service connections.
- vpn
Gateway String
- id string
- The unique identifier for this VPN gateway service connection.
- service
Connections GetIs Vpn Gateway Service Connections Service Connection[] - (List) List VPN gateway service connections.
- vpn
Gateway string
- id str
- The unique identifier for this VPN gateway service connection.
- service_
connections Sequence[GetIs Vpn Gateway Service Connections Service Connection] - (List) List VPN gateway service connections.
- vpn_
gateway str
- id String
- The unique identifier for this VPN gateway service connection.
- service
Connections List<Property Map> - (List) List VPN gateway service connections.
- vpn
Gateway String
Supporting Types
GetIsVpnGatewayServiceConnectionsServiceConnection
- Created
At string - (String) The date and time that this VPN gateway connection was created.
- Creators
List<Get
Is Vpn Gateway Service Connections Service Connection Creator> - (List) Nested scheme for creator:
- Id string
- The unique identifier for this VPN gateway service connection.
- Lifecycle
Reasons List<GetIs Vpn Gateway Service Connections Service Connection Lifecycle Reason> - (List) The reasons for the current lifecycle_state (if any). Nested scheme for lifecycle_reasons:
- Lifecycle
State string - (List) The lifecycle state of the VPN service connection.
- Status string
- (String) The status of this service connection.
- Status
Reasons List<GetIs Vpn Gateway Service Connections Service Connection Status Reason> - (List) The reasons for the current VPN gateway service connection status (if any).
Nested
status_reasons:
- Created
At string - (String) The date and time that this VPN gateway connection was created.
- Creators
[]Get
Is Vpn Gateway Service Connections Service Connection Creator - (List) Nested scheme for creator:
- Id string
- The unique identifier for this VPN gateway service connection.
- Lifecycle
Reasons []GetIs Vpn Gateway Service Connections Service Connection Lifecycle Reason - (List) The reasons for the current lifecycle_state (if any). Nested scheme for lifecycle_reasons:
- Lifecycle
State string - (List) The lifecycle state of the VPN service connection.
- Status string
- (String) The status of this service connection.
- Status
Reasons []GetIs Vpn Gateway Service Connections Service Connection Status Reason - (List) The reasons for the current VPN gateway service connection status (if any).
Nested
status_reasons:
- created
At String - (String) The date and time that this VPN gateway connection was created.
- creators
List<Get
Is Vpn Gateway Service Connections Service Connection Creator> - (List) Nested scheme for creator:
- id String
- The unique identifier for this VPN gateway service connection.
- lifecycle
Reasons List<GetIs Vpn Gateway Service Connections Service Connection Lifecycle Reason> - (List) The reasons for the current lifecycle_state (if any). Nested scheme for lifecycle_reasons:
- lifecycle
State String - (List) The lifecycle state of the VPN service connection.
- status String
- (String) The status of this service connection.
- status
Reasons List<GetIs Vpn Gateway Service Connections Service Connection Status Reason> - (List) The reasons for the current VPN gateway service connection status (if any).
Nested
status_reasons:
- created
At string - (String) The date and time that this VPN gateway connection was created.
- creators
Get
Is Vpn Gateway Service Connections Service Connection Creator[] - (List) Nested scheme for creator:
- id string
- The unique identifier for this VPN gateway service connection.
- lifecycle
Reasons GetIs Vpn Gateway Service Connections Service Connection Lifecycle Reason[] - (List) The reasons for the current lifecycle_state (if any). Nested scheme for lifecycle_reasons:
- lifecycle
State string - (List) The lifecycle state of the VPN service connection.
- status string
- (String) The status of this service connection.
- status
Reasons GetIs Vpn Gateway Service Connections Service Connection Status Reason[] - (List) The reasons for the current VPN gateway service connection status (if any).
Nested
status_reasons:
- created_
at str - (String) The date and time that this VPN gateway connection was created.
- creators
Sequence[Get
Is Vpn Gateway Service Connections Service Connection Creator] - (List) Nested scheme for creator:
- id str
- The unique identifier for this VPN gateway service connection.
- lifecycle_
reasons Sequence[GetIs Vpn Gateway Service Connections Service Connection Lifecycle Reason] - (List) The reasons for the current lifecycle_state (if any). Nested scheme for lifecycle_reasons:
- lifecycle_
state str - (List) The lifecycle state of the VPN service connection.
- status str
- (String) The status of this service connection.
- status_
reasons Sequence[GetIs Vpn Gateway Service Connections Service Connection Status Reason] - (List) The reasons for the current VPN gateway service connection status (if any).
Nested
status_reasons:
- created
At String - (String) The date and time that this VPN gateway connection was created.
- creators List<Property Map>
- (List) Nested scheme for creator:
- id String
- The unique identifier for this VPN gateway service connection.
- lifecycle
Reasons List<Property Map> - (List) The reasons for the current lifecycle_state (if any). Nested scheme for lifecycle_reasons:
- lifecycle
State String - (List) The lifecycle state of the VPN service connection.
- status String
- (String) The status of this service connection.
- status
Reasons List<Property Map> - (List) The reasons for the current VPN gateway service connection status (if any).
Nested
status_reasons:
GetIsVpnGatewayServiceConnectionsServiceConnectionCreator
- Crn string
- (String) The CRN for this transit gateway.
- Id string
- The unique identifier for this VPN gateway service connection.
- Resource
Type string - (String) The resource type.
- Crn string
- (String) The CRN for this transit gateway.
- Id string
- The unique identifier for this VPN gateway service connection.
- Resource
Type string - (String) The resource type.
- crn String
- (String) The CRN for this transit gateway.
- id String
- The unique identifier for this VPN gateway service connection.
- resource
Type String - (String) The resource type.
- crn string
- (String) The CRN for this transit gateway.
- id string
- The unique identifier for this VPN gateway service connection.
- resource
Type string - (String) The resource type.
- crn str
- (String) The CRN for this transit gateway.
- id str
- The unique identifier for this VPN gateway service connection.
- resource_
type str - (String) The resource type.
- crn String
- (String) The CRN for this transit gateway.
- id String
- The unique identifier for this VPN gateway service connection.
- resource
Type String - (String) The resource type.
GetIsVpnGatewayServiceConnectionsServiceConnectionLifecycleReason
GetIsVpnGatewayServiceConnectionsServiceConnectionStatusReason
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibmTerraform Provider.
