All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::OOS::PatchBaseline

Last Updated:Apr 19, 2024

DATASOURCE::OOS::PatchBaseline is used to query a patch baseline.

Syntax

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

Properties

Property

Type

Required

Editable

Description

Constraint

PatchBaselineName

String

Yes

Yes

The name of the patch baseline.

None.

Return values

Fn::GetAtt

  • IsDefault: indicates whether the patch baseline is the default patch baseline.

  • Description: the description of the patch baseline.

  • CreatedBy: the user who created the patch baseline.

  • ResourceGroupId: the ID of the resource group.

  • UpdatedDate: the time when the patch baseline was updated.

  • CreateTime: the time when the patch baseline was created.

  • OperationSystem: the OS type.

  • ApprovalRules: the rules for scanning and installing patches for the OS.

  • Sources: the patch source configurations.

  • RejectedPatches: the names of the rejected patches.

  • ApprovedPatches: the names of the approved patches.

  • RejectedPatchesAction: the action of the rejected patch.

  • UpdatedBy: the user who updated the patch baseline.

  • PatchBaselineName: the name of the patch baseline.

  • ApprovedPatchesEnableNonSecurity: indicates whether the approved patch involves updates other than security-related updates.

  • PatchBaselineId: the ID of the patch baseline.

  • Tags: the tags.

  • ShareType: the share type of the patch baseline.

Examples

  • YAML format

    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
                            
  • JSON format

    {
      "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"
            ]
          }
        }
      }
    }