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 string
- The unique name of the resource.
- args IpProtocolNsServiceArgs
- 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 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 string
- The unique name of the resource.
- args IpProtocolNsServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IpProtocolNsServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
},
});
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: nsxt.IpProtocolNsServiceTagArray{
&nsxt.IpProtocolNsServiceTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var ipProtocolNsServiceResource = new IpProtocolNsService("ipProtocolNsServiceResource", IpProtocolNsServiceArgs.builder()
.protocol(0)
.description("string")
.displayName("string")
.ipProtocolNsServiceId("string")
.tags(IpProtocolNsServiceTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
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",
}])
const ipProtocolNsServiceResource = new nsxt.IpProtocolNsService("ipProtocolNsServiceResource", {
protocol: 0,
description: "string",
displayName: "string",
ipProtocolNsServiceId: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:IpProtocolNsService
properties:
description: string
displayName: string
ipProtocolNsServiceId: string
protocol: 0
tags:
- scope: string
tag: string
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 double
- IP protocol number (0-255)
- Description string
- Description.
- Display
Name string - Display name, defaults to ID if not set.
- Ip
Protocol stringNs Service Id - ID of the NS service.
- List<Ip
Protocol Ns Service Tag> - A list of scope + tag pairs to associate with this service.
- Protocol float64
- IP protocol number (0-255)
- Description string
- Description.
- Display
Name string - Display name, defaults to ID if not set.
- Ip
Protocol stringNs Service Id - ID of the NS service.
- []Ip
Protocol Ns Service Tag Args - A list of scope + tag pairs to associate with this service.
- protocol Double
- IP protocol number (0-255)
- description String
- Description.
- display
Name String - Display name, defaults to ID if not set.
- ip
Protocol StringNs Service Id - ID of the NS service.
- List<Ip
Protocol Ns Service Tag> - A list of scope + tag pairs to associate with this service.
- protocol number
- IP protocol number (0-255)
- description string
- Description.
- display
Name string - Display name, defaults to ID if not set.
- ip
Protocol stringNs Service Id - ID of the NS service.
- Ip
Protocol Ns Service Tag[] - A list of scope + tag pairs to associate with this service.
- protocol float
- IP protocol number (0-255)
- description str
- Description.
- display_
name str - Display name, defaults to ID if not set.
- ip_
protocol_ strns_ service_ id - ID of the NS service.
- Sequence[Ip
Protocol Ns Service Tag Args] - A list of scope + tag pairs to associate with this service.
- protocol Number
- IP protocol number (0-255)
- description String
- Description.
- display
Name String - Display name, defaults to ID if not set.
- ip
Protocol StringNs Service Id - ID of the NS service.
- 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:
- 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 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
- 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.
- Default
Service bool - The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
- Description string
- Description.
- Display
Name string - Display name, defaults to ID if not set.
- Ip
Protocol stringNs Service Id - 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.
- List<Ip
Protocol 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 string
- Description.
- Display
Name string - Display name, defaults to ID if not set.
- Ip
Protocol stringNs Service Id - 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.
- []Ip
Protocol Ns Service Tag Args - A list of scope + tag pairs to associate with this service.
- default
Service Boolean - The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
- description String
- Description.
- display
Name String - Display name, defaults to ID if not set.
- ip
Protocol StringNs Service Id - 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.
- List<Ip
Protocol Ns Service Tag> - A list of scope + tag pairs to associate with this service.
- default
Service boolean - The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
- description string
- Description.
- display
Name string - Display name, defaults to ID if not set.
- ip
Protocol stringNs Service Id - 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.
- Ip
Protocol 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.
- display_
name str - Display name, defaults to ID if not set.
- ip_
protocol_ strns_ service_ id - 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.
- Sequence[Ip
Protocol Ns Service Tag Args] - A list of scope + tag pairs to associate with this service.
- default
Service Boolean - The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
- description String
- Description.
- display
Name String - Display name, defaults to ID if not set.
- ip
Protocol StringNs Service Id - 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.
- List<Property Map>
- A list of scope + tag pairs to associate with this service.
Supporting Types
IpProtocolNsServiceTag, IpProtocolNsServiceTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.