nsxt.L4PortSetNsService
Create L4PortSetNsService Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new L4PortSetNsService(name: string, args: L4PortSetNsServiceArgs, opts?: CustomResourceOptions);@overload
def L4PortSetNsService(resource_name: str,
                       args: L4PortSetNsServiceArgs,
                       opts: Optional[ResourceOptions] = None)
@overload
def L4PortSetNsService(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       protocol: Optional[str] = None,
                       description: Optional[str] = None,
                       destination_ports: Optional[Sequence[str]] = None,
                       display_name: Optional[str] = None,
                       l4_port_set_ns_service_id: Optional[str] = None,
                       source_ports: Optional[Sequence[str]] = None,
                       tags: Optional[Sequence[L4PortSetNsServiceTagArgs]] = None)func NewL4PortSetNsService(ctx *Context, name string, args L4PortSetNsServiceArgs, opts ...ResourceOption) (*L4PortSetNsService, error)public L4PortSetNsService(string name, L4PortSetNsServiceArgs args, CustomResourceOptions? opts = null)
public L4PortSetNsService(String name, L4PortSetNsServiceArgs args)
public L4PortSetNsService(String name, L4PortSetNsServiceArgs args, CustomResourceOptions options)
type: nsxt:L4PortSetNsService
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 L4PortSetNsServiceArgs
- 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 L4PortSetNsServiceArgs
- 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 L4PortSetNsServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args L4PortSetNsServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args L4PortSetNsServiceArgs
- 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 l4portSetNsServiceResource = new Nsxt.L4PortSetNsService("l4portSetNsServiceResource", new()
{
    Protocol = "string",
    Description = "string",
    DestinationPorts = new[]
    {
        "string",
    },
    DisplayName = "string",
    L4PortSetNsServiceId = "string",
    SourcePorts = new[]
    {
        "string",
    },
    Tags = new[]
    {
        new Nsxt.Inputs.L4PortSetNsServiceTagArgs
        {
            Scope = "string",
            Tag = "string",
        },
    },
});
example, err := nsxt.NewL4PortSetNsService(ctx, "l4portSetNsServiceResource", &nsxt.L4PortSetNsServiceArgs{
	Protocol:    pulumi.String("string"),
	Description: pulumi.String("string"),
	DestinationPorts: pulumi.StringArray{
		pulumi.String("string"),
	},
	DisplayName:          pulumi.String("string"),
	L4PortSetNsServiceId: pulumi.String("string"),
	SourcePorts: pulumi.StringArray{
		pulumi.String("string"),
	},
	Tags: nsxt.L4PortSetNsServiceTagArray{
		&nsxt.L4PortSetNsServiceTagArgs{
			Scope: pulumi.String("string"),
			Tag:   pulumi.String("string"),
		},
	},
})
var l4portSetNsServiceResource = new L4PortSetNsService("l4portSetNsServiceResource", L4PortSetNsServiceArgs.builder()
    .protocol("string")
    .description("string")
    .destinationPorts("string")
    .displayName("string")
    .l4PortSetNsServiceId("string")
    .sourcePorts("string")
    .tags(L4PortSetNsServiceTagArgs.builder()
        .scope("string")
        .tag("string")
        .build())
    .build());
l4port_set_ns_service_resource = nsxt.L4PortSetNsService("l4portSetNsServiceResource",
    protocol="string",
    description="string",
    destination_ports=["string"],
    display_name="string",
    l4_port_set_ns_service_id="string",
    source_ports=["string"],
    tags=[{
        "scope": "string",
        "tag": "string",
    }])
const l4portSetNsServiceResource = new nsxt.L4PortSetNsService("l4portSetNsServiceResource", {
    protocol: "string",
    description: "string",
    destinationPorts: ["string"],
    displayName: "string",
    l4PortSetNsServiceId: "string",
    sourcePorts: ["string"],
    tags: [{
        scope: "string",
        tag: "string",
    }],
});
type: nsxt:L4PortSetNsService
properties:
    description: string
    destinationPorts:
        - string
    displayName: string
    l4PortSetNsServiceId: string
    protocol: string
    sourcePorts:
        - string
    tags:
        - scope: string
          tag: string
