1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. oos
  5. PatchBaseline
Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi
alicloud logo
Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi

    Provides a Operation Orchestration Service (OOS) Patch Baseline resource.

    For information about Operation Orchestration Service (OOS) Patch Baseline and how to use it, see What is Patch Baseline.

    NOTE: Available since v1.146.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = new alicloud.oos.PatchBaseline("default", {
        patchBaselineName: name,
        operationSystem: "Windows",
        approvalRules: "{\"PatchRules\":[{\"EnableNonSecurity\":true,\"PatchFilterGroup\":[{\"Values\":[\"*\"],\"Key\":\"Product\"},{\"Values\":[\"Security\",\"Bugfix\"],\"Key\":\"Classification\"},{\"Values\":[\"Critical\",\"Important\"],\"Key\":\"Severity\"}],\"ApproveAfterDays\":7,\"ComplianceLevel\":\"Unspecified\"}]}",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.oos.PatchBaseline("default",
        patch_baseline_name=name,
        operation_system="Windows",
        approval_rules="{\"PatchRules\":[{\"EnableNonSecurity\":true,\"PatchFilterGroup\":[{\"Values\":[\"*\"],\"Key\":\"Product\"},{\"Values\":[\"Security\",\"Bugfix\"],\"Key\":\"Classification\"},{\"Values\":[\"Critical\",\"Important\"],\"Key\":\"Severity\"}],\"ApproveAfterDays\":7,\"ComplianceLevel\":\"Unspecified\"}]}")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/oos"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := oos.NewPatchBaseline(ctx, "default", &oos.PatchBaselineArgs{
    			PatchBaselineName: pulumi.String(name),
    			OperationSystem:   pulumi.String("Windows"),
    			ApprovalRules:     pulumi.String("{\"PatchRules\":[{\"EnableNonSecurity\":true,\"PatchFilterGroup\":[{\"Values\":[\"*\"],\"Key\":\"Product\"},{\"Values\":[\"Security\",\"Bugfix\"],\"Key\":\"Classification\"},{\"Values\":[\"Critical\",\"Important\"],\"Key\":\"Severity\"}],\"ApproveAfterDays\":7,\"ComplianceLevel\":\"Unspecified\"}]}"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = new AliCloud.Oos.PatchBaseline("default", new()
        {
            PatchBaselineName = name,
            OperationSystem = "Windows",
            ApprovalRules = "{\"PatchRules\":[{\"EnableNonSecurity\":true,\"PatchFilterGroup\":[{\"Values\":[\"*\"],\"Key\":\"Product\"},{\"Values\":[\"Security\",\"Bugfix\"],\"Key\":\"Classification\"},{\"Values\":[\"Critical\",\"Important\"],\"Key\":\"Severity\"}],\"ApproveAfterDays\":7,\"ComplianceLevel\":\"Unspecified\"}]}",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.oos.PatchBaseline;
    import com.pulumi.alicloud.oos.PatchBaselineArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var default_ = new PatchBaseline("default", PatchBaselineArgs.builder()
                .patchBaselineName(name)
                .operationSystem("Windows")
                .approvalRules("{\"PatchRules\":[{\"EnableNonSecurity\":true,\"PatchFilterGroup\":[{\"Values\":[\"*\"],\"Key\":\"Product\"},{\"Values\":[\"Security\",\"Bugfix\"],\"Key\":\"Classification\"},{\"Values\":[\"Critical\",\"Important\"],\"Key\":\"Severity\"}],\"ApproveAfterDays\":7,\"ComplianceLevel\":\"Unspecified\"}]}")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: alicloud:oos:PatchBaseline
        properties:
          patchBaselineName: ${name}
          operationSystem: Windows
          approvalRules: '{"PatchRules":[{"EnableNonSecurity":true,"PatchFilterGroup":[{"Values":["*"],"Key":"Product"},{"Values":["Security","Bugfix"],"Key":"Classification"},{"Values":["Critical","Important"],"Key":"Severity"}],"ApproveAfterDays":7,"ComplianceLevel":"Unspecified"}]}'
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create PatchBaseline Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PatchBaseline(name: string, args: PatchBaselineArgs, opts?: CustomResourceOptions);
    @overload
    def PatchBaseline(resource_name: str,
                      args: PatchBaselineArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def PatchBaseline(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      approval_rules: Optional[str] = None,
                      operation_system: Optional[str] = None,
                      patch_baseline_name: Optional[str] = None,
                      approved_patches: Optional[Sequence[str]] = None,
                      approved_patches_enable_non_security: Optional[bool] = None,
                      description: Optional[str] = None,
                      rejected_patches: Optional[Sequence[str]] = None,
                      rejected_patches_action: Optional[str] = None,
                      resource_group_id: Optional[str] = None,
                      sources: Optional[Sequence[str]] = None,
                      tags: Optional[Mapping[str, str]] = None)
    func NewPatchBaseline(ctx *Context, name string, args PatchBaselineArgs, opts ...ResourceOption) (*PatchBaseline, error)
    public PatchBaseline(string name, PatchBaselineArgs args, CustomResourceOptions? opts = null)
    public PatchBaseline(String name, PatchBaselineArgs args)
    public PatchBaseline(String name, PatchBaselineArgs args, CustomResourceOptions options)
    
    type: alicloud:oos:PatchBaseline
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PatchBaselineArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PatchBaselineArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PatchBaselineArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PatchBaselineArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PatchBaselineArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var patchBaselineResource = new AliCloud.Oos.PatchBaseline("patchBaselineResource", new()
    {
        ApprovalRules = "string",
        OperationSystem = "string",
        PatchBaselineName = "string",
        ApprovedPatches = new[]
        {
            "string",
        },
        ApprovedPatchesEnableNonSecurity = false,
        Description = "string",
        RejectedPatches = new[]
        {
            "string",
        },
        RejectedPatchesAction = "string",
        ResourceGroupId = "string",
        Sources = new[]
        {
            "string",
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := oos.NewPatchBaseline(ctx, "patchBaselineResource", &oos.PatchBaselineArgs{
    	ApprovalRules:     pulumi.String("string"),
    	OperationSystem:   pulumi.String("string"),
    	PatchBaselineName: pulumi.String("string"),
    	ApprovedPatches: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ApprovedPatchesEnableNonSecurity: pulumi.Bool(false),
    	Description:                      pulumi.String("string"),
    	RejectedPatches: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	RejectedPatchesAction: pulumi.String("string"),
    	ResourceGroupId:       pulumi.String("string"),
    	Sources: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var patchBaselineResource = new PatchBaseline("patchBaselineResource", PatchBaselineArgs.builder()
        .approvalRules("string")
        .operationSystem("string")
        .patchBaselineName("string")
        .approvedPatches("string")
        .approvedPatchesEnableNonSecurity(false)
        .description("string")
        .rejectedPatches("string")
        .rejectedPatchesAction("string")
        .resourceGroupId("string")
        .sources("string")
        .tags(Map.of("string", "string"))
        .build());
    
    patch_baseline_resource = alicloud.oos.PatchBaseline("patchBaselineResource",
        approval_rules="string",
        operation_system="string",
        patch_baseline_name="string",
        approved_patches=["string"],
        approved_patches_enable_non_security=False,
        description="string",
        rejected_patches=["string"],
        rejected_patches_action="string",
        resource_group_id="string",
        sources=["string"],
        tags={
            "string": "string",
        })
    
    const patchBaselineResource = new alicloud.oos.PatchBaseline("patchBaselineResource", {
        approvalRules: "string",
        operationSystem: "string",
        patchBaselineName: "string",
        approvedPatches: ["string"],
        approvedPatchesEnableNonSecurity: false,
        description: "string",
        rejectedPatches: ["string"],
        rejectedPatchesAction: "string",
        resourceGroupId: "string",
        sources: ["string"],
        tags: {
            string: "string",
        },
    });
    
    type: alicloud:oos:PatchBaseline
    properties:
        approvalRules: string
        approvedPatches:
            - string
        approvedPatchesEnableNonSecurity: false
        description: string
        operationSystem: string
        patchBaselineName: string
        rejectedPatches:
            - string
        rejectedPatchesAction: string
        resourceGroupId: string
        sources:
            - string
        tags:
            string: string
    

    PatchBaseline Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The PatchBaseline resource accepts the following input properties:

    ApprovalRules string
    This value follows the json format. For more details, see the description of ApprovalRules in the Request parameters table for details.
    OperationSystem string
    Operating system type. Supported values:

    • Windows
    • Ubuntu
    • CentOS
    • Debian
    • AliyunLinux
    • RedhatEnterpriseLinux
    • Anolis
    • Fedora
    • Suse
    • RockyLinux
    • AlmaLinux.
    PatchBaselineName string
    Patch baseline name.
    ApprovedPatches List<string>
    List of approved patches.
    ApprovedPatchesEnableNonSecurity bool
    Specifies whether approved patches include updates other than security updates.
    Description string
    Description of the patch baseline.
    RejectedPatches List<string>
    List of rejected patches.
    RejectedPatchesAction string
    Rejected patches action. Valid values: ALLOW_AS_DEPENDENCY, BLOCK.
    ResourceGroupId string
    Resource group ID.
    Sources List<string>
    List of patch source configurations.
    Tags Dictionary<string, string>
    A key-value map of tags. The number of key-value pairs must be between 1 and 20.
    ApprovalRules string
    This value follows the json format. For more details, see the description of ApprovalRules in the Request parameters table for details.
    OperationSystem string
    Operating system type. Supported values:

    • Windows
    • Ubuntu
    • CentOS
    • Debian
    • AliyunLinux
    • RedhatEnterpriseLinux
    • Anolis
    • Fedora
    • Suse
    • RockyLinux
    • AlmaLinux.
    PatchBaselineName string
    Patch baseline name.
    ApprovedPatches []string
    List of approved patches.
    ApprovedPatchesEnableNonSecurity bool
    Specifies whether approved patches include updates other than security updates.
    Description string
    Description of the patch baseline.
    RejectedPatches []string
    List of rejected patches.
    RejectedPatchesAction string
    Rejected patches action. Valid values: ALLOW_AS_DEPENDENCY, BLOCK.
    ResourceGroupId string
    Resource group ID.
    Sources []string
    List of patch source configurations.
    Tags map[string]string
    A key-value map of tags. The number of key-value pairs must be between 1 and 20.
    approvalRules String
    This value follows the json format. For more details, see the description of ApprovalRules in the Request parameters table for details.
    operationSystem String
    Operating system type. Supported values:

    • Windows
    • Ubuntu
    • CentOS
    • Debian
    • AliyunLinux
    • RedhatEnterpriseLinux
    • Anolis
    • Fedora
    • Suse
    • RockyLinux
    • AlmaLinux.
    patchBaselineName String
    Patch baseline name.
    approvedPatches List<String>
    List of approved patches.
    approvedPatchesEnableNonSecurity Boolean
    Specifies whether approved patches include updates other than security updates.
    description String
    Description of the patch baseline.
    rejectedPatches List<String>
    List of rejected patches.
    rejectedPatchesAction String
    Rejected patches action. Valid values: ALLOW_AS_DEPENDENCY, BLOCK.
    resourceGroupId String
    Resource group ID.
    sources List<String>
    List of patch source configurations.
    tags Map<String,String>
    A key-value map of tags. The number of key-value pairs must be between 1 and 20.
    approvalRules string
    This value follows the json format. For more details, see the description of ApprovalRules in the Request parameters table for details.
    operationSystem string
    Operating system type. Supported values:

    • Windows
    • Ubuntu
    • CentOS
    • Debian
    • AliyunLinux
    • RedhatEnterpriseLinux
    • Anolis
    • Fedora
    • Suse
    • RockyLinux
    • AlmaLinux.
    patchBaselineName string
    Patch baseline name.
    approvedPatches string[]
    List of approved patches.
    approvedPatchesEnableNonSecurity boolean
    Specifies whether approved patches include updates other than security updates.
    description string
    Description of the patch baseline.
    rejectedPatches string[]
    List of rejected patches.
    rejectedPatchesAction string
    Rejected patches action. Valid values: ALLOW_AS_DEPENDENCY, BLOCK.
    resourceGroupId string
    Resource group ID.
    sources string[]
    List of patch source configurations.
    tags {[key: string]: string}
    A key-value map of tags. The number of key-value pairs must be between 1 and 20.
    approval_rules str
    This value follows the json format. For more details, see the description of ApprovalRules in the Request parameters table for details.
    operation_system str
    Operating system type. Supported values:

    • Windows
    • Ubuntu
    • CentOS
    • Debian
    • AliyunLinux
    • RedhatEnterpriseLinux
    • Anolis
    • Fedora
    • Suse
    • RockyLinux
    • AlmaLinux.
    patch_baseline_name str
    Patch baseline name.
    approved_patches Sequence[str]
    List of approved patches.
    approved_patches_enable_non_security bool
    Specifies whether approved patches include updates other than security updates.
    description str
    Description of the patch baseline.
    rejected_patches Sequence[str]
    List of rejected patches.
    rejected_patches_action str
    Rejected patches action. Valid values: ALLOW_AS_DEPENDENCY, BLOCK.
    resource_group_id str
    Resource group ID.
    sources Sequence[str]
    List of patch source configurations.
    tags Mapping[str, str]
    A key-value map of tags. The number of key-value pairs must be between 1 and 20.
    approvalRules String
    This value follows the json format. For more details, see the description of ApprovalRules in the Request parameters table for details.
    operationSystem String
    Operating system type. Supported values:

    • Windows
    • Ubuntu
    • CentOS
    • Debian
    • AliyunLinux
    • RedhatEnterpriseLinux
    • Anolis
    • Fedora
    • Suse
    • RockyLinux
    • AlmaLinux.
    patchBaselineName String
    Patch baseline name.
    approvedPatches List<String>
    List of approved patches.
    approvedPatchesEnableNonSecurity Boolean
    Specifies whether approved patches include updates other than security updates.
    description String
    Description of the patch baseline.
    rejectedPatches List<String>
    List of rejected patches.
    rejectedPatchesAction String
    Rejected patches action. Valid values: ALLOW_AS_DEPENDENCY, BLOCK.
    resourceGroupId String
    Resource group ID.
    sources List<String>
    List of patch source configurations.
    tags Map<String>
    A key-value map of tags. The number of key-value pairs must be between 1 and 20.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PatchBaseline resource produces the following output properties:

    CreateTime string
    Creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    CreateTime string
    Creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    createTime String
    Creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    createTime string
    Creation time.
    id string
    The provider-assigned unique ID for this managed resource.
    create_time str
    Creation time.
    id str
    The provider-assigned unique ID for this managed resource.
    createTime String
    Creation time.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing PatchBaseline Resource

    Get an existing PatchBaseline resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: PatchBaselineState, opts?: CustomResourceOptions): PatchBaseline
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            approval_rules: Optional[str] = None,
            approved_patches: Optional[Sequence[str]] = None,
            approved_patches_enable_non_security: Optional[bool] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            operation_system: Optional[str] = None,
            patch_baseline_name: Optional[str] = None,
            rejected_patches: Optional[Sequence[str]] = None,
            rejected_patches_action: Optional[str] = None,
            resource_group_id: Optional[str] = None,
            sources: Optional[Sequence[str]] = None,
            tags: Optional[Mapping[str, str]] = None) -> PatchBaseline
    func GetPatchBaseline(ctx *Context, name string, id IDInput, state *PatchBaselineState, opts ...ResourceOption) (*PatchBaseline, error)
    public static PatchBaseline Get(string name, Input<string> id, PatchBaselineState? state, CustomResourceOptions? opts = null)
    public static PatchBaseline get(String name, Output<String> id, PatchBaselineState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:oos:PatchBaseline    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ApprovalRules string
    This value follows the json format. For more details, see the description of ApprovalRules in the Request parameters table for details.
    ApprovedPatches List<string>
    List of approved patches.
    ApprovedPatchesEnableNonSecurity bool
    Specifies whether approved patches include updates other than security updates.
    CreateTime string
    Creation time.
    Description string
    Description of the patch baseline.
    OperationSystem string
    Operating system type. Supported values:

    • Windows
    • Ubuntu
    • CentOS
    • Debian
    • AliyunLinux
    • RedhatEnterpriseLinux
    • Anolis
    • Fedora
    • Suse
    • RockyLinux
    • AlmaLinux.
    PatchBaselineName string
    Patch baseline name.
    RejectedPatches List<string>
    List of rejected patches.
    RejectedPatchesAction string
    Rejected patches action. Valid values: ALLOW_AS_DEPENDENCY, BLOCK.
    ResourceGroupId string
    Resource group ID.
    Sources List<string>
    List of patch source configurations.
    Tags Dictionary<string, string>
    A key-value map of tags. The number of key-value pairs must be between 1 and 20.
    ApprovalRules string
    This value follows the json format. For more details, see the description of ApprovalRules in the Request parameters table for details.
    ApprovedPatches []string
    List of approved patches.
    ApprovedPatchesEnableNonSecurity bool
    Specifies whether approved patches include updates other than security updates.
    CreateTime string
    Creation time.
    Description string
    Description of the patch baseline.
    OperationSystem string
    Operating system type. Supported values:

    • Windows
    • Ubuntu
    • CentOS
    • Debian
    • AliyunLinux
    • RedhatEnterpriseLinux
    • Anolis
    • Fedora
    • Suse
    • RockyLinux
    • AlmaLinux.
    PatchBaselineName string
    Patch baseline name.
    RejectedPatches []string
    List of rejected patches.
    RejectedPatchesAction string
    Rejected patches action. Valid values: ALLOW_AS_DEPENDENCY, BLOCK.
    ResourceGroupId string
    Resource group ID.
    Sources []string
    List of patch source configurations.
    Tags map[string]string
    A key-value map of tags. The number of key-value pairs must be between 1 and 20.
    approvalRules String
    This value follows the json format. For more details, see the description of ApprovalRules in the Request parameters table for details.
    approvedPatches List<String>
    List of approved patches.
    approvedPatchesEnableNonSecurity Boolean
    Specifies whether approved patches include updates other than security updates.
    createTime String
    Creation time.
    description String
    Description of the patch baseline.
    operationSystem String
    Operating system type. Supported values:

    • Windows
    • Ubuntu
    • CentOS
    • Debian
    • AliyunLinux
    • RedhatEnterpriseLinux
    • Anolis
    • Fedora
    • Suse
    • RockyLinux
    • AlmaLinux.
    patchBaselineName String
    Patch baseline name.
    rejectedPatches List<String>
    List of rejected patches.
    rejectedPatchesAction String
    Rejected patches action. Valid values: ALLOW_AS_DEPENDENCY, BLOCK.
    resourceGroupId String
    Resource group ID.
    sources List<String>
    List of patch source configurations.
    tags Map<String,String>
    A key-value map of tags. The number of key-value pairs must be between 1 and 20.
    approvalRules string
    This value follows the json format. For more details, see the description of ApprovalRules in the Request parameters table for details.
    approvedPatches string[]
    List of approved patches.
    approvedPatchesEnableNonSecurity boolean
    Specifies whether approved patches include updates other than security updates.
    createTime string
    Creation time.
    description string
    Description of the patch baseline.
    operationSystem string
    Operating system type. Supported values:

    • Windows
    • Ubuntu
    • CentOS
    • Debian
    • AliyunLinux
    • RedhatEnterpriseLinux
    • Anolis
    • Fedora
    • Suse
    • RockyLinux
    • AlmaLinux.
    patchBaselineName string
    Patch baseline name.
    rejectedPatches string[]
    List of rejected patches.
    rejectedPatchesAction string
    Rejected patches action. Valid values: ALLOW_AS_DEPENDENCY, BLOCK.
    resourceGroupId string
    Resource group ID.
    sources string[]
    List of patch source configurations.
    tags {[key: string]: string}
    A key-value map of tags. The number of key-value pairs must be between 1 and 20.
    approval_rules str
    This value follows the json format. For more details, see the description of ApprovalRules in the Request parameters table for details.
    approved_patches Sequence[str]
    List of approved patches.
    approved_patches_enable_non_security bool
    Specifies whether approved patches include updates other than security updates.
    create_time str
    Creation time.
    description str
    Description of the patch baseline.
    operation_system str
    Operating system type. Supported values:

    • Windows
    • Ubuntu
    • CentOS
    • Debian
    • AliyunLinux
    • RedhatEnterpriseLinux
    • Anolis
    • Fedora
    • Suse
    • RockyLinux
    • AlmaLinux.
    patch_baseline_name str
    Patch baseline name.
    rejected_patches Sequence[str]
    List of rejected patches.
    rejected_patches_action str
    Rejected patches action. Valid values: ALLOW_AS_DEPENDENCY, BLOCK.
    resource_group_id str
    Resource group ID.
    sources Sequence[str]
    List of patch source configurations.
    tags Mapping[str, str]
    A key-value map of tags. The number of key-value pairs must be between 1 and 20.
    approvalRules String
    This value follows the json format. For more details, see the description of ApprovalRules in the Request parameters table for details.
    approvedPatches List<String>
    List of approved patches.
    approvedPatchesEnableNonSecurity Boolean
    Specifies whether approved patches include updates other than security updates.
    createTime String
    Creation time.
    description String
    Description of the patch baseline.
    operationSystem String
    Operating system type. Supported values:

    • Windows
    • Ubuntu
    • CentOS
    • Debian
    • AliyunLinux
    • RedhatEnterpriseLinux
    • Anolis
    • Fedora
    • Suse
    • RockyLinux
    • AlmaLinux.
    patchBaselineName String
    Patch baseline name.
    rejectedPatches List<String>
    List of rejected patches.
    rejectedPatchesAction String
    Rejected patches action. Valid values: ALLOW_AS_DEPENDENCY, BLOCK.
    resourceGroupId String
    Resource group ID.
    sources List<String>
    List of patch source configurations.
    tags Map<String>
    A key-value map of tags. The number of key-value pairs must be between 1 and 20.

    Import

    Operation Orchestration Service (OOS) Patch Baseline can be imported using the id, e.g.

    $ pulumi import alicloud:oos/patchBaseline:PatchBaseline example <patch_baseline_name>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Viewing docs for Alibaba Cloud v3.97.0
    published on Saturday, Mar 14, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.