1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getMagicTransitSiteAcl
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getMagicTransitSiteAcl

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleMagicTransitSiteAcl = cloudflare.getMagicTransitSiteAcl({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        siteId: "023e105f4ecef8ad9ca31a8372d0c353",
        aclId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_magic_transit_site_acl = cloudflare.get_magic_transit_site_acl(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        site_id="023e105f4ecef8ad9ca31a8372d0c353",
        acl_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.LookupMagicTransitSiteAcl(ctx, &cloudflare.LookupMagicTransitSiteAclArgs{
    			AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
    			SiteId:    "023e105f4ecef8ad9ca31a8372d0c353",
    			AclId:     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 exampleMagicTransitSiteAcl = Cloudflare.GetMagicTransitSiteAcl.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            SiteId = "023e105f4ecef8ad9ca31a8372d0c353",
            AclId = "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.GetMagicTransitSiteAclArgs;
    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 exampleMagicTransitSiteAcl = CloudflareFunctions.getMagicTransitSiteAcl(GetMagicTransitSiteAclArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .siteId("023e105f4ecef8ad9ca31a8372d0c353")
                .aclId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleMagicTransitSiteAcl:
        fn::invoke:
          function: cloudflare:getMagicTransitSiteAcl
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            siteId: 023e105f4ecef8ad9ca31a8372d0c353
            aclId: 023e105f4ecef8ad9ca31a8372d0c353
    

    Using getMagicTransitSiteAcl

    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 getMagicTransitSiteAcl(args: GetMagicTransitSiteAclArgs, opts?: InvokeOptions): Promise<GetMagicTransitSiteAclResult>
    function getMagicTransitSiteAclOutput(args: GetMagicTransitSiteAclOutputArgs, opts?: InvokeOptions): Output<GetMagicTransitSiteAclResult>
    def get_magic_transit_site_acl(account_id: Optional[str] = None,
                                   acl_id: Optional[str] = None,
                                   site_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetMagicTransitSiteAclResult
    def get_magic_transit_site_acl_output(account_id: Optional[pulumi.Input[str]] = None,
                                   acl_id: Optional[pulumi.Input[str]] = None,
                                   site_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetMagicTransitSiteAclResult]
    func LookupMagicTransitSiteAcl(ctx *Context, args *LookupMagicTransitSiteAclArgs, opts ...InvokeOption) (*LookupMagicTransitSiteAclResult, error)
    func LookupMagicTransitSiteAclOutput(ctx *Context, args *LookupMagicTransitSiteAclOutputArgs, opts ...InvokeOption) LookupMagicTransitSiteAclResultOutput

    > Note: This function is named LookupMagicTransitSiteAcl in the Go SDK.

    public static class GetMagicTransitSiteAcl 
    {
        public static Task<GetMagicTransitSiteAclResult> InvokeAsync(GetMagicTransitSiteAclArgs args, InvokeOptions? opts = null)
        public static Output<GetMagicTransitSiteAclResult> Invoke(GetMagicTransitSiteAclInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMagicTransitSiteAclResult> getMagicTransitSiteAcl(GetMagicTransitSiteAclArgs args, InvokeOptions options)
    public static Output<GetMagicTransitSiteAclResult> getMagicTransitSiteAcl(GetMagicTransitSiteAclArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getMagicTransitSiteAcl:getMagicTransitSiteAcl
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Identifier
    SiteId string
    Identifier
    AclId string
    Identifier
    AccountId string
    Identifier
    SiteId string
    Identifier
    AclId string
    Identifier
    accountId String
    Identifier
    siteId String
    Identifier
    aclId String
    Identifier
    accountId string
    Identifier
    siteId string
    Identifier
    aclId string
    Identifier
    account_id str
    Identifier
    site_id str
    Identifier
    acl_id str
    Identifier
    accountId String
    Identifier
    siteId String
    Identifier
    aclId String
    Identifier

    getMagicTransitSiteAcl Result

    The following output properties are available:

    AccountId string
    Identifier
    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 GetMagicTransitSiteAclLan1
    Lan2 GetMagicTransitSiteAclLan2
    Name string
    The name of the ACL.
    Protocols List<string>
    SiteId string
    Identifier
    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.
    AclId string
    Identifier
    AccountId string
    Identifier
    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 GetMagicTransitSiteAclLan1
    Lan2 GetMagicTransitSiteAclLan2
    Name string
    The name of the ACL.
    Protocols []string
    SiteId string
    Identifier
    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.
    AclId string
    Identifier
    accountId String
    Identifier
    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 GetMagicTransitSiteAclLan1
    lan2 GetMagicTransitSiteAclLan2
    name String
    The name of the ACL.
    protocols List<String>
    siteId String
    Identifier
    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.
    aclId String
    Identifier
    accountId string
    Identifier
    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 GetMagicTransitSiteAclLan1
    lan2 GetMagicTransitSiteAclLan2
    name string
    The name of the ACL.
    protocols string[]
    siteId string
    Identifier
    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.
    aclId string
    Identifier
    account_id str
    Identifier
    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 GetMagicTransitSiteAclLan1
    lan2 GetMagicTransitSiteAclLan2
    name str
    The name of the ACL.
    protocols Sequence[str]
    site_id str
    Identifier
    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.
    acl_id str
    Identifier
    accountId String
    Identifier
    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>
    siteId String
    Identifier
    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.
    aclId String
    Identifier

    Supporting Types

    GetMagicTransitSiteAclLan1

    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.

    GetMagicTransitSiteAclLan2

    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 cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi