Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getMagicTransitSiteLan
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleMagicTransitSiteLan = cloudflare.getMagicTransitSiteLan({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
siteId: "023e105f4ecef8ad9ca31a8372d0c353",
lanId: "023e105f4ecef8ad9ca31a8372d0c353",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_magic_transit_site_lan = cloudflare.get_magic_transit_site_lan(account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
lan_id="023e105f4ecef8ad9ca31a8372d0c353")
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.LookupMagicTransitSiteLan(ctx, &cloudflare.LookupMagicTransitSiteLanArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
SiteId: "023e105f4ecef8ad9ca31a8372d0c353",
LanId: pulumi.StringRef("023e105f4ecef8ad9ca31a8372d0c353"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleMagicTransitSiteLan = Cloudflare.GetMagicTransitSiteLan.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
SiteId = "023e105f4ecef8ad9ca31a8372d0c353",
LanId = "023e105f4ecef8ad9ca31a8372d0c353",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetMagicTransitSiteLanArgs;
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 exampleMagicTransitSiteLan = CloudflareFunctions.getMagicTransitSiteLan(GetMagicTransitSiteLanArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.siteId("023e105f4ecef8ad9ca31a8372d0c353")
.lanId("023e105f4ecef8ad9ca31a8372d0c353")
.build());
}
}
variables:
exampleMagicTransitSiteLan:
fn::invoke:
function: cloudflare:getMagicTransitSiteLan
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
siteId: 023e105f4ecef8ad9ca31a8372d0c353
lanId: 023e105f4ecef8ad9ca31a8372d0c353
Using getMagicTransitSiteLan
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 getMagicTransitSiteLan(args: GetMagicTransitSiteLanArgs, opts?: InvokeOptions): Promise<GetMagicTransitSiteLanResult>
function getMagicTransitSiteLanOutput(args: GetMagicTransitSiteLanOutputArgs, opts?: InvokeOptions): Output<GetMagicTransitSiteLanResult>
def get_magic_transit_site_lan(account_id: Optional[str] = None,
lan_id: Optional[str] = None,
site_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMagicTransitSiteLanResult
def get_magic_transit_site_lan_output(account_id: Optional[pulumi.Input[str]] = None,
lan_id: Optional[pulumi.Input[str]] = None,
site_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMagicTransitSiteLanResult]
func LookupMagicTransitSiteLan(ctx *Context, args *LookupMagicTransitSiteLanArgs, opts ...InvokeOption) (*LookupMagicTransitSiteLanResult, error)
func LookupMagicTransitSiteLanOutput(ctx *Context, args *LookupMagicTransitSiteLanOutputArgs, opts ...InvokeOption) LookupMagicTransitSiteLanResultOutput
> Note: This function is named LookupMagicTransitSiteLan
in the Go SDK.
public static class GetMagicTransitSiteLan
{
public static Task<GetMagicTransitSiteLanResult> InvokeAsync(GetMagicTransitSiteLanArgs args, InvokeOptions? opts = null)
public static Output<GetMagicTransitSiteLanResult> Invoke(GetMagicTransitSiteLanInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMagicTransitSiteLanResult> getMagicTransitSiteLan(GetMagicTransitSiteLanArgs args, InvokeOptions options)
public static Output<GetMagicTransitSiteLanResult> getMagicTransitSiteLan(GetMagicTransitSiteLanArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getMagicTransitSiteLan:getMagicTransitSiteLan
arguments:
# arguments dictionary
The following arguments are supported:
- account_
id str - Identifier
- site_
id str - Identifier
- lan_
id str - Identifier
getMagicTransitSiteLan Result
The following output properties are available:
- Account
Id string - Identifier
- Ha
Link bool - mark true to use this LAN for HA probing. only works for site with HA turned on. only one LAN can be set as the ha_link.
- Id string
- Identifier
- Name string
- Nat
Get
Magic Transit Site Lan Nat - Physport int
- Routed
Subnets List<GetMagic Transit Site Lan Routed Subnet> - Site
Id string - Identifier
- Static
Addressing GetMagic Transit Site Lan Static Addressing - If the site is not configured in high availability mode, this configuration is optional (if omitted, use DHCP). However, if in high availability mode, static*address is required along with secondary and virtual address.
- Vlan
Tag int - VLAN ID. Use zero for untagged.
- Lan
Id string - Identifier
- Account
Id string - Identifier
- Ha
Link bool - mark true to use this LAN for HA probing. only works for site with HA turned on. only one LAN can be set as the ha_link.
- Id string
- Identifier
- Name string
- Nat
Get
Magic Transit Site Lan Nat - Physport int
- Routed
Subnets []GetMagic Transit Site Lan Routed Subnet - Site
Id string - Identifier
- Static
Addressing GetMagic Transit Site Lan Static Addressing - If the site is not configured in high availability mode, this configuration is optional (if omitted, use DHCP). However, if in high availability mode, static*address is required along with secondary and virtual address.
- Vlan
Tag int - VLAN ID. Use zero for untagged.
- Lan
Id string - Identifier
- account
Id String - Identifier
- ha
Link Boolean - mark true to use this LAN for HA probing. only works for site with HA turned on. only one LAN can be set as the ha_link.
- id String
- Identifier
- name String
- nat
Get
Magic Transit Site Lan Nat - physport Integer
- routed
Subnets List<GetMagic Transit Site Lan Routed Subnet> - site
Id String - Identifier
- static
Addressing GetMagic Transit Site Lan Static Addressing - If the site is not configured in high availability mode, this configuration is optional (if omitted, use DHCP). However, if in high availability mode, static*address is required along with secondary and virtual address.
- vlan
Tag Integer - VLAN ID. Use zero for untagged.
- lan
Id String - Identifier
- account
Id string - Identifier
- ha
Link boolean - mark true to use this LAN for HA probing. only works for site with HA turned on. only one LAN can be set as the ha_link.
- id string
- Identifier
- name string
- nat
Get
Magic Transit Site Lan Nat - physport number
- routed
Subnets GetMagic Transit Site Lan Routed Subnet[] - site
Id string - Identifier
- static
Addressing GetMagic Transit Site Lan Static Addressing - If the site is not configured in high availability mode, this configuration is optional (if omitted, use DHCP). However, if in high availability mode, static*address is required along with secondary and virtual address.
- vlan
Tag number - VLAN ID. Use zero for untagged.
- lan
Id string - Identifier
- account_
id str - Identifier
- ha_
link bool - mark true to use this LAN for HA probing. only works for site with HA turned on. only one LAN can be set as the ha_link.
- id str
- Identifier
- name str
- nat
Get
Magic Transit Site Lan Nat - physport int
- routed_
subnets Sequence[GetMagic Transit Site Lan Routed Subnet] - site_
id str - Identifier
- static_
addressing GetMagic Transit Site Lan Static Addressing - If the site is not configured in high availability mode, this configuration is optional (if omitted, use DHCP). However, if in high availability mode, static*address is required along with secondary and virtual address.
- vlan_
tag int - VLAN ID. Use zero for untagged.
- lan_
id str - Identifier
- account
Id String - Identifier
- ha
Link Boolean - mark true to use this LAN for HA probing. only works for site with HA turned on. only one LAN can be set as the ha_link.
- id String
- Identifier
- name String
- nat Property Map
- physport Number
- routed
Subnets List<Property Map> - site
Id String - Identifier
- static
Addressing Property Map - If the site is not configured in high availability mode, this configuration is optional (if omitted, use DHCP). However, if in high availability mode, static*address is required along with secondary and virtual address.
- vlan
Tag Number - VLAN ID. Use zero for untagged.
- lan
Id String - Identifier
Supporting Types
GetMagicTransitSiteLanNat
- Static
Prefix string - A valid CIDR notation representing an IP range.
- Static
Prefix string - A valid CIDR notation representing an IP range.
- static
Prefix String - A valid CIDR notation representing an IP range.
- static
Prefix string - A valid CIDR notation representing an IP range.
- static_
prefix str - A valid CIDR notation representing an IP range.
- static
Prefix String - A valid CIDR notation representing an IP range.
GetMagicTransitSiteLanRoutedSubnet
- Nat
Get
Magic Transit Site Lan Routed Subnet Nat - Next
Hop string - A valid IPv4 address.
- Prefix string
- A valid CIDR notation representing an IP range.
- Nat
Get
Magic Transit Site Lan Routed Subnet Nat - Next
Hop string - A valid IPv4 address.
- Prefix string
- A valid CIDR notation representing an IP range.
- nat
Get
Magic Transit Site Lan Routed Subnet Nat - next
Hop String - A valid IPv4 address.
- prefix String
- A valid CIDR notation representing an IP range.
- nat
Get
Magic Transit Site Lan Routed Subnet Nat - next
Hop string - A valid IPv4 address.
- prefix string
- A valid CIDR notation representing an IP range.
- nat
Get
Magic Transit Site Lan Routed Subnet Nat - next_
hop str - A valid IPv4 address.
- prefix str
- A valid CIDR notation representing an IP range.
- nat Property Map
- next
Hop String - A valid IPv4 address.
- prefix String
- A valid CIDR notation representing an IP range.
GetMagicTransitSiteLanRoutedSubnetNat
- Static
Prefix string - A valid CIDR notation representing an IP range.
- Static
Prefix string - A valid CIDR notation representing an IP range.
- static
Prefix String - A valid CIDR notation representing an IP range.
- static
Prefix string - A valid CIDR notation representing an IP range.
- static_
prefix str - A valid CIDR notation representing an IP range.
- static
Prefix String - A valid CIDR notation representing an IP range.
GetMagicTransitSiteLanStaticAddressing
- Address string
- A valid CIDR notation representing an IP range.
- Dhcp
Relay GetMagic Transit Site Lan Static Addressing Dhcp Relay - Dhcp
Server GetMagic Transit Site Lan Static Addressing Dhcp Server - Secondary
Address string - A valid CIDR notation representing an IP range.
- Virtual
Address string - A valid CIDR notation representing an IP range.
- Address string
- A valid CIDR notation representing an IP range.
- Dhcp
Relay GetMagic Transit Site Lan Static Addressing Dhcp Relay - Dhcp
Server GetMagic Transit Site Lan Static Addressing Dhcp Server - Secondary
Address string - A valid CIDR notation representing an IP range.
- Virtual
Address string - A valid CIDR notation representing an IP range.
- address String
- A valid CIDR notation representing an IP range.
- dhcp
Relay GetMagic Transit Site Lan Static Addressing Dhcp Relay - dhcp
Server GetMagic Transit Site Lan Static Addressing Dhcp Server - secondary
Address String - A valid CIDR notation representing an IP range.
- virtual
Address String - A valid CIDR notation representing an IP range.
- address string
- A valid CIDR notation representing an IP range.
- dhcp
Relay GetMagic Transit Site Lan Static Addressing Dhcp Relay - dhcp
Server GetMagic Transit Site Lan Static Addressing Dhcp Server - secondary
Address string - A valid CIDR notation representing an IP range.
- virtual
Address string - A valid CIDR notation representing an IP range.
- address str
- A valid CIDR notation representing an IP range.
- dhcp_
relay GetMagic Transit Site Lan Static Addressing Dhcp Relay - dhcp_
server GetMagic Transit Site Lan Static Addressing Dhcp Server - secondary_
address str - A valid CIDR notation representing an IP range.
- virtual_
address str - A valid CIDR notation representing an IP range.
- address String
- A valid CIDR notation representing an IP range.
- dhcp
Relay Property Map - dhcp
Server Property Map - secondary
Address String - A valid CIDR notation representing an IP range.
- virtual
Address String - A valid CIDR notation representing an IP range.
GetMagicTransitSiteLanStaticAddressingDhcpRelay
- Server
Addresses List<string> - List of DHCP server IPs.
- Server
Addresses []string - List of DHCP server IPs.
- server
Addresses List<String> - List of DHCP server IPs.
- server
Addresses string[] - List of DHCP server IPs.
- server_
addresses Sequence[str] - List of DHCP server IPs.
- server
Addresses List<String> - List of DHCP server IPs.
GetMagicTransitSiteLanStaticAddressingDhcpServer
- Dhcp
Pool stringEnd - A valid IPv4 address.
- Dhcp
Pool stringStart - A valid IPv4 address.
- Dns
Server string - A valid IPv4 address.
- Dns
Servers List<string> - Reservations Dictionary<string, string>
- Mapping of MAC addresses to IP addresses
- Dhcp
Pool stringEnd - A valid IPv4 address.
- Dhcp
Pool stringStart - A valid IPv4 address.
- Dns
Server string - A valid IPv4 address.
- Dns
Servers []string - Reservations map[string]string
- Mapping of MAC addresses to IP addresses
- dhcp
Pool StringEnd - A valid IPv4 address.
- dhcp
Pool StringStart - A valid IPv4 address.
- dns
Server String - A valid IPv4 address.
- dns
Servers List<String> - reservations Map<String,String>
- Mapping of MAC addresses to IP addresses
- dhcp
Pool stringEnd - A valid IPv4 address.
- dhcp
Pool stringStart - A valid IPv4 address.
- dns
Server string - A valid IPv4 address.
- dns
Servers string[] - reservations {[key: string]: string}
- Mapping of MAC addresses to IP addresses
- dhcp_
pool_ strend - A valid IPv4 address.
- dhcp_
pool_ strstart - A valid IPv4 address.
- dns_
server str - A valid IPv4 address.
- dns_
servers Sequence[str] - reservations Mapping[str, str]
- Mapping of MAC addresses to IP addresses
- dhcp
Pool StringEnd - A valid IPv4 address.
- dhcp
Pool StringStart - A valid IPv4 address.
- dns
Server String - A valid IPv4 address.
- dns
Servers List<String> - reservations Map<String>
- Mapping of MAC addresses to IP addresses
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.