1. Packages
  2. Nsxt Provider
  3. API Docs
  4. AlgorithmTypeNsService
nsxt 3.8.0 published on Monday, Apr 14, 2025 by vmware

nsxt.AlgorithmTypeNsService

Explore with Pulumi AI

Create AlgorithmTypeNsService Resource

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

Constructor syntax

new AlgorithmTypeNsService(name: string, args: AlgorithmTypeNsServiceArgs, opts?: CustomResourceOptions);
@overload
def AlgorithmTypeNsService(resource_name: str,
                           args: AlgorithmTypeNsServiceArgs,
                           opts: Optional[ResourceOptions] = None)

@overload
def AlgorithmTypeNsService(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           algorithm: Optional[str] = None,
                           destination_port: Optional[str] = None,
                           algorithm_type_ns_service_id: Optional[str] = None,
                           description: Optional[str] = None,
                           display_name: Optional[str] = None,
                           source_ports: Optional[Sequence[str]] = None,
                           tags: Optional[Sequence[AlgorithmTypeNsServiceTagArgs]] = None)
func NewAlgorithmTypeNsService(ctx *Context, name string, args AlgorithmTypeNsServiceArgs, opts ...ResourceOption) (*AlgorithmTypeNsService, error)
public AlgorithmTypeNsService(string name, AlgorithmTypeNsServiceArgs args, CustomResourceOptions? opts = null)
public AlgorithmTypeNsService(String name, AlgorithmTypeNsServiceArgs args)
public AlgorithmTypeNsService(String name, AlgorithmTypeNsServiceArgs args, CustomResourceOptions options)
type: nsxt:AlgorithmTypeNsService
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AlgorithmTypeNsServiceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AlgorithmTypeNsServiceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AlgorithmTypeNsServiceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AlgorithmTypeNsServiceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AlgorithmTypeNsServiceArgs
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 algorithmTypeNsServiceResource = new Nsxt.AlgorithmTypeNsService("algorithmTypeNsServiceResource", new()
{
    Algorithm = "string",
    DestinationPort = "string",
    AlgorithmTypeNsServiceId = "string",
    Description = "string",
    DisplayName = "string",
    SourcePorts = new[]
    {
        "string",
    },
    Tags = new[]
    {
        new Nsxt.Inputs.AlgorithmTypeNsServiceTagArgs
        {
            Scope = "string",
            Tag = "string",
        },
    },
});
Copy
example, err := nsxt.NewAlgorithmTypeNsService(ctx, "algorithmTypeNsServiceResource", &nsxt.AlgorithmTypeNsServiceArgs{
Algorithm: pulumi.String("string"),
DestinationPort: pulumi.String("string"),
AlgorithmTypeNsServiceId: pulumi.String("string"),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
SourcePorts: pulumi.StringArray{
pulumi.String("string"),
},
Tags: .AlgorithmTypeNsServiceTagArray{
&.AlgorithmTypeNsServiceTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
Copy
var algorithmTypeNsServiceResource = new AlgorithmTypeNsService("algorithmTypeNsServiceResource", AlgorithmTypeNsServiceArgs.builder()
    .algorithm("string")
    .destinationPort("string")
    .algorithmTypeNsServiceId("string")
    .description("string")
    .displayName("string")
    .sourcePorts("string")
    .tags(AlgorithmTypeNsServiceTagArgs.builder()
        .scope("string")
        .tag("string")
        .build())
    .build());
Copy
algorithm_type_ns_service_resource = nsxt.AlgorithmTypeNsService("algorithmTypeNsServiceResource",
    algorithm="string",
    destination_port="string",
    algorithm_type_ns_service_id="string",
    description="string",
    display_name="string",
    source_ports=["string"],
    tags=[{
        "scope": "string",
        "tag": "string",
    }])
Copy
const algorithmTypeNsServiceResource = new nsxt.AlgorithmTypeNsService("algorithmTypeNsServiceResource", {
    algorithm: "string",
    destinationPort: "string",
    algorithmTypeNsServiceId: "string",
    description: "string",
    displayName: "string",
    sourcePorts: ["string"],
    tags: [{
        scope: "string",
        tag: "string",
    }],
});
Copy
type: nsxt:AlgorithmTypeNsService
properties:
    algorithm: string
    algorithmTypeNsServiceId: string
    description: string
    destinationPort: string
    displayName: string
    sourcePorts:
        - string
    tags:
        - scope: string
          tag: string
Copy

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

Algorithm This property is required. string
Algorithm one of "ORACLE_TNS", "FTP", "SUN_RPC_TCP", "SUN_RPC_UDP", "MS_RPC_TCP", "MS_RPC_UDP", "NBNS_BROADCAST", "NBDG_BROADCAST", "TFTP"
DestinationPort This property is required. string
a single destination port.
AlgorithmTypeNsServiceId string
ID of the NS service.
Description string
Description.
DisplayName string
Display name, defaults to ID if not set.
SourcePorts List<string>
Set of source ports/ranges.
Tags List<AlgorithmTypeNsServiceTag>
A list of scope + tag pairs to associate with this service.
Algorithm This property is required. string
Algorithm one of "ORACLE_TNS", "FTP", "SUN_RPC_TCP", "SUN_RPC_UDP", "MS_RPC_TCP", "MS_RPC_UDP", "NBNS_BROADCAST", "NBDG_BROADCAST", "TFTP"
DestinationPort This property is required. string
a single destination port.
AlgorithmTypeNsServiceId string
ID of the NS service.
Description string
Description.
DisplayName string
Display name, defaults to ID if not set.
SourcePorts []string
Set of source ports/ranges.
Tags []AlgorithmTypeNsServiceTagArgs
A list of scope + tag pairs to associate with this service.
algorithm This property is required. String
Algorithm one of "ORACLE_TNS", "FTP", "SUN_RPC_TCP", "SUN_RPC_UDP", "MS_RPC_TCP", "MS_RPC_UDP", "NBNS_BROADCAST", "NBDG_BROADCAST", "TFTP"
destinationPort This property is required. String
a single destination port.
algorithmTypeNsServiceId String
ID of the NS service.
description String
Description.
displayName String
Display name, defaults to ID if not set.
sourcePorts List<String>
Set of source ports/ranges.
tags List<AlgorithmTypeNsServiceTag>
A list of scope + tag pairs to associate with this service.
algorithm This property is required. string
Algorithm one of "ORACLE_TNS", "FTP", "SUN_RPC_TCP", "SUN_RPC_UDP", "MS_RPC_TCP", "MS_RPC_UDP", "NBNS_BROADCAST", "NBDG_BROADCAST", "TFTP"
destinationPort This property is required. string
a single destination port.
algorithmTypeNsServiceId string
ID of the NS service.
description string
Description.
displayName string
Display name, defaults to ID if not set.
sourcePorts string[]
Set of source ports/ranges.
tags AlgorithmTypeNsServiceTag[]
A list of scope + tag pairs to associate with this service.
algorithm This property is required. str
Algorithm one of "ORACLE_TNS", "FTP", "SUN_RPC_TCP", "SUN_RPC_UDP", "MS_RPC_TCP", "MS_RPC_UDP", "NBNS_BROADCAST", "NBDG_BROADCAST", "TFTP"
destination_port This property is required. str
a single destination port.
algorithm_type_ns_service_id str
ID of the NS service.
description str
Description.
display_name str
Display name, defaults to ID if not set.
source_ports Sequence[str]
Set of source ports/ranges.
tags Sequence[AlgorithmTypeNsServiceTagArgs]
A list of scope + tag pairs to associate with this service.
algorithm This property is required. String
Algorithm one of "ORACLE_TNS", "FTP", "SUN_RPC_TCP", "SUN_RPC_UDP", "MS_RPC_TCP", "MS_RPC_UDP", "NBNS_BROADCAST", "NBDG_BROADCAST", "TFTP"
destinationPort This property is required. String
a single destination port.
algorithmTypeNsServiceId String
ID of the NS service.
description String
Description.
displayName String
Display name, defaults to ID if not set.
sourcePorts List<String>
Set of source ports/ranges.
tags List<Property Map>
A list of scope + tag pairs to associate with this service.

Outputs

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

DefaultService bool
The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
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.
DefaultService bool
The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
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.
defaultService Boolean
The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
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.
defaultService boolean
The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
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.
default_service bool
The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
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.
defaultService Boolean
The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
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 AlgorithmTypeNsService Resource

Get an existing AlgorithmTypeNsService 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?: AlgorithmTypeNsServiceState, opts?: CustomResourceOptions): AlgorithmTypeNsService
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        algorithm: Optional[str] = None,
        algorithm_type_ns_service_id: Optional[str] = None,
        default_service: Optional[bool] = None,
        description: Optional[str] = None,
        destination_port: Optional[str] = None,
        display_name: Optional[str] = None,
        revision: Optional[float] = None,
        source_ports: Optional[Sequence[str]] = None,
        tags: Optional[Sequence[AlgorithmTypeNsServiceTagArgs]] = None) -> AlgorithmTypeNsService
func GetAlgorithmTypeNsService(ctx *Context, name string, id IDInput, state *AlgorithmTypeNsServiceState, opts ...ResourceOption) (*AlgorithmTypeNsService, error)
public static AlgorithmTypeNsService Get(string name, Input<string> id, AlgorithmTypeNsServiceState? state, CustomResourceOptions? opts = null)
public static AlgorithmTypeNsService get(String name, Output<String> id, AlgorithmTypeNsServiceState state, CustomResourceOptions options)
resources:  _:    type: nsxt:AlgorithmTypeNsService    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Algorithm string
Algorithm one of "ORACLE_TNS", "FTP", "SUN_RPC_TCP", "SUN_RPC_UDP", "MS_RPC_TCP", "MS_RPC_UDP", "NBNS_BROADCAST", "NBDG_BROADCAST", "TFTP"
AlgorithmTypeNsServiceId string
ID of the NS service.
DefaultService bool
The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
Description string
Description.
DestinationPort string
a single destination port.
DisplayName string
Display name, defaults to ID if not set.
Revision double
Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
SourcePorts List<string>
Set of source ports/ranges.
Tags List<AlgorithmTypeNsServiceTag>
A list of scope + tag pairs to associate with this service.
Algorithm string
Algorithm one of "ORACLE_TNS", "FTP", "SUN_RPC_TCP", "SUN_RPC_UDP", "MS_RPC_TCP", "MS_RPC_UDP", "NBNS_BROADCAST", "NBDG_BROADCAST", "TFTP"
AlgorithmTypeNsServiceId string
ID of the NS service.
DefaultService bool
The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
Description string
Description.
DestinationPort string
a single destination port.
DisplayName string
Display name, defaults to ID if not set.
Revision float64
Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
SourcePorts []string
Set of source ports/ranges.
Tags []AlgorithmTypeNsServiceTagArgs
A list of scope + tag pairs to associate with this service.
algorithm String
Algorithm one of "ORACLE_TNS", "FTP", "SUN_RPC_TCP", "SUN_RPC_UDP", "MS_RPC_TCP", "MS_RPC_UDP", "NBNS_BROADCAST", "NBDG_BROADCAST", "TFTP"
algorithmTypeNsServiceId String
ID of the NS service.
defaultService Boolean
The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
description String
Description.
destinationPort String
a single destination port.
displayName String
Display name, defaults to ID if not set.
revision Double
Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
sourcePorts List<String>
Set of source ports/ranges.
tags List<AlgorithmTypeNsServiceTag>
A list of scope + tag pairs to associate with this service.
algorithm string
Algorithm one of "ORACLE_TNS", "FTP", "SUN_RPC_TCP", "SUN_RPC_UDP", "MS_RPC_TCP", "MS_RPC_UDP", "NBNS_BROADCAST", "NBDG_BROADCAST", "TFTP"
algorithmTypeNsServiceId string
ID of the NS service.
defaultService boolean
The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
description string
Description.
destinationPort string
a single destination port.
displayName string
Display name, defaults to ID if not set.
revision number
Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
sourcePorts string[]
Set of source ports/ranges.
tags AlgorithmTypeNsServiceTag[]
A list of scope + tag pairs to associate with this service.
algorithm str
Algorithm one of "ORACLE_TNS", "FTP", "SUN_RPC_TCP", "SUN_RPC_UDP", "MS_RPC_TCP", "MS_RPC_UDP", "NBNS_BROADCAST", "NBDG_BROADCAST", "TFTP"
algorithm_type_ns_service_id str
ID of the NS service.
default_service bool
The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
description str
Description.
destination_port str
a single destination port.
display_name str
Display name, defaults to ID if not set.
revision float
Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
source_ports Sequence[str]
Set of source ports/ranges.
tags Sequence[AlgorithmTypeNsServiceTagArgs]
A list of scope + tag pairs to associate with this service.
algorithm String
Algorithm one of "ORACLE_TNS", "FTP", "SUN_RPC_TCP", "SUN_RPC_UDP", "MS_RPC_TCP", "MS_RPC_UDP", "NBNS_BROADCAST", "NBDG_BROADCAST", "TFTP"
algorithmTypeNsServiceId String
ID of the NS service.
defaultService Boolean
The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
description String
Description.
destinationPort String
a single destination port.
displayName String
Display name, defaults to ID if not set.
revision Number
Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
sourcePorts List<String>
Set of source ports/ranges.
tags List<Property Map>
A list of scope + tag pairs to associate with this service.

Supporting Types

AlgorithmTypeNsServiceTag
, AlgorithmTypeNsServiceTagArgs

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

Package Details

Repository
nsxt vmware/terraform-provider-nsxt
License
Notes
This Pulumi package is based on the nsxt Terraform Provider.