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

nsxt.IpProtocolNsService

Explore with Pulumi AI

Create IpProtocolNsService Resource

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

Constructor syntax

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

@overload
def IpProtocolNsService(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        protocol: Optional[float] = None,
                        description: Optional[str] = None,
                        display_name: Optional[str] = None,
                        ip_protocol_ns_service_id: Optional[str] = None,
                        tags: Optional[Sequence[IpProtocolNsServiceTagArgs]] = None)
func NewIpProtocolNsService(ctx *Context, name string, args IpProtocolNsServiceArgs, opts ...ResourceOption) (*IpProtocolNsService, error)
public IpProtocolNsService(string name, IpProtocolNsServiceArgs args, CustomResourceOptions? opts = null)
public IpProtocolNsService(String name, IpProtocolNsServiceArgs args)
public IpProtocolNsService(String name, IpProtocolNsServiceArgs args, CustomResourceOptions options)
type: nsxt:IpProtocolNsService
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. IpProtocolNsServiceArgs
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. IpProtocolNsServiceArgs
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. IpProtocolNsServiceArgs
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. IpProtocolNsServiceArgs
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. IpProtocolNsServiceArgs
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 ipProtocolNsServiceResource = new Nsxt.IpProtocolNsService("ipProtocolNsServiceResource", new()
{
    Protocol = 0,
    Description = "string",
    DisplayName = "string",
    IpProtocolNsServiceId = "string",
    Tags = new[]
    {
        new Nsxt.Inputs.IpProtocolNsServiceTagArgs
        {
            Scope = "string",
            Tag = "string",
        },
    },
});
Copy
example, err := nsxt.NewIpProtocolNsService(ctx, "ipProtocolNsServiceResource", &nsxt.IpProtocolNsServiceArgs{
Protocol: pulumi.Float64(0),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
IpProtocolNsServiceId: pulumi.String("string"),
Tags: .IpProtocolNsServiceTagArray{
&.IpProtocolNsServiceTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
Copy
var ipProtocolNsServiceResource = new IpProtocolNsService("ipProtocolNsServiceResource", IpProtocolNsServiceArgs.builder()
    .protocol(0)
    .description("string")
    .displayName("string")
    .ipProtocolNsServiceId("string")
    .tags(IpProtocolNsServiceTagArgs.builder()
        .scope("string")
        .tag("string")
        .build())
    .build());
Copy
ip_protocol_ns_service_resource = nsxt.IpProtocolNsService("ipProtocolNsServiceResource",
    protocol=0,
    description="string",
    display_name="string",
    ip_protocol_ns_service_id="string",
    tags=[{
        "scope": "string",
        "tag": "string",
    }])
Copy
const ipProtocolNsServiceResource = new nsxt.IpProtocolNsService("ipProtocolNsServiceResource", {
    protocol: 0,
    description: "string",
    displayName: "string",
    ipProtocolNsServiceId: "string",
    tags: [{
        scope: "string",
        tag: "string",
    }],
});
Copy
type: nsxt:IpProtocolNsService
properties:
    description: string
    displayName: string
    ipProtocolNsServiceId: string
    protocol: 0
    tags:
        - scope: string
          tag: string
Copy

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

Protocol This property is required. double
IP protocol number (0-255)
Description string
Description.
DisplayName string
Display name, defaults to ID if not set.
IpProtocolNsServiceId string
ID of the NS service.
Tags List<IpProtocolNsServiceTag>
A list of scope + tag pairs to associate with this service.
Protocol This property is required. float64
IP protocol number (0-255)
Description string
Description.
DisplayName string
Display name, defaults to ID if not set.
IpProtocolNsServiceId string
ID of the NS service.
Tags []IpProtocolNsServiceTagArgs
A list of scope + tag pairs to associate with this service.
protocol This property is required. Double
IP protocol number (0-255)
description String
Description.
displayName String
Display name, defaults to ID if not set.
ipProtocolNsServiceId String
ID of the NS service.
tags List<IpProtocolNsServiceTag>
A list of scope + tag pairs to associate with this service.
protocol This property is required. number
IP protocol number (0-255)
description string
Description.
displayName string
Display name, defaults to ID if not set.
ipProtocolNsServiceId string
ID of the NS service.
tags IpProtocolNsServiceTag[]
A list of scope + tag pairs to associate with this service.
protocol This property is required. float
IP protocol number (0-255)
description str
Description.
display_name str
Display name, defaults to ID if not set.
ip_protocol_ns_service_id str
ID of the NS service.
tags Sequence[IpProtocolNsServiceTagArgs]
A list of scope + tag pairs to associate with this service.
protocol This property is required. Number
IP protocol number (0-255)
description String
Description.
displayName String
Display name, defaults to ID if not set.
ipProtocolNsServiceId String
ID of the NS service.
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 IpProtocolNsService 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 IpProtocolNsService Resource

Get an existing IpProtocolNsService 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?: IpProtocolNsServiceState, opts?: CustomResourceOptions): IpProtocolNsService
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        default_service: Optional[bool] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        ip_protocol_ns_service_id: Optional[str] = None,
        protocol: Optional[float] = None,
        revision: Optional[float] = None,
        tags: Optional[Sequence[IpProtocolNsServiceTagArgs]] = None) -> IpProtocolNsService
func GetIpProtocolNsService(ctx *Context, name string, id IDInput, state *IpProtocolNsServiceState, opts ...ResourceOption) (*IpProtocolNsService, error)
public static IpProtocolNsService Get(string name, Input<string> id, IpProtocolNsServiceState? state, CustomResourceOptions? opts = null)
public static IpProtocolNsService get(String name, Output<String> id, IpProtocolNsServiceState state, CustomResourceOptions options)
resources:  _:    type: nsxt:IpProtocolNsService    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:
DefaultService bool
The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
Description string
Description.
DisplayName string
Display name, defaults to ID if not set.
IpProtocolNsServiceId string
ID of the NS service.
Protocol double
IP protocol number (0-255)
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<IpProtocolNsServiceTag>
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.
DisplayName string
Display name, defaults to ID if not set.
IpProtocolNsServiceId string
ID of the NS service.
Protocol float64
IP protocol number (0-255)
Revision float64
Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
Tags []IpProtocolNsServiceTagArgs
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.
displayName String
Display name, defaults to ID if not set.
ipProtocolNsServiceId String
ID of the NS service.
protocol Double
IP protocol number (0-255)
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<IpProtocolNsServiceTag>
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.
displayName string
Display name, defaults to ID if not set.
ipProtocolNsServiceId string
ID of the NS service.
protocol number
IP protocol number (0-255)
revision number
Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
tags IpProtocolNsServiceTag[]
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.
display_name str
Display name, defaults to ID if not set.
ip_protocol_ns_service_id str
ID of the NS service.
protocol float
IP protocol number (0-255)
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[IpProtocolNsServiceTagArgs]
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.
displayName String
Display name, defaults to ID if not set.
ipProtocolNsServiceId String
ID of the NS service.
protocol Number
IP protocol number (0-255)
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 service.

Supporting Types

IpProtocolNsServiceTag
, IpProtocolNsServiceTagArgs

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.