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 string
- The unique name of the resource.
- args LbAppRuleArgs
- 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 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 string
- The unique name of the resource.
- args LbAppRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LbAppRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
var lbAppRuleResource = new LbAppRule("lbAppRuleResource", LbAppRuleArgs.builder()
.edgeGateway("string")
.script("string")
.lbAppRuleId("string")
.name("string")
.org("string")
.vdc("string")
.build());
lb_app_rule_resource = vcd.LbAppRule("lbAppRuleResource",
edge_gateway="string",
script="string",
lb_app_rule_id="string",
name="string",
org="string",
vdc="string")
const lbAppRuleResource = new vcd.LbAppRule("lbAppRuleResource", {
edgeGateway: "string",
script: "string",
lbAppRuleId: "string",
name: "string",
org: "string",
vdc: "string",
});
type: vcd:LbAppRule
properties:
edgeGateway: string
lbAppRuleId: string
name: string
org: string
script: string
vdc: string
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:
- Edge
Gateway string - The name of the edge gateway on which the application rule is to be created
- Script string
- The script for the application rule. Note - you may find HEREDOC useful to pass multiline strings
- Lb
App stringRule Id - 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 string - The name of the edge gateway on which the application rule is to be created
- Script string
- The script for the application rule. Note - you may find HEREDOC useful to pass multiline strings
- Lb
App stringRule Id - 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 String - The name of the edge gateway on which the application rule is to be created
- script String
- The script for the application rule. Note - you may find HEREDOC useful to pass multiline strings
- lb
App StringRule Id - 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 string - The name of the edge gateway on which the application rule is to be created
- script string
- The script for the application rule. Note - you may find HEREDOC useful to pass multiline strings
- lb
App stringRule Id - 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 str - The name of the edge gateway on which the application rule is to be created
- script str
- The script for the application rule. Note - you may find HEREDOC useful to pass multiline strings
- lb_
app_ strrule_ id - 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
- edge
Gateway String - The name of the edge gateway on which the application rule is to be created
- script String
- The script for the application rule. Note - you may find HEREDOC useful to pass multiline strings
- lb
App StringRule Id - 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
- 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.
- Edge
Gateway string - The name of the edge gateway on which the application rule is to be created
- Lb
App stringRule Id - 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 string - The name of the edge gateway on which the application rule is to be created
- Lb
App stringRule Id - 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 String - The name of the edge gateway on which the application rule is to be created
- lb
App StringRule Id - 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 string - The name of the edge gateway on which the application rule is to be created
- lb
App stringRule Id - 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_ strrule_ id - 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
- edge
Gateway String - The name of the edge gateway on which the application rule is to be created
- lb
App StringRule Id - 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.