DATASOURCE::SLB::LoadBalancer类型用于查询指定负载均衡实例的详细信息。
语法
{
"Type": "DATASOURCE::SLB::LoadBalancer",
"Properties": {
"LoadBalancerId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
LoadBalancerId | String | 是 | 是 | 传统型负载均衡实例 ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
RenewalDuration:自动续费时长。
AddressIpVersion:IP 版本。
ListenerPortsAndProtocal:监听端口或协议。
EndTime:传统型负载均衡实例结束时间。
ResourceGroupId:企业资源组 ID。
Address:传统型负载均衡实例的服务地址。
InstanceChargeType:实例计费方式。
ListenerPortsAndProtocol:实例前端使用的端口和协议。
LoadBalancerId:传统型负载均衡实例的 ID。
BackendServers:实例的后端服务器列表。
ModificationProtectionStatus:传统型负载均衡修改保护状态。
LoadBalancerSpec:传统型负载均衡实例的性能规格。
NetworkType:传统型负载均衡实例的网络类型。
Bandwidth:按带宽计费的公网型实例的带宽峰值。
ModificationProtectionReason:设置修改保护状态的原因
PaymentType:付费类型。
Tags:标签列表。
MasterZoneId:传统型负载均衡实例的主可用区 ID。
VSwitchId:私网实例的交换机 ID。
CreateTime:传统型负载均衡实例的创建时间。
RenewalStatus:续费状态。
RenewalCycUnit:自动续费周期。
SlaveZoneId:传统型负载均衡实例的备可用区 ID。
InternetChargeType:公网类型实例付费方式。
RegionIdAlias:传统型负载均衡实例所属的地域别名。
LoadBalancerName:传统型负载均衡实例的名称。
VpcId:传统型负载均衡私网实例的专有网络 ID。
DeleteProtection:是否开启实例删除保护。
EndTimeStamp:传统型负载均衡实例结束时间戳。
AddressType:传统型负载均衡实例的地址类型。
CreateTimeStamp:传统型负载均衡实例创建时间戳。
AutoReleaseTime:释放时间的时间戳。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
LoadBalancerId:
Type: String
Description:
en: The CLB instance ID.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::SLB::LoadBalancer
Properties:
LoadBalancerId:
Ref: LoadBalancerId
Outputs:
RenewalDuration:
Description: The auto-renewal duration. This parameter is valid only if RenewalStatus is set to AutoRenewal.
Value:
Fn::GetAtt:
- ExtensionDataSource
- RenewalDuration
AddressIpVersion:
Description: 'The version of the IP address. Valid values: ipv4 and ipv6.'
Value:
Fn::GetAtt:
- ExtensionDataSource
- AddressIpVersion
ListenerPortsAndProtocal:
Description: The ports or protocols of the listeners.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ListenerPortsAndProtocal
EndTime:
Description: The time when the CLB instance expires.
Value:
Fn::GetAtt:
- ExtensionDataSource
- EndTime
ResourceGroupId:
Description: The resource group ID.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceGroupId
Address:
Description: The service IP address of the CLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Address
InstanceChargeType:
Description: Instance billing method.
Value:
Fn::GetAtt:
- ExtensionDataSource
- InstanceChargeType
ListenerPortsAndProtocol:
Description: The ports or protocols of the listeners.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ListenerPortsAndProtocol
LoadBalancerId:
Description: The CLB instance ID.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LoadBalancerId
BackendServers:
Description: The backend servers of the CLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- BackendServers
ModificationProtectionStatus:
Description: Load balancing modifies the protection state.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ModificationProtectionStatus
LoadBalancerSpec:
Description: The specification of the CLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LoadBalancerSpec
NetworkType:
Description: The network type of the CLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- NetworkType
Bandwidth:
Description: The maximum bandwidth of the Internet-facing CLB instance that is billed on a pay-by-bandwidth basis.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Bandwidth
ModificationProtectionReason:
Description: 'The reason why the configuration read-only mode is enabled. '
Value:
Fn::GetAtt:
- ExtensionDataSource
- ModificationProtectionReason
PaymentType:
Description: Load balancing instance payment type.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PaymentType
Tags:
Description: The tags of the CLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Tags
MasterZoneId:
Description: The ID of the primary zone to which the CLB instance belongs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- MasterZoneId
VSwitchId:
Description: The ID of the vSwitch to which the internal-facing CLB instance belongs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- VSwitchId
CreateTime:
Description: The time when the CLB instance was created.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
RenewalStatus:
Description: Indicates whether auto-renewal is enabled.
Value:
Fn::GetAtt:
- ExtensionDataSource
- RenewalStatus
RenewalCycUnit:
Description: 'The auto-renewal cycle. Valid values: Year and Month. Default value: Month.'
Value:
Fn::GetAtt:
- ExtensionDataSource
- RenewalCycUnit
SlaveZoneId:
Description: The ID of the secondary zone to which the CLB instance belongs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SlaveZoneId
InternetChargeType:
Description: The metering method of the Internet-facing CLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- InternetChargeType
RegionIdAlias:
Description: The alias of the region to which the CLB instance belongs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- RegionIdAlias
LoadBalancerName:
Description: The name of the CLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LoadBalancerName
VpcId:
Description: The ID of the virtual private cloud (VPC) where the internal-facing CLB instance is deployed.
Value:
Fn::GetAtt:
- ExtensionDataSource
- VpcId
DeleteProtection:
Description: Indicates whether deletion protection is enabled for the CLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DeleteProtection
EndTimeStamp:
Description: The timestamp that indicates the expiration time of the CLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- EndTimeStamp
AddressType:
Description: The address type of the CLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- AddressType
CreateTimeStamp:
Description: The timestamp generated when the CA certificate is uploaded.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTimeStamp
AutoReleaseTime:
Description: The timestamp generated when the CLB instance is released.
Value:
Fn::GetAtt:
- ExtensionDataSource
- AutoReleaseTime
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"LoadBalancerId": {
"Type": "String",
"Description": {
"en": "The CLB instance ID."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::SLB::LoadBalancer",
"Properties": {
"LoadBalancerId": {
"Ref": "LoadBalancerId"
}
}
}
},
"Outputs": {
"RenewalDuration": {
"Description": "The auto-renewal duration. This parameter is valid only if RenewalStatus is set to AutoRenewal.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"RenewalDuration"
]
}
},
"AddressIpVersion": {
"Description": "The version of the IP address. Valid values: ipv4 and ipv6.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"AddressIpVersion"
]
}
},
"ListenerPortsAndProtocal": {
"Description": "The ports or protocols of the listeners.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ListenerPortsAndProtocal"
]
}
},
"EndTime": {
"Description": "The time when the CLB instance expires.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"EndTime"
]
}
},
"ResourceGroupId": {
"Description": "The resource group ID.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceGroupId"
]
}
},
"Address": {
"Description": "The service IP address of the CLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Address"
]
}
},
"InstanceChargeType": {
"Description": "Instance billing method.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"InstanceChargeType"
]
}
},
"ListenerPortsAndProtocol": {
"Description": "The ports or protocols of the listeners.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ListenerPortsAndProtocol"
]
}
},
"LoadBalancerId": {
"Description": "The CLB instance ID.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LoadBalancerId"
]
}
},
"BackendServers": {
"Description": "The backend servers of the CLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"BackendServers"
]
}
},
"ModificationProtectionStatus": {
"Description": "Load balancing modifies the protection state.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ModificationProtectionStatus"
]
}
},
"LoadBalancerSpec": {
"Description": "The specification of the CLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LoadBalancerSpec"
]
}
},
"NetworkType": {
"Description": "The network type of the CLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"NetworkType"
]
}
},
"Bandwidth": {
"Description": "The maximum bandwidth of the Internet-facing CLB instance that is billed on a pay-by-bandwidth basis.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Bandwidth"
]
}
},
"ModificationProtectionReason": {
"Description": "The reason why the configuration read-only mode is enabled. ",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ModificationProtectionReason"
]
}
},
"PaymentType": {
"Description": "Load balancing instance payment type.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PaymentType"
]
}
},
"Tags": {
"Description": "The tags of the CLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Tags"
]
}
},
"MasterZoneId": {
"Description": "The ID of the primary zone to which the CLB instance belongs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"MasterZoneId"
]
}
},
"VSwitchId": {
"Description": "The ID of the vSwitch to which the internal-facing CLB instance belongs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"VSwitchId"
]
}
},
"CreateTime": {
"Description": "The time when the CLB instance was created.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"RenewalStatus": {
"Description": "Indicates whether auto-renewal is enabled.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"RenewalStatus"
]
}
},
"RenewalCycUnit": {
"Description": "The auto-renewal cycle. Valid values: Year and Month. Default value: Month.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"RenewalCycUnit"
]
}
},
"SlaveZoneId": {
"Description": "The ID of the secondary zone to which the CLB instance belongs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SlaveZoneId"
]
}
},
"InternetChargeType": {
"Description": "The metering method of the Internet-facing CLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"InternetChargeType"
]
}
},
"RegionIdAlias": {
"Description": "The alias of the region to which the CLB instance belongs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"RegionIdAlias"
]
}
},
"LoadBalancerName": {
"Description": "The name of the CLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LoadBalancerName"
]
}
},
"VpcId": {
"Description": "The ID of the virtual private cloud (VPC) where the internal-facing CLB instance is deployed.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"VpcId"
]
}
},
"DeleteProtection": {
"Description": "Indicates whether deletion protection is enabled for the CLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DeleteProtection"
]
}
},
"EndTimeStamp": {
"Description": "The timestamp that indicates the expiration time of the CLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"EndTimeStamp"
]
}
},
"AddressType": {
"Description": "The address type of the CLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"AddressType"
]
}
},
"CreateTimeStamp": {
"Description": "The timestamp generated when the CA certificate is uploaded.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTimeStamp"
]
}
},
"AutoReleaseTime": {
"Description": "The timestamp generated when the CLB instance is released.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"AutoReleaseTime"
]
}
}
}
}
- 本页导读 (1)
- 语法
- 属性
- 返回值
- 示例