ibm.TgConnection
Explore with Pulumi AI
subcategory: “Transit Gateway” layout: “ibm” page_title: “IBM : tg_connection” description: |- Manages IBM Transit Gateway connection.
ibm.TgConnection
Create, update and delete for the transit gateway’s connection resource. For more information, about Transit Gateway connection, see adding a cross-account connection.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const testIbmTgConnection = new ibm.TgConnection("testIbmTgConnection", {
gateway: ibm_tg_gateway.test_tg_gateway.id,
networkType: "vpc",
networkId: ibm_is_vpc.test_tg_vpc.resource_crn,
});
const testIbmTgRgreConnection = new ibm.TgConnection("testIbmTgRgreConnection", {
gateway: ibm_tg_gateway.test_tg_gateway.id,
networkType: redundant_gre,
baseNetworkType: vpc,
networkId: ibm_is_vpc.test_tg_vpc.resource_crn,
tunnels: [
{
localGatewayIp: "192.129.200.1",
localTunnelIp: "192.158.239.2",
name: "tunne1_testtgw1461",
remoteGatewayIp: "10.186.203.4",
remoteTunnelIp: "192.158.239.1",
zone: "us-south-1",
},
{
localGatewayIp: "192.129.220.1",
localTunnelIp: "192.158.249.2",
name: "tunne2_testtgw1462",
remoteGatewayIp: "10.186.203.4",
remoteTunnelIp: "192.158.249.1",
zone: "us-south-1",
},
],
});
import pulumi
import pulumi_ibm as ibm
test_ibm_tg_connection = ibm.TgConnection("testIbmTgConnection",
gateway=ibm_tg_gateway["test_tg_gateway"]["id"],
network_type="vpc",
network_id=ibm_is_vpc["test_tg_vpc"]["resource_crn"])
test_ibm_tg_rgre_connection = ibm.TgConnection("testIbmTgRgreConnection",
gateway=ibm_tg_gateway["test_tg_gateway"]["id"],
network_type=redundant_gre,
base_network_type=vpc,
network_id=ibm_is_vpc["test_tg_vpc"]["resource_crn"],
tunnels=[
{
"local_gateway_ip": "192.129.200.1",
"local_tunnel_ip": "192.158.239.2",
"name": "tunne1_testtgw1461",
"remote_gateway_ip": "10.186.203.4",
"remote_tunnel_ip": "192.158.239.1",
"zone": "us-south-1",
},
{
"local_gateway_ip": "192.129.220.1",
"local_tunnel_ip": "192.158.249.2",
"name": "tunne2_testtgw1462",
"remote_gateway_ip": "10.186.203.4",
"remote_tunnel_ip": "192.158.249.1",
"zone": "us-south-1",
},
])
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.NewTgConnection(ctx, "testIbmTgConnection", &ibm.TgConnectionArgs{
Gateway: pulumi.Any(ibm_tg_gateway.Test_tg_gateway.Id),
NetworkType: pulumi.String("vpc"),
NetworkId: pulumi.Any(ibm_is_vpc.Test_tg_vpc.Resource_crn),
})
if err != nil {
return err
}
_, err = ibm.NewTgConnection(ctx, "testIbmTgRgreConnection", &ibm.TgConnectionArgs{
Gateway: pulumi.Any(ibm_tg_gateway.Test_tg_gateway.Id),
NetworkType: pulumi.Any(redundant_gre),
BaseNetworkType: pulumi.Any(vpc),
NetworkId: pulumi.Any(ibm_is_vpc.Test_tg_vpc.Resource_crn),
Tunnels: ibm.TgConnectionTunnelArray{
&ibm.TgConnectionTunnelArgs{
LocalGatewayIp: pulumi.String("192.129.200.1"),
LocalTunnelIp: pulumi.String("192.158.239.2"),
Name: pulumi.String("tunne1_testtgw1461"),
RemoteGatewayIp: pulumi.String("10.186.203.4"),
RemoteTunnelIp: pulumi.String("192.158.239.1"),
Zone: pulumi.String("us-south-1"),
},
&ibm.TgConnectionTunnelArgs{
LocalGatewayIp: pulumi.String("192.129.220.1"),
LocalTunnelIp: pulumi.String("192.158.249.2"),
Name: pulumi.String("tunne2_testtgw1462"),
RemoteGatewayIp: pulumi.String("10.186.203.4"),
RemoteTunnelIp: pulumi.String("192.158.249.1"),
Zone: pulumi.String("us-south-1"),
},
},
})
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 testIbmTgConnection = new Ibm.TgConnection("testIbmTgConnection", new()
{
Gateway = ibm_tg_gateway.Test_tg_gateway.Id,
NetworkType = "vpc",
NetworkId = ibm_is_vpc.Test_tg_vpc.Resource_crn,
});
var testIbmTgRgreConnection = new Ibm.TgConnection("testIbmTgRgreConnection", new()
{
Gateway = ibm_tg_gateway.Test_tg_gateway.Id,
NetworkType = redundant_gre,
BaseNetworkType = vpc,
NetworkId = ibm_is_vpc.Test_tg_vpc.Resource_crn,
Tunnels = new[]
{
new Ibm.Inputs.TgConnectionTunnelArgs
{
LocalGatewayIp = "192.129.200.1",
LocalTunnelIp = "192.158.239.2",
Name = "tunne1_testtgw1461",
RemoteGatewayIp = "10.186.203.4",
RemoteTunnelIp = "192.158.239.1",
Zone = "us-south-1",
},
new Ibm.Inputs.TgConnectionTunnelArgs
{
LocalGatewayIp = "192.129.220.1",
LocalTunnelIp = "192.158.249.2",
Name = "tunne2_testtgw1462",
RemoteGatewayIp = "10.186.203.4",
RemoteTunnelIp = "192.158.249.1",
Zone = "us-south-1",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.TgConnection;
import com.pulumi.ibm.TgConnectionArgs;
import com.pulumi.ibm.inputs.TgConnectionTunnelArgs;
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) {
var testIbmTgConnection = new TgConnection("testIbmTgConnection", TgConnectionArgs.builder()
.gateway(ibm_tg_gateway.test_tg_gateway().id())
.networkType("vpc")
.networkId(ibm_is_vpc.test_tg_vpc().resource_crn())
.build());
var testIbmTgRgreConnection = new TgConnection("testIbmTgRgreConnection", TgConnectionArgs.builder()
.gateway(ibm_tg_gateway.test_tg_gateway().id())
.networkType(redundant_gre)
.baseNetworkType(vpc)
.networkId(ibm_is_vpc.test_tg_vpc().resource_crn())
.tunnels(
TgConnectionTunnelArgs.builder()
.localGatewayIp("192.129.200.1")
.localTunnelIp("192.158.239.2")
.name("tunne1_testtgw1461")
.remoteGatewayIp("10.186.203.4")
.remoteTunnelIp("192.158.239.1")
.zone("us-south-1")
.build(),
TgConnectionTunnelArgs.builder()
.localGatewayIp("192.129.220.1")
.localTunnelIp("192.158.249.2")
.name("tunne2_testtgw1462")
.remoteGatewayIp("10.186.203.4")
.remoteTunnelIp("192.158.249.1")
.zone("us-south-1")
.build())
.build());
}
}
resources:
testIbmTgConnection:
type: ibm:TgConnection
properties:
gateway: ${ibm_tg_gateway.test_tg_gateway.id}
networkType: vpc
networkId: ${ibm_is_vpc.test_tg_vpc.resource_crn}
testIbmTgRgreConnection:
type: ibm:TgConnection
properties:
gateway: ${ibm_tg_gateway.test_tg_gateway.id}
networkType: ${redundant_gre}
baseNetworkType: ${vpc}
networkId: ${ibm_is_vpc.test_tg_vpc.resource_crn}
tunnels:
- localGatewayIp: 192.129.200.1
localTunnelIp: 192.158.239.2
name: tunne1_testtgw1461
remoteGatewayIp: 10.186.203.4
remoteTunnelIp: 192.158.239.1
zone: us-south-1
- localGatewayIp: 192.129.220.1
localTunnelIp: 192.158.249.2
name: tunne2_testtgw1462
remoteGatewayIp: 10.186.203.4
remoteTunnelIp: 192.158.249.1
zone: us-south-1
Create TgConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TgConnection(name: string, args: TgConnectionArgs, opts?: CustomResourceOptions);
@overload
def TgConnection(resource_name: str,
args: TgConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TgConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
gateway: Optional[str] = None,
network_type: Optional[str] = None,
network_id: Optional[str] = None,
base_network_type: Optional[str] = None,
local_gateway_ip: Optional[str] = None,
local_tunnel_ip: Optional[str] = None,
name: Optional[str] = None,
network_account_id: Optional[str] = None,
base_connection_id: Optional[str] = None,
default_prefix_filter: Optional[str] = None,
remote_bgp_asn: Optional[float] = None,
remote_gateway_ip: Optional[str] = None,
remote_tunnel_ip: Optional[str] = None,
tg_connection_id: Optional[str] = None,
timeouts: Optional[TgConnectionTimeoutsArgs] = None,
tunnels: Optional[Sequence[TgConnectionTunnelArgs]] = None,
zone: Optional[str] = None)
func NewTgConnection(ctx *Context, name string, args TgConnectionArgs, opts ...ResourceOption) (*TgConnection, error)
public TgConnection(string name, TgConnectionArgs args, CustomResourceOptions? opts = null)
public TgConnection(String name, TgConnectionArgs args)
public TgConnection(String name, TgConnectionArgs args, CustomResourceOptions options)
type: ibm:TgConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TgConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TgConnectionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TgConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TgConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TgConnectionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var tgConnectionResource = new Ibm.TgConnection("tgConnectionResource", new()
{
Gateway = "string",
NetworkType = "string",
NetworkId = "string",
BaseNetworkType = "string",
LocalGatewayIp = "string",
LocalTunnelIp = "string",
Name = "string",
NetworkAccountId = "string",
BaseConnectionId = "string",
DefaultPrefixFilter = "string",
RemoteBgpAsn = 0,
RemoteGatewayIp = "string",
RemoteTunnelIp = "string",
TgConnectionId = "string",
Timeouts = new Ibm.Inputs.TgConnectionTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
Tunnels = new[]
{
new Ibm.Inputs.TgConnectionTunnelArgs
{
RemoteGatewayIp = "string",
Zone = "string",
LocalGatewayIp = "string",
LocalTunnelIp = "string",
RemoteTunnelIp = "string",
Name = "string",
RemoteBgpAsn = 0,
CreatedAt = "string",
Mtu = 0,
Status = "string",
TunnelId = "string",
UpdatedAt = "string",
LocalBgpAsn = 0,
},
},
Zone = "string",
});
example, err := ibm.NewTgConnection(ctx, "tgConnectionResource", &ibm.TgConnectionArgs{
Gateway: pulumi.String("string"),
NetworkType: pulumi.String("string"),
NetworkId: pulumi.String("string"),
BaseNetworkType: pulumi.String("string"),
LocalGatewayIp: pulumi.String("string"),
LocalTunnelIp: pulumi.String("string"),
Name: pulumi.String("string"),
NetworkAccountId: pulumi.String("string"),
BaseConnectionId: pulumi.String("string"),
DefaultPrefixFilter: pulumi.String("string"),
RemoteBgpAsn: pulumi.Float64(0),
RemoteGatewayIp: pulumi.String("string"),
RemoteTunnelIp: pulumi.String("string"),
TgConnectionId: pulumi.String("string"),
Timeouts: &ibm.TgConnectionTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
Tunnels: ibm.TgConnectionTunnelArray{
&ibm.TgConnectionTunnelArgs{
RemoteGatewayIp: pulumi.String("string"),
Zone: pulumi.String("string"),
LocalGatewayIp: pulumi.String("string"),
LocalTunnelIp: pulumi.String("string"),
RemoteTunnelIp: pulumi.String("string"),
Name: pulumi.String("string"),
RemoteBgpAsn: pulumi.Float64(0),
CreatedAt: pulumi.String("string"),
Mtu: pulumi.Float64(0),
Status: pulumi.String("string"),
TunnelId: pulumi.String("string"),
UpdatedAt: pulumi.String("string"),
LocalBgpAsn: pulumi.Float64(0),
},
},
Zone: pulumi.String("string"),
})
var tgConnectionResource = new TgConnection("tgConnectionResource", TgConnectionArgs.builder()
.gateway("string")
.networkType("string")
.networkId("string")
.baseNetworkType("string")
.localGatewayIp("string")
.localTunnelIp("string")
.name("string")
.networkAccountId("string")
.baseConnectionId("string")
.defaultPrefixFilter("string")
.remoteBgpAsn(0)
.remoteGatewayIp("string")
.remoteTunnelIp("string")
.tgConnectionId("string")
.timeouts(TgConnectionTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.tunnels(TgConnectionTunnelArgs.builder()
.remoteGatewayIp("string")
.zone("string")
.localGatewayIp("string")
.localTunnelIp("string")
.remoteTunnelIp("string")
.name("string")
.remoteBgpAsn(0)
.createdAt("string")
.mtu(0)
.status("string")
.tunnelId("string")
.updatedAt("string")
.localBgpAsn(0)
.build())
.zone("string")
.build());
tg_connection_resource = ibm.TgConnection("tgConnectionResource",
gateway="string",
network_type="string",
network_id="string",
base_network_type="string",
local_gateway_ip="string",
local_tunnel_ip="string",
name="string",
network_account_id="string",
base_connection_id="string",
default_prefix_filter="string",
remote_bgp_asn=0,
remote_gateway_ip="string",
remote_tunnel_ip="string",
tg_connection_id="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
tunnels=[{
"remote_gateway_ip": "string",
"zone": "string",
"local_gateway_ip": "string",
"local_tunnel_ip": "string",
"remote_tunnel_ip": "string",
"name": "string",
"remote_bgp_asn": 0,
"created_at": "string",
"mtu": 0,
"status": "string",
"tunnel_id": "string",
"updated_at": "string",
"local_bgp_asn": 0,
}],
zone="string")
const tgConnectionResource = new ibm.TgConnection("tgConnectionResource", {
gateway: "string",
networkType: "string",
networkId: "string",
baseNetworkType: "string",
localGatewayIp: "string",
localTunnelIp: "string",
name: "string",
networkAccountId: "string",
baseConnectionId: "string",
defaultPrefixFilter: "string",
remoteBgpAsn: 0,
remoteGatewayIp: "string",
remoteTunnelIp: "string",
tgConnectionId: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
tunnels: [{
remoteGatewayIp: "string",
zone: "string",
localGatewayIp: "string",
localTunnelIp: "string",
remoteTunnelIp: "string",
name: "string",
remoteBgpAsn: 0,
createdAt: "string",
mtu: 0,
status: "string",
tunnelId: "string",
updatedAt: "string",
localBgpAsn: 0,
}],
zone: "string",
});
type: ibm:TgConnection
properties:
baseConnectionId: string
baseNetworkType: string
defaultPrefixFilter: string
gateway: string
localGatewayIp: string
localTunnelIp: string
name: string
networkAccountId: string
networkId: string
networkType: string
remoteBgpAsn: 0
remoteGatewayIp: string
remoteTunnelIp: string
tgConnectionId: string
timeouts:
create: string
delete: string
update: string
tunnels:
- createdAt: string
localBgpAsn: 0
localGatewayIp: string
localTunnelIp: string
mtu: 0
name: string
remoteBgpAsn: 0
remoteGatewayIp: string
remoteTunnelIp: string
status: string
tunnelId: string
updatedAt: string
zone: string
zone: string
TgConnection Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TgConnection resource accepts the following input properties:
- Gateway string
- Enter the transit gateway identifier.
- Network
Type string - Enter the network type. Allowed values are
classic
,directlink
,gre_tunnel
,unbound_gre_tunnel
,vpc
, andpower_virtual_server
. - Base
Connection stringId - The ID of a network_type 'classic' connection a tunnel is configured over. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Base
Network stringType - The type of network the unbound gre tunnel is targeting. This field is required for network type
unbound_gre_tunnel
. - Default
Prefix stringFilter - Whether to permit or deny the prefix filter
- Local
Gateway stringIp - The local gateway IP address. This field is required for and only applicable to
gre_tunnel
connection types. - Local
Tunnel stringIp - The local tunnel IP address. This field is required for and only applicable to type gre_tunnel connections.
- Name string
- Enter a name. If the name is not given, the default name is provided based on the network type, such as
vpc
for network type VPC andclassic
for network type classic. - Network
Account stringId - The ID of the network connected account. This is used if the network is in a different account than the gateway.
- Network
Id string - Enter the ID of the network being connected through this connection. This parameter is required for network type
vpc
anddirectlink
, the CRN of the VPC or direct link gateway to be connected. This field is required to be unspecified for network typeclassic
. For example,crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b
. - Remote
Bgp doubleAsn - The remote network BGP ASN (will be generated for the connection if not specified). This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Remote
Gateway stringIp - The remote gateway IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Remote
Tunnel stringIp - The remote tunnel IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Tg
Connection stringId - (String) The unique identifier of the connection tunnel ID resource.
- Timeouts
Tg
Connection Timeouts - Tunnels
List<Tg
Connection Tunnel> - List of GRE tunnels for a transit gateway redundant GRE tunnel connection. This field is required for 'redundant_gre' connections.
Nested scheme for
tunnel
: - Zone string
- The location of the GRE tunnel. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections.
- Gateway string
- Enter the transit gateway identifier.
- Network
Type string - Enter the network type. Allowed values are
classic
,directlink
,gre_tunnel
,unbound_gre_tunnel
,vpc
, andpower_virtual_server
. - Base
Connection stringId - The ID of a network_type 'classic' connection a tunnel is configured over. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Base
Network stringType - The type of network the unbound gre tunnel is targeting. This field is required for network type
unbound_gre_tunnel
. - Default
Prefix stringFilter - Whether to permit or deny the prefix filter
- Local
Gateway stringIp - The local gateway IP address. This field is required for and only applicable to
gre_tunnel
connection types. - Local
Tunnel stringIp - The local tunnel IP address. This field is required for and only applicable to type gre_tunnel connections.
- Name string
- Enter a name. If the name is not given, the default name is provided based on the network type, such as
vpc
for network type VPC andclassic
for network type classic. - Network
Account stringId - The ID of the network connected account. This is used if the network is in a different account than the gateway.
- Network
Id string - Enter the ID of the network being connected through this connection. This parameter is required for network type
vpc
anddirectlink
, the CRN of the VPC or direct link gateway to be connected. This field is required to be unspecified for network typeclassic
. For example,crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b
. - Remote
Bgp float64Asn - The remote network BGP ASN (will be generated for the connection if not specified). This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Remote
Gateway stringIp - The remote gateway IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Remote
Tunnel stringIp - The remote tunnel IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Tg
Connection stringId - (String) The unique identifier of the connection tunnel ID resource.
- Timeouts
Tg
Connection Timeouts Args - Tunnels
[]Tg
Connection Tunnel Args - List of GRE tunnels for a transit gateway redundant GRE tunnel connection. This field is required for 'redundant_gre' connections.
Nested scheme for
tunnel
: - Zone string
- The location of the GRE tunnel. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections.
- gateway String
- Enter the transit gateway identifier.
- network
Type String - Enter the network type. Allowed values are
classic
,directlink
,gre_tunnel
,unbound_gre_tunnel
,vpc
, andpower_virtual_server
. - base
Connection StringId - The ID of a network_type 'classic' connection a tunnel is configured over. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - base
Network StringType - The type of network the unbound gre tunnel is targeting. This field is required for network type
unbound_gre_tunnel
. - default
Prefix StringFilter - Whether to permit or deny the prefix filter
- local
Gateway StringIp - The local gateway IP address. This field is required for and only applicable to
gre_tunnel
connection types. - local
Tunnel StringIp - The local tunnel IP address. This field is required for and only applicable to type gre_tunnel connections.
- name String
- Enter a name. If the name is not given, the default name is provided based on the network type, such as
vpc
for network type VPC andclassic
for network type classic. - network
Account StringId - The ID of the network connected account. This is used if the network is in a different account than the gateway.
- network
Id String - Enter the ID of the network being connected through this connection. This parameter is required for network type
vpc
anddirectlink
, the CRN of the VPC or direct link gateway to be connected. This field is required to be unspecified for network typeclassic
. For example,crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b
. - remote
Bgp DoubleAsn - The remote network BGP ASN (will be generated for the connection if not specified). This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - remote
Gateway StringIp - The remote gateway IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - remote
Tunnel StringIp - The remote tunnel IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - tg
Connection StringId - (String) The unique identifier of the connection tunnel ID resource.
- timeouts
Tg
Connection Timeouts - tunnels
List<Tg
Connection Tunnel> - List of GRE tunnels for a transit gateway redundant GRE tunnel connection. This field is required for 'redundant_gre' connections.
Nested scheme for
tunnel
: - zone String
- The location of the GRE tunnel. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections.
- gateway string
- Enter the transit gateway identifier.
- network
Type string - Enter the network type. Allowed values are
classic
,directlink
,gre_tunnel
,unbound_gre_tunnel
,vpc
, andpower_virtual_server
. - base
Connection stringId - The ID of a network_type 'classic' connection a tunnel is configured over. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - base
Network stringType - The type of network the unbound gre tunnel is targeting. This field is required for network type
unbound_gre_tunnel
. - default
Prefix stringFilter - Whether to permit or deny the prefix filter
- local
Gateway stringIp - The local gateway IP address. This field is required for and only applicable to
gre_tunnel
connection types. - local
Tunnel stringIp - The local tunnel IP address. This field is required for and only applicable to type gre_tunnel connections.
- name string
- Enter a name. If the name is not given, the default name is provided based on the network type, such as
vpc
for network type VPC andclassic
for network type classic. - network
Account stringId - The ID of the network connected account. This is used if the network is in a different account than the gateway.
- network
Id string - Enter the ID of the network being connected through this connection. This parameter is required for network type
vpc
anddirectlink
, the CRN of the VPC or direct link gateway to be connected. This field is required to be unspecified for network typeclassic
. For example,crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b
. - remote
Bgp numberAsn - The remote network BGP ASN (will be generated for the connection if not specified). This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - remote
Gateway stringIp - The remote gateway IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - remote
Tunnel stringIp - The remote tunnel IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - tg
Connection stringId - (String) The unique identifier of the connection tunnel ID resource.
- timeouts
Tg
Connection Timeouts - tunnels
Tg
Connection Tunnel[] - List of GRE tunnels for a transit gateway redundant GRE tunnel connection. This field is required for 'redundant_gre' connections.
Nested scheme for
tunnel
: - zone string
- The location of the GRE tunnel. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections.
- gateway str
- Enter the transit gateway identifier.
- network_
type str - Enter the network type. Allowed values are
classic
,directlink
,gre_tunnel
,unbound_gre_tunnel
,vpc
, andpower_virtual_server
. - base_
connection_ strid - The ID of a network_type 'classic' connection a tunnel is configured over. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - base_
network_ strtype - The type of network the unbound gre tunnel is targeting. This field is required for network type
unbound_gre_tunnel
. - default_
prefix_ strfilter - Whether to permit or deny the prefix filter
- local_
gateway_ strip - The local gateway IP address. This field is required for and only applicable to
gre_tunnel
connection types. - local_
tunnel_ strip - The local tunnel IP address. This field is required for and only applicable to type gre_tunnel connections.
- name str
- Enter a name. If the name is not given, the default name is provided based on the network type, such as
vpc
for network type VPC andclassic
for network type classic. - network_
account_ strid - The ID of the network connected account. This is used if the network is in a different account than the gateway.
- network_
id str - Enter the ID of the network being connected through this connection. This parameter is required for network type
vpc
anddirectlink
, the CRN of the VPC or direct link gateway to be connected. This field is required to be unspecified for network typeclassic
. For example,crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b
. - remote_
bgp_ floatasn - The remote network BGP ASN (will be generated for the connection if not specified). This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - remote_
gateway_ strip - The remote gateway IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - remote_
tunnel_ strip - The remote tunnel IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - tg_
connection_ strid - (String) The unique identifier of the connection tunnel ID resource.
- timeouts
Tg
Connection Timeouts Args - tunnels
Sequence[Tg
Connection Tunnel Args] - List of GRE tunnels for a transit gateway redundant GRE tunnel connection. This field is required for 'redundant_gre' connections.
Nested scheme for
tunnel
: - zone str
- The location of the GRE tunnel. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections.
- gateway String
- Enter the transit gateway identifier.
- network
Type String - Enter the network type. Allowed values are
classic
,directlink
,gre_tunnel
,unbound_gre_tunnel
,vpc
, andpower_virtual_server
. - base
Connection StringId - The ID of a network_type 'classic' connection a tunnel is configured over. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - base
Network StringType - The type of network the unbound gre tunnel is targeting. This field is required for network type
unbound_gre_tunnel
. - default
Prefix StringFilter - Whether to permit or deny the prefix filter
- local
Gateway StringIp - The local gateway IP address. This field is required for and only applicable to
gre_tunnel
connection types. - local
Tunnel StringIp - The local tunnel IP address. This field is required for and only applicable to type gre_tunnel connections.
- name String
- Enter a name. If the name is not given, the default name is provided based on the network type, such as
vpc
for network type VPC andclassic
for network type classic. - network
Account StringId - The ID of the network connected account. This is used if the network is in a different account than the gateway.
- network
Id String - Enter the ID of the network being connected through this connection. This parameter is required for network type
vpc
anddirectlink
, the CRN of the VPC or direct link gateway to be connected. This field is required to be unspecified for network typeclassic
. For example,crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b
. - remote
Bgp NumberAsn - The remote network BGP ASN (will be generated for the connection if not specified). This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - remote
Gateway StringIp - The remote gateway IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - remote
Tunnel StringIp - The remote tunnel IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - tg
Connection StringId - (String) The unique identifier of the connection tunnel ID resource.
- timeouts Property Map
- tunnels List<Property Map>
- List of GRE tunnels for a transit gateway redundant GRE tunnel connection. This field is required for 'redundant_gre' connections.
Nested scheme for
tunnel
: - zone String
- The location of the GRE tunnel. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections.
Outputs
All input properties are implicitly available as output properties. Additionally, the TgConnection resource produces the following output properties:
- Connection
Id string - (String) The unique identifier for transit gateway connection to network.
- Created
At string - (Timestamp) The date and time the connection tunnel was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- string
- The crn of the transit gateway
- Request
Status string - Only visible for cross account connections, this field represents the status of the request to connect the given network between accounts.Possible values: [pending,approved,rejected,expired,detached]
- Status string
- (String) The configuration status of the connection tunnel, such as attached, failed,
- Updated
At string - (Timestamp) Last updated date and time of the connection tunnel.
- Connection
Id string - (String) The unique identifier for transit gateway connection to network.
- Created
At string - (Timestamp) The date and time the connection tunnel was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- string
- The crn of the transit gateway
- Request
Status string - Only visible for cross account connections, this field represents the status of the request to connect the given network between accounts.Possible values: [pending,approved,rejected,expired,detached]
- Status string
- (String) The configuration status of the connection tunnel, such as attached, failed,
- Updated
At string - (Timestamp) Last updated date and time of the connection tunnel.
- connection
Id String - (String) The unique identifier for transit gateway connection to network.
- created
At String - (Timestamp) The date and time the connection tunnel was created.
- id String
- The provider-assigned unique ID for this managed resource.
- String
- The crn of the transit gateway
- request
Status String - Only visible for cross account connections, this field represents the status of the request to connect the given network between accounts.Possible values: [pending,approved,rejected,expired,detached]
- status String
- (String) The configuration status of the connection tunnel, such as attached, failed,
- updated
At String - (Timestamp) Last updated date and time of the connection tunnel.
- connection
Id string - (String) The unique identifier for transit gateway connection to network.
- created
At string - (Timestamp) The date and time the connection tunnel was created.
- id string
- The provider-assigned unique ID for this managed resource.
- string
- The crn of the transit gateway
- request
Status string - Only visible for cross account connections, this field represents the status of the request to connect the given network between accounts.Possible values: [pending,approved,rejected,expired,detached]
- status string
- (String) The configuration status of the connection tunnel, such as attached, failed,
- updated
At string - (Timestamp) Last updated date and time of the connection tunnel.
- connection_
id str - (String) The unique identifier for transit gateway connection to network.
- created_
at str - (Timestamp) The date and time the connection tunnel was created.
- id str
- The provider-assigned unique ID for this managed resource.
- str
- The crn of the transit gateway
- request_
status str - Only visible for cross account connections, this field represents the status of the request to connect the given network between accounts.Possible values: [pending,approved,rejected,expired,detached]
- status str
- (String) The configuration status of the connection tunnel, such as attached, failed,
- updated_
at str - (Timestamp) Last updated date and time of the connection tunnel.
- connection
Id String - (String) The unique identifier for transit gateway connection to network.
- created
At String - (Timestamp) The date and time the connection tunnel was created.
- id String
- The provider-assigned unique ID for this managed resource.
- String
- The crn of the transit gateway
- request
Status String - Only visible for cross account connections, this field represents the status of the request to connect the given network between accounts.Possible values: [pending,approved,rejected,expired,detached]
- status String
- (String) The configuration status of the connection tunnel, such as attached, failed,
- updated
At String - (Timestamp) Last updated date and time of the connection tunnel.
Look up Existing TgConnection Resource
Get an existing TgConnection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TgConnectionState, opts?: CustomResourceOptions): TgConnection
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
base_connection_id: Optional[str] = None,
base_network_type: Optional[str] = None,
connection_id: Optional[str] = None,
created_at: Optional[str] = None,
default_prefix_filter: Optional[str] = None,
gateway: Optional[str] = None,
local_gateway_ip: Optional[str] = None,
local_tunnel_ip: Optional[str] = None,
name: Optional[str] = None,
network_account_id: Optional[str] = None,
network_id: Optional[str] = None,
network_type: Optional[str] = None,
related_crn: Optional[str] = None,
remote_bgp_asn: Optional[float] = None,
remote_gateway_ip: Optional[str] = None,
remote_tunnel_ip: Optional[str] = None,
request_status: Optional[str] = None,
status: Optional[str] = None,
tg_connection_id: Optional[str] = None,
timeouts: Optional[TgConnectionTimeoutsArgs] = None,
tunnels: Optional[Sequence[TgConnectionTunnelArgs]] = None,
updated_at: Optional[str] = None,
zone: Optional[str] = None) -> TgConnection
func GetTgConnection(ctx *Context, name string, id IDInput, state *TgConnectionState, opts ...ResourceOption) (*TgConnection, error)
public static TgConnection Get(string name, Input<string> id, TgConnectionState? state, CustomResourceOptions? opts = null)
public static TgConnection get(String name, Output<String> id, TgConnectionState state, CustomResourceOptions options)
resources: _: type: ibm:TgConnection get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Base
Connection stringId - The ID of a network_type 'classic' connection a tunnel is configured over. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Base
Network stringType - The type of network the unbound gre tunnel is targeting. This field is required for network type
unbound_gre_tunnel
. - Connection
Id string - (String) The unique identifier for transit gateway connection to network.
- Created
At string - (Timestamp) The date and time the connection tunnel was created.
- Default
Prefix stringFilter - Whether to permit or deny the prefix filter
- Gateway string
- Enter the transit gateway identifier.
- Local
Gateway stringIp - The local gateway IP address. This field is required for and only applicable to
gre_tunnel
connection types. - Local
Tunnel stringIp - The local tunnel IP address. This field is required for and only applicable to type gre_tunnel connections.
- Name string
- Enter a name. If the name is not given, the default name is provided based on the network type, such as
vpc
for network type VPC andclassic
for network type classic. - Network
Account stringId - The ID of the network connected account. This is used if the network is in a different account than the gateway.
- Network
Id string - Enter the ID of the network being connected through this connection. This parameter is required for network type
vpc
anddirectlink
, the CRN of the VPC or direct link gateway to be connected. This field is required to be unspecified for network typeclassic
. For example,crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b
. - Network
Type string - Enter the network type. Allowed values are
classic
,directlink
,gre_tunnel
,unbound_gre_tunnel
,vpc
, andpower_virtual_server
. - string
- The crn of the transit gateway
- Remote
Bgp doubleAsn - The remote network BGP ASN (will be generated for the connection if not specified). This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Remote
Gateway stringIp - The remote gateway IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Remote
Tunnel stringIp - The remote tunnel IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Request
Status string - Only visible for cross account connections, this field represents the status of the request to connect the given network between accounts.Possible values: [pending,approved,rejected,expired,detached]
- Status string
- (String) The configuration status of the connection tunnel, such as attached, failed,
- Tg
Connection stringId - (String) The unique identifier of the connection tunnel ID resource.
- Timeouts
Tg
Connection Timeouts - Tunnels
List<Tg
Connection Tunnel> - List of GRE tunnels for a transit gateway redundant GRE tunnel connection. This field is required for 'redundant_gre' connections.
Nested scheme for
tunnel
: - Updated
At string - (Timestamp) Last updated date and time of the connection tunnel.
- Zone string
- The location of the GRE tunnel. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections.
- Base
Connection stringId - The ID of a network_type 'classic' connection a tunnel is configured over. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Base
Network stringType - The type of network the unbound gre tunnel is targeting. This field is required for network type
unbound_gre_tunnel
. - Connection
Id string - (String) The unique identifier for transit gateway connection to network.
- Created
At string - (Timestamp) The date and time the connection tunnel was created.
- Default
Prefix stringFilter - Whether to permit or deny the prefix filter
- Gateway string
- Enter the transit gateway identifier.
- Local
Gateway stringIp - The local gateway IP address. This field is required for and only applicable to
gre_tunnel
connection types. - Local
Tunnel stringIp - The local tunnel IP address. This field is required for and only applicable to type gre_tunnel connections.
- Name string
- Enter a name. If the name is not given, the default name is provided based on the network type, such as
vpc
for network type VPC andclassic
for network type classic. - Network
Account stringId - The ID of the network connected account. This is used if the network is in a different account than the gateway.
- Network
Id string - Enter the ID of the network being connected through this connection. This parameter is required for network type
vpc
anddirectlink
, the CRN of the VPC or direct link gateway to be connected. This field is required to be unspecified for network typeclassic
. For example,crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b
. - Network
Type string - Enter the network type. Allowed values are
classic
,directlink
,gre_tunnel
,unbound_gre_tunnel
,vpc
, andpower_virtual_server
. - string
- The crn of the transit gateway
- Remote
Bgp float64Asn - The remote network BGP ASN (will be generated for the connection if not specified). This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Remote
Gateway stringIp - The remote gateway IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Remote
Tunnel stringIp - The remote tunnel IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Request
Status string - Only visible for cross account connections, this field represents the status of the request to connect the given network between accounts.Possible values: [pending,approved,rejected,expired,detached]
- Status string
- (String) The configuration status of the connection tunnel, such as attached, failed,
- Tg
Connection stringId - (String) The unique identifier of the connection tunnel ID resource.
- Timeouts
Tg
Connection Timeouts Args - Tunnels
[]Tg
Connection Tunnel Args - List of GRE tunnels for a transit gateway redundant GRE tunnel connection. This field is required for 'redundant_gre' connections.
Nested scheme for
tunnel
: - Updated
At string - (Timestamp) Last updated date and time of the connection tunnel.
- Zone string
- The location of the GRE tunnel. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections.
- base
Connection StringId - The ID of a network_type 'classic' connection a tunnel is configured over. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - base
Network StringType - The type of network the unbound gre tunnel is targeting. This field is required for network type
unbound_gre_tunnel
. - connection
Id String - (String) The unique identifier for transit gateway connection to network.
- created
At String - (Timestamp) The date and time the connection tunnel was created.
- default
Prefix StringFilter - Whether to permit or deny the prefix filter
- gateway String
- Enter the transit gateway identifier.
- local
Gateway StringIp - The local gateway IP address. This field is required for and only applicable to
gre_tunnel
connection types. - local
Tunnel StringIp - The local tunnel IP address. This field is required for and only applicable to type gre_tunnel connections.
- name String
- Enter a name. If the name is not given, the default name is provided based on the network type, such as
vpc
for network type VPC andclassic
for network type classic. - network
Account StringId - The ID of the network connected account. This is used if the network is in a different account than the gateway.
- network
Id String - Enter the ID of the network being connected through this connection. This parameter is required for network type
vpc
anddirectlink
, the CRN of the VPC or direct link gateway to be connected. This field is required to be unspecified for network typeclassic
. For example,crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b
. - network
Type String - Enter the network type. Allowed values are
classic
,directlink
,gre_tunnel
,unbound_gre_tunnel
,vpc
, andpower_virtual_server
. - String
- The crn of the transit gateway
- remote
Bgp DoubleAsn - The remote network BGP ASN (will be generated for the connection if not specified). This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - remote
Gateway StringIp - The remote gateway IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - remote
Tunnel StringIp - The remote tunnel IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - request
Status String - Only visible for cross account connections, this field represents the status of the request to connect the given network between accounts.Possible values: [pending,approved,rejected,expired,detached]
- status String
- (String) The configuration status of the connection tunnel, such as attached, failed,
- tg
Connection StringId - (String) The unique identifier of the connection tunnel ID resource.
- timeouts
Tg
Connection Timeouts - tunnels
List<Tg
Connection Tunnel> - List of GRE tunnels for a transit gateway redundant GRE tunnel connection. This field is required for 'redundant_gre' connections.
Nested scheme for
tunnel
: - updated
At String - (Timestamp) Last updated date and time of the connection tunnel.
- zone String
- The location of the GRE tunnel. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections.
- base
Connection stringId - The ID of a network_type 'classic' connection a tunnel is configured over. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - base
Network stringType - The type of network the unbound gre tunnel is targeting. This field is required for network type
unbound_gre_tunnel
. - connection
Id string - (String) The unique identifier for transit gateway connection to network.
- created
At string - (Timestamp) The date and time the connection tunnel was created.
- default
Prefix stringFilter - Whether to permit or deny the prefix filter
- gateway string
- Enter the transit gateway identifier.
- local
Gateway stringIp - The local gateway IP address. This field is required for and only applicable to
gre_tunnel
connection types. - local
Tunnel stringIp - The local tunnel IP address. This field is required for and only applicable to type gre_tunnel connections.
- name string
- Enter a name. If the name is not given, the default name is provided based on the network type, such as
vpc
for network type VPC andclassic
for network type classic. - network
Account stringId - The ID of the network connected account. This is used if the network is in a different account than the gateway.
- network
Id string - Enter the ID of the network being connected through this connection. This parameter is required for network type
vpc
anddirectlink
, the CRN of the VPC or direct link gateway to be connected. This field is required to be unspecified for network typeclassic
. For example,crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b
. - network
Type string - Enter the network type. Allowed values are
classic
,directlink
,gre_tunnel
,unbound_gre_tunnel
,vpc
, andpower_virtual_server
. - string
- The crn of the transit gateway
- remote
Bgp numberAsn - The remote network BGP ASN (will be generated for the connection if not specified). This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - remote
Gateway stringIp - The remote gateway IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - remote
Tunnel stringIp - The remote tunnel IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - request
Status string - Only visible for cross account connections, this field represents the status of the request to connect the given network between accounts.Possible values: [pending,approved,rejected,expired,detached]
- status string
- (String) The configuration status of the connection tunnel, such as attached, failed,
- tg
Connection stringId - (String) The unique identifier of the connection tunnel ID resource.
- timeouts
Tg
Connection Timeouts - tunnels
Tg
Connection Tunnel[] - List of GRE tunnels for a transit gateway redundant GRE tunnel connection. This field is required for 'redundant_gre' connections.
Nested scheme for
tunnel
: - updated
At string - (Timestamp) Last updated date and time of the connection tunnel.
- zone string
- The location of the GRE tunnel. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections.
- base_
connection_ strid - The ID of a network_type 'classic' connection a tunnel is configured over. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - base_
network_ strtype - The type of network the unbound gre tunnel is targeting. This field is required for network type
unbound_gre_tunnel
. - connection_
id str - (String) The unique identifier for transit gateway connection to network.
- created_
at str - (Timestamp) The date and time the connection tunnel was created.
- default_
prefix_ strfilter - Whether to permit or deny the prefix filter
- gateway str
- Enter the transit gateway identifier.
- local_
gateway_ strip - The local gateway IP address. This field is required for and only applicable to
gre_tunnel
connection types. - local_
tunnel_ strip - The local tunnel IP address. This field is required for and only applicable to type gre_tunnel connections.
- name str
- Enter a name. If the name is not given, the default name is provided based on the network type, such as
vpc
for network type VPC andclassic
for network type classic. - network_
account_ strid - The ID of the network connected account. This is used if the network is in a different account than the gateway.
- network_
id str - Enter the ID of the network being connected through this connection. This parameter is required for network type
vpc
anddirectlink
, the CRN of the VPC or direct link gateway to be connected. This field is required to be unspecified for network typeclassic
. For example,crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b
. - network_
type str - Enter the network type. Allowed values are
classic
,directlink
,gre_tunnel
,unbound_gre_tunnel
,vpc
, andpower_virtual_server
. - str
- The crn of the transit gateway
- remote_
bgp_ floatasn - The remote network BGP ASN (will be generated for the connection if not specified). This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - remote_
gateway_ strip - The remote gateway IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - remote_
tunnel_ strip - The remote tunnel IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - request_
status str - Only visible for cross account connections, this field represents the status of the request to connect the given network between accounts.Possible values: [pending,approved,rejected,expired,detached]
- status str
- (String) The configuration status of the connection tunnel, such as attached, failed,
- tg_
connection_ strid - (String) The unique identifier of the connection tunnel ID resource.
- timeouts
Tg
Connection Timeouts Args - tunnels
Sequence[Tg
Connection Tunnel Args] - List of GRE tunnels for a transit gateway redundant GRE tunnel connection. This field is required for 'redundant_gre' connections.
Nested scheme for
tunnel
: - updated_
at str - (Timestamp) Last updated date and time of the connection tunnel.
- zone str
- The location of the GRE tunnel. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections.
- base
Connection StringId - The ID of a network_type 'classic' connection a tunnel is configured over. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - base
Network StringType - The type of network the unbound gre tunnel is targeting. This field is required for network type
unbound_gre_tunnel
. - connection
Id String - (String) The unique identifier for transit gateway connection to network.
- created
At String - (Timestamp) The date and time the connection tunnel was created.
- default
Prefix StringFilter - Whether to permit or deny the prefix filter
- gateway String
- Enter the transit gateway identifier.
- local
Gateway StringIp - The local gateway IP address. This field is required for and only applicable to
gre_tunnel
connection types. - local
Tunnel StringIp - The local tunnel IP address. This field is required for and only applicable to type gre_tunnel connections.
- name String
- Enter a name. If the name is not given, the default name is provided based on the network type, such as
vpc
for network type VPC andclassic
for network type classic. - network
Account StringId - The ID of the network connected account. This is used if the network is in a different account than the gateway.
- network
Id String - Enter the ID of the network being connected through this connection. This parameter is required for network type
vpc
anddirectlink
, the CRN of the VPC or direct link gateway to be connected. This field is required to be unspecified for network typeclassic
. For example,crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b
. - network
Type String - Enter the network type. Allowed values are
classic
,directlink
,gre_tunnel
,unbound_gre_tunnel
,vpc
, andpower_virtual_server
. - String
- The crn of the transit gateway
- remote
Bgp NumberAsn - The remote network BGP ASN (will be generated for the connection if not specified). This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - remote
Gateway StringIp - The remote gateway IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - remote
Tunnel StringIp - The remote tunnel IP address. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - request
Status String - Only visible for cross account connections, this field represents the status of the request to connect the given network between accounts.Possible values: [pending,approved,rejected,expired,detached]
- status String
- (String) The configuration status of the connection tunnel, such as attached, failed,
- tg
Connection StringId - (String) The unique identifier of the connection tunnel ID resource.
- timeouts Property Map
- tunnels List<Property Map>
- List of GRE tunnels for a transit gateway redundant GRE tunnel connection. This field is required for 'redundant_gre' connections.
Nested scheme for
tunnel
: - updated
At String - (Timestamp) Last updated date and time of the connection tunnel.
- zone String
- The location of the GRE tunnel. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections.
Supporting Types
TgConnectionTimeouts, TgConnectionTimeoutsArgs
TgConnectionTunnel, TgConnectionTunnelArgs
- Local
Gateway stringIp - The local gateway IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- Local
Tunnel stringIp - The local tunnel IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- Name string
- The user-defined name for this tunnel connection.
- Remote
Gateway stringIp - The remote gateway IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- Remote
Tunnel stringIp - The remote tunnel IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- Zone string
- The location of the GRE tunnel. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Created
At string - (Timestamp) The date and time the connection tunnel was created.
- Local
Bgp doubleAsn - (Integer) The local network BGP ASN.
- Mtu double
- (Integer) GRE tunnel MTU.
- Remote
Bgp doubleAsn - The remote network BGP ASN (will be generated for the connection if not specified). This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Status string
- (String) The configuration status of the connection tunnel, such as attached, failed,
- Tunnel
Id string - The Transit Gateway Connection tunnel identifier
- Updated
At string - (Timestamp) Last updated date and time of the connection tunnel.
- Local
Gateway stringIp - The local gateway IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- Local
Tunnel stringIp - The local tunnel IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- Name string
- The user-defined name for this tunnel connection.
- Remote
Gateway stringIp - The remote gateway IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- Remote
Tunnel stringIp - The remote tunnel IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- Zone string
- The location of the GRE tunnel. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Created
At string - (Timestamp) The date and time the connection tunnel was created.
- Local
Bgp float64Asn - (Integer) The local network BGP ASN.
- Mtu float64
- (Integer) GRE tunnel MTU.
- Remote
Bgp float64Asn - The remote network BGP ASN (will be generated for the connection if not specified). This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - Status string
- (String) The configuration status of the connection tunnel, such as attached, failed,
- Tunnel
Id string - The Transit Gateway Connection tunnel identifier
- Updated
At string - (Timestamp) Last updated date and time of the connection tunnel.
- local
Gateway StringIp - The local gateway IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- local
Tunnel StringIp - The local tunnel IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- name String
- The user-defined name for this tunnel connection.
- remote
Gateway StringIp - The remote gateway IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- remote
Tunnel StringIp - The remote tunnel IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- zone String
- The location of the GRE tunnel. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - created
At String - (Timestamp) The date and time the connection tunnel was created.
- local
Bgp DoubleAsn - (Integer) The local network BGP ASN.
- mtu Double
- (Integer) GRE tunnel MTU.
- remote
Bgp DoubleAsn - The remote network BGP ASN (will be generated for the connection if not specified). This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - status String
- (String) The configuration status of the connection tunnel, such as attached, failed,
- tunnel
Id String - The Transit Gateway Connection tunnel identifier
- updated
At String - (Timestamp) Last updated date and time of the connection tunnel.
- local
Gateway stringIp - The local gateway IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- local
Tunnel stringIp - The local tunnel IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- name string
- The user-defined name for this tunnel connection.
- remote
Gateway stringIp - The remote gateway IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- remote
Tunnel stringIp - The remote tunnel IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- zone string
- The location of the GRE tunnel. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - created
At string - (Timestamp) The date and time the connection tunnel was created.
- local
Bgp numberAsn - (Integer) The local network BGP ASN.
- mtu number
- (Integer) GRE tunnel MTU.
- remote
Bgp numberAsn - The remote network BGP ASN (will be generated for the connection if not specified). This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - status string
- (String) The configuration status of the connection tunnel, such as attached, failed,
- tunnel
Id string - The Transit Gateway Connection tunnel identifier
- updated
At string - (Timestamp) Last updated date and time of the connection tunnel.
- local_
gateway_ strip - The local gateway IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- local_
tunnel_ strip - The local tunnel IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- name str
- The user-defined name for this tunnel connection.
- remote_
gateway_ strip - The remote gateway IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- remote_
tunnel_ strip - The remote tunnel IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- zone str
- The location of the GRE tunnel. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - created_
at str - (Timestamp) The date and time the connection tunnel was created.
- local_
bgp_ floatasn - (Integer) The local network BGP ASN.
- mtu float
- (Integer) GRE tunnel MTU.
- remote_
bgp_ floatasn - The remote network BGP ASN (will be generated for the connection if not specified). This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - status str
- (String) The configuration status of the connection tunnel, such as attached, failed,
- tunnel_
id str - The Transit Gateway Connection tunnel identifier
- updated_
at str - (Timestamp) Last updated date and time of the connection tunnel.
- local
Gateway StringIp - The local gateway IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- local
Tunnel StringIp - The local tunnel IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- name String
- The user-defined name for this tunnel connection.
- remote
Gateway StringIp - The remote gateway IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- remote
Tunnel StringIp - The remote tunnel IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.
- zone String
- The location of the GRE tunnel. This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - created
At String - (Timestamp) The date and time the connection tunnel was created.
- local
Bgp NumberAsn - (Integer) The local network BGP ASN.
- mtu Number
- (Integer) GRE tunnel MTU.
- remote
Bgp NumberAsn - The remote network BGP ASN (will be generated for the connection if not specified). This field only applies to network type
gre_tunnel
andunbound_gre_tunnel
connections. - status String
- (String) The configuration status of the connection tunnel, such as attached, failed,
- tunnel
Id String - The Transit Gateway Connection tunnel identifier
- updated
At String - (Timestamp) Last updated date and time of the connection tunnel.
Import
The ibm_tg_connection
resource can be imported by using transit gateway ID and connection ID.
Example
$ pulumi import ibm:index/tgConnection:TgConnection example 5ffda12064634723b079acdb018ef308/cea6651a-bd0a-4438-9f8a-a0770bbf3ebb
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.