All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::OOS::PatchBaselines

Last Updated:Dec 02, 2024

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

Syntax

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

Properties

Property

Type

Required

Editable

Description

Constraint

PatchBaselineName

String

No

Yes

The name of the patch baseline.

None.

OperationSystem

String

No

Yes

The OS type.

Valid values:

  • AliyunLinux

  • Windows

  • Ubuntu

  • Centos

  • Debian

  • RedhatEnterpriseLinux

  • Anolis

ShareType

String

No

Yes

The share type of the patch baseline.

None.

RefreshOptions

String

No

Yes

The refresh policy for data source resources when the stack is updated.

Valid values:

  • Never (default): does not refresh data source resources when the stack is updated.

  • Always: refreshes data source resources when the stack is updated.

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 update time.

None.

UpdatedBy

string

The user who updated the patch baseline.

None.

CreatedBy

string

The user who created the patch baseline.

None.

OperationSystem

string

The OS type.

None.

CreateTime

string

The creation time.

None.

IsDefault

boolean

Indicates whether the patch baseline is the default patch baseline.

Valid values:

  • true

  • false

Examples

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