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 string
- The unique name of the resource.
- args AlgorithmTypeNsServiceArgs
- 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 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 string
- The unique name of the resource.
- args AlgorithmTypeNsServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlgorithmTypeNsServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
},
});
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: nsxt.AlgorithmTypeNsServiceTagArray{
&nsxt.AlgorithmTypeNsServiceTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
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());
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",
}])
const algorithmTypeNsServiceResource = new nsxt.AlgorithmTypeNsService("algorithmTypeNsServiceResource", {
algorithm: "string",
destinationPort: "string",
algorithmTypeNsServiceId: "string",
description: "string",
displayName: "string",
sourcePorts: ["string"],
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:AlgorithmTypeNsService
properties:
algorithm: string
algorithmTypeNsServiceId: string
description: string
destinationPort: string
displayName: string
sourcePorts:
- string
tags:
- scope: string
tag: string
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 string
- 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 string - a single destination port.
- Algorithm
Type stringNs Service Id - ID of the NS service.
- Description string
- Description.
- Display
Name string - Display name, defaults to ID if not set.
- Source
Ports List<string> - Set of source ports/ranges.
- List<Algorithm
Type Ns Service Tag> - 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"
- Destination
Port string - a single destination port.
- Algorithm
Type stringNs Service Id - ID of the NS service.
- Description string
- Description.
- Display
Name string - Display name, defaults to ID if not set.
- Source
Ports []string - Set of source ports/ranges.
- []Algorithm
Type Ns Service Tag Args - 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"
- destination
Port String - a single destination port.
- algorithm
Type StringNs Service Id - ID of the NS service.
- description String
- Description.
- display
Name String - Display name, defaults to ID if not set.
- source
Ports List<String> - Set of source ports/ranges.
- List<Algorithm
Type Ns Service Tag> - 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"
- destination
Port string - a single destination port.
- algorithm
Type stringNs Service Id - ID of the NS service.
- description string
- Description.
- display
Name string - Display name, defaults to ID if not set.
- source
Ports string[] - Set of source ports/ranges.
- Algorithm
Type Ns Service Tag[] - 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"
- destination_
port str - a single destination port.
- algorithm_
type_ strns_ service_ id - 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.
- Sequence[Algorithm
Type Ns Service Tag Args] - 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"
- destination
Port String - a single destination port.
- algorithm
Type StringNs Service Id - ID of the NS service.
- description String
- Description.
- display
Name String - Display name, defaults to ID if not set.
- source
Ports List<String> - Set of source ports/ranges.
- 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:
- Default
Service 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.
- Default
Service 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.
- default
Service 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.
- default
Service 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.
- default
Service 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
- 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.
- 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"
- Algorithm
Type stringNs Service Id - 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 string
- Description.
- Destination
Port string - a single destination port.
- Display
Name 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.
- Source
Ports List<string> - Set of source ports/ranges.
- List<Algorithm
Type Ns Service Tag> - 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"
- Algorithm
Type stringNs Service Id - 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 string
- Description.
- Destination
Port string - a single destination port.
- Display
Name 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.
- Source
Ports []string - Set of source ports/ranges.
- []Algorithm
Type Ns Service Tag Args - 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"
- algorithm
Type StringNs Service Id - ID of the NS service.
- default
Service Boolean - The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
- description String
- Description.
- destination
Port String - a single destination port.
- display
Name 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.
- source
Ports List<String> - Set of source ports/ranges.
- List<Algorithm
Type Ns Service Tag> - 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"
- algorithm
Type stringNs Service Id - ID of the NS service.
- default
Service boolean - The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
- description string
- Description.
- destination
Port string - a single destination port.
- display
Name 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.
- source
Ports string[] - Set of source ports/ranges.
- Algorithm
Type Ns Service Tag[] - 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_ strns_ service_ id - 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.
- Sequence[Algorithm
Type Ns Service Tag Args] - 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"
- algorithm
Type StringNs Service Id - ID of the NS service.
- default
Service Boolean - The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
- description String
- Description.
- destination
Port String - a single destination port.
- display
Name 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.
- source
Ports List<String> - Set of source ports/ranges.
- List<Property Map>
- A list of scope + tag pairs to associate with this service.
Supporting Types
AlgorithmTypeNsServiceTag, AlgorithmTypeNsServiceTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.