Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getMagicTransitSiteAcl
Explore with Pulumi AI
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:
- account_
id str - Identifier
- site_
id str - Identifier
- acl_
id str - Identifier
getMagicTransitSiteAcl Result
The following output properties are available:
- Account
Id string - Identifier
- Description string
- 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 string
- Identifier
- Lan1
Get
Magic Transit Site Acl Lan1 - Lan2
Get
Magic Transit Site Acl Lan2 - Name string
- The name of the ACL.
- Protocols List<string>
- Site
Id 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.
- Acl
Id string - Identifier
- Account
Id string - Identifier
- Description string
- 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 string
- Identifier
- Lan1
Get
Magic Transit Site Acl Lan1 - Lan2
Get
Magic Transit Site Acl Lan2 - Name string
- The name of the ACL.
- Protocols []string
- Site
Id 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.
- Acl
Id string - Identifier
- account
Id String - Identifier
- description String
- Description for the ACL.
- forward
Locally 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
Get
Magic Transit Site Acl Lan1 - lan2
Get
Magic Transit Site Acl Lan2 - name String
- The name of the ACL.
- protocols List<String>
- site
Id 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.
- acl
Id String - Identifier
- account
Id string - Identifier
- description string
- Description for the ACL.
- forward
Locally 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
Get
Magic Transit Site Acl Lan1 - lan2
Get
Magic Transit Site Acl Lan2 - name string
- The name of the ACL.
- protocols string[]
- site
Id 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.
- acl
Id 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
Get
Magic Transit Site Acl Lan1 - lan2
Get
Magic Transit Site Acl Lan2 - 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
- account
Id String - Identifier
- description String
- Description for the ACL.
- forward
Locally 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>
- site
Id 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.
- acl
Id String - Identifier
Supporting Types
GetMagicTransitSiteAclLan1
- Lan
Id string - The identifier for the LAN you want to create an ACL policy with.
- Lan
Name string - The name of the LAN based on the provided lan_id.
- Port
Ranges 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.
- Lan
Id string - The identifier for the LAN you want to create an ACL policy with.
- Lan
Name string - The name of the LAN based on the provided lan_id.
- Port
Ranges []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.
- lan
Id String - The identifier for the LAN you want to create an ACL policy with.
- lan
Name String - The name of the LAN based on the provided lan_id.
- port
Ranges 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.
- lan
Id string - The identifier for the LAN you want to create an ACL policy with.
- lan
Name string - The name of the LAN based on the provided lan_id.
- port
Ranges 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.
- lan
Id String - The identifier for the LAN you want to create an ACL policy with.
- lan
Name String - The name of the LAN based on the provided lan_id.
- port
Ranges 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
- Lan
Id string - The identifier for the LAN you want to create an ACL policy with.
- Lan
Name string - The name of the LAN based on the provided lan_id.
- Port
Ranges 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.
- Lan
Id string - The identifier for the LAN you want to create an ACL policy with.
- Lan
Name string - The name of the LAN based on the provided lan_id.
- Port
Ranges []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.
- lan
Id String - The identifier for the LAN you want to create an ACL policy with.
- lan
Name String - The name of the LAN based on the provided lan_id.
- port
Ranges 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.
- lan
Id string - The identifier for the LAN you want to create an ACL policy with.
- lan
Name string - The name of the LAN based on the provided lan_id.
- port
Ranges 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.
- lan
Id String - The identifier for the LAN you want to create an ACL policy with.
- lan
Name String - The name of the LAN based on the provided lan_id.
- port
Ranges 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.