DATASOURCE::SWAS::Instances类型用于查询指定地域下,一个或多个实例的详细信息。
语法
{
"Type": "DATASOURCE::SWAS::Instances",
"Properties": {
"InstanceName": String,
"InstanceIds": List,
"PlanType": String,
"ResourceGroupId": String,
"RefreshOptions": String,
"Status": String
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
InstanceName |
String |
否 |
是 |
轻量应用服务器实例名称。 |
无 |
|
InstanceIds |
List |
否 |
是 |
轻量应用服务器的实例 ID列表。 |
无 |
|
PlanType |
String |
否 |
是 |
套餐类型。 |
可能值:
|
|
ResourceGroupId |
String |
否 |
是 |
轻量应用服务器所属的资源组 ID。 |
无 |
|
RefreshOptions |
String |
否 |
是 |
当资源栈更新时,数据源资源的刷新策略。 |
有效值:
|
|
Status |
String |
否 |
是 |
实例状态。 |
可能值:
|
返回值
Fn::GetAtt
-
Instances:轻量应用服务器详情信息组成列表。
-
InstanceIds:轻量应用服务器ID列表。
|
属性名称 |
类型 |
描述 |
约束 |
|
InstanceIds |
List |
轻量应用服务器ID列表。 |
无 |
|
Instances |
List |
轻量应用服务器详情信息组成列表。 |
无 |
|
DisableReason |
String |
资源被禁用的原因。 |
无 |
|
Status |
String |
实例状态。 |
无 |
|
ResourceGroupId |
String |
轻量应用服务器所属的资源组 ID。 |
无 |
|
InstanceId |
String |
轻量应用服务器的实例 ID。 |
无 |
|
PlanId |
String |
套餐 ID。 |
无 |
|
ResourceSpec |
Map |
资源规格。 |
示例:
|
|
DdosStatus |
String |
DDos 状态。 |
无 |
|
Image |
Map |
镜像的说明信息。 |
示例:
|
|
BusinessStatus |
String |
服务器状态。 |
无 |
|
PublicIpAddress |
String |
轻量应用服务器的公网 IP。 |
无 |
|
InstanceName |
String |
轻量应用服务器实例名称。 |
无 |
|
InnerIpAddress |
String |
内网 IP 地址。 |
无 |
|
NetworkAttributes |
List |
网络返回信息。 |
示例:
|
|
Uuid |
String |
实例的 UUID。 |
无 |
|
Combination |
String |
是否为组合套餐。 |
无 |
|
ChargeType |
String |
实例的计费方式。 |
无 |
|
ExpiredTime |
String |
到期时间。 |
无 |
|
CreationTime |
String |
创建时间。 |
无 |
|
ImageId |
String |
镜像 ID。 |
无 |
|
PlanType |
String |
套餐类型, |
无 |
|
Disks |
List |
轻量对应磁盘信息的数组。 |
|
|
RegionId |
String |
轻量应用服务器所属的地域 ID。 |
无 |
|
Tags |
List |
实例的标签列表。 |
无 |
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceIds:
Type: Json
Description:
en: The IDs of instances.
Required: false
MinLength: 1
MaxLength: 100
Resources:
Instances:
Type: DATASOURCE::SWAS::Instances
Properties:
InstanceIds:
Ref: InstanceIds
Outputs:
Instances:
Description: The list of instances.
Value:
Fn::GetAtt:
- Instances
- Instances
InstanceIds:
Description: The list of instance IDs.
Value:
Fn::GetAtt:
- Instances
- InstanceIds
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceIds": {
"Type": "Json",
"Description": {
"en": "The IDs of instances."
},
"Required": false,
"MinLength": 1,
"MaxLength": 100
}
},
"Resources": {
"Instances": {
"Type": "DATASOURCE::SWAS::Instances",
"Properties": {
"InstanceIds": {
"Ref": "InstanceIds"
}
}
}
},
"Outputs": {
"Instances": {
"Description": "The list of instances.",
"Value": {
"Fn::GetAtt": [
"Instances",
"Instances"
]
}
},
"InstanceIds": {
"Description": "The list of instance IDs.",
"Value": {
"Fn::GetAtt": [
"Instances",
"InstanceIds"
]
}
}
}
}