DATASOURCE::CloudPhone::KeyPairs类型用于查询密钥对信息。
语法
{
"Type": "DATASOURCE::CloudPhone::KeyPairs",
"Properties": {
"KeyPairFingerPrint": String,
"KeyPairName": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
KeyPairFingerPrint | String | 否 | 是 | 密钥对的指纹。 | 根据RFC4716定义的公钥指纹格式,采用MD5信息摘要算法。 |
KeyPairName | String | 否 | 是 | 密钥对的名称。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
KeyPairs:密钥对详细信息列表。
KeyPairNames:密钥对的名称列表。
属性名称 | 类型 | 描述 | 约束 |
属性名称 | 类型 | 描述 | 约束 |
KeyPairNames | List | 密钥对的名称列表。 | 无 |
KeyPairs | List | 密钥对详细信息列表。 | 无 |
KeyPairFingerPrint | String | 密钥对的指纹。 | 无 |
CreateTime | String | 密钥对的创建时间。 | 无 |
KeyPairName | String | 密钥对的名称。 | 无 |
示例
YAML格式
JSON格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
KeyPairName:
Description: The Key Name.
Type: String
Resources:
ExtensionDataSource:
Properties:
KeyPairName:
Ref: KeyPairName
Type: DATASOURCE::CloudPhone::KeyPairs
Outputs:
KeyPairNames:
Description: The list of key pair names.
Value:
Fn::GetAtt:
- ExtensionDataSource
- KeyPairNames
KeyPairs:
Description: The list of key pairs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- KeyPairs
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"KeyPairName": {
"Type": "String",
"Description": "The Key Name."
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::CloudPhone::KeyPairs",
"Properties": {
"KeyPairName": {
"Ref": "KeyPairName"
}
}
}
},
"Outputs": {
"KeyPairs": {
"Description": "The list of key pairs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"KeyPairs"
]
}
},
"KeyPairNames": {
"Description": "The list of key pair names.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"KeyPairNames"
]
}
}
}
}
该文章对您有帮助吗?
- 本页导读 (1)
- 语法
- 属性
- 返回值
- 示例