ALIYUN::OOS::PatchBaseline
ALIYUN::OOS::PatchBaseline类型用于创建一个补丁基线。
语法
{
"Type": "ALIYUN::OOS::PatchBaseline",
"Properties": {
"Description": String,
"PatchBaselineName": String,
"OperationSystem": String,
"ApprovalRules": Map
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
Description | String | 否 | 是 | 补丁基线描述信息。 | 无 |
PatchBaselineName | String | 是 | 否 | 补丁基线名称。 | 无 |
OperationSystem | String | 是 | 否 | 操作系统类型。 | 取值:
|
ApprovalRules | Map | 是 | 是 | 接受规则。 | 无 |
返回值
Fn::GetAtt
- IsDefault:是否为默认补丁基线。
- UpdatedBy:补丁基线更新者。
- Description:补丁基线描述信息。
- CreatedBy:补丁基线创建者。
- UpdatedDate:更新时间。
- PatchBaselineName:补丁基线名称。
- CreateTime:创建时间。
- OperationSystem:操作系统类型。
- ApprovalRules:接受规则。
- PatchBaselineId:补丁基线ID。
- ShareType:补丁基线共享类型。
示例
JSON
格式{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { }, "Resources": { "ExtensionResource": { "Type": "ALIYUN::OOS::PatchBaseline", "Properties": { "PatchBaselineName": "MyPatchBaseline", "OperationSystem": "Windows", "ApprovalRules": { "PatchRules": [ { "PatchFilterGroup": [ { "Key": "PatchSet", "Values": [ "OS" ] }, { "Key": "ProductFamily", "Values": [ "Windows" ] }, { "Key": "Product", "Values": [ "Windows 10", "Windows 7" ] }, { "Key": "Classification", "Values": [ "Security Updates", "Updates", "Update Rollups", "Critical Updates" ] }, { "Key": "Severity", "Values": [ "Critical", "Important", "Moderate" ] } ], "ApproveAfterDays": 7, "EnableNonSecurity": true, "ComplianceLevel": "Medium" } ] } } } }, "Outputs": { "IsDefault": { "Description": "Indicates whether the patch baseline is set as the default patch baseline.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "IsDefault" ] } }, "UpdatedBy": { "Description": "The user who last modified the patch baseline.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "UpdatedBy" ] } }, "Description": { "Description": "The description of the patch baseline.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "Description" ] } }, "CreatedBy": { "Description": "The creator of the patch baseline.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "CreatedBy" ] } }, "UpdatedDate": { "Description": "The time when the patch baseline was last modified.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "UpdatedDate" ] } }, "PatchBaselineName": { "Description": "The name of the patch baseline.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "PatchBaselineName" ] } }, "CreateTime": { "Description": "The time when the patch baseline was created.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "CreateTime" ] } }, "OperationSystem": { "Description": "The type of the operating system.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "OperationSystem" ] } }, "ApprovalRules": { "Description": "The rules of scanning and installing patches for the specified operating system.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "ApprovalRules" ] } }, "PatchBaselineId": { "Description": "The ID of the patch baseline.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "PatchBaselineId" ] } }, "ShareType": { "Description": "The share type of the patch baseline.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "ShareType" ] } } } }