DATASOURCE::SLB::DomainExtensions is used to query the domain name extensions that are added to a listener of a Server Load Balancer (SLB) instance.
Syntax
{
"Type": "DATASOURCE::SLB::DomainExtensions",
"Properties": {
"ListenerPort": Integer,
"DomainExtensionId": String,
"LoadBalancerId": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
ListenerPort | Integer | Yes | Yes | The frontend port used by the HTTPS listener of the SLB instance. | Valid values: 1 to 65535. |
DomainExtensionId | String | No | Yes | The ID of the domain name extension. | None. |
LoadBalancerId | String | Yes | Yes | The ID of the SLB instance. | None. |
Return values
Fn::GetAtt
- DomainExtensions: details of the domain name extensions.
- DomainExtensionIds: the IDs of the domain name extensions.
Property | Type | Description | Constraint |
---|---|---|---|
DomainExtensionIds | List | The IDs of the domain name extensions. | None. |
DomainExtensions | List | Details of the domain name extensions. | None. |
Domain | String | The domain name. | None. |
DomainExtensionId | String | The ID of the domain name extension. | None. |
ServerCertificateId | String | The ID of the server certificate that is used by the domain name. | None. |
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "LoadBalancerId": { "Type": "String", "AssociationProperty":"ALIYUN::SLB::Instance::InstanceId", "Description": "The ID of the CLB instance." } }, "Resources": { "ExtensionDataSource": { "Type": "DATASOURCE::SLB::DomainExtensions", "Properties": { "ListenerPort": 3566, "LoadBalancerId": { "Ref": "LoadBalancerId" } } } }, "Outputs": { "DomainExtensions": { "Description": "The list of domain extensions.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DomainExtensions" ] } }, "DomainExtensionIds": { "Description": "The list of domain extension IDs.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DomainExtensionIds" ] } } } }