全部产品
Search
文档中心

资源编排:DATASOURCE::OOS::PatchBaseline

更新时间:Nov 01, 2024

DATASOURCE::OOS::PatchBaseline类型用于获取补丁基线。

语法

{
  "Type": "DATASOURCE::OOS::PatchBaseline",
  "Properties": {
    "PatchBaselineName": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

PatchBaselineName

String

补丁基线名称。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

Fn::GetAtt

  • IsDefault:是否为默认补丁基线。

  • Description:补丁基线描述信息。

  • CreatedBy:补丁基线创建者。

  • ResourceGroupId:资源组ID。

  • UpdatedDate:更新时间。

  • CreateTime:创建时间。

  • OperationSystem:操作系统类型。

  • ApprovalRules:接受规则。

  • Sources:补丁源配置列表

  • RejectedPatches:拒绝补丁的名称。

  • ApprovedPatches:批准补丁的列表。

  • RejectedPatchesAction:拒绝补丁的操作。

  • UpdatedBy:补丁基线更新者。

  • PatchBaselineName:补丁基线名称。

  • ApprovedPatchesEnableNonSecurity:批准补丁是否包括除安全性之外的更新

  • PatchBaselineId:补丁基线ID。

  • Tags:标签。

  • ShareType:补丁基线共享类型。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  PatchBaselineName:
    Description:
      en: The name of the patch baseline.
    Required: true
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      PatchBaselineName:
        Ref: PatchBaselineName
    Type: DATASOURCE::OOS::PatchBaseline
Outputs:
  ApprovalRules:
    Description: Accept the rules.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ApprovalRules
  ApprovedPatches:
    Description: Approved patch list.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ApprovedPatches
  ApprovedPatchesEnableNonSecurity:
    Description: Approve whether the patch includes updates other than security.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ApprovedPatchesEnableNonSecurity
  CreateTime:
    Description: Creation time.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - CreateTime
  CreatedBy:
    Description: Patch baseline creator.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - CreatedBy
  Description:
    Description: Patches baseline description information.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Description
  IsDefault:
    Description: Whether it is the default patch baseline.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - IsDefault
  OperationSystem:
    Description: Operating system type.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - OperationSystem
  PatchBaselineId:
    Description: Patch baseline ID.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - PatchBaselineId
  PatchBaselineName:
    Description: The name of the patch baseline.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - PatchBaselineName
  RejectedPatches:
    Description: Reject the name of the patch.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - RejectedPatches
  RejectedPatchesAction:
    Description: The operation of rejecting the patch.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - RejectedPatchesAction
  ResourceGroupId:
    Description: Approve whether the patch includes updates other than security
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ResourceGroupId
  ShareType:
    Description: Patch baseline sharing type.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ShareType
  Sources:
    Description: Patch source configuration list.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Sources
  Tags:
    Description: Tags of patch baseline.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Tags
  UpdatedBy:
    Description: Patch baseline updater.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - UpdatedBy
  UpdatedDate:
    Description: Update time.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - UpdatedDate
                        
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "PatchBaselineName": {
      "Type": "String",
      "Description": {
        "en": "The name of the patch baseline."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::OOS::PatchBaseline",
      "Properties": {
        "PatchBaselineName": {
          "Ref": "PatchBaselineName"
        }
      }
    }
  },
  "Outputs": {
    "IsDefault": {
      "Description": "Whether it is the default patch baseline.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "IsDefault"
        ]
      }
    },
    "Description": {
      "Description": "Patches baseline description information.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "CreatedBy": {
      "Description": "Patch baseline creator.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreatedBy"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "Approve whether the patch includes updates other than security",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceGroupId"
        ]
      }
    },
    "UpdatedDate": {
      "Description": "Update time.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "UpdatedDate"
        ]
      }
    },
    "CreateTime": {
      "Description": "Creation time.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "OperationSystem": {
      "Description": "Operating system type.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "OperationSystem"
        ]
      }
    },
    "ApprovalRules": {
      "Description": "Accept the rules.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ApprovalRules"
        ]
      }
    },
    "Sources": {
      "Description": "Patch source configuration list.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Sources"
        ]
      }
    },
    "RejectedPatches": {
      "Description": "Reject the name of the patch.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RejectedPatches"
        ]
      }
    },
    "ApprovedPatches": {
      "Description": "Approved patch list.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ApprovedPatches"
        ]
      }
    },
    "RejectedPatchesAction": {
      "Description": "The operation of rejecting the patch.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RejectedPatchesAction"
        ]
      }
    },
    "UpdatedBy": {
      "Description": "Patch baseline updater.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "UpdatedBy"
        ]
      }
    },
    "PatchBaselineName": {
      "Description": "The name of the patch baseline.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PatchBaselineName"
        ]
      }
    },
    "ApprovedPatchesEnableNonSecurity": {
      "Description": "Approve whether the patch includes updates other than security.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ApprovedPatchesEnableNonSecurity"
        ]
      }
    },
    "PatchBaselineId": {
      "Description": "Patch baseline ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PatchBaselineId"
        ]
      }
    },
    "Tags": {
      "Description": "Tags of patch baseline.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Tags"
        ]
      }
    },
    "ShareType": {
      "Description": "Patch baseline sharing type.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ShareType"
        ]
      }
    }
  }
}