首页 资源编排 资源类型 OOS ALIYUN::OOS::PatchBaseline

ALIYUN::OOS::PatchBaseline

ALIYUN::OOS::PatchBaseline类型用于创建一个补丁基线。

语法

{
  "Type": "ALIYUN::OOS::PatchBaseline",
  "Properties": {
    "Description": String,
    "PatchBaselineName": String,
    "OperationSystem": String,
    "ApprovalRules": Map
  }
}

属性

属性名称类型必须允许更新描述约束
DescriptionString补丁基线描述信息。
PatchBaselineNameString补丁基线名称。
OperationSystemString操作系统类型。取值:
  • Windows
  • Ubuntu
  • CentOS
  • Debian
  • AliyunLinux
  • RedhatEnterpriseLinux
  • Anolis
  • AlmaLinux
ApprovalRulesMap接受规则。

返回值

Fn::GetAtt

  • IsDefault:是否为默认补丁基线。
  • UpdatedBy:补丁基线更新者。
  • Description:补丁基线描述信息。
  • CreatedBy:补丁基线创建者。
  • UpdatedDate:更新时间。
  • PatchBaselineName:补丁基线名称。
  • CreateTime:创建时间。
  • OperationSystem:操作系统类型。
  • ApprovalRules:接受规则。
  • PatchBaselineId:补丁基线ID。
  • ShareType:补丁基线共享类型。

示例

  • 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"
            ]
          }
        }
      }
    }
阿里云首页 资源编排 相关技术圈