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

vcd.LbAppRule

Explore with Pulumi AI

Create LbAppRule Resource

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

Constructor syntax

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

@overload
def LbAppRule(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              edge_gateway: Optional[str] = None,
              script: Optional[str] = None,
              lb_app_rule_id: Optional[str] = None,
              name: Optional[str] = None,
              org: Optional[str] = None,
              vdc: Optional[str] = None)
func NewLbAppRule(ctx *Context, name string, args LbAppRuleArgs, opts ...ResourceOption) (*LbAppRule, error)
public LbAppRule(string name, LbAppRuleArgs args, CustomResourceOptions? opts = null)
public LbAppRule(String name, LbAppRuleArgs args)
public LbAppRule(String name, LbAppRuleArgs args, CustomResourceOptions options)
type: vcd:LbAppRule
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. LbAppRuleArgs
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. LbAppRuleArgs
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. LbAppRuleArgs
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. LbAppRuleArgs
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. LbAppRuleArgs
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 lbAppRuleResource = new Vcd.LbAppRule("lbAppRuleResource", new()
{
    EdgeGateway = "string",
    Script = "string",
    LbAppRuleId = "string",
    Name = "string",
    Org = "string",
    Vdc = "string",
});
Copy
example, err := vcd.NewLbAppRule(ctx, "lbAppRuleResource", &vcd.LbAppRuleArgs{
EdgeGateway: pulumi.String("string"),
Script: pulumi.String("string"),
LbAppRuleId: pulumi.String("string"),
Name: pulumi.String("string"),
Org: pulumi.String("string"),
Vdc: pulumi.String("string"),
})
Copy
var lbAppRuleResource = new LbAppRule("lbAppRuleResource", LbAppRuleArgs.builder()
    .edgeGateway("string")
    .script("string")
    .lbAppRuleId("string")
    .name("string")
    .org("string")
    .vdc("string")
    .build());
Copy
lb_app_rule_resource = vcd.LbAppRule("lbAppRuleResource",
    edge_gateway="string",
    script="string",
    lb_app_rule_id="string",
    name="string",
    org="string",
    vdc="string")
Copy
const lbAppRuleResource = new vcd.LbAppRule("lbAppRuleResource", {
    edgeGateway: "string",
    script: "string",
    lbAppRuleId: "string",
    name: "string",
    org: "string",
    vdc: "string",
});
Copy
type: vcd:LbAppRule
properties:
    edgeGateway: string
    lbAppRuleId: string
    name: string
    org: string
    script: string
    vdc: string
Copy

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

EdgeGateway This property is required. string
The name of the edge gateway on which the application rule is to be created
Script This property is required. string
The script for the application rule. Note - you may find HEREDOC useful to pass multiline strings
LbAppRuleId string
The NSX ID of the load balancer application rule
Name string
Application rule name
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
EdgeGateway This property is required. string
The name of the edge gateway on which the application rule is to be created
Script This property is required. string
The script for the application rule. Note - you may find HEREDOC useful to pass multiline strings
LbAppRuleId string
The NSX ID of the load balancer application rule
Name string
Application rule name
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
edgeGateway This property is required. String
The name of the edge gateway on which the application rule is to be created
script This property is required. String
The script for the application rule. Note - you may find HEREDOC useful to pass multiline strings
lbAppRuleId String
The NSX ID of the load balancer application rule
name String
Application rule name
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
edgeGateway This property is required. string
The name of the edge gateway on which the application rule is to be created
script This property is required. string
The script for the application rule. Note - you may find HEREDOC useful to pass multiline strings
lbAppRuleId string
The NSX ID of the load balancer application rule
name string
Application rule name
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
edge_gateway This property is required. str
The name of the edge gateway on which the application rule is to be created
script This property is required. str
The script for the application rule. Note - you may find HEREDOC useful to pass multiline strings
lb_app_rule_id str
The NSX ID of the load balancer application rule
name str
Application rule name
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
edgeGateway This property is required. String
The name of the edge gateway on which the application rule is to be created
script This property is required. String
The script for the application rule. Note - you may find HEREDOC useful to pass multiline strings
lbAppRuleId String
The NSX ID of the load balancer application rule
name String
Application rule name
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

Outputs

All input properties are implicitly available as output properties. Additionally, the LbAppRule 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 LbAppRule Resource

Get an existing LbAppRule 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?: LbAppRuleState, opts?: CustomResourceOptions): LbAppRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        edge_gateway: Optional[str] = None,
        lb_app_rule_id: Optional[str] = None,
        name: Optional[str] = None,
        org: Optional[str] = None,
        script: Optional[str] = None,
        vdc: Optional[str] = None) -> LbAppRule
func GetLbAppRule(ctx *Context, name string, id IDInput, state *LbAppRuleState, opts ...ResourceOption) (*LbAppRule, error)
public static LbAppRule Get(string name, Input<string> id, LbAppRuleState? state, CustomResourceOptions? opts = null)
public static LbAppRule get(String name, Output<String> id, LbAppRuleState state, CustomResourceOptions options)
resources:  _:    type: vcd:LbAppRule    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:
EdgeGateway string
The name of the edge gateway on which the application rule is to be created
LbAppRuleId string
The NSX ID of the load balancer application rule
Name string
Application rule name
Org string
The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
Script string
The script for the application rule. Note - you may find HEREDOC useful to pass multiline strings
Vdc string
The name of VDC to use, optional if defined at provider level
EdgeGateway string
The name of the edge gateway on which the application rule is to be created
LbAppRuleId string
The NSX ID of the load balancer application rule
Name string
Application rule name
Org string
The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
Script string
The script for the application rule. Note - you may find HEREDOC useful to pass multiline strings
Vdc string
The name of VDC to use, optional if defined at provider level
edgeGateway String
The name of the edge gateway on which the application rule is to be created
lbAppRuleId String
The NSX ID of the load balancer application rule
name String
Application rule name
org String
The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
script String
The script for the application rule. Note - you may find HEREDOC useful to pass multiline strings
vdc String
The name of VDC to use, optional if defined at provider level
edgeGateway string
The name of the edge gateway on which the application rule is to be created
lbAppRuleId string
The NSX ID of the load balancer application rule
name string
Application rule name
org string
The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
script string
The script for the application rule. Note - you may find HEREDOC useful to pass multiline strings
vdc string
The name of VDC to use, optional if defined at provider level
edge_gateway str
The name of the edge gateway on which the application rule is to be created
lb_app_rule_id str
The NSX ID of the load balancer application rule
name str
Application rule name
org str
The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
script str
The script for the application rule. Note - you may find HEREDOC useful to pass multiline strings
vdc str
The name of VDC to use, optional if defined at provider level
edgeGateway String
The name of the edge gateway on which the application rule is to be created
lbAppRuleId String
The NSX ID of the load balancer application rule
name String
Application rule name
org String
The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
script String
The script for the application rule. Note - you may find HEREDOC useful to pass multiline strings
vdc String
The name of VDC to use, optional if defined at provider level

Package Details

Repository
vcd vmware/terraform-provider-vcd
License
Notes
This Pulumi package is based on the vcd Terraform Provider.