glesys.LoadbalancerTarget
Explore with Pulumi AI
Create a LoadBalancer Target for a glesys.LoadbalancerBackend
.
Create LoadbalancerTarget Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LoadbalancerTarget(name: string, args: LoadbalancerTargetArgs, opts?: CustomResourceOptions);
@overload
def LoadbalancerTarget(resource_name: str,
args: LoadbalancerTargetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LoadbalancerTarget(resource_name: str,
opts: Optional[ResourceOptions] = None,
backend: Optional[str] = None,
loadbalancerid: Optional[str] = None,
port: Optional[float] = None,
targetip: Optional[str] = None,
weight: Optional[float] = None,
enabled: Optional[bool] = None,
loadbalancer_target_id: Optional[str] = None,
name: Optional[str] = None)
func NewLoadbalancerTarget(ctx *Context, name string, args LoadbalancerTargetArgs, opts ...ResourceOption) (*LoadbalancerTarget, error)
public LoadbalancerTarget(string name, LoadbalancerTargetArgs args, CustomResourceOptions? opts = null)
public LoadbalancerTarget(String name, LoadbalancerTargetArgs args)
public LoadbalancerTarget(String name, LoadbalancerTargetArgs args, CustomResourceOptions options)
type: glesys:LoadbalancerTarget
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 LoadbalancerTargetArgs
- 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 LoadbalancerTargetArgs
- 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 LoadbalancerTargetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LoadbalancerTargetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LoadbalancerTargetArgs
- 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 loadbalancerTargetResource = new Glesys.LoadbalancerTarget("loadbalancerTargetResource", new()
{
Backend = "string",
Loadbalancerid = "string",
Port = 0,
Targetip = "string",
Weight = 0,
Enabled = false,
LoadbalancerTargetId = "string",
Name = "string",
});
example, err := glesys.NewLoadbalancerTarget(ctx, "loadbalancerTargetResource", &glesys.LoadbalancerTargetArgs{
Backend: pulumi.String("string"),
Loadbalancerid: pulumi.String("string"),
Port: pulumi.Float64(0),
Targetip: pulumi.String("string"),
Weight: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
LoadbalancerTargetId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var loadbalancerTargetResource = new LoadbalancerTarget("loadbalancerTargetResource", LoadbalancerTargetArgs.builder()
.backend("string")
.loadbalancerid("string")
.port(0)
.targetip("string")
.weight(0)
.enabled(false)
.loadbalancerTargetId("string")
.name("string")
.build());
loadbalancer_target_resource = glesys.LoadbalancerTarget("loadbalancerTargetResource",
backend="string",
loadbalancerid="string",
port=0,
targetip="string",
weight=0,
enabled=False,
loadbalancer_target_id="string",
name="string")
const loadbalancerTargetResource = new glesys.LoadbalancerTarget("loadbalancerTargetResource", {
backend: "string",
loadbalancerid: "string",
port: 0,
targetip: "string",
weight: 0,
enabled: false,
loadbalancerTargetId: "string",
name: "string",
});
type: glesys:LoadbalancerTarget
properties:
backend: string
enabled: false
loadbalancerTargetId: string
loadbalancerid: string
name: string
port: 0
targetip: string
weight: 0
LoadbalancerTarget 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 LoadbalancerTarget resource accepts the following input properties:
- Backend string
- Backend to associate with.
- Loadbalancerid string
- LoadBalancer ID.
- Port double
- Target port to connect to.
- Targetip string
- Target IP.
- Weight double
- Target weight.
1-256
. Higher weight gets more requests. - Enabled bool
- Enable or disable Target.
true
,false
- Loadbalancer
Target stringId - The ID of this resource.
- Name string
- Target name.
- Backend string
- Backend to associate with.
- Loadbalancerid string
- LoadBalancer ID.
- Port float64
- Target port to connect to.
- Targetip string
- Target IP.
- Weight float64
- Target weight.
1-256
. Higher weight gets more requests. - Enabled bool
- Enable or disable Target.
true
,false
- Loadbalancer
Target stringId - The ID of this resource.
- Name string
- Target name.
- backend String
- Backend to associate with.
- loadbalancerid String
- LoadBalancer ID.
- port Double
- Target port to connect to.
- targetip String
- Target IP.
- weight Double
- Target weight.
1-256
. Higher weight gets more requests. - enabled Boolean
- Enable or disable Target.
true
,false
- loadbalancer
Target StringId - The ID of this resource.
- name String
- Target name.
- backend string
- Backend to associate with.
- loadbalancerid string
- LoadBalancer ID.
- port number
- Target port to connect to.
- targetip string
- Target IP.
- weight number
- Target weight.
1-256
. Higher weight gets more requests. - enabled boolean
- Enable or disable Target.
true
,false
- loadbalancer
Target stringId - The ID of this resource.
- name string
- Target name.
- backend str
- Backend to associate with.
- loadbalancerid str
- LoadBalancer ID.
- port float
- Target port to connect to.
- targetip str
- Target IP.
- weight float
- Target weight.
1-256
. Higher weight gets more requests. - enabled bool
- Enable or disable Target.
true
,false
- loadbalancer_
target_ strid - The ID of this resource.
- name str
- Target name.
- backend String
- Backend to associate with.
- loadbalancerid String
- LoadBalancer ID.
- port Number
- Target port to connect to.
- targetip String
- Target IP.
- weight Number
- Target weight.
1-256
. Higher weight gets more requests. - enabled Boolean
- Enable or disable Target.
true
,false
- loadbalancer
Target StringId - The ID of this resource.
- name String
- Target name.
Outputs
All input properties are implicitly available as output properties. Additionally, the LoadbalancerTarget resource produces the following output properties:
Look up Existing LoadbalancerTarget Resource
Get an existing LoadbalancerTarget 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?: LoadbalancerTargetState, opts?: CustomResourceOptions): LoadbalancerTarget
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backend: Optional[str] = None,
enabled: Optional[bool] = None,
loadbalancer_target_id: Optional[str] = None,
loadbalancerid: Optional[str] = None,
name: Optional[str] = None,
port: Optional[float] = None,
status: Optional[str] = None,
targetip: Optional[str] = None,
weight: Optional[float] = None) -> LoadbalancerTarget
func GetLoadbalancerTarget(ctx *Context, name string, id IDInput, state *LoadbalancerTargetState, opts ...ResourceOption) (*LoadbalancerTarget, error)
public static LoadbalancerTarget Get(string name, Input<string> id, LoadbalancerTargetState? state, CustomResourceOptions? opts = null)
public static LoadbalancerTarget get(String name, Output<String> id, LoadbalancerTargetState state, CustomResourceOptions options)
resources: _: type: glesys:LoadbalancerTarget 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.
- Backend string
- Backend to associate with.
- Enabled bool
- Enable or disable Target.
true
,false
- Loadbalancer
Target stringId - The ID of this resource.
- Loadbalancerid string
- LoadBalancer ID.
- Name string
- Target name.
- Port double
- Target port to connect to.
- Status string
- Target status.
UP
,DOWN
- Targetip string
- Target IP.
- Weight double
- Target weight.
1-256
. Higher weight gets more requests.
- Backend string
- Backend to associate with.
- Enabled bool
- Enable or disable Target.
true
,false
- Loadbalancer
Target stringId - The ID of this resource.
- Loadbalancerid string
- LoadBalancer ID.
- Name string
- Target name.
- Port float64
- Target port to connect to.
- Status string
- Target status.
UP
,DOWN
- Targetip string
- Target IP.
- Weight float64
- Target weight.
1-256
. Higher weight gets more requests.
- backend String
- Backend to associate with.
- enabled Boolean
- Enable or disable Target.
true
,false
- loadbalancer
Target StringId - The ID of this resource.
- loadbalancerid String
- LoadBalancer ID.
- name String
- Target name.
- port Double
- Target port to connect to.
- status String
- Target status.
UP
,DOWN
- targetip String
- Target IP.
- weight Double
- Target weight.
1-256
. Higher weight gets more requests.
- backend string
- Backend to associate with.
- enabled boolean
- Enable or disable Target.
true
,false
- loadbalancer
Target stringId - The ID of this resource.
- loadbalancerid string
- LoadBalancer ID.
- name string
- Target name.
- port number
- Target port to connect to.
- status string
- Target status.
UP
,DOWN
- targetip string
- Target IP.
- weight number
- Target weight.
1-256
. Higher weight gets more requests.
- backend str
- Backend to associate with.
- enabled bool
- Enable or disable Target.
true
,false
- loadbalancer_
target_ strid - The ID of this resource.
- loadbalancerid str
- LoadBalancer ID.
- name str
- Target name.
- port float
- Target port to connect to.
- status str
- Target status.
UP
,DOWN
- targetip str
- Target IP.
- weight float
- Target weight.
1-256
. Higher weight gets more requests.
- backend String
- Backend to associate with.
- enabled Boolean
- Enable or disable Target.
true
,false
- loadbalancer
Target StringId - The ID of this resource.
- loadbalancerid String
- LoadBalancer ID.
- name String
- Target name.
- port Number
- Target port to connect to.
- status String
- Target status.
UP
,DOWN
- targetip String
- Target IP.
- weight Number
- Target weight.
1-256
. Higher weight gets more requests.
Package Details
- Repository
- glesys glesys/terraform-provider-glesys
- License
- Notes
- This Pulumi package is based on the
glesys
Terraform Provider.