DATASOURCE::PaiDswApi::Instance类型用于查询单个DSW实例基础信息。
语法
{
"Type": "DATASOURCE::PaiDswApi::Instance",
"Properties": {
"InstanceId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
InstanceId | String | 是 | 是 | 实例ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
Datasets:数据集集合。
InstanceName:实例名称。
Accessibility:工作空间内是否他人可见。
InstanceId:实例ID。
WorkspaceId:工作空间ID。
ImageUrl:镜像地址。
PaymentType:资源的支付类型。
EcsSpec:实例对应的ECS规格。
Labels:用户自定义标签。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceId:
Type: String
Description:
en: The first ID of the resource.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::PaiDswApi::Instance
Properties:
InstanceId:
Ref: InstanceId
Outputs:
Datasets:
Description: A collection of datasets.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Datasets
InstanceName:
Description: The instance name.
Value:
Fn::GetAtt:
- ExtensionDataSource
- InstanceName
Accessibility:
Description: Whether the workspace is visible to others.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Accessibility
InstanceId:
Description: The ID of the resource.
Value:
Fn::GetAtt:
- ExtensionDataSource
- InstanceId
WorkspaceId:
Description: The Id of the workspace.
Value:
Fn::GetAtt:
- ExtensionDataSource
- WorkspaceId
ImageUrl:
Description: The mirror address.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ImageUrl
PaymentType:
Description: The payment type of the resource.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PaymentType
EcsSpec:
Description: The ECS specification of the instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- EcsSpec
Labels:
Description: User-defined labels.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Labels
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceId": {
"Type": "String",
"Description": {
"en": "The first ID of the resource."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::PaiDswApi::Instance",
"Properties": {
"InstanceId": {
"Ref": "InstanceId"
}
}
}
},
"Outputs": {
"Datasets": {
"Description": "A collection of datasets.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Datasets"
]
}
},
"InstanceName": {
"Description": "The instance name.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"InstanceName"
]
}
},
"Accessibility": {
"Description": "Whether the workspace is visible to others.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Accessibility"
]
}
},
"InstanceId": {
"Description": "The ID of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"InstanceId"
]
}
},
"WorkspaceId": {
"Description": "The Id of the workspace.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"WorkspaceId"
]
}
},
"ImageUrl": {
"Description": "The mirror address.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ImageUrl"
]
}
},
"PaymentType": {
"Description": "The payment type of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PaymentType"
]
}
},
"EcsSpec": {
"Description": "The ECS specification of the instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"EcsSpec"
]
}
},
"Labels": {
"Description": "User-defined labels.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Labels"
]
}
}
}
}
文档内容是否对您有帮助?