nsxt.LogicalTier0Router
Explore with Pulumi AI
Create LogicalTier0Router Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogicalTier0Router(name: string, args: LogicalTier0RouterArgs, opts?: CustomResourceOptions);
@overload
def LogicalTier0Router(resource_name: str,
args: LogicalTier0RouterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LogicalTier0Router(resource_name: str,
opts: Optional[ResourceOptions] = None,
edge_cluster_id: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
failover_mode: Optional[str] = None,
firewall_sections: Optional[Sequence[LogicalTier0RouterFirewallSectionArgs]] = None,
high_availability_mode: Optional[str] = None,
logical_tier0_router_id: Optional[str] = None,
tags: Optional[Sequence[LogicalTier0RouterTagArgs]] = None)
func NewLogicalTier0Router(ctx *Context, name string, args LogicalTier0RouterArgs, opts ...ResourceOption) (*LogicalTier0Router, error)
public LogicalTier0Router(string name, LogicalTier0RouterArgs args, CustomResourceOptions? opts = null)
public LogicalTier0Router(String name, LogicalTier0RouterArgs args)
public LogicalTier0Router(String name, LogicalTier0RouterArgs args, CustomResourceOptions options)
type: nsxt:LogicalTier0Router
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 LogicalTier0RouterArgs
- 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 LogicalTier0RouterArgs
- 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 LogicalTier0RouterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogicalTier0RouterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogicalTier0RouterArgs
- 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 logicalTier0RouterResource = new Nsxt.LogicalTier0Router("logicalTier0RouterResource", new()
{
EdgeClusterId = "string",
Description = "string",
DisplayName = "string",
FailoverMode = "string",
FirewallSections = new[]
{
new Nsxt.Inputs.LogicalTier0RouterFirewallSectionArgs
{
IsValid = false,
TargetDisplayName = "string",
TargetId = "string",
TargetType = "string",
},
},
HighAvailabilityMode = "string",
LogicalTier0RouterId = "string",
Tags = new[]
{
new Nsxt.Inputs.LogicalTier0RouterTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewLogicalTier0Router(ctx, "logicalTier0RouterResource", &nsxt.LogicalTier0RouterArgs{
EdgeClusterId: pulumi.String("string"),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
FailoverMode: pulumi.String("string"),
FirewallSections: nsxt.LogicalTier0RouterFirewallSectionArray{
&nsxt.LogicalTier0RouterFirewallSectionArgs{
IsValid: pulumi.Bool(false),
TargetDisplayName: pulumi.String("string"),
TargetId: pulumi.String("string"),
TargetType: pulumi.String("string"),
},
},
HighAvailabilityMode: pulumi.String("string"),
LogicalTier0RouterId: pulumi.String("string"),
Tags: nsxt.LogicalTier0RouterTagArray{
&nsxt.LogicalTier0RouterTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var logicalTier0RouterResource = new LogicalTier0Router("logicalTier0RouterResource", LogicalTier0RouterArgs.builder()
.edgeClusterId("string")
.description("string")
.displayName("string")
.failoverMode("string")
.firewallSections(LogicalTier0RouterFirewallSectionArgs.builder()
.isValid(false)
.targetDisplayName("string")
.targetId("string")
.targetType("string")
.build())
.highAvailabilityMode("string")
.logicalTier0RouterId("string")
.tags(LogicalTier0RouterTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
logical_tier0_router_resource = nsxt.LogicalTier0Router("logicalTier0RouterResource",
edge_cluster_id="string",
description="string",
display_name="string",
failover_mode="string",
firewall_sections=[{
"is_valid": False,
"target_display_name": "string",
"target_id": "string",
"target_type": "string",
}],
high_availability_mode="string",
logical_tier0_router_id="string",
tags=[{
"scope": "string",
"tag": "string",
}])
const logicalTier0RouterResource = new nsxt.LogicalTier0Router("logicalTier0RouterResource", {
edgeClusterId: "string",
description: "string",
displayName: "string",
failoverMode: "string",
firewallSections: [{
isValid: false,
targetDisplayName: "string",
targetId: "string",
targetType: "string",
}],
highAvailabilityMode: "string",
logicalTier0RouterId: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:LogicalTier0Router
properties:
description: string
displayName: string
edgeClusterId: string
failoverMode: string
firewallSections:
- isValid: false
targetDisplayName: string
targetId: string
targetType: string
highAvailabilityMode: string
logicalTier0RouterId: string
tags:
- scope: string
tag: string
LogicalTier0Router 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 LogicalTier0Router resource accepts the following input properties:
- Edge
Cluster stringId - Edge Cluster ID for the logical Tier0 router. Changing this setting on existing router will re-create the router.
- Description string
- Description of the resource.
- Display
Name string - Display name, defaults to ID if not set.
- Failover
Mode string - Failover mode which determines whether the preferred service router instance for given logical router will preempt the peer. Accepted values are PREEMPTIVE/NON_PREEMPTIVE. This setting is relevant only for ACTIVE_STANDBY high availability mode.
- Firewall
Sections List<LogicalTier0Router Firewall Section> - (Optional) The list of firewall sections for this router
- High
Availability stringMode - High availability mode "ACTIVE_ACTIVE"/"ACTIVE_STANDBY". Changing this setting on existing router will re-create the router.
- Logical
Tier0Router stringId - ID of the logical Tier0 router.
- List<Logical
Tier0Router Tag> - A list of scope + tag pairs to associate with this logical Tier0 router.
- Edge
Cluster stringId - Edge Cluster ID for the logical Tier0 router. Changing this setting on existing router will re-create the router.
- Description string
- Description of the resource.
- Display
Name string - Display name, defaults to ID if not set.
- Failover
Mode string - Failover mode which determines whether the preferred service router instance for given logical router will preempt the peer. Accepted values are PREEMPTIVE/NON_PREEMPTIVE. This setting is relevant only for ACTIVE_STANDBY high availability mode.
- Firewall
Sections []LogicalTier0Router Firewall Section Args - (Optional) The list of firewall sections for this router
- High
Availability stringMode - High availability mode "ACTIVE_ACTIVE"/"ACTIVE_STANDBY". Changing this setting on existing router will re-create the router.
- Logical
Tier0Router stringId - ID of the logical Tier0 router.
- []Logical
Tier0Router Tag Args - A list of scope + tag pairs to associate with this logical Tier0 router.
- edge
Cluster StringId - Edge Cluster ID for the logical Tier0 router. Changing this setting on existing router will re-create the router.
- description String
- Description of the resource.
- display
Name String - Display name, defaults to ID if not set.
- failover
Mode String - Failover mode which determines whether the preferred service router instance for given logical router will preempt the peer. Accepted values are PREEMPTIVE/NON_PREEMPTIVE. This setting is relevant only for ACTIVE_STANDBY high availability mode.
- firewall
Sections List<LogicalTier0Router Firewall Section> - (Optional) The list of firewall sections for this router
- high
Availability StringMode - High availability mode "ACTIVE_ACTIVE"/"ACTIVE_STANDBY". Changing this setting on existing router will re-create the router.
- logical
Tier0Router StringId - ID of the logical Tier0 router.
- List<Logical
Tier0Router Tag> - A list of scope + tag pairs to associate with this logical Tier0 router.
- edge
Cluster stringId - Edge Cluster ID for the logical Tier0 router. Changing this setting on existing router will re-create the router.
- description string
- Description of the resource.
- display
Name string - Display name, defaults to ID if not set.
- failover
Mode string - Failover mode which determines whether the preferred service router instance for given logical router will preempt the peer. Accepted values are PREEMPTIVE/NON_PREEMPTIVE. This setting is relevant only for ACTIVE_STANDBY high availability mode.
- firewall
Sections LogicalTier0Router Firewall Section[] - (Optional) The list of firewall sections for this router
- high
Availability stringMode - High availability mode "ACTIVE_ACTIVE"/"ACTIVE_STANDBY". Changing this setting on existing router will re-create the router.
- logical
Tier0Router stringId - ID of the logical Tier0 router.
- Logical
Tier0Router Tag[] - A list of scope + tag pairs to associate with this logical Tier0 router.
- edge_
cluster_ strid - Edge Cluster ID for the logical Tier0 router. Changing this setting on existing router will re-create the router.
- description str
- Description of the resource.
- display_
name str - Display name, defaults to ID if not set.
- failover_
mode str - Failover mode which determines whether the preferred service router instance for given logical router will preempt the peer. Accepted values are PREEMPTIVE/NON_PREEMPTIVE. This setting is relevant only for ACTIVE_STANDBY high availability mode.
- firewall_
sections Sequence[LogicalTier0Router Firewall Section Args] - (Optional) The list of firewall sections for this router
- high_
availability_ strmode - High availability mode "ACTIVE_ACTIVE"/"ACTIVE_STANDBY". Changing this setting on existing router will re-create the router.
- logical_
tier0_ strrouter_ id - ID of the logical Tier0 router.
- Sequence[Logical
Tier0Router Tag Args] - A list of scope + tag pairs to associate with this logical Tier0 router.
- edge
Cluster StringId - Edge Cluster ID for the logical Tier0 router. Changing this setting on existing router will re-create the router.
- description String
- Description of the resource.
- display
Name String - Display name, defaults to ID if not set.
- failover
Mode String - Failover mode which determines whether the preferred service router instance for given logical router will preempt the peer. Accepted values are PREEMPTIVE/NON_PREEMPTIVE. This setting is relevant only for ACTIVE_STANDBY high availability mode.
- firewall
Sections List<Property Map> - (Optional) The list of firewall sections for this router
- high
Availability StringMode - High availability mode "ACTIVE_ACTIVE"/"ACTIVE_STANDBY". Changing this setting on existing router will re-create the router.
- logical
Tier0Router StringId - ID of the logical Tier0 router.
- List<Property Map>
- A list of scope + tag pairs to associate with this logical Tier0 router.
Outputs
All input properties are implicitly available as output properties. Additionally, the LogicalTier0Router resource produces the following output properties:
Look up Existing LogicalTier0Router Resource
Get an existing LogicalTier0Router 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?: LogicalTier0RouterState, opts?: CustomResourceOptions): LogicalTier0Router
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
edge_cluster_id: Optional[str] = None,
failover_mode: Optional[str] = None,
firewall_sections: Optional[Sequence[LogicalTier0RouterFirewallSectionArgs]] = None,
high_availability_mode: Optional[str] = None,
logical_tier0_router_id: Optional[str] = None,
revision: Optional[float] = None,
tags: Optional[Sequence[LogicalTier0RouterTagArgs]] = None) -> LogicalTier0Router
func GetLogicalTier0Router(ctx *Context, name string, id IDInput, state *LogicalTier0RouterState, opts ...ResourceOption) (*LogicalTier0Router, error)
public static LogicalTier0Router Get(string name, Input<string> id, LogicalTier0RouterState? state, CustomResourceOptions? opts = null)
public static LogicalTier0Router get(String name, Output<String> id, LogicalTier0RouterState state, CustomResourceOptions options)
resources: _: type: nsxt:LogicalTier0Router 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.
- Description string
- Description of the resource.
- Display
Name string - Display name, defaults to ID if not set.
- Edge
Cluster stringId - Edge Cluster ID for the logical Tier0 router. Changing this setting on existing router will re-create the router.
- Failover
Mode string - Failover mode which determines whether the preferred service router instance for given logical router will preempt the peer. Accepted values are PREEMPTIVE/NON_PREEMPTIVE. This setting is relevant only for ACTIVE_STANDBY high availability mode.
- Firewall
Sections List<LogicalTier0Router Firewall Section> - (Optional) The list of firewall sections for this router
- High
Availability stringMode - High availability mode "ACTIVE_ACTIVE"/"ACTIVE_STANDBY". Changing this setting on existing router will re-create the router.
- Logical
Tier0Router stringId - ID of the logical Tier0 router.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Logical
Tier0Router Tag> - A list of scope + tag pairs to associate with this logical Tier0 router.
- Description string
- Description of the resource.
- Display
Name string - Display name, defaults to ID if not set.
- Edge
Cluster stringId - Edge Cluster ID for the logical Tier0 router. Changing this setting on existing router will re-create the router.
- Failover
Mode string - Failover mode which determines whether the preferred service router instance for given logical router will preempt the peer. Accepted values are PREEMPTIVE/NON_PREEMPTIVE. This setting is relevant only for ACTIVE_STANDBY high availability mode.
- Firewall
Sections []LogicalTier0Router Firewall Section Args - (Optional) The list of firewall sections for this router
- High
Availability stringMode - High availability mode "ACTIVE_ACTIVE"/"ACTIVE_STANDBY". Changing this setting on existing router will re-create the router.
- Logical
Tier0Router stringId - ID of the logical Tier0 router.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- []Logical
Tier0Router Tag Args - A list of scope + tag pairs to associate with this logical Tier0 router.
- description String
- Description of the resource.
- display
Name String - Display name, defaults to ID if not set.
- edge
Cluster StringId - Edge Cluster ID for the logical Tier0 router. Changing this setting on existing router will re-create the router.
- failover
Mode String - Failover mode which determines whether the preferred service router instance for given logical router will preempt the peer. Accepted values are PREEMPTIVE/NON_PREEMPTIVE. This setting is relevant only for ACTIVE_STANDBY high availability mode.
- firewall
Sections List<LogicalTier0Router Firewall Section> - (Optional) The list of firewall sections for this router
- high
Availability StringMode - High availability mode "ACTIVE_ACTIVE"/"ACTIVE_STANDBY". Changing this setting on existing router will re-create the router.
- logical
Tier0Router StringId - ID of the logical Tier0 router.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Logical
Tier0Router Tag> - A list of scope + tag pairs to associate with this logical Tier0 router.
- description string
- Description of the resource.
- display
Name string - Display name, defaults to ID if not set.
- edge
Cluster stringId - Edge Cluster ID for the logical Tier0 router. Changing this setting on existing router will re-create the router.
- failover
Mode string - Failover mode which determines whether the preferred service router instance for given logical router will preempt the peer. Accepted values are PREEMPTIVE/NON_PREEMPTIVE. This setting is relevant only for ACTIVE_STANDBY high availability mode.
- firewall
Sections LogicalTier0Router Firewall Section[] - (Optional) The list of firewall sections for this router
- high
Availability stringMode - High availability mode "ACTIVE_ACTIVE"/"ACTIVE_STANDBY". Changing this setting on existing router will re-create the router.
- logical
Tier0Router stringId - ID of the logical Tier0 router.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Logical
Tier0Router Tag[] - A list of scope + tag pairs to associate with this logical Tier0 router.
- description str
- Description of the resource.
- display_
name str - Display name, defaults to ID if not set.
- edge_
cluster_ strid - Edge Cluster ID for the logical Tier0 router. Changing this setting on existing router will re-create the router.
- failover_
mode str - Failover mode which determines whether the preferred service router instance for given logical router will preempt the peer. Accepted values are PREEMPTIVE/NON_PREEMPTIVE. This setting is relevant only for ACTIVE_STANDBY high availability mode.
- firewall_
sections Sequence[LogicalTier0Router Firewall Section Args] - (Optional) The list of firewall sections for this router
- high_
availability_ strmode - High availability mode "ACTIVE_ACTIVE"/"ACTIVE_STANDBY". Changing this setting on existing router will re-create the router.
- logical_
tier0_ strrouter_ id - ID of the logical Tier0 router.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Sequence[Logical
Tier0Router Tag Args] - A list of scope + tag pairs to associate with this logical Tier0 router.
- description String
- Description of the resource.
- display
Name String - Display name, defaults to ID if not set.
- edge
Cluster StringId - Edge Cluster ID for the logical Tier0 router. Changing this setting on existing router will re-create the router.
- failover
Mode String - Failover mode which determines whether the preferred service router instance for given logical router will preempt the peer. Accepted values are PREEMPTIVE/NON_PREEMPTIVE. This setting is relevant only for ACTIVE_STANDBY high availability mode.
- firewall
Sections List<Property Map> - (Optional) The list of firewall sections for this router
- high
Availability StringMode - High availability mode "ACTIVE_ACTIVE"/"ACTIVE_STANDBY". Changing this setting on existing router will re-create the router.
- logical
Tier0Router StringId - ID of the logical Tier0 router.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Property Map>
- A list of scope + tag pairs to associate with this logical Tier0 router.
Supporting Types
LogicalTier0RouterFirewallSection, LogicalTier0RouterFirewallSectionArgs
- Is
Valid bool - A boolean flag which will be set to false if the referenced NSX resource has been deleted
- Target
Display stringName - Display name of the NSX resource
- Target
Id string - Identifier of the NSX resource
- Target
Type string - Type of the NSX resource
- Is
Valid bool - A boolean flag which will be set to false if the referenced NSX resource has been deleted
- Target
Display stringName - Display name of the NSX resource
- Target
Id string - Identifier of the NSX resource
- Target
Type string - Type of the NSX resource
- is
Valid Boolean - A boolean flag which will be set to false if the referenced NSX resource has been deleted
- target
Display StringName - Display name of the NSX resource
- target
Id String - Identifier of the NSX resource
- target
Type String - Type of the NSX resource
- is
Valid boolean - A boolean flag which will be set to false if the referenced NSX resource has been deleted
- target
Display stringName - Display name of the NSX resource
- target
Id string - Identifier of the NSX resource
- target
Type string - Type of the NSX resource
- is_
valid bool - A boolean flag which will be set to false if the referenced NSX resource has been deleted
- target_
display_ strname - Display name of the NSX resource
- target_
id str - Identifier of the NSX resource
- target_
type str - Type of the NSX resource
- is
Valid Boolean - A boolean flag which will be set to false if the referenced NSX resource has been deleted
- target
Display StringName - Display name of the NSX resource
- target
Id String - Identifier of the NSX resource
- target
Type String - Type of the NSX resource
LogicalTier0RouterTag, LogicalTier0RouterTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.