SlbAttachment
Binds SLB to an EDAS application.
NOTE: Available in 1.82.0+
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var @default = new AliCloud.Edas.SlbAttachment("default", new AliCloud.Edas.SlbAttachmentArgs
{
AppId = @var.App_id,
SlbId = @var.Slb_id,
SlbIp = @var.Slb_ip,
Type = @var.Type,
ListenerPort = @var.Listener_port,
VserverGroupId = @var.Vserver_group_id,
});
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.edas.SlbAttachment("default",
app_id=var["app_id"],
slb_id=var["slb_id"],
slb_ip=var["slb_ip"],
type=var["type"],
listener_port=var["listener_port"],
vserver_group_id=var["vserver_group_id"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = new alicloud.edas.SlbAttachment("default", {
appId: _var.app_id,
slbId: _var.slb_id,
slbIp: _var.slb_ip,
type: _var.type,
listenerPort: _var.listener_port,
vserverGroupId: _var.vserver_group_id,
});Create a SlbAttachment Resource
new SlbAttachment(name: string, args: SlbAttachmentArgs, opts?: CustomResourceOptions);def SlbAttachment(resource_name, opts=None, app_id=None, listener_port=None, slb_id=None, slb_ip=None, type=None, vserver_group_id=None, __props__=None);func NewSlbAttachment(ctx *Context, name string, args SlbAttachmentArgs, opts ...ResourceOption) (*SlbAttachment, error)public SlbAttachment(string name, SlbAttachmentArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args SlbAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SlbAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SlbAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
SlbAttachment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The SlbAttachment resource accepts the following input properties:
- App
Id string The ID of the applicaton to which you want to bind an SLB instance.
- Slb
Id string The ID of the SLB instance that is going to be bound.
- Slb
Ip string The IP address that is allocated to the bound SLB instance.
- Type string
The type of the bound SLB instance.
- Listener
Port int The listening port for the bound SLB instance.
- Vserver
Group stringId The ID of the virtual server (VServer) group associated with the intranet SLB instance.
- App
Id string The ID of the applicaton to which you want to bind an SLB instance.
- Slb
Id string The ID of the SLB instance that is going to be bound.
- Slb
Ip string The IP address that is allocated to the bound SLB instance.
- Type string
The type of the bound SLB instance.
- Listener
Port int The listening port for the bound SLB instance.
- Vserver
Group stringId The ID of the virtual server (VServer) group associated with the intranet SLB instance.
- app
Id string The ID of the applicaton to which you want to bind an SLB instance.
- slb
Id string The ID of the SLB instance that is going to be bound.
- slb
Ip string The IP address that is allocated to the bound SLB instance.
- type string
The type of the bound SLB instance.
- listener
Port number The listening port for the bound SLB instance.
- vserver
Group stringId The ID of the virtual server (VServer) group associated with the intranet SLB instance.
- app_
id str The ID of the applicaton to which you want to bind an SLB instance.
- slb_
id str The ID of the SLB instance that is going to be bound.
- slb_
ip str The IP address that is allocated to the bound SLB instance.
- type str
The type of the bound SLB instance.
- listener_
port float The listening port for the bound SLB instance.
- vserver_
group_ strid The ID of the virtual server (VServer) group associated with the intranet SLB instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the SlbAttachment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Slb
Status string Running Status of SLB instance. Inactive:The instance is stopped, and listener will not monitor and foward traffic. Active:The instance is running. After the instance is created, the default state is active. Locked:The instance is locked, the instance has been owed or locked by Alibaba Cloud. Expired: The instance has expired.
- Vswitch
Id string VPC related vswitch ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Slb
Status string Running Status of SLB instance. Inactive:The instance is stopped, and listener will not monitor and foward traffic. Active:The instance is running. After the instance is created, the default state is active. Locked:The instance is locked, the instance has been owed or locked by Alibaba Cloud. Expired: The instance has expired.
- Vswitch
Id string VPC related vswitch ID.
- id string
- The provider-assigned unique ID for this managed resource.
- slb
Status string Running Status of SLB instance. Inactive:The instance is stopped, and listener will not monitor and foward traffic. Active:The instance is running. After the instance is created, the default state is active. Locked:The instance is locked, the instance has been owed or locked by Alibaba Cloud. Expired: The instance has expired.
- vswitch
Id string VPC related vswitch ID.
- id str
- The provider-assigned unique ID for this managed resource.
- slb_
status str Running Status of SLB instance. Inactive:The instance is stopped, and listener will not monitor and foward traffic. Active:The instance is running. After the instance is created, the default state is active. Locked:The instance is locked, the instance has been owed or locked by Alibaba Cloud. Expired: The instance has expired.
- vswitch_
id str VPC related vswitch ID.
Look up an Existing SlbAttachment Resource
Get an existing SlbAttachment 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?: SlbAttachmentState, opts?: CustomResourceOptions): SlbAttachmentstatic get(resource_name, id, opts=None, app_id=None, listener_port=None, slb_id=None, slb_ip=None, slb_status=None, type=None, vserver_group_id=None, vswitch_id=None, __props__=None);func GetSlbAttachment(ctx *Context, name string, id IDInput, state *SlbAttachmentState, opts ...ResourceOption) (*SlbAttachment, error)public static SlbAttachment Get(string name, Input<string> id, SlbAttachmentState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- App
Id string The ID of the applicaton to which you want to bind an SLB instance.
- Listener
Port int The listening port for the bound SLB instance.
- Slb
Id string The ID of the SLB instance that is going to be bound.
- Slb
Ip string The IP address that is allocated to the bound SLB instance.
- Slb
Status string Running Status of SLB instance. Inactive:The instance is stopped, and listener will not monitor and foward traffic. Active:The instance is running. After the instance is created, the default state is active. Locked:The instance is locked, the instance has been owed or locked by Alibaba Cloud. Expired: The instance has expired.
- Type string
The type of the bound SLB instance.
- Vserver
Group stringId The ID of the virtual server (VServer) group associated with the intranet SLB instance.
- Vswitch
Id string VPC related vswitch ID.
- App
Id string The ID of the applicaton to which you want to bind an SLB instance.
- Listener
Port int The listening port for the bound SLB instance.
- Slb
Id string The ID of the SLB instance that is going to be bound.
- Slb
Ip string The IP address that is allocated to the bound SLB instance.
- Slb
Status string Running Status of SLB instance. Inactive:The instance is stopped, and listener will not monitor and foward traffic. Active:The instance is running. After the instance is created, the default state is active. Locked:The instance is locked, the instance has been owed or locked by Alibaba Cloud. Expired: The instance has expired.
- Type string
The type of the bound SLB instance.
- Vserver
Group stringId The ID of the virtual server (VServer) group associated with the intranet SLB instance.
- Vswitch
Id string VPC related vswitch ID.
- app
Id string The ID of the applicaton to which you want to bind an SLB instance.
- listener
Port number The listening port for the bound SLB instance.
- slb
Id string The ID of the SLB instance that is going to be bound.
- slb
Ip string The IP address that is allocated to the bound SLB instance.
- slb
Status string Running Status of SLB instance. Inactive:The instance is stopped, and listener will not monitor and foward traffic. Active:The instance is running. After the instance is created, the default state is active. Locked:The instance is locked, the instance has been owed or locked by Alibaba Cloud. Expired: The instance has expired.
- type string
The type of the bound SLB instance.
- vserver
Group stringId The ID of the virtual server (VServer) group associated with the intranet SLB instance.
- vswitch
Id string VPC related vswitch ID.
- app_
id str The ID of the applicaton to which you want to bind an SLB instance.
- listener_
port float The listening port for the bound SLB instance.
- slb_
id str The ID of the SLB instance that is going to be bound.
- slb_
ip str The IP address that is allocated to the bound SLB instance.
- slb_
status str Running Status of SLB instance. Inactive:The instance is stopped, and listener will not monitor and foward traffic. Active:The instance is running. After the instance is created, the default state is active. Locked:The instance is locked, the instance has been owed or locked by Alibaba Cloud. Expired: The instance has expired.
- type str
The type of the bound SLB instance.
- vserver_
group_ strid The ID of the virtual server (VServer) group associated with the intranet SLB instance.
- vswitch_
id str VPC related vswitch ID.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.