1. Packages
  2. Nsxt Provider
  3. API Docs
  4. LogicalRouterCentralizedServicePort
nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware

nsxt.LogicalRouterCentralizedServicePort

Explore with Pulumi AI

nsxt logo
nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware

    Create LogicalRouterCentralizedServicePort Resource

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

    Constructor syntax

    new LogicalRouterCentralizedServicePort(name: string, args: LogicalRouterCentralizedServicePortArgs, opts?: CustomResourceOptions);
    @overload
    def LogicalRouterCentralizedServicePort(resource_name: str,
                                            args: LogicalRouterCentralizedServicePortArgs,
                                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogicalRouterCentralizedServicePort(resource_name: str,
                                            opts: Optional[ResourceOptions] = None,
                                            ip_address: Optional[str] = None,
                                            linked_logical_switch_port_id: Optional[str] = None,
                                            logical_router_id: Optional[str] = None,
                                            description: Optional[str] = None,
                                            display_name: Optional[str] = None,
                                            logical_router_centralized_service_port_id: Optional[str] = None,
                                            tags: Optional[Sequence[LogicalRouterCentralizedServicePortTagArgs]] = None,
                                            urpf_mode: Optional[str] = None)
    func NewLogicalRouterCentralizedServicePort(ctx *Context, name string, args LogicalRouterCentralizedServicePortArgs, opts ...ResourceOption) (*LogicalRouterCentralizedServicePort, error)
    public LogicalRouterCentralizedServicePort(string name, LogicalRouterCentralizedServicePortArgs args, CustomResourceOptions? opts = null)
    public LogicalRouterCentralizedServicePort(String name, LogicalRouterCentralizedServicePortArgs args)
    public LogicalRouterCentralizedServicePort(String name, LogicalRouterCentralizedServicePortArgs args, CustomResourceOptions options)
    
    type: nsxt:LogicalRouterCentralizedServicePort
    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 LogicalRouterCentralizedServicePortArgs
    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 LogicalRouterCentralizedServicePortArgs
    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 LogicalRouterCentralizedServicePortArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogicalRouterCentralizedServicePortArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogicalRouterCentralizedServicePortArgs
    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 logicalRouterCentralizedServicePortResource = new Nsxt.LogicalRouterCentralizedServicePort("logicalRouterCentralizedServicePortResource", new()
    {
        IpAddress = "string",
        LinkedLogicalSwitchPortId = "string",
        LogicalRouterId = "string",
        Description = "string",
        DisplayName = "string",
        LogicalRouterCentralizedServicePortId = "string",
        Tags = new[]
        {
            new Nsxt.Inputs.LogicalRouterCentralizedServicePortTagArgs
            {
                Scope = "string",
                Tag = "string",
            },
        },
        UrpfMode = "string",
    });
    
    example, err := nsxt.NewLogicalRouterCentralizedServicePort(ctx, "logicalRouterCentralizedServicePortResource", &nsxt.LogicalRouterCentralizedServicePortArgs{
    	IpAddress:                             pulumi.String("string"),
    	LinkedLogicalSwitchPortId:             pulumi.String("string"),
    	LogicalRouterId:                       pulumi.String("string"),
    	Description:                           pulumi.String("string"),
    	DisplayName:                           pulumi.String("string"),
    	LogicalRouterCentralizedServicePortId: pulumi.String("string"),
    	Tags: nsxt.LogicalRouterCentralizedServicePortTagArray{
    		&nsxt.LogicalRouterCentralizedServicePortTagArgs{
    			Scope: pulumi.String("string"),
    			Tag:   pulumi.String("string"),
    		},
    	},
    	UrpfMode: pulumi.String("string"),
    })
    
    var logicalRouterCentralizedServicePortResource = new LogicalRouterCentralizedServicePort("logicalRouterCentralizedServicePortResource", LogicalRouterCentralizedServicePortArgs.builder()
        .ipAddress("string")
        .linkedLogicalSwitchPortId("string")
        .logicalRouterId("string")
        .description("string")
        .displayName("string")
        .logicalRouterCentralizedServicePortId("string")
        .tags(LogicalRouterCentralizedServicePortTagArgs.builder()
            .scope("string")
            .tag("string")
            .build())
        .urpfMode("string")
        .build());
    
    logical_router_centralized_service_port_resource = nsxt.LogicalRouterCentralizedServicePort("logicalRouterCentralizedServicePortResource",
        ip_address="string",
        linked_logical_switch_port_id="string",
        logical_router_id="string",
        description="string",
        display_name="string",
        logical_router_centralized_service_port_id="string",
        tags=[{
            "scope": "string",
            "tag": "string",
        }],
        urpf_mode="string")
    
    const logicalRouterCentralizedServicePortResource = new nsxt.LogicalRouterCentralizedServicePort("logicalRouterCentralizedServicePortResource", {
        ipAddress: "string",
        linkedLogicalSwitchPortId: "string",
        logicalRouterId: "string",
        description: "string",
        displayName: "string",
        logicalRouterCentralizedServicePortId: "string",
        tags: [{
            scope: "string",
            tag: "string",
        }],
        urpfMode: "string",
    });
    
    type: nsxt:LogicalRouterCentralizedServicePort
    properties:
        description: string
        displayName: string
        ipAddress: string
        linkedLogicalSwitchPortId: string
        logicalRouterCentralizedServicePortId: string
        logicalRouterId: string
        tags:
            - scope: string
              tag: string
        urpfMode: string
    

    LogicalRouterCentralizedServicePort 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 LogicalRouterCentralizedServicePort resource accepts the following input properties:

    IpAddress string
    Logical router port subnet (ip_address / prefix length)
    LinkedLogicalSwitchPortId string
    Identifier for port on logical switch to connect to
    LogicalRouterId string
    Identifier for logical Tier-0 or Tier-1 router on which this port is created
    Description string
    Description of the resource.
    DisplayName string
    Display name, defaults to ID if not set.
    LogicalRouterCentralizedServicePortId string
    ID of the logical router centralized service port.
    Tags List<LogicalRouterCentralizedServicePortTag>
    A list of scope + tag pairs to associate with this port.
    UrpfMode string
    Unicast Reverse Path Forwarding mode. Accepted values are "NONE" and "STRICT" which is the default value.
    IpAddress string
    Logical router port subnet (ip_address / prefix length)
    LinkedLogicalSwitchPortId string
    Identifier for port on logical switch to connect to
    LogicalRouterId string
    Identifier for logical Tier-0 or Tier-1 router on which this port is created
    Description string
    Description of the resource.
    DisplayName string
    Display name, defaults to ID if not set.
    LogicalRouterCentralizedServicePortId string
    ID of the logical router centralized service port.
    Tags []LogicalRouterCentralizedServicePortTagArgs
    A list of scope + tag pairs to associate with this port.
    UrpfMode string
    Unicast Reverse Path Forwarding mode. Accepted values are "NONE" and "STRICT" which is the default value.
    ipAddress String
    Logical router port subnet (ip_address / prefix length)
    linkedLogicalSwitchPortId String
    Identifier for port on logical switch to connect to
    logicalRouterId String
    Identifier for logical Tier-0 or Tier-1 router on which this port is created
    description String
    Description of the resource.
    displayName String
    Display name, defaults to ID if not set.
    logicalRouterCentralizedServicePortId String
    ID of the logical router centralized service port.
    tags List<LogicalRouterCentralizedServicePortTag>
    A list of scope + tag pairs to associate with this port.
    urpfMode String
    Unicast Reverse Path Forwarding mode. Accepted values are "NONE" and "STRICT" which is the default value.
    ipAddress string
    Logical router port subnet (ip_address / prefix length)
    linkedLogicalSwitchPortId string
    Identifier for port on logical switch to connect to
    logicalRouterId string
    Identifier for logical Tier-0 or Tier-1 router on which this port is created
    description string
    Description of the resource.
    displayName string
    Display name, defaults to ID if not set.
    logicalRouterCentralizedServicePortId string
    ID of the logical router centralized service port.
    tags LogicalRouterCentralizedServicePortTag[]
    A list of scope + tag pairs to associate with this port.
    urpfMode string
    Unicast Reverse Path Forwarding mode. Accepted values are "NONE" and "STRICT" which is the default value.
    ip_address str
    Logical router port subnet (ip_address / prefix length)
    linked_logical_switch_port_id str
    Identifier for port on logical switch to connect to
    logical_router_id str
    Identifier for logical Tier-0 or Tier-1 router on which this port is created
    description str
    Description of the resource.
    display_name str
    Display name, defaults to ID if not set.
    logical_router_centralized_service_port_id str
    ID of the logical router centralized service port.
    tags Sequence[LogicalRouterCentralizedServicePortTagArgs]
    A list of scope + tag pairs to associate with this port.
    urpf_mode str
    Unicast Reverse Path Forwarding mode. Accepted values are "NONE" and "STRICT" which is the default value.
    ipAddress String
    Logical router port subnet (ip_address / prefix length)
    linkedLogicalSwitchPortId String
    Identifier for port on logical switch to connect to
    logicalRouterId String
    Identifier for logical Tier-0 or Tier-1 router on which this port is created
    description String
    Description of the resource.
    displayName String
    Display name, defaults to ID if not set.
    logicalRouterCentralizedServicePortId String
    ID of the logical router centralized service port.
    tags List<Property Map>
    A list of scope + tag pairs to associate with this port.
    urpfMode String
    Unicast Reverse Path Forwarding mode. Accepted values are "NONE" and "STRICT" which is the default value.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Revision double
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    Id string
    The provider-assigned unique ID for this managed resource.
    Revision float64
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    id String
    The provider-assigned unique ID for this managed resource.
    revision Double
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    id string
    The provider-assigned unique ID for this managed resource.
    revision number
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    id str
    The provider-assigned unique ID for this managed resource.
    revision float
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    id String
    The provider-assigned unique ID for this managed resource.
    revision Number
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.

    Look up Existing LogicalRouterCentralizedServicePort Resource

    Get an existing LogicalRouterCentralizedServicePort 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?: LogicalRouterCentralizedServicePortState, opts?: CustomResourceOptions): LogicalRouterCentralizedServicePort
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            ip_address: Optional[str] = None,
            linked_logical_switch_port_id: Optional[str] = None,
            logical_router_centralized_service_port_id: Optional[str] = None,
            logical_router_id: Optional[str] = None,
            revision: Optional[float] = None,
            tags: Optional[Sequence[LogicalRouterCentralizedServicePortTagArgs]] = None,
            urpf_mode: Optional[str] = None) -> LogicalRouterCentralizedServicePort
    func GetLogicalRouterCentralizedServicePort(ctx *Context, name string, id IDInput, state *LogicalRouterCentralizedServicePortState, opts ...ResourceOption) (*LogicalRouterCentralizedServicePort, error)
    public static LogicalRouterCentralizedServicePort Get(string name, Input<string> id, LogicalRouterCentralizedServicePortState? state, CustomResourceOptions? opts = null)
    public static LogicalRouterCentralizedServicePort get(String name, Output<String> id, LogicalRouterCentralizedServicePortState state, CustomResourceOptions options)
    resources:  _:    type: nsxt:LogicalRouterCentralizedServicePort    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:
    Description string
    Description of the resource.
    DisplayName string
    Display name, defaults to ID if not set.
    IpAddress string
    Logical router port subnet (ip_address / prefix length)
    LinkedLogicalSwitchPortId string
    Identifier for port on logical switch to connect to
    LogicalRouterCentralizedServicePortId string
    ID of the logical router centralized service port.
    LogicalRouterId string
    Identifier for logical Tier-0 or Tier-1 router on which this port is created
    Revision double
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    Tags List<LogicalRouterCentralizedServicePortTag>
    A list of scope + tag pairs to associate with this port.
    UrpfMode string
    Unicast Reverse Path Forwarding mode. Accepted values are "NONE" and "STRICT" which is the default value.
    Description string
    Description of the resource.
    DisplayName string
    Display name, defaults to ID if not set.
    IpAddress string
    Logical router port subnet (ip_address / prefix length)
    LinkedLogicalSwitchPortId string
    Identifier for port on logical switch to connect to
    LogicalRouterCentralizedServicePortId string
    ID of the logical router centralized service port.
    LogicalRouterId string
    Identifier for logical Tier-0 or Tier-1 router on which this port is created
    Revision float64
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    Tags []LogicalRouterCentralizedServicePortTagArgs
    A list of scope + tag pairs to associate with this port.
    UrpfMode string
    Unicast Reverse Path Forwarding mode. Accepted values are "NONE" and "STRICT" which is the default value.
    description String
    Description of the resource.
    displayName String
    Display name, defaults to ID if not set.
    ipAddress String
    Logical router port subnet (ip_address / prefix length)
    linkedLogicalSwitchPortId String
    Identifier for port on logical switch to connect to
    logicalRouterCentralizedServicePortId String
    ID of the logical router centralized service port.
    logicalRouterId String
    Identifier for logical Tier-0 or Tier-1 router on which this port is created
    revision Double
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    tags List<LogicalRouterCentralizedServicePortTag>
    A list of scope + tag pairs to associate with this port.
    urpfMode String
    Unicast Reverse Path Forwarding mode. Accepted values are "NONE" and "STRICT" which is the default value.
    description string
    Description of the resource.
    displayName string
    Display name, defaults to ID if not set.
    ipAddress string
    Logical router port subnet (ip_address / prefix length)
    linkedLogicalSwitchPortId string
    Identifier for port on logical switch to connect to
    logicalRouterCentralizedServicePortId string
    ID of the logical router centralized service port.
    logicalRouterId string
    Identifier for logical Tier-0 or Tier-1 router on which this port is created
    revision number
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    tags LogicalRouterCentralizedServicePortTag[]
    A list of scope + tag pairs to associate with this port.
    urpfMode string
    Unicast Reverse Path Forwarding mode. Accepted values are "NONE" and "STRICT" which is the default value.
    description str
    Description of the resource.
    display_name str
    Display name, defaults to ID if not set.
    ip_address str
    Logical router port subnet (ip_address / prefix length)
    linked_logical_switch_port_id str
    Identifier for port on logical switch to connect to
    logical_router_centralized_service_port_id str
    ID of the logical router centralized service port.
    logical_router_id str
    Identifier for logical Tier-0 or Tier-1 router on which this port is created
    revision float
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    tags Sequence[LogicalRouterCentralizedServicePortTagArgs]
    A list of scope + tag pairs to associate with this port.
    urpf_mode str
    Unicast Reverse Path Forwarding mode. Accepted values are "NONE" and "STRICT" which is the default value.
    description String
    Description of the resource.
    displayName String
    Display name, defaults to ID if not set.
    ipAddress String
    Logical router port subnet (ip_address / prefix length)
    linkedLogicalSwitchPortId String
    Identifier for port on logical switch to connect to
    logicalRouterCentralizedServicePortId String
    ID of the logical router centralized service port.
    logicalRouterId String
    Identifier for logical Tier-0 or Tier-1 router on which this port is created
    revision Number
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    tags List<Property Map>
    A list of scope + tag pairs to associate with this port.
    urpfMode String
    Unicast Reverse Path Forwarding mode. Accepted values are "NONE" and "STRICT" which is the default value.

    Supporting Types

    LogicalRouterCentralizedServicePortTag, LogicalRouterCentralizedServicePortTagArgs

    Scope string
    Tag string
    A list of scope + tag pairs to associate with this port.
    Scope string
    Tag string
    A list of scope + tag pairs to associate with this port.
    scope String
    tag String
    A list of scope + tag pairs to associate with this port.
    scope string
    tag string
    A list of scope + tag pairs to associate with this port.
    scope str
    tag str
    A list of scope + tag pairs to associate with this port.
    scope String
    tag String
    A list of scope + tag pairs to associate with this port.

    Package Details

    Repository
    nsxt vmware/terraform-provider-nsxt
    License
    Notes
    This Pulumi package is based on the nsxt Terraform Provider.
    nsxt logo
    nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware