1. Packages
  2. Vcd Provider
  3. API Docs
  4. NsxtAppPortProfile
vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware

vcd.NsxtAppPortProfile

Explore with Pulumi AI

vcd logo
vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware

    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:

    AppPorts List<NsxtAppPortProfileAppPort>

    At least one block of Application Port definition

    Scope string
    Application Port Profile scope - PROVIDER, TENANT
    ContextId string
    ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields vdc and nsxt_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
    NsxtAppPortProfileId string
    NsxtManagerId string
    Required only when scope is PROVIDER. Deprecated and replaced by context_id

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    AppPorts []NsxtAppPortProfileAppPortArgs

    At least one block of Application Port definition

    Scope string
    Application Port Profile scope - PROVIDER, TENANT
    ContextId string
    ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields vdc and nsxt_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
    NsxtAppPortProfileId string
    NsxtManagerId string
    Required only when scope is PROVIDER. Deprecated and replaced by context_id

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    appPorts List<NsxtAppPortProfileAppPort>

    At least one block of Application Port definition

    scope String
    Application Port Profile scope - PROVIDER, TENANT
    contextId String
    ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields vdc and nsxt_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
    nsxtAppPortProfileId String
    nsxtManagerId String
    Required only when scope is PROVIDER. Deprecated and replaced by context_id

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    appPorts NsxtAppPortProfileAppPort[]

    At least one block of Application Port definition

    scope string
    Application Port Profile scope - PROVIDER, TENANT
    contextId string
    ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields vdc and nsxt_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
    nsxtAppPortProfileId string
    nsxtManagerId string
    Required only when scope is PROVIDER. Deprecated and replaced by context_id

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    app_ports Sequence[NsxtAppPortProfileAppPortArgs]

    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 and nsxt_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_port_profile_id str
    nsxt_manager_id str
    Required only when scope is PROVIDER. Deprecated and replaced by context_id

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    appPorts List<Property Map>

    At least one block of Application Port definition

    scope String
    Application Port Profile scope - PROVIDER, TENANT
    contextId String
    ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields vdc and nsxt_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
    nsxtAppPortProfileId String
    nsxtManagerId String
    Required only when scope is PROVIDER. Deprecated and replaced by context_id

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    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.
    The following state arguments are supported:
    AppPorts List<NsxtAppPortProfileAppPort>

    At least one block of Application Port definition

    ContextId string
    ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields vdc and nsxt_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
    NsxtAppPortProfileId string
    NsxtManagerId string
    Required only when scope is PROVIDER. Deprecated and replaced by context_id

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    AppPorts []NsxtAppPortProfileAppPortArgs

    At least one block of Application Port definition

    ContextId string
    ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields vdc and nsxt_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
    NsxtAppPortProfileId string
    NsxtManagerId string
    Required only when scope is PROVIDER. Deprecated and replaced by context_id

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    appPorts List<NsxtAppPortProfileAppPort>

    At least one block of Application Port definition

    contextId String
    ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields vdc and nsxt_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
    nsxtAppPortProfileId String
    nsxtManagerId String
    Required only when scope is PROVIDER. Deprecated and replaced by context_id

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    appPorts NsxtAppPortProfileAppPort[]

    At least one block of Application Port definition

    contextId string
    ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields vdc and nsxt_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
    nsxtAppPortProfileId string
    nsxtManagerId string
    Required only when scope is PROVIDER. Deprecated and replaced by context_id

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    app_ports Sequence[NsxtAppPortProfileAppPortArgs]

    At least one block of Application Port definition

    context_id str
    ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields vdc and nsxt_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_port_profile_id str
    nsxt_manager_id str
    Required only when scope is PROVIDER. Deprecated and replaced by context_id

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    appPorts List<Property Map>

    At least one block of Application Port definition

    contextId String
    ID of NSX-T Manager, VDC or VDC Group. Replaces deprecated fields vdc and nsxt_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
    nsxtAppPortProfileId String
    nsxtManagerId String
    Required only when scope is PROVIDER. Deprecated and replaced by context_id

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    Supporting Types

    NsxtAppPortProfileAppPort, NsxtAppPortProfileAppPortArgs

    Protocol string
    Ports List<string>
    Set of ports or ranges
    Protocol string
    Ports []string
    Set of ports or ranges
    protocol String
    ports List<String>
    Set of ports or ranges
    protocol string
    ports string[]
    Set of ports or ranges
    protocol str
    ports Sequence[str]
    Set of ports or ranges
    protocol String
    ports List<String>
    Set of ports or ranges

    Package Details

    Repository
    vcd vmware/terraform-provider-vcd
    License
    Notes
    This Pulumi package is based on the vcd Terraform Provider.
    vcd logo
    vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware