cloudflare.MagicTransitSiteWan
Explore with Pulumi AI
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:
- Account
Id string - Identifier
- Physport int
- Site
Id string - Identifier
- Name string
- Priority int
- Static
Addressing MagicTransit Site Wan Static Addressing - (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
- Vlan
Tag int - VLAN ID. Use zero for untagged.
- Account
Id string - Identifier
- Physport int
- Site
Id string - Identifier
- Name string
- Priority int
- Static
Addressing MagicTransit Site Wan Static Addressing Args - (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
- Vlan
Tag int - VLAN ID. Use zero for untagged.
- account
Id String - Identifier
- physport Integer
- site
Id String - Identifier
- name String
- priority Integer
- static
Addressing MagicTransit Site Wan Static Addressing - (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
- vlan
Tag Integer - VLAN ID. Use zero for untagged.
- account
Id string - Identifier
- physport number
- site
Id string - Identifier
- name string
- priority number
- static
Addressing MagicTransit Site Wan Static Addressing - (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
- vlan
Tag number - VLAN ID. Use zero for untagged.
- account_
id str - Identifier
- physport int
- site_
id str - Identifier
- name str
- priority int
- static_
addressing MagicTransit Site Wan Static Addressing Args - (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
- vlan_
tag int - VLAN ID. Use zero for untagged.
- account
Id String - Identifier
- physport Number
- site
Id String - Identifier
- name String
- priority Number
- static
Addressing Property Map - (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
- vlan
Tag 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:
- Health
Check stringRate - 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 stringRate - 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 StringRate - 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 stringRate - 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_ strrate - 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.
- health
Check StringRate - 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.
- Account
Id string - Identifier
- Health
Check stringRate - 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
- Site
Id string - Identifier
- Static
Addressing MagicTransit Site Wan Static Addressing - (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
- Vlan
Tag int - VLAN ID. Use zero for untagged.
- Account
Id string - Identifier
- Health
Check stringRate - 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
- Site
Id string - Identifier
- Static
Addressing MagicTransit Site Wan Static Addressing Args - (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
- Vlan
Tag int - VLAN ID. Use zero for untagged.
- account
Id String - Identifier
- health
Check StringRate - 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
- site
Id String - Identifier
- static
Addressing MagicTransit Site Wan Static Addressing - (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
- vlan
Tag Integer - VLAN ID. Use zero for untagged.
- account
Id string - Identifier
- health
Check stringRate - 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
- site
Id string - Identifier
- static
Addressing MagicTransit Site Wan Static Addressing - (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
- vlan
Tag number - VLAN ID. Use zero for untagged.
- account_
id str - Identifier
- health_
check_ strrate - 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 MagicTransit Site Wan Static Addressing Args - (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
- vlan_
tag int - VLAN ID. Use zero for untagged.
- account
Id String - Identifier
- health
Check StringRate - 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
- site
Id String - Identifier
- static
Addressing Property Map - (optional) if omitted, use DHCP. Submit secondary*address when site is in high availability mode.
- vlan
Tag Number - VLAN ID. Use zero for untagged.
Supporting Types
MagicTransitSiteWanStaticAddressing, MagicTransitSiteWanStaticAddressingArgs
- Address string
- A valid CIDR notation representing an IP range.
- Gateway
Address string - A valid IPv4 address.
- Secondary
Address string - A valid CIDR notation representing an IP range.
- Address string
- A valid CIDR notation representing an IP range.
- Gateway
Address string - A valid IPv4 address.
- Secondary
Address string - A valid CIDR notation representing an IP range.
- address String
- A valid CIDR notation representing an IP range.
- gateway
Address String - A valid IPv4 address.
- secondary
Address String - A valid CIDR notation representing an IP range.
- address string
- A valid CIDR notation representing an IP range.
- gateway
Address string - A valid IPv4 address.
- secondary
Address 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.
- gateway
Address String - A valid IPv4 address.
- secondary
Address 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.