Clones an SLB instance.
Syntax
{
"Type": "ALIYUN::SLB::LoadBalancerClone",
"Properties": {
"Tags": List,
"ResourceGroupId": String,
"VSwitchId": String,
"LoadBalancerName": String,
"SourceLoadBalancerId": String,
"TagsPolicy": String,
"BackendServersPolicy": String,
"BackendServers": List,
"InstanceChargeType": String,
"LoadBalancerSpec": String
}
}
Properties
| Property name | Type | Required | Update allowed | Description | Constraints |
| ResourceGroupId | String | No | No | The ID of the resource group. | None |
| VSwitchId | String | No | No | The ID of the vSwitch. | Must belong to the VPC of the source SLB instance. Default: the source instance's vSwitch. |
| SourceLoadBalancerId | String | Yes | No | The ID of the source SLB instance to clone. | None |
| BackendServersPolicy | String | No | No | The backend server cloning policy. | Valid values:
|
| BackendServers | List | No | Yes | The new backend servers to add. | BackendServers properties. |
| LoadBalancerName | String | No | No | The name of the SLB instance. | 1 to 80 characters. Supports letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_). |
| Tags | List | No | No | The tags of the SLB instance. | Key-value pairs. Maximum: 5. |
| TagsPolicy | String | No | No | The tag policy. | Valid values:
|
| InstanceChargeType | String | No | No | The billing method of the instance. | Valid values:
|
| LoadBalancerSpec | String | No | No | The specification of the SLB instance. | Valid values:
Supported specifications vary by region. FAQ about CLB instances. |
BackendServers syntax
"BackendServers": [
{
"Type": String,
"ServerId": String,
"Description": String,
"ServerIp": String,
"Weight": Integer
}
]
BackendServers properties
| Property name | Type | Required | Update allowed | Description | Constraints |
| ServerId | String | Yes | Yes | The ID of the backend server. | The backend server must be in the running state. Maximum: 20 per call. Only guaranteed-performance instances support ENI-type backend servers. |
| Weight | Integer | Yes | Yes | The weight of the backend server. | Valid values: 0 to 100. Default value: 100. |
| ServerIp | String | No | No | The IP address of the backend server. | None |
| Type | String | No | No | The type of the backend server. | Valid values:
|
| Description | String | No | Yes | The description of the backend server. | 1 to 80 characters. Supports letters, Chinese characters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_). |
Tags syntax
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags properties
| Property name | Type | Required | Update allowed | Description | Constraints |
| Key | String | Yes | No | The tag key. | 1 to 128 characters. Cannot start with aliyun or acs:. Cannot contain http:// or https://. |
| Value | String | No | No | The tag value. | 0 to 128 characters. Cannot start with aliyun or acs:. Cannot contain http:// or https://. |
Return value
Fn::GetAtt
LoadBalancerId: The ID of the new SLB instance.
Examples
-
JSONformat{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "SourceSLBId": { "AssociationProperty": "ALIYUN::SLB::Instance::InstanceId", "Type": "String", "Description": "The ID of the source SLB instance to clone." } }, "Resources": { "LoadBalancerClone": { "Type": "ALIYUN::SLB::LoadBalancerClone", "Properties": { "LoadBalancerName": "DemoCloneLoadBalancer", "SourceLoadBalancerId": { "Ref": "SourceSLBId" } } } }, "Outputs": { "LoadBalancerId": { "Description": "The ID of the generated SLB instance.", "Value": { "Fn::GetAtt": [ "LoadBalancerClone", "LoadBalancerId" ] } } } }
该文章对您有帮助吗?