All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::OOS::PatchBaselines

Last Updated:Mar 27, 2023

DATASOURCE::OOS::PatchBaselines is used to query patch baselines.

Syntax

{
  "Type": "DATASOURCE::OOS::PatchBaselines",
  "Properties": {
    "PatchBaselineName": String,
    "OperationSystem": String,
    "ShareType": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

PatchBaselineName

String

No

Yes

The name of the patch baseline.

None.

OperationSystem

String

No

Yes

The type of the OS.

Valid values:

  • AliyunLinux

  • Windows

  • Ubuntu

  • Centos

  • Debian

  • RedhatEnterpriseLinux

  • Anolis

ShareType

String

No

Yes

The share type of the patch baseline.

None.

Return values

Fn::GetAtt

  • PatchBaselineNames: the names of the patch baselines.

  • PatchBaselines: details of the patch baselines.

Property

Type

Description

Constraint

PatchBaselineNames

List

The names of the patch baselines.

None.

PatchBaselines

List

Details of the patch baselines.

None.

Description

string

The description of the patch baseline.

None.

PatchBaselineName

string

The name of the patch baseline.

None.

ShareType

string

The share type of the patch baseline.

None.

PatchBaselineId

string

The ID of the patch baseline.

None.

UpdatedDate

string

The time when the patch baseline was updated.

None.

UpdatedBy

string

The user who updated the patch baseline.

None.

CreatedBy

string

The user who created the patch baseline.

None.

OperationSystem

string

The type of the OS.

None.

CreateTime

string

The time when the patch baseline was created.

None.

IsDefault

boolean

Indicates whether the patch baseline is the default patch baseline.

Valid values:

  • true

  • false

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters: {}
    Resources:
      ExtensionDataSource:
        Type: DATASOURCE::OOS::PatchBaselines
        Properties:
          OperationSystem: Windows
    Outputs:
      PatchBaselineNames:
        Description: The list of patch baseline names.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - PatchBaselineNames
      PatchBaselines:
        Description: The list of patch baselines.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - PatchBaselines
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::OOS::PatchBaselines",
          "Properties": {
            "OperationSystem": "Windows"
          }
        }
      },
      "Outputs": {
        "PatchBaselineNames": {
          "Description": "The list of patch baseline names.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "PatchBaselineNames"
            ]
          }
        },
        "PatchBaselines": {
          "Description": "The list of patch baselines.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "PatchBaselines"
            ]
          }
        }
      }
    }