ALIYUN::OOS::PatchBaseline類型用于創建一個補丁基線。
語法
{
"Type": "ALIYUN::OOS::PatchBaseline",
"Properties": {
"Description": String,
"PatchBaselineName": String,
"OperationSystem": String,
"ApprovalRules": Map,
"RejectedPatchesAction": String,
"Sources": List,
"ResourceGroupId": String,
"ApprovedPatchesEnableNonSecurity": Boolean,
"RejectedPatches": List,
"ApprovedPatches": List,
"Tags": List
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
Description | String | 否 | 是 | 補丁基線描述信息。 | 無 |
PatchBaselineName | String | 是 | 否 | 補丁基線名稱。 | 無 |
OperationSystem | String | 是 | 否 | 操作系統類型。 | 取值:
|
ApprovalRules | Map | 是 | 是 | 接受規則。 | 無 |
RejectedPatchesAction | String | 否 | 是 | 拒絕補丁的操作。 | 無 |
Sources | List | 否 | 是 | 補丁源配置列表。 | 無 |
ResourceGroupId | String | 否 | 是 | 資源組ID。 | 無 |
ApprovedPatchesEnableNonSecurity | Boolean | 否 | 是 | 批準補丁是否包括除安全性之外的更新。 | 無 |
RejectedPatches | List | 否 | 是 | 拒絕補丁的名稱。 | 無 |
ApprovedPatches | List | 否 | 是 | 批準補丁的列表。 | 無 |
Tags | List | 否 | 是 | 標簽列表。 | 更多信息,請參見Tags屬性。 |
Tags語法
"Tags": [
{
"Key": String,
"Value": String
}
]
Tags屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
Key | String | 是 | 否 | 標簽鍵。 | 無 |
Value | String | 否 | 否 | 標簽值。 | 無 |
返回值
Fn::GetAtt
IsDefault:是否為默認補丁基線。
UpdatedBy:補丁基線更新者。
Description:補丁基線描述信息。
CreatedBy:補丁基線創建者。
UpdatedDate:更新時間。
PatchBaselineName:補丁基線名稱。
CreateTime:創建時間。
OperationSystem:操作系統類型。
ApprovalRules:接受規則。
PatchBaselineId:補丁基線ID。
ShareType:補丁基線共享類型。
Tags: 補丁基線綁定的標簽。
RejectedPatches: 拒絕補丁的名稱列表。
Sources:補丁源配置列表。
RejectedPatchesAction:拒絕補丁的操作。
ResourceGroupId:資源組ID。
ApprovedPatchesEnableNonSecurity:批準補丁是否包括除安全性之外的更新。
ApprovedPatches:批準補丁的列表。
示例
YAML
格式
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
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"
]
}
}
}
}