DATASOURCE::OOS::PatchBaselines类型用于获取补丁基线列表。
语法
{
  "Type": "DATASOURCE::OOS::PatchBaselines",
  "Properties": {
    "PatchBaselineName": String,
    "OperationSystem": String,
    "ShareType": String,
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| PatchBaselineName | String | 否 | 是 | 补丁基线名称。 | 无 | 
| OperationSystem | String | 否 | 是 | 操作系统类型。 | 取值: 
 | 
| ShareType | String | 否 | 是 | 补丁基线共享类型。 | 无 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值: 
 | 
返回值
Fn::GetAtt
- PatchBaselineNames:补丁基线名称列表。 
- PatchBaselines:补丁基线列表。 
| 属性名称 | 类型 | 描述 | 约束 | 
| PatchBaselineNames | List | 补丁基线名称列表。 | 无 | 
| PatchBaselines | List | 补丁基线列表。 | 无 | 
| Description | string | 补丁基线描述信息。 | 无 | 
| PatchBaselineName | string | 补丁基线名称。 | 无 | 
| ShareType | string | 补丁基线共享类型。 | 无 | 
| PatchBaselineId | string | 补丁基线ID。 | 无 | 
| UpdatedDate | string | 更新时间。 | 无 | 
| UpdatedBy | string | 补丁基线更新者。 | 无 | 
| CreatedBy | string | 补丁基线创建者。 | 无 | 
| OperationSystem | string | 操作系统类型。 | 无 | 
| CreateTime | string | 创建时间。 | 无 | 
| IsDefault | boolean | 是否为默认补丁基线。 | 取值: 
 | 
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::OOS::PatchBaselines
    Properties:
      OperationSystem: Windows
Outputs:
  PatchBaselineNames:
    Description: The list of patch baseline names.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - PatchBaselineNames
  PatchBaselines:
    Description: The list of patch baselines.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - PatchBaselines{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::OOS::PatchBaselines",
      "Properties": {
        "OperationSystem": "Windows"
      }
    }
  },
  "Outputs": {
    "PatchBaselineNames": {
      "Description": "The list of patch baseline names.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PatchBaselineNames"
        ]
      }
    },
    "PatchBaselines": {
      "Description": "The list of patch baselines.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PatchBaselines"
        ]
      }
    }
  }
}该文章对您有帮助吗?