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

cloudflare.MagicTransitSiteWan

Explore with Pulumi AI

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

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    resources:
      exampleMagicTransitSiteWan:
        type: cloudflare:MagicTransitSiteWan
        name: example_magic_transit_site_wan
        properties:
          accountId: 023e105f4ecef8ad9ca31a8372d0c353
          siteId: 023e105f4ecef8ad9ca31a8372d0c353
          physport: 1
          name: name
          priority: 0
          staticAddressing:
            address: 192.0.2.0/24
            gateway_address: 192.0.2.1
            secondary_address: 192.0.2.0/24
          vlanTag: 42
    

    Create MagicTransitSiteWan Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MagicTransitSiteWan(name: string, args: MagicTransitSiteWanArgs, opts?: CustomResourceOptions);
    @overload
    def MagicTransitSiteWan(resource_name: str,
                            args: MagicTransitSiteWanArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def MagicTransitSiteWan(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            account_id: Optional[str] = None,
                            physport: Optional[int] = None,
                            site_id: Optional[str] = None,
                            name: Optional[str] = None,
                            priority: Optional[int] = None,
                            static_addressing: Optional[MagicTransitSiteWanStaticAddressingArgs] = None,
                            vlan_tag: Optional[int] = None)
    func NewMagicTransitSiteWan(ctx *Context, name string, args MagicTransitSiteWanArgs, opts ...ResourceOption) (*MagicTransitSiteWan, error)
    public MagicTransitSiteWan(string name, MagicTransitSiteWanArgs args, CustomResourceOptions? opts = null)
    public MagicTransitSiteWan(String name, MagicTransitSiteWanArgs args)
    public MagicTransitSiteWan(String name, MagicTransitSiteWanArgs args, CustomResourceOptions options)
    
    type: cloudflare:MagicTransitSiteWan
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MagicTransitSiteWanArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MagicTransitSiteWanArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MagicTransitSiteWanArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MagicTransitSiteWanArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MagicTransitSiteWanArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var magicTransitSiteWanResource = new Cloudflare.MagicTransitSiteWan("magicTransitSiteWanResource", new()
    {
        AccountId = "string",
        Physport = 0,
        SiteId = "string",
        Name = "string",
        Priority = 0,
        StaticAddressing = new Cloudflare.Inputs.MagicTransitSiteWanStaticAddressingArgs
        {
            Address = "string",
            GatewayAddress = "string",
            SecondaryAddress = "string",
        },
        VlanTag = 0,
    });
    
    example, err := cloudflare.NewMagicTransitSiteWan(ctx, "magicTransitSiteWanResource", &cloudflare.MagicTransitSiteWanArgs{
    	AccountId: pulumi.String("string"),
    	Physport:  pulumi.Int(0),
    	SiteId:    pulumi.String("string"),
    	Name:      pulumi.String("string"),
    	Priority:  pulumi.Int(0),
    	StaticAddressing: &cloudflare.MagicTransitSiteWanStaticAddressingArgs{
    		Address:          pulumi.String("string"),
    		GatewayAddress:   pulumi.String("string"),
    		SecondaryAddress: pulumi.String("string"),
    	},
    	VlanTag: pulumi.Int(0),
    })
    
    var magicTransitSiteWanResource = new MagicTransitSiteWan("magicTransitSiteWanResource", MagicTransitSiteWanArgs.builder()
        .accountId("string")
        .physport(0)
        .siteId("string")
        .name("string")
        .priority(0)
        .staticAddressing(MagicTransitSiteWanStaticAddressingArgs.builder()
            .address("string")
            .gatewayAddress("string")
            .secondaryAddress("string")
            .build())
        .vlanTag(0)
        .build());
    
    magic_transit_site_wan_resource = cloudflare.MagicTransitSiteWan("magicTransitSiteWanResource",
        account_id="string",
        physport=0,
        site_id="string",
        name="string",
        priority=0,
        static_addressing={
            "address": "string",
            "gateway_address": "string",
            "secondary_address": "string",
        },
        vlan_tag=0)
    
    const magicTransitSiteWanResource = new cloudflare.MagicTransitSiteWan("magicTransitSiteWanResource", {
        accountId: "string",
        physport: 0,
        siteId: "string",
        name: "string",
        priority: 0,
        staticAddressing: {
            address: "string",
            gatewayAddress: "string",
            secondaryAddress: "string",
        },
        vlanTag: 0,
    });
    
    type: cloudflare:MagicTransitSiteWan
    properties:
        accountId: string
        name: string
        physport: 0
        priority: 0
        siteId: string
        staticAddressing:
            address: string
            gatewayAddress: string
            secondaryAddress: string
        vlanTag: 0
    

    MagicTransitSiteWan Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The MagicTransitSiteWan resource accepts the following input properties:

    AccountId string
    Identifier
    Physport int
    SiteId string
    Identifier
    Name string
    Priority int
    StaticAddressing MagicTransitSiteWanStaticAddressing
    (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
    VlanTag int
    VLAN ID. Use zero for untagged.
    AccountId string
    Identifier
    Physport int
    SiteId string
    Identifier
    Name string
    Priority int
    StaticAddressing MagicTransitSiteWanStaticAddressingArgs
    (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
    VlanTag int
    VLAN ID. Use zero for untagged.
    accountId String
    Identifier
    physport Integer
    siteId String
    Identifier
    name String
    priority Integer
    staticAddressing MagicTransitSiteWanStaticAddressing
    (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
    vlanTag Integer
    VLAN ID. Use zero for untagged.
    accountId string
    Identifier
    physport number
    siteId string
    Identifier
    name string
    priority number
    staticAddressing MagicTransitSiteWanStaticAddressing
    (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
    vlanTag number
    VLAN ID. Use zero for untagged.
    account_id str
    Identifier
    physport int
    site_id str
    Identifier
    name str
    priority int
    static_addressing MagicTransitSiteWanStaticAddressingArgs
    (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
    vlan_tag int
    VLAN ID. Use zero for untagged.
    accountId String
    Identifier
    physport Number
    siteId String
    Identifier
    name String
    priority Number
    staticAddressing Property Map
    (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
    vlanTag Number
    VLAN ID. Use zero for untagged.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MagicTransitSiteWan resource produces the following output properties:

    HealthCheckRate string
    Magic WAN health check rate for tunnels created on this link. The default value is mid. Available values: "low", "mid", "high".
    Id string
    The provider-assigned unique ID for this managed resource.
    HealthCheckRate string
    Magic WAN health check rate for tunnels created on this link. The default value is mid. Available values: "low", "mid", "high".
    Id string
    The provider-assigned unique ID for this managed resource.
    healthCheckRate String
    Magic WAN health check rate for tunnels created on this link. The default value is mid. Available values: "low", "mid", "high".
    id String
    The provider-assigned unique ID for this managed resource.
    healthCheckRate string
    Magic WAN health check rate for tunnels created on this link. The default value is mid. Available values: "low", "mid", "high".
    id string
    The provider-assigned unique ID for this managed resource.
    health_check_rate str
    Magic WAN health check rate for tunnels created on this link. The default value is mid. Available values: "low", "mid", "high".
    id str
    The provider-assigned unique ID for this managed resource.
    healthCheckRate String
    Magic WAN health check rate for tunnels created on this link. The default value is mid. Available values: "low", "mid", "high".
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing MagicTransitSiteWan Resource

    Get an existing MagicTransitSiteWan resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: MagicTransitSiteWanState, opts?: CustomResourceOptions): MagicTransitSiteWan
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            health_check_rate: Optional[str] = None,
            name: Optional[str] = None,
            physport: Optional[int] = None,
            priority: Optional[int] = None,
            site_id: Optional[str] = None,
            static_addressing: Optional[MagicTransitSiteWanStaticAddressingArgs] = None,
            vlan_tag: Optional[int] = None) -> MagicTransitSiteWan
    func GetMagicTransitSiteWan(ctx *Context, name string, id IDInput, state *MagicTransitSiteWanState, opts ...ResourceOption) (*MagicTransitSiteWan, error)
    public static MagicTransitSiteWan Get(string name, Input<string> id, MagicTransitSiteWanState? state, CustomResourceOptions? opts = null)
    public static MagicTransitSiteWan get(String name, Output<String> id, MagicTransitSiteWanState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:MagicTransitSiteWan    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    Identifier
    HealthCheckRate string
    Magic WAN health check rate for tunnels created on this link. The default value is mid. Available values: "low", "mid", "high".
    Name string
    Physport int
    Priority int
    SiteId string
    Identifier
    StaticAddressing MagicTransitSiteWanStaticAddressing
    (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
    VlanTag int
    VLAN ID. Use zero for untagged.
    AccountId string
    Identifier
    HealthCheckRate string
    Magic WAN health check rate for tunnels created on this link. The default value is mid. Available values: "low", "mid", "high".
    Name string
    Physport int
    Priority int
    SiteId string
    Identifier
    StaticAddressing MagicTransitSiteWanStaticAddressingArgs
    (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
    VlanTag int
    VLAN ID. Use zero for untagged.
    accountId String
    Identifier
    healthCheckRate String
    Magic WAN health check rate for tunnels created on this link. The default value is mid. Available values: "low", "mid", "high".
    name String
    physport Integer
    priority Integer
    siteId String
    Identifier
    staticAddressing MagicTransitSiteWanStaticAddressing
    (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
    vlanTag Integer
    VLAN ID. Use zero for untagged.
    accountId string
    Identifier
    healthCheckRate string
    Magic WAN health check rate for tunnels created on this link. The default value is mid. Available values: "low", "mid", "high".
    name string
    physport number
    priority number
    siteId string
    Identifier
    staticAddressing MagicTransitSiteWanStaticAddressing
    (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
    vlanTag number
    VLAN ID. Use zero for untagged.
    account_id str
    Identifier
    health_check_rate str
    Magic WAN health check rate for tunnels created on this link. The default value is mid. Available values: "low", "mid", "high".
    name str
    physport int
    priority int
    site_id str
    Identifier
    static_addressing MagicTransitSiteWanStaticAddressingArgs
    (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
    vlan_tag int
    VLAN ID. Use zero for untagged.
    accountId String
    Identifier
    healthCheckRate String
    Magic WAN health check rate for tunnels created on this link. The default value is mid. Available values: "low", "mid", "high".
    name String
    physport Number
    priority Number
    siteId String
    Identifier
    staticAddressing Property Map
    (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
    vlanTag Number
    VLAN ID. Use zero for untagged.

    Supporting Types

    MagicTransitSiteWanStaticAddressing, MagicTransitSiteWanStaticAddressingArgs

    Address string
    A valid CIDR notation representing an IP range.
    GatewayAddress string
    A valid IPv4 address.
    SecondaryAddress string
    A valid CIDR notation representing an IP range.
    Address string
    A valid CIDR notation representing an IP range.
    GatewayAddress string
    A valid IPv4 address.
    SecondaryAddress string
    A valid CIDR notation representing an IP range.
    address String
    A valid CIDR notation representing an IP range.
    gatewayAddress String
    A valid IPv4 address.
    secondaryAddress String
    A valid CIDR notation representing an IP range.
    address string
    A valid CIDR notation representing an IP range.
    gatewayAddress string
    A valid IPv4 address.
    secondaryAddress string
    A valid CIDR notation representing an IP range.
    address str
    A valid CIDR notation representing an IP range.
    gateway_address str
    A valid IPv4 address.
    secondary_address str
    A valid CIDR notation representing an IP range.
    address String
    A valid CIDR notation representing an IP range.
    gatewayAddress String
    A valid IPv4 address.
    secondaryAddress String
    A valid CIDR notation representing an IP range.

    Import

    $ pulumi import cloudflare:index/magicTransitSiteWan:MagicTransitSiteWan example '<account_id>/<site_id>/<wan_id>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    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