L4PortSetNsService 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 L4PortSetNsService resource accepts the following input properties:
- Protocol string
- L4 protocol. Accepted values - 'TCP' or 'UDP'.
- Description string
- Description of this resource.
- DestinationPorts List<string>
- Set of destination ports.
- DisplayName string
- Display name, defaults to ID if not set.
- L4PortSet stringNs Service Id 
- ID of the NS service.
- SourcePorts List<string>
- Set of source ports.
- 
List<L4PortSet Ns Service Tag> 
- A list of scope + tag pairs to associate with this service.
- Protocol string
- L4 protocol. Accepted values - 'TCP' or 'UDP'.
- Description string
- Description of this resource.
- DestinationPorts []string
- Set of destination ports.
- DisplayName string
- Display name, defaults to ID if not set.
- L4PortSet stringNs Service Id 
- ID of the NS service.
- SourcePorts []string
- Set of source ports.
- 
[]L4PortSet Ns Service Tag Args 
- A list of scope + tag pairs to associate with this service.
- protocol String
- L4 protocol. Accepted values - 'TCP' or 'UDP'.
- description String
- Description of this resource.
- destinationPorts List<String>
- Set of destination ports.
- displayName String
- Display name, defaults to ID if not set.
- l4PortSet StringNs Service Id 
- ID of the NS service.
- sourcePorts List<String>
- Set of source ports.
- 
List<L4PortSet Ns Service Tag> 
- A list of scope + tag pairs to associate with this service.
- protocol string
- L4 protocol. Accepted values - 'TCP' or 'UDP'.
- description string
- Description of this resource.
- destinationPorts string[]
- Set of destination ports.
- displayName string
- Display name, defaults to ID if not set.
- l4PortSet stringNs Service Id 
- ID of the NS service.
- sourcePorts string[]
- Set of source ports.
- 
L4PortSet Ns Service Tag[] 
- A list of scope + tag pairs to associate with this service.
- protocol str
- L4 protocol. Accepted values - 'TCP' or 'UDP'.
- description str
- Description of this resource.
- destination_ports Sequence[str]
- Set of destination ports.
- display_name str
- Display name, defaults to ID if not set.
- l4_port_ strset_ ns_ service_ id 
- ID of the NS service.
- source_ports Sequence[str]
- Set of source ports.
- 
Sequence[L4PortSet Ns Service Tag Args] 
- A list of scope + tag pairs to associate with this service.
- protocol String
- L4 protocol. Accepted values - 'TCP' or 'UDP'.
- description String
- Description of this resource.
- destinationPorts List<String>
- Set of destination ports.
- displayName String
- Display name, defaults to ID if not set.
- l4PortSet StringNs Service Id 
- ID of the NS service.
- sourcePorts List<String>
- Set of source ports.
- 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 L4PortSetNsService 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 L4PortSetNsService Resource
Get an existing L4PortSetNsService 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?: L4PortSetNsServiceState, opts?: CustomResourceOptions): L4PortSetNsService@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        default_service: Optional[bool] = None,
        description: Optional[str] = None,
        destination_ports: Optional[Sequence[str]] = None,
        display_name: Optional[str] = None,
        l4_port_set_ns_service_id: Optional[str] = None,
        protocol: Optional[str] = None,
        revision: Optional[float] = None,
        source_ports: Optional[Sequence[str]] = None,
        tags: Optional[Sequence[L4PortSetNsServiceTagArgs]] = None) -> L4PortSetNsServicefunc GetL4PortSetNsService(ctx *Context, name string, id IDInput, state *L4PortSetNsServiceState, opts ...ResourceOption) (*L4PortSetNsService, error)public static L4PortSetNsService Get(string name, Input<string> id, L4PortSetNsServiceState? state, CustomResourceOptions? opts = null)public static L4PortSetNsService get(String name, Output<String> id, L4PortSetNsServiceState state, CustomResourceOptions options)resources:  _:    type: nsxt:L4PortSetNsService    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.
- DefaultService bool
- The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
- Description string
- Description of this resource.
- DestinationPorts List<string>
- Set of destination ports.
- DisplayName string
- Display name, defaults to ID if not set.
- L4PortSet stringNs Service Id 
- ID of the NS service.
- Protocol string
- L4 protocol. Accepted values - 'TCP' or 'UDP'.
- 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.
- 
List<L4PortSet Ns Service Tag> 
- A list of scope + tag pairs to associate with this service.
- DefaultService bool
- The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
- Description string
- Description of this resource.
- DestinationPorts []string
- Set of destination ports.
- DisplayName string
- Display name, defaults to ID if not set.
- L4PortSet stringNs Service Id 
- ID of the NS service.
- Protocol string
- L4 protocol. Accepted values - 'TCP' or 'UDP'.
- 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.
- 
[]L4PortSet Ns Service Tag Args 
- A list of scope + tag pairs to associate with this service.
- defaultService Boolean
- The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
- description String
- Description of this resource.
- destinationPorts List<String>
- Set of destination ports.
- displayName String
- Display name, defaults to ID if not set.
- l4PortSet StringNs Service Id 
- ID of the NS service.
- protocol String
- L4 protocol. Accepted values - 'TCP' or 'UDP'.
- 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.
- 
List<L4PortSet Ns Service Tag> 
- A list of scope + tag pairs to associate with this service.
- defaultService boolean
- The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
- description string
- Description of this resource.
- destinationPorts string[]
- Set of destination ports.
- displayName string
- Display name, defaults to ID if not set.
- l4PortSet stringNs Service Id 
- ID of the NS service.
- protocol string
- L4 protocol. Accepted values - 'TCP' or 'UDP'.
- 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.
- 
L4PortSet Ns Service Tag[] 
- A list of scope + tag pairs to associate with this service.
- default_service bool
- The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
- description str
- Description of this resource.
- destination_ports Sequence[str]
- Set of destination ports.
- display_name str
- Display name, defaults to ID if not set.
- l4_port_ strset_ ns_ service_ id 
- ID of the NS service.
- protocol str
- L4 protocol. Accepted values - 'TCP' or 'UDP'.
- 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.
- 
Sequence[L4PortSet Ns Service Tag Args] 
- A list of scope + tag pairs to associate with this service.
- defaultService Boolean
- The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
- description String
- Description of this resource.
- destinationPorts List<String>
- Set of destination ports.
- displayName String
- Display name, defaults to ID if not set.
- l4PortSet StringNs Service Id 
- ID of the NS service.
- protocol String
- L4 protocol. Accepted values - 'TCP' or 'UDP'.
- 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.
- List<Property Map>
- A list of scope + tag pairs to associate with this service.
Supporting Types
L4PortSetNsServiceTag, L4PortSetNsServiceTagArgs          
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the nsxtTerraform Provider.
