Cloudflare v6.10.1 published on Wednesday, Oct 22, 2025 by Pulumi
cloudflare.getMagicTransitSiteAcls
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleMagicTransitSiteAcls = cloudflare.getMagicTransitSiteAcls({
    accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    siteId: "023e105f4ecef8ad9ca31a8372d0c353",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_magic_transit_site_acls = cloudflare.get_magic_transit_site_acls(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.LookupMagicTransitSiteAcls(ctx, &cloudflare.LookupMagicTransitSiteAclsArgs{
			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 exampleMagicTransitSiteAcls = Cloudflare.GetMagicTransitSiteAcls.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.GetMagicTransitSiteAclsArgs;
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 exampleMagicTransitSiteAcls = CloudflareFunctions.getMagicTransitSiteAcls(GetMagicTransitSiteAclsArgs.builder()
            .accountId("023e105f4ecef8ad9ca31a8372d0c353")
            .siteId("023e105f4ecef8ad9ca31a8372d0c353")
            .build());
    }
}
variables:
  exampleMagicTransitSiteAcls:
    fn::invoke:
      function: cloudflare:getMagicTransitSiteAcls
      arguments:
        accountId: 023e105f4ecef8ad9ca31a8372d0c353
        siteId: 023e105f4ecef8ad9ca31a8372d0c353
Using getMagicTransitSiteAcls
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 getMagicTransitSiteAcls(args: GetMagicTransitSiteAclsArgs, opts?: InvokeOptions): Promise<GetMagicTransitSiteAclsResult>
function getMagicTransitSiteAclsOutput(args: GetMagicTransitSiteAclsOutputArgs, opts?: InvokeOptions): Output<GetMagicTransitSiteAclsResult>def get_magic_transit_site_acls(account_id: Optional[str] = None,
                                max_items: Optional[int] = None,
                                site_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetMagicTransitSiteAclsResult
def get_magic_transit_site_acls_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[GetMagicTransitSiteAclsResult]func LookupMagicTransitSiteAcls(ctx *Context, args *LookupMagicTransitSiteAclsArgs, opts ...InvokeOption) (*LookupMagicTransitSiteAclsResult, error)
func LookupMagicTransitSiteAclsOutput(ctx *Context, args *LookupMagicTransitSiteAclsOutputArgs, opts ...InvokeOption) LookupMagicTransitSiteAclsResultOutput> Note: This function is named LookupMagicTransitSiteAcls in the Go SDK.
public static class GetMagicTransitSiteAcls 
{
    public static Task<GetMagicTransitSiteAclsResult> InvokeAsync(GetMagicTransitSiteAclsArgs args, InvokeOptions? opts = null)
    public static Output<GetMagicTransitSiteAclsResult> Invoke(GetMagicTransitSiteAclsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMagicTransitSiteAclsResult> getMagicTransitSiteAcls(GetMagicTransitSiteAclsArgs args, InvokeOptions options)
public static Output<GetMagicTransitSiteAclsResult> getMagicTransitSiteAcls(GetMagicTransitSiteAclsArgs args, InvokeOptions options)
fn::invoke:
  function: cloudflare:index/getMagicTransitSiteAcls:getMagicTransitSiteAcls
  arguments:
    # arguments dictionaryThe following arguments are supported:
- account_id str
- Identifier
- site_id str
- Identifier
- max_items int
- Max items to fetch, default: 1000
getMagicTransitSiteAcls Result
The following output properties are available:
- account_id str
- Identifier
- id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[GetMagic Transit Site Acls Result] 
- The items returned by the data source
- site_id str
- Identifier
- max_items int
- Max items to fetch, default: 1000
Supporting Types
GetMagicTransitSiteAclsResult     
- Description string
- Description for the ACL.
- ForwardLocally bool
- The desired forwarding action for this ACL policy. If set to "false", the policy will forward traffic to Cloudflare. If set to "true", the policy will forward traffic locally on the Magic Connector. If not included in request, will default to false.
- Id string
- Identifier
- Lan1
GetMagic Transit Site Acls Result Lan1 
- Lan2
GetMagic Transit Site Acls Result Lan2 
- Name string
- The name of the ACL.
- Protocols List<string>
- Unidirectional bool
- The desired traffic direction for this ACL policy. If set to "false", the policy will allow bidirectional traffic. If set to "true", the policy will only allow traffic in one direction. If not included in request, will default to false.
- Description string
- Description for the ACL.
- ForwardLocally bool
- The desired forwarding action for this ACL policy. If set to "false", the policy will forward traffic to Cloudflare. If set to "true", the policy will forward traffic locally on the Magic Connector. If not included in request, will default to false.
- Id string
- Identifier
- Lan1
GetMagic Transit Site Acls Result Lan1 
- Lan2
GetMagic Transit Site Acls Result Lan2 
- Name string
- The name of the ACL.
- Protocols []string
- Unidirectional bool
- The desired traffic direction for this ACL policy. If set to "false", the policy will allow bidirectional traffic. If set to "true", the policy will only allow traffic in one direction. If not included in request, will default to false.
- description String
- Description for the ACL.
- forwardLocally Boolean
- The desired forwarding action for this ACL policy. If set to "false", the policy will forward traffic to Cloudflare. If set to "true", the policy will forward traffic locally on the Magic Connector. If not included in request, will default to false.
- id String
- Identifier
- lan1
GetMagic Transit Site Acls Result Lan1 
- lan2
GetMagic Transit Site Acls Result Lan2 
- name String
- The name of the ACL.
- protocols List<String>
- unidirectional Boolean
- The desired traffic direction for this ACL policy. If set to "false", the policy will allow bidirectional traffic. If set to "true", the policy will only allow traffic in one direction. If not included in request, will default to false.
- description string
- Description for the ACL.
- forwardLocally boolean
- The desired forwarding action for this ACL policy. If set to "false", the policy will forward traffic to Cloudflare. If set to "true", the policy will forward traffic locally on the Magic Connector. If not included in request, will default to false.
- id string
- Identifier
- lan1
GetMagic Transit Site Acls Result Lan1 
- lan2
GetMagic Transit Site Acls Result Lan2 
- name string
- The name of the ACL.
- protocols string[]
- unidirectional boolean
- The desired traffic direction for this ACL policy. If set to "false", the policy will allow bidirectional traffic. If set to "true", the policy will only allow traffic in one direction. If not included in request, will default to false.
- description str
- Description for the ACL.
- forward_locally bool
- The desired forwarding action for this ACL policy. If set to "false", the policy will forward traffic to Cloudflare. If set to "true", the policy will forward traffic locally on the Magic Connector. If not included in request, will default to false.
- id str
- Identifier
- lan1
GetMagic Transit Site Acls Result Lan1 
- lan2
GetMagic Transit Site Acls Result Lan2 
- name str
- The name of the ACL.
- protocols Sequence[str]
- unidirectional bool
- The desired traffic direction for this ACL policy. If set to "false", the policy will allow bidirectional traffic. If set to "true", the policy will only allow traffic in one direction. If not included in request, will default to false.
- description String
- Description for the ACL.
- forwardLocally Boolean
- The desired forwarding action for this ACL policy. If set to "false", the policy will forward traffic to Cloudflare. If set to "true", the policy will forward traffic locally on the Magic Connector. If not included in request, will default to false.
- id String
- Identifier
- lan1 Property Map
- lan2 Property Map
- name String
- The name of the ACL.
- protocols List<String>
- unidirectional Boolean
- The desired traffic direction for this ACL policy. If set to "false", the policy will allow bidirectional traffic. If set to "true", the policy will only allow traffic in one direction. If not included in request, will default to false.
GetMagicTransitSiteAclsResultLan1      
- LanId string
- The identifier for the LAN you want to create an ACL policy with.
- LanName string
- The name of the LAN based on the provided lan_id.
- PortRanges List<string>
- Array of port ranges on the provided LAN that will be included in the ACL. If no ports or port rangess are provided, communication on any port on this LAN is allowed.
- Ports List<int>
- Array of ports on the provided LAN that will be included in the ACL. If no ports or port ranges are provided, communication on any port on this LAN is allowed.
- Subnets List<string>
- Array of subnet IPs within the LAN that will be included in the ACL. If no subnets are provided, communication on any subnets on this LAN are allowed.
- LanId string
- The identifier for the LAN you want to create an ACL policy with.
- LanName string
- The name of the LAN based on the provided lan_id.
- PortRanges []string
- Array of port ranges on the provided LAN that will be included in the ACL. If no ports or port rangess are provided, communication on any port on this LAN is allowed.
- Ports []int
- Array of ports on the provided LAN that will be included in the ACL. If no ports or port ranges are provided, communication on any port on this LAN is allowed.
- Subnets []string
- Array of subnet IPs within the LAN that will be included in the ACL. If no subnets are provided, communication on any subnets on this LAN are allowed.
- lanId String
- The identifier for the LAN you want to create an ACL policy with.
- lanName String
- The name of the LAN based on the provided lan_id.
- portRanges List<String>
- Array of port ranges on the provided LAN that will be included in the ACL. If no ports or port rangess are provided, communication on any port on this LAN is allowed.
- ports List<Integer>
- Array of ports on the provided LAN that will be included in the ACL. If no ports or port ranges are provided, communication on any port on this LAN is allowed.
- subnets List<String>
- Array of subnet IPs within the LAN that will be included in the ACL. If no subnets are provided, communication on any subnets on this LAN are allowed.
- lanId string
- The identifier for the LAN you want to create an ACL policy with.
- lanName string
- The name of the LAN based on the provided lan_id.
- portRanges string[]
- Array of port ranges on the provided LAN that will be included in the ACL. If no ports or port rangess are provided, communication on any port on this LAN is allowed.
- ports number[]
- Array of ports on the provided LAN that will be included in the ACL. If no ports or port ranges are provided, communication on any port on this LAN is allowed.
- subnets string[]
- Array of subnet IPs within the LAN that will be included in the ACL. If no subnets are provided, communication on any subnets on this LAN are allowed.
- lan_id str
- The identifier for the LAN you want to create an ACL policy with.
- lan_name str
- The name of the LAN based on the provided lan_id.
- port_ranges Sequence[str]
- Array of port ranges on the provided LAN that will be included in the ACL. If no ports or port rangess are provided, communication on any port on this LAN is allowed.
- ports Sequence[int]
- Array of ports on the provided LAN that will be included in the ACL. If no ports or port ranges are provided, communication on any port on this LAN is allowed.
- subnets Sequence[str]
- Array of subnet IPs within the LAN that will be included in the ACL. If no subnets are provided, communication on any subnets on this LAN are allowed.
- lanId String
- The identifier for the LAN you want to create an ACL policy with.
- lanName String
- The name of the LAN based on the provided lan_id.
- portRanges List<String>
- Array of port ranges on the provided LAN that will be included in the ACL. If no ports or port rangess are provided, communication on any port on this LAN is allowed.
- ports List<Number>
- Array of ports on the provided LAN that will be included in the ACL. If no ports or port ranges are provided, communication on any port on this LAN is allowed.
- subnets List<String>
- Array of subnet IPs within the LAN that will be included in the ACL. If no subnets are provided, communication on any subnets on this LAN are allowed.
GetMagicTransitSiteAclsResultLan2      
- LanId string
- The identifier for the LAN you want to create an ACL policy with.
- LanName string
- The name of the LAN based on the provided lan_id.
- PortRanges List<string>
- Array of port ranges on the provided LAN that will be included in the ACL. If no ports or port rangess are provided, communication on any port on this LAN is allowed.
- Ports List<int>
- Array of ports on the provided LAN that will be included in the ACL. If no ports or port ranges are provided, communication on any port on this LAN is allowed.
- Subnets List<string>
- Array of subnet IPs within the LAN that will be included in the ACL. If no subnets are provided, communication on any subnets on this LAN are allowed.
- LanId string
- The identifier for the LAN you want to create an ACL policy with.
- LanName string
- The name of the LAN based on the provided lan_id.
- PortRanges []string
- Array of port ranges on the provided LAN that will be included in the ACL. If no ports or port rangess are provided, communication on any port on this LAN is allowed.
- Ports []int
- Array of ports on the provided LAN that will be included in the ACL. If no ports or port ranges are provided, communication on any port on this LAN is allowed.
- Subnets []string
- Array of subnet IPs within the LAN that will be included in the ACL. If no subnets are provided, communication on any subnets on this LAN are allowed.
- lanId String
- The identifier for the LAN you want to create an ACL policy with.
- lanName String
- The name of the LAN based on the provided lan_id.
- portRanges List<String>
- Array of port ranges on the provided LAN that will be included in the ACL. If no ports or port rangess are provided, communication on any port on this LAN is allowed.
- ports List<Integer>
- Array of ports on the provided LAN that will be included in the ACL. If no ports or port ranges are provided, communication on any port on this LAN is allowed.
- subnets List<String>
- Array of subnet IPs within the LAN that will be included in the ACL. If no subnets are provided, communication on any subnets on this LAN are allowed.
- lanId string
- The identifier for the LAN you want to create an ACL policy with.
- lanName string
- The name of the LAN based on the provided lan_id.
- portRanges string[]
- Array of port ranges on the provided LAN that will be included in the ACL. If no ports or port rangess are provided, communication on any port on this LAN is allowed.
- ports number[]
- Array of ports on the provided LAN that will be included in the ACL. If no ports or port ranges are provided, communication on any port on this LAN is allowed.
- subnets string[]
- Array of subnet IPs within the LAN that will be included in the ACL. If no subnets are provided, communication on any subnets on this LAN are allowed.
- lan_id str
- The identifier for the LAN you want to create an ACL policy with.
- lan_name str
- The name of the LAN based on the provided lan_id.
- port_ranges Sequence[str]
- Array of port ranges on the provided LAN that will be included in the ACL. If no ports or port rangess are provided, communication on any port on this LAN is allowed.
- ports Sequence[int]
- Array of ports on the provided LAN that will be included in the ACL. If no ports or port ranges are provided, communication on any port on this LAN is allowed.
- subnets Sequence[str]
- Array of subnet IPs within the LAN that will be included in the ACL. If no subnets are provided, communication on any subnets on this LAN are allowed.
- lanId String
- The identifier for the LAN you want to create an ACL policy with.
- lanName String
- The name of the LAN based on the provided lan_id.
- portRanges List<String>
- Array of port ranges on the provided LAN that will be included in the ACL. If no ports or port rangess are provided, communication on any port on this LAN is allowed.
- ports List<Number>
- Array of ports on the provided LAN that will be included in the ACL. If no ports or port ranges are provided, communication on any port on this LAN is allowed.
- subnets List<String>
- Array of subnet IPs within the LAN that will be included in the ACL. If no subnets are provided, communication on any subnets on this LAN are allowed.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the cloudflareTerraform Provider.
