Provides a read-only data source for VPN gateway service Connection. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const example = ibm.getIsVpnGatewayServiceConnection({
vpnGateway: exampleIbmIsVpnGateway.id,
vpnGatewayServiceConnection: "3066f374-97f7-4138-b59d-20a8414f49a8",
});
const example_1 = ibm.getIsVpnGatewayServiceConnection({
vpnGatewayName: exampleIbmIsVpnGateway.name,
vpnGatewayServiceConnection: "3066f374-97f7-4138-b59d-20a8414f49a8",
});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_is_vpn_gateway_service_connection(vpn_gateway=example_ibm_is_vpn_gateway["id"],
vpn_gateway_service_connection="3066f374-97f7-4138-b59d-20a8414f49a8")
example_1 = ibm.get_is_vpn_gateway_service_connection(vpn_gateway_name=example_ibm_is_vpn_gateway["name"],
vpn_gateway_service_connection="3066f374-97f7-4138-b59d-20a8414f49a8")
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.GetIsVpnGatewayServiceConnection(ctx, &ibm.GetIsVpnGatewayServiceConnectionArgs{
VpnGateway: pulumi.StringRef(exampleIbmIsVpnGateway.Id),
VpnGatewayServiceConnection: "3066f374-97f7-4138-b59d-20a8414f49a8",
}, nil)
if err != nil {
return err
}
_, err = ibm.GetIsVpnGatewayServiceConnection(ctx, &ibm.GetIsVpnGatewayServiceConnectionArgs{
VpnGatewayName: pulumi.StringRef(exampleIbmIsVpnGateway.Name),
VpnGatewayServiceConnection: "3066f374-97f7-4138-b59d-20a8414f49a8",
}, 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.GetIsVpnGatewayServiceConnection.Invoke(new()
{
VpnGateway = exampleIbmIsVpnGateway.Id,
VpnGatewayServiceConnection = "3066f374-97f7-4138-b59d-20a8414f49a8",
});
var example_1 = Ibm.GetIsVpnGatewayServiceConnection.Invoke(new()
{
VpnGatewayName = exampleIbmIsVpnGateway.Name,
VpnGatewayServiceConnection = "3066f374-97f7-4138-b59d-20a8414f49a8",
});
});
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.GetIsVpnGatewayServiceConnectionArgs;
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.getIsVpnGatewayServiceConnection(GetIsVpnGatewayServiceConnectionArgs.builder()
.vpnGateway(exampleIbmIsVpnGateway.id())
.vpnGatewayServiceConnection("3066f374-97f7-4138-b59d-20a8414f49a8")
.build());
final var example-1 = IbmFunctions.getIsVpnGatewayServiceConnection(GetIsVpnGatewayServiceConnectionArgs.builder()
.vpnGatewayName(exampleIbmIsVpnGateway.name())
.vpnGatewayServiceConnection("3066f374-97f7-4138-b59d-20a8414f49a8")
.build());
}
}
variables:
example:
fn::invoke:
function: ibm:getIsVpnGatewayServiceConnection
arguments:
vpnGateway: ${exampleIbmIsVpnGateway.id}
vpnGatewayServiceConnection: 3066f374-97f7-4138-b59d-20a8414f49a8
example-1:
fn::invoke:
function: ibm:getIsVpnGatewayServiceConnection
arguments:
vpnGatewayName: ${exampleIbmIsVpnGateway.name}
vpnGatewayServiceConnection: 3066f374-97f7-4138-b59d-20a8414f49a8
Using getIsVpnGatewayServiceConnection
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 getIsVpnGatewayServiceConnection(args: GetIsVpnGatewayServiceConnectionArgs, opts?: InvokeOptions): Promise<GetIsVpnGatewayServiceConnectionResult>
function getIsVpnGatewayServiceConnectionOutput(args: GetIsVpnGatewayServiceConnectionOutputArgs, opts?: InvokeOptions): Output<GetIsVpnGatewayServiceConnectionResult>def get_is_vpn_gateway_service_connection(vpn_gateway: Optional[str] = None,
vpn_gateway_name: Optional[str] = None,
vpn_gateway_service_connection: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsVpnGatewayServiceConnectionResult
def get_is_vpn_gateway_service_connection_output(vpn_gateway: Optional[pulumi.Input[str]] = None,
vpn_gateway_name: Optional[pulumi.Input[str]] = None,
vpn_gateway_service_connection: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsVpnGatewayServiceConnectionResult]func GetIsVpnGatewayServiceConnection(ctx *Context, args *GetIsVpnGatewayServiceConnectionArgs, opts ...InvokeOption) (*GetIsVpnGatewayServiceConnectionResult, error)
func GetIsVpnGatewayServiceConnectionOutput(ctx *Context, args *GetIsVpnGatewayServiceConnectionOutputArgs, opts ...InvokeOption) GetIsVpnGatewayServiceConnectionResultOutput> Note: This function is named GetIsVpnGatewayServiceConnection in the Go SDK.
public static class GetIsVpnGatewayServiceConnection
{
public static Task<GetIsVpnGatewayServiceConnectionResult> InvokeAsync(GetIsVpnGatewayServiceConnectionArgs args, InvokeOptions? opts = null)
public static Output<GetIsVpnGatewayServiceConnectionResult> Invoke(GetIsVpnGatewayServiceConnectionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIsVpnGatewayServiceConnectionResult> getIsVpnGatewayServiceConnection(GetIsVpnGatewayServiceConnectionArgs args, InvokeOptions options)
public static Output<GetIsVpnGatewayServiceConnectionResult> getIsVpnGatewayServiceConnection(GetIsVpnGatewayServiceConnectionArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsVpnGatewayServiceConnection:getIsVpnGatewayServiceConnection
arguments:
# arguments dictionaryThe following arguments are supported:
- Vpn
Gateway stringService Connection The VPN gateway service connection identifier.
Note Provide either one of
vpn_gateway,vpn_gateway_nameto identifiy vpn gateway.- Vpn
Gateway string - The VPN gateway identifier.
- Vpn
Gateway stringName - The VPN gateway name.
- Vpn
Gateway stringService Connection The VPN gateway service connection identifier.
Note Provide either one of
vpn_gateway,vpn_gateway_nameto identifiy vpn gateway.- Vpn
Gateway string - The VPN gateway identifier.
- Vpn
Gateway stringName - The VPN gateway name.
- vpn
Gateway StringService Connection The VPN gateway service connection identifier.
Note Provide either one of
vpn_gateway,vpn_gateway_nameto identifiy vpn gateway.- vpn
Gateway String - The VPN gateway identifier.
- vpn
Gateway StringName - The VPN gateway name.
- vpn
Gateway stringService Connection The VPN gateway service connection identifier.
Note Provide either one of
vpn_gateway,vpn_gateway_nameto identifiy vpn gateway.- vpn
Gateway string - The VPN gateway identifier.
- vpn
Gateway stringName - The VPN gateway name.
- vpn_
gateway_ strservice_ connection The VPN gateway service connection identifier.
Note Provide either one of
vpn_gateway,vpn_gateway_nameto identifiy vpn gateway.- vpn_
gateway str - The VPN gateway identifier.
- vpn_
gateway_ strname - The VPN gateway name.
- vpn
Gateway StringService Connection The VPN gateway service connection identifier.
Note Provide either one of
vpn_gateway,vpn_gateway_nameto identifiy vpn gateway.- vpn
Gateway String - The VPN gateway identifier.
- vpn
Gateway StringName - The VPN gateway name.
getIsVpnGatewayServiceConnection Result
The following output properties are available:
- Created
At string - (String) The date and time that this VPN gateway connection was created.
- Creators
List<Get
Is Vpn Gateway 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 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 Connection Status Reason> - (List) The reasons for the current VPN gateway service connection status (if any).
Nested
status_reasons: - Vpn
Gateway stringService Connection - Vpn
Gateway string - Vpn
Gateway stringName
- Created
At string - (String) The date and time that this VPN gateway connection was created.
- Creators
[]Get
Is Vpn Gateway 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 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 Connection Status Reason - (List) The reasons for the current VPN gateway service connection status (if any).
Nested
status_reasons: - Vpn
Gateway stringService Connection - Vpn
Gateway string - Vpn
Gateway stringName
- created
At String - (String) The date and time that this VPN gateway connection was created.
- creators
List<Get
Is Vpn Gateway 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 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 Connection Status Reason> - (List) The reasons for the current VPN gateway service connection status (if any).
Nested
status_reasons: - vpn
Gateway StringService Connection - vpn
Gateway String - vpn
Gateway StringName
- created
At string - (String) The date and time that this VPN gateway connection was created.
- creators
Get
Is Vpn Gateway 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 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 Connection Status Reason[] - (List) The reasons for the current VPN gateway service connection status (if any).
Nested
status_reasons: - vpn
Gateway stringService Connection - vpn
Gateway string - vpn
Gateway stringName
- created_
at str - (String) The date and time that this VPN gateway connection was created.
- creators
Sequence[Get
Is Vpn Gateway 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 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 Connection Status Reason] - (List) The reasons for the current VPN gateway service connection status (if any).
Nested
status_reasons: - vpn_
gateway_ strservice_ connection - vpn_
gateway str - vpn_
gateway_ strname
- 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: - vpn
Gateway StringService Connection - vpn
Gateway String - vpn
Gateway StringName
Supporting Types
GetIsVpnGatewayServiceConnectionCreator
- 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.
GetIsVpnGatewayServiceConnectionLifecycleReason
GetIsVpnGatewayServiceConnectionStatusReason
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibmTerraform Provider.
