vcd.NsxtAppPortProfile
Explore with Pulumi AI
Create NsxtAppPortProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NsxtAppPortProfile(name: string, args: NsxtAppPortProfileArgs, opts?: CustomResourceOptions);
@overload
def NsxtAppPortProfile(resource_name: str,
args: NsxtAppPortProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NsxtAppPortProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_ports: Optional[Sequence[NsxtAppPortProfileAppPortArgs]] = None,
scope: Optional[str] = None,
context_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
nsxt_app_port_profile_id: Optional[str] = None,
nsxt_manager_id: Optional[str] = None,
org: Optional[str] = None,
vdc: Optional[str] = None)
func NewNsxtAppPortProfile(ctx *Context, name string, args NsxtAppPortProfileArgs, opts ...ResourceOption) (*NsxtAppPortProfile, error)
public NsxtAppPortProfile(string name, NsxtAppPortProfileArgs args, CustomResourceOptions? opts = null)
public NsxtAppPortProfile(String name, NsxtAppPortProfileArgs args)
public NsxtAppPortProfile(String name, NsxtAppPortProfileArgs args, CustomResourceOptions options)
type: vcd:NsxtAppPortProfile
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 NsxtAppPortProfileArgs
- 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 NsxtAppPortProfileArgs
- 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 NsxtAppPortProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NsxtAppPortProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NsxtAppPortProfileArgs
- 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 nsxtAppPortProfileResource = new Vcd.NsxtAppPortProfile("nsxtAppPortProfileResource", new()
{
AppPorts = new[]
{
new Vcd.Inputs.NsxtAppPortProfileAppPortArgs
{
Protocol = "string",
Ports = new[]
{
"string",
},
},
},
Scope = "string",
ContextId = "string",
Description = "string",
Name = "string",
NsxtAppPortProfileId = "string",
Org = "string",
});
example, err := vcd.NewNsxtAppPortProfile(ctx, "nsxtAppPortProfileResource", &vcd.NsxtAppPortProfileArgs{
AppPorts: vcd.NsxtAppPortProfileAppPortArray{
&vcd.NsxtAppPortProfileAppPortArgs{
Protocol: pulumi.String("string"),
Ports: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Scope: pulumi.String("string"),
ContextId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
NsxtAppPortProfileId: pulumi.String("string"),
Org: pulumi.String("string"),
})
var nsxtAppPortProfileResource = new NsxtAppPortProfile("nsxtAppPortProfileResource", NsxtAppPortProfileArgs.builder()
.appPorts(NsxtAppPortProfileAppPortArgs.builder()
.protocol("string")
.ports("string")
.build())
.scope("string")
.contextId("string")
.description("string")
.name("string")
.nsxtAppPortProfileId("string")
.org("string")
.build());
nsxt_app_port_profile_resource = vcd.NsxtAppPortProfile("nsxtAppPortProfileResource",
app_ports=[{
"protocol": "string",
"ports": ["string"],
}],
scope="string",
context_id="string",
description="string",
name="string",
nsxt_app_port_profile_id="string",
org="string")
const nsxtAppPortProfileResource = new vcd.NsxtAppPortProfile("nsxtAppPortProfileResource", {
appPorts: [{
protocol: "string",
ports: ["string"],
}],
scope: "string",
contextId: "string",
description: "string",
name: "string",
nsxtAppPortProfileId: "string",
org: "string",
});
type: vcd:NsxtAppPortProfile
properties:
appPorts:
- ports:
- string
protocol: string
contextId: string
description: string
name: string
nsxtAppPortProfileId: string
org: string
scope: string
NsxtAppPortProfile 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 NsxtAppPortProfile resource accepts the following input properties:
- App
Ports List<NsxtApp Port Profile App Port> At least one block of Application Port definition
- Scope string
- Application Port Profile scope -
PROVIDER
,TENANT
- Context
Id string - ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields
vdc
andnsxt_manager_id
. It accepts VDC, VDC Group or NSX-T Manager ID. - Description string
- Application Port Profile description
- Name string
- A unique name for Security Group
- Nsxt
App stringPort Profile Id - Nsxt
Manager stringId - Required only when
scope
isPROVIDER
. Deprecated and replaced bycontext_id
- Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Vdc string
- The name of VDC to use, optional if defined at provider level.
Deprecated and replaced by
context_id
- App
Ports []NsxtApp Port Profile App Port Args At least one block of Application Port definition
- Scope string
- Application Port Profile scope -
PROVIDER
,TENANT
- Context
Id string - ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields
vdc
andnsxt_manager_id
. It accepts VDC, VDC Group or NSX-T Manager ID. - Description string
- Application Port Profile description
- Name string
- A unique name for Security Group
- Nsxt
App stringPort Profile Id - Nsxt
Manager stringId - Required only when
scope
isPROVIDER
. Deprecated and replaced bycontext_id
- Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Vdc string
- The name of VDC to use, optional if defined at provider level.
Deprecated and replaced by
context_id
- app
Ports List<NsxtApp Port Profile App Port> At least one block of Application Port definition
- scope String
- Application Port Profile scope -
PROVIDER
,TENANT
- context
Id String - ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields
vdc
andnsxt_manager_id
. It accepts VDC, VDC Group or NSX-T Manager ID. - description String
- Application Port Profile description
- name String
- A unique name for Security Group
- nsxt
App StringPort Profile Id - nsxt
Manager StringId - Required only when
scope
isPROVIDER
. Deprecated and replaced bycontext_id
- org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- vdc String
- The name of VDC to use, optional if defined at provider level.
Deprecated and replaced by
context_id
- app
Ports NsxtApp Port Profile App Port[] At least one block of Application Port definition
- scope string
- Application Port Profile scope -
PROVIDER
,TENANT
- context
Id string - ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields
vdc
andnsxt_manager_id
. It accepts VDC, VDC Group or NSX-T Manager ID. - description string
- Application Port Profile description
- name string
- A unique name for Security Group
- nsxt
App stringPort Profile Id - nsxt
Manager stringId - Required only when
scope
isPROVIDER
. Deprecated and replaced bycontext_id
- org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- vdc string
- The name of VDC to use, optional if defined at provider level.
Deprecated and replaced by
context_id
- app_
ports Sequence[NsxtApp Port Profile App Port Args] At least one block of Application Port definition
- scope str
- Application Port Profile scope -
PROVIDER
,TENANT
- context_
id str - ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields
vdc
andnsxt_manager_id
. It accepts VDC, VDC Group or NSX-T Manager ID. - description str
- Application Port Profile description
- name str
- A unique name for Security Group
- nsxt_
app_ strport_ profile_ id - nsxt_
manager_ strid - Required only when
scope
isPROVIDER
. Deprecated and replaced bycontext_id
- org str
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- vdc str
- The name of VDC to use, optional if defined at provider level.
Deprecated and replaced by
context_id
- app
Ports List<Property Map> At least one block of Application Port definition
- scope String
- Application Port Profile scope -
PROVIDER
,TENANT
- context
Id String - ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields
vdc
andnsxt_manager_id
. It accepts VDC, VDC Group or NSX-T Manager ID. - description String
- Application Port Profile description
- name String
- A unique name for Security Group
- nsxt
App StringPort Profile Id - nsxt
Manager StringId - Required only when
scope
isPROVIDER
. Deprecated and replaced bycontext_id
- org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- vdc String
- The name of VDC to use, optional if defined at provider level.
Deprecated and replaced by
context_id
Outputs
All input properties are implicitly available as output properties. Additionally, the NsxtAppPortProfile resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing NsxtAppPortProfile Resource
Get an existing NsxtAppPortProfile 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?: NsxtAppPortProfileState, opts?: CustomResourceOptions): NsxtAppPortProfile
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_ports: Optional[Sequence[NsxtAppPortProfileAppPortArgs]] = None,
context_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
nsxt_app_port_profile_id: Optional[str] = None,
nsxt_manager_id: Optional[str] = None,
org: Optional[str] = None,
scope: Optional[str] = None,
vdc: Optional[str] = None) -> NsxtAppPortProfile
func GetNsxtAppPortProfile(ctx *Context, name string, id IDInput, state *NsxtAppPortProfileState, opts ...ResourceOption) (*NsxtAppPortProfile, error)
public static NsxtAppPortProfile Get(string name, Input<string> id, NsxtAppPortProfileState? state, CustomResourceOptions? opts = null)
public static NsxtAppPortProfile get(String name, Output<String> id, NsxtAppPortProfileState state, CustomResourceOptions options)
resources: _: type: vcd:NsxtAppPortProfile 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.
- App
Ports List<NsxtApp Port Profile App Port> At least one block of Application Port definition
- Context
Id string - ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields
vdc
andnsxt_manager_id
. It accepts VDC, VDC Group or NSX-T Manager ID. - Description string
- Application Port Profile description
- Name string
- A unique name for Security Group
- Nsxt
App stringPort Profile Id - Nsxt
Manager stringId - Required only when
scope
isPROVIDER
. Deprecated and replaced bycontext_id
- Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Scope string
- Application Port Profile scope -
PROVIDER
,TENANT
- Vdc string
- The name of VDC to use, optional if defined at provider level.
Deprecated and replaced by
context_id
- App
Ports []NsxtApp Port Profile App Port Args At least one block of Application Port definition
- Context
Id string - ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields
vdc
andnsxt_manager_id
. It accepts VDC, VDC Group or NSX-T Manager ID. - Description string
- Application Port Profile description
- Name string
- A unique name for Security Group
- Nsxt
App stringPort Profile Id - Nsxt
Manager stringId - Required only when
scope
isPROVIDER
. Deprecated and replaced bycontext_id
- Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Scope string
- Application Port Profile scope -
PROVIDER
,TENANT
- Vdc string
- The name of VDC to use, optional if defined at provider level.
Deprecated and replaced by
context_id
- app
Ports List<NsxtApp Port Profile App Port> At least one block of Application Port definition
- context
Id String - ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields
vdc
andnsxt_manager_id
. It accepts VDC, VDC Group or NSX-T Manager ID. - description String
- Application Port Profile description
- name String
- A unique name for Security Group
- nsxt
App StringPort Profile Id - nsxt
Manager StringId - Required only when
scope
isPROVIDER
. Deprecated and replaced bycontext_id
- org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- scope String
- Application Port Profile scope -
PROVIDER
,TENANT
- vdc String
- The name of VDC to use, optional if defined at provider level.
Deprecated and replaced by
context_id
- app
Ports NsxtApp Port Profile App Port[] At least one block of Application Port definition
- context
Id string - ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields
vdc
andnsxt_manager_id
. It accepts VDC, VDC Group or NSX-T Manager ID. - description string
- Application Port Profile description
- name string
- A unique name for Security Group
- nsxt
App stringPort Profile Id - nsxt
Manager stringId - Required only when
scope
isPROVIDER
. Deprecated and replaced bycontext_id
- org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- scope string
- Application Port Profile scope -
PROVIDER
,TENANT
- vdc string
- The name of VDC to use, optional if defined at provider level.
Deprecated and replaced by
context_id
- app_
ports Sequence[NsxtApp Port Profile App Port Args] At least one block of Application Port definition
- context_
id str - ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields
vdc
andnsxt_manager_id
. It accepts VDC, VDC Group or NSX-T Manager ID. - description str
- Application Port Profile description
- name str
- A unique name for Security Group
- nsxt_
app_ strport_ profile_ id - nsxt_
manager_ strid - Required only when
scope
isPROVIDER
. Deprecated and replaced bycontext_id
- org str
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- scope str
- Application Port Profile scope -
PROVIDER
,TENANT
- vdc str
- The name of VDC to use, optional if defined at provider level.
Deprecated and replaced by
context_id
- app
Ports List<Property Map> At least one block of Application Port definition
- context
Id String - ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields
vdc
andnsxt_manager_id
. It accepts VDC, VDC Group or NSX-T Manager ID. - description String
- Application Port Profile description
- name String
- A unique name for Security Group
- nsxt
App StringPort Profile Id - nsxt
Manager StringId - Required only when
scope
isPROVIDER
. Deprecated and replaced bycontext_id
- org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- scope String
- Application Port Profile scope -
PROVIDER
,TENANT
- vdc String
- The name of VDC to use, optional if defined at provider level.
Deprecated and replaced by
context_id
Supporting Types
NsxtAppPortProfileAppPort, NsxtAppPortProfileAppPortArgs
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.