DATASOURCE::NLB::LoadBalancer类型用于查询单个网络型负载均衡实例的基本信息。
语法
{
"Type": "DATASOURCE::NLB::LoadBalancer",
"Properties": {
"LoadBalancerId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
LoadBalancerId | String | 否 | 是 | 网络型负载均衡实例的ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
AddressIpVersion:协议版本。
ResourceGroupId:资源组ID。
LoadBalancerBillingConfig:计费配置。
Cps:每秒新建连接数。
CreateTime:资源创建时间。
LoadBalancerId:网络型负载均衡实例ID。
DNSName:DNS域名。
ZoneMappings:可用区及交换机映射列表。
ModificationProtectionConfig:修改保护配置。
SecurityGroupIds:网络型负载均衡实例加入的安全组。
OperationLocks:NLB锁定原因类型。
Ipv6AddressType:网络型负载均衡的IPv6地址类型。
CrossZoneEnabled:网络型负载均衡实例是否开启跨可用区。
LoadBalancerType:负载均衡实例类型。
LoadBalancerName:网络型负载均衡实例名称。
DeletionProtectionConfig:删除保护配置。
VpcId:网络型负载均衡实例的专有网络ID。
BandwidthPackageId:公网类型实例关联的共享带宽包ID。
RegionId:网络型负载均衡实例的所属地域ID。
AddressType:网络型负载均衡的IPv4地址类型。
LoadBalancerBusinessStatus:网络型负载均衡的业务状态。
LoadBalancerStatus:网络型负载均衡实例状态。
Tags:标签列表。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
LoadBalancerId:
Type: String
Description:
en: ID of the LoadBalancer.
Required: false
Resources:
ExtensionDataSource:
Type: DATASOURCE::NLB::LoadBalancer
Properties:
LoadBalancerId:
Ref: LoadBalancerId
Outputs:
AddressIpVersion:
Description: The protocol version.
Value:
Fn::GetAtt:
- ExtensionDataSource
- AddressIpVersion
ResourceGroupId:
Description: The ID of the resource group.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceGroupId
LoadBalancerBillingConfig:
Description: The billing information of the NLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LoadBalancerBillingConfig
Cps:
Description: The maximum number of new connections per second supported by the NLB instance in each zone (virtual IP address).
Value:
Fn::GetAtt:
- ExtensionDataSource
- Cps
CreateTime:
Description: The time when the NLB instance was created.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
LoadBalancerId:
Description: ID of the LoadBalancer.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LoadBalancerId
DNSName:
Description: The domain name of the NLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DNSName
ZoneMappings:
Description: The list of zones and vSwitches in the zones.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ZoneMappings
ModificationProtectionConfig:
Description: The configuration of the configuration read-only mode.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ModificationProtectionConfig
SecurityGroupIds:
Description: The ID of the security group associated with the NLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SecurityGroupIds
OperationLocks:
Description: The information about the locked NLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- OperationLocks
Ipv6AddressType:
Description: The IPv6 network type of the NLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Ipv6AddressType
CrossZoneEnabled:
Description: Indicates whether the NLB instance is accessible across zones.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CrossZoneEnabled
LoadBalancerType:
Description: The type of the Server Load Balancer (SLB) instance. Set the value to network, which specifies NLB.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LoadBalancerType
LoadBalancerName:
Description: The NLB instance name.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LoadBalancerName
DeletionProtectionConfig:
Description: The configuration of the deletion protection feature.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DeletionProtectionConfig
VpcId:
Description: The VPC ID of the NLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- VpcId
BandwidthPackageId:
Description: The ID of the EIP bandwidth plan.
Value:
Fn::GetAtt:
- ExtensionDataSource
- BandwidthPackageId
RegionId:
Description: The region ID of the NLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- RegionId
AddressType:
Description: The IPv4 network type of the NLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- AddressType
LoadBalancerBusinessStatus:
Description: The status of workloads on the NLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LoadBalancerBusinessStatus
LoadBalancerStatus:
Description: The NLB instance status.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LoadBalancerStatus
Tags:
Description: The tags of the resource.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Tags
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"LoadBalancerId": {
"Type": "String",
"Description": {
"en": "ID of the LoadBalancer."
},
"Required": false
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::NLB::LoadBalancer",
"Properties": {
"LoadBalancerId": {
"Ref": "LoadBalancerId"
}
}
}
},
"Outputs": {
"AddressIpVersion": {
"Description": "The protocol version.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"AddressIpVersion"
]
}
},
"ResourceGroupId": {
"Description": "The ID of the resource group.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceGroupId"
]
}
},
"LoadBalancerBillingConfig": {
"Description": "The billing information of the NLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LoadBalancerBillingConfig"
]
}
},
"Cps": {
"Description": "The maximum number of new connections per second supported by the NLB instance in each zone (virtual IP address).",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Cps"
]
}
},
"CreateTime": {
"Description": "The time when the NLB instance was created.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"LoadBalancerId": {
"Description": "ID of the LoadBalancer.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LoadBalancerId"
]
}
},
"DNSName": {
"Description": "The domain name of the NLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DNSName"
]
}
},
"ZoneMappings": {
"Description": "The list of zones and vSwitches in the zones.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ZoneMappings"
]
}
},
"ModificationProtectionConfig": {
"Description": "The configuration of the configuration read-only mode.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ModificationProtectionConfig"
]
}
},
"SecurityGroupIds": {
"Description": "The ID of the security group associated with the NLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SecurityGroupIds"
]
}
},
"OperationLocks": {
"Description": "The information about the locked NLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"OperationLocks"
]
}
},
"Ipv6AddressType": {
"Description": "The IPv6 network type of the NLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Ipv6AddressType"
]
}
},
"CrossZoneEnabled": {
"Description": "Indicates whether the NLB instance is accessible across zones.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CrossZoneEnabled"
]
}
},
"LoadBalancerType": {
"Description": "The type of the Server Load Balancer (SLB) instance. Set the value to network, which specifies NLB.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LoadBalancerType"
]
}
},
"LoadBalancerName": {
"Description": "The NLB instance name.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LoadBalancerName"
]
}
},
"DeletionProtectionConfig": {
"Description": "The configuration of the deletion protection feature.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DeletionProtectionConfig"
]
}
},
"VpcId": {
"Description": "The VPC ID of the NLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"VpcId"
]
}
},
"BandwidthPackageId": {
"Description": "The ID of the EIP bandwidth plan.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"BandwidthPackageId"
]
}
},
"RegionId": {
"Description": "The region ID of the NLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"RegionId"
]
}
},
"AddressType": {
"Description": "The IPv4 network type of the NLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"AddressType"
]
}
},
"LoadBalancerBusinessStatus": {
"Description": "The status of workloads on the NLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LoadBalancerBusinessStatus"
]
}
},
"LoadBalancerStatus": {
"Description": "The NLB instance status.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LoadBalancerStatus"
]
}
},
"Tags": {
"Description": "The tags of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Tags"
]
}
}
}
}