Viewing docs for Cloudflare v6.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
Viewing docs for Cloudflare v6.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleMagicTransitSiteLans = cloudflare.getMagicTransitSiteLans({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
siteId: "023e105f4ecef8ad9ca31a8372d0c353",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_magic_transit_site_lans = cloudflare.get_magic_transit_site_lans(account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_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.LookupMagicTransitSiteLans(ctx, &cloudflare.LookupMagicTransitSiteLansArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
SiteId: "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 exampleMagicTransitSiteLans = Cloudflare.GetMagicTransitSiteLans.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
SiteId = "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.GetMagicTransitSiteLansArgs;
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 exampleMagicTransitSiteLans = CloudflareFunctions.getMagicTransitSiteLans(GetMagicTransitSiteLansArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.siteId("023e105f4ecef8ad9ca31a8372d0c353")
.build());
}
}
variables:
exampleMagicTransitSiteLans:
fn::invoke:
function: cloudflare:getMagicTransitSiteLans
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
siteId: 023e105f4ecef8ad9ca31a8372d0c353
Using getMagicTransitSiteLans
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 getMagicTransitSiteLans(args: GetMagicTransitSiteLansArgs, opts?: InvokeOptions): Promise<GetMagicTransitSiteLansResult>
function getMagicTransitSiteLansOutput(args: GetMagicTransitSiteLansOutputArgs, opts?: InvokeOptions): Output<GetMagicTransitSiteLansResult>def get_magic_transit_site_lans(account_id: Optional[str] = None,
max_items: Optional[int] = None,
site_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMagicTransitSiteLansResult
def get_magic_transit_site_lans_output(account_id: Optional[pulumi.Input[str]] = None,
max_items: Optional[pulumi.Input[int]] = None,
site_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMagicTransitSiteLansResult]func LookupMagicTransitSiteLans(ctx *Context, args *LookupMagicTransitSiteLansArgs, opts ...InvokeOption) (*LookupMagicTransitSiteLansResult, error)
func LookupMagicTransitSiteLansOutput(ctx *Context, args *LookupMagicTransitSiteLansOutputArgs, opts ...InvokeOption) LookupMagicTransitSiteLansResultOutput> Note: This function is named LookupMagicTransitSiteLans in the Go SDK.
public static class GetMagicTransitSiteLans
{
public static Task<GetMagicTransitSiteLansResult> InvokeAsync(GetMagicTransitSiteLansArgs args, InvokeOptions? opts = null)
public static Output<GetMagicTransitSiteLansResult> Invoke(GetMagicTransitSiteLansInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMagicTransitSiteLansResult> getMagicTransitSiteLans(GetMagicTransitSiteLansArgs args, InvokeOptions options)
public static Output<GetMagicTransitSiteLansResult> getMagicTransitSiteLans(GetMagicTransitSiteLansArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getMagicTransitSiteLans:getMagicTransitSiteLans
arguments:
# arguments dictionaryThe following arguments are supported:
- account_
id str - Identifier
- site_
id str - Identifier
- max_
items int - Max items to fetch, default: 1000
getMagicTransitSiteLans Result
The following output properties are available:
- account_
id str - Identifier
- id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
Magic Transit Site Lans Result] - The items returned by the data source
- site_
id str - Identifier
- max_
items int - Max items to fetch, default: 1000
Supporting Types
GetMagicTransitSiteLansResult
- 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 Lans Result Nat - Physport int
- Routed
Subnets List<GetMagic Transit Site Lans Result Routed Subnet> - Site
Id string - Identifier
- Static
Addressing GetMagic Transit Site Lans Result 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.
- 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 Lans Result Nat - Physport int
- Routed
Subnets []GetMagic Transit Site Lans Result Routed Subnet - Site
Id string - Identifier
- Static
Addressing GetMagic Transit Site Lans Result 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.
- 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 Lans Result Nat - physport Integer
- routed
Subnets List<GetMagic Transit Site Lans Result Routed Subnet> - site
Id String - Identifier
- static
Addressing GetMagic Transit Site Lans Result 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.
- 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 Lans Result Nat - physport number
- routed
Subnets GetMagic Transit Site Lans Result Routed Subnet[] - site
Id string - Identifier
- static
Addressing GetMagic Transit Site Lans Result 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.
- 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 Lans Result Nat - physport int
- routed_
subnets Sequence[GetMagic Transit Site Lans Result Routed Subnet] - site_
id str - Identifier
- static_
addressing GetMagic Transit Site Lans Result 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.
- 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.
GetMagicTransitSiteLansResultNat
- 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.
GetMagicTransitSiteLansResultRoutedSubnet
- Nat
Get
Magic Transit Site Lans Result 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 Lans Result 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 Lans Result 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 Lans Result 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 Lans Result 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.
GetMagicTransitSiteLansResultRoutedSubnetNat
- 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.
GetMagicTransitSiteLansResultStaticAddressing
- Address string
- A valid CIDR notation representing an IP range.
- Dhcp
Relay GetMagic Transit Site Lans Result Static Addressing Dhcp Relay - Dhcp
Server GetMagic Transit Site Lans Result 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 Lans Result Static Addressing Dhcp Relay - Dhcp
Server GetMagic Transit Site Lans Result 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 Lans Result Static Addressing Dhcp Relay - dhcp
Server GetMagic Transit Site Lans Result 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 Lans Result Static Addressing Dhcp Relay - dhcp
Server GetMagic Transit Site Lans Result 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 Lans Result Static Addressing Dhcp Relay - dhcp_
server GetMagic Transit Site Lans Result 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.
GetMagicTransitSiteLansResultStaticAddressingDhcpRelay
- 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.
GetMagicTransitSiteLansResultStaticAddressingDhcpServer
- 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
cloudflareTerraform Provider.
Viewing docs for Cloudflare v6.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
