1. Packages
  2. Spectrocloud Provider
  3. API Docs
  4. ClusterConfigPolicy
spectrocloud 0.26.0 published on Saturday, Nov 22, 2025 by spectrocloud
spectrocloud logo
spectrocloud 0.26.0 published on Saturday, Nov 22, 2025 by spectrocloud

    A resource for creating and managing cluster config policies (maintenance policies). Tech Preview: This resource is in tech preview and may undergo changes.

    Example Usage

    Basic maintenance policy with a weekly schedule.

    import * as pulumi from "@pulumi/pulumi";
    import * as spectrocloud from "@pulumi/spectrocloud";
    
    const weeklyMaintenance = new spectrocloud.ClusterConfigPolicy("weekly_maintenance", {
        name: "weekly-maintenance-policy",
        context: "project",
        schedules: [{
            name: "sunday-maintenance",
            startCron: "0 2 * * SUN",
            durationHrs: 4,
        }],
    });
    
    import pulumi
    import pulumi_spectrocloud as spectrocloud
    
    weekly_maintenance = spectrocloud.ClusterConfigPolicy("weekly_maintenance",
        name="weekly-maintenance-policy",
        context="project",
        schedules=[{
            "name": "sunday-maintenance",
            "start_cron": "0 2 * * SUN",
            "duration_hrs": 4,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := spectrocloud.NewClusterConfigPolicy(ctx, "weekly_maintenance", &spectrocloud.ClusterConfigPolicyArgs{
    			Name:    pulumi.String("weekly-maintenance-policy"),
    			Context: pulumi.String("project"),
    			Schedules: spectrocloud.ClusterConfigPolicyScheduleArray{
    				&spectrocloud.ClusterConfigPolicyScheduleArgs{
    					Name:        pulumi.String("sunday-maintenance"),
    					StartCron:   pulumi.String("0 2 * * SUN"),
    					DurationHrs: pulumi.Float64(4),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Spectrocloud = Pulumi.Spectrocloud;
    
    return await Deployment.RunAsync(() => 
    {
        var weeklyMaintenance = new Spectrocloud.ClusterConfigPolicy("weekly_maintenance", new()
        {
            Name = "weekly-maintenance-policy",
            Context = "project",
            Schedules = new[]
            {
                new Spectrocloud.Inputs.ClusterConfigPolicyScheduleArgs
                {
                    Name = "sunday-maintenance",
                    StartCron = "0 2 * * SUN",
                    DurationHrs = 4,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.spectrocloud.ClusterConfigPolicy;
    import com.pulumi.spectrocloud.ClusterConfigPolicyArgs;
    import com.pulumi.spectrocloud.inputs.ClusterConfigPolicyScheduleArgs;
    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) {
            var weeklyMaintenance = new ClusterConfigPolicy("weeklyMaintenance", ClusterConfigPolicyArgs.builder()
                .name("weekly-maintenance-policy")
                .context("project")
                .schedules(ClusterConfigPolicyScheduleArgs.builder()
                    .name("sunday-maintenance")
                    .startCron("0 2 * * SUN")
                    .durationHrs(4.0)
                    .build())
                .build());
    
        }
    }
    
    resources:
      weeklyMaintenance:
        type: spectrocloud:ClusterConfigPolicy
        name: weekly_maintenance
        properties:
          name: weekly-maintenance-policy
          context: project
          schedules:
            - name: sunday-maintenance
              startCron: 0 2 * * SUN
              durationHrs: 4
    

    Maintenance policy with multiple schedules and tags.

    import * as pulumi from "@pulumi/pulumi";
    import * as spectrocloud from "@pulumi/spectrocloud";
    
    const multiSchedule = new spectrocloud.ClusterConfigPolicy("multi_schedule", {
        name: "multi-schedule-policy",
        context: "project",
        tags: [
            "env:production",
            "team:devops",
            "critical",
        ],
        schedules: [
            {
                name: "weekday-maintenance",
                startCron: "0 1 * * 1-5",
                durationHrs: 2,
            },
            {
                name: "weekend-maintenance",
                startCron: "0 3 * * 0,6",
                durationHrs: 6,
            },
        ],
    });
    
    import pulumi
    import pulumi_spectrocloud as spectrocloud
    
    multi_schedule = spectrocloud.ClusterConfigPolicy("multi_schedule",
        name="multi-schedule-policy",
        context="project",
        tags=[
            "env:production",
            "team:devops",
            "critical",
        ],
        schedules=[
            {
                "name": "weekday-maintenance",
                "start_cron": "0 1 * * 1-5",
                "duration_hrs": 2,
            },
            {
                "name": "weekend-maintenance",
                "start_cron": "0 3 * * 0,6",
                "duration_hrs": 6,
            },
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := spectrocloud.NewClusterConfigPolicy(ctx, "multi_schedule", &spectrocloud.ClusterConfigPolicyArgs{
    			Name:    pulumi.String("multi-schedule-policy"),
    			Context: pulumi.String("project"),
    			Tags: pulumi.StringArray{
    				pulumi.String("env:production"),
    				pulumi.String("team:devops"),
    				pulumi.String("critical"),
    			},
    			Schedules: spectrocloud.ClusterConfigPolicyScheduleArray{
    				&spectrocloud.ClusterConfigPolicyScheduleArgs{
    					Name:        pulumi.String("weekday-maintenance"),
    					StartCron:   pulumi.String("0 1 * * 1-5"),
    					DurationHrs: pulumi.Float64(2),
    				},
    				&spectrocloud.ClusterConfigPolicyScheduleArgs{
    					Name:        pulumi.String("weekend-maintenance"),
    					StartCron:   pulumi.String("0 3 * * 0,6"),
    					DurationHrs: pulumi.Float64(6),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Spectrocloud = Pulumi.Spectrocloud;
    
    return await Deployment.RunAsync(() => 
    {
        var multiSchedule = new Spectrocloud.ClusterConfigPolicy("multi_schedule", new()
        {
            Name = "multi-schedule-policy",
            Context = "project",
            Tags = new[]
            {
                "env:production",
                "team:devops",
                "critical",
            },
            Schedules = new[]
            {
                new Spectrocloud.Inputs.ClusterConfigPolicyScheduleArgs
                {
                    Name = "weekday-maintenance",
                    StartCron = "0 1 * * 1-5",
                    DurationHrs = 2,
                },
                new Spectrocloud.Inputs.ClusterConfigPolicyScheduleArgs
                {
                    Name = "weekend-maintenance",
                    StartCron = "0 3 * * 0,6",
                    DurationHrs = 6,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.spectrocloud.ClusterConfigPolicy;
    import com.pulumi.spectrocloud.ClusterConfigPolicyArgs;
    import com.pulumi.spectrocloud.inputs.ClusterConfigPolicyScheduleArgs;
    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) {
            var multiSchedule = new ClusterConfigPolicy("multiSchedule", ClusterConfigPolicyArgs.builder()
                .name("multi-schedule-policy")
                .context("project")
                .tags(            
                    "env:production",
                    "team:devops",
                    "critical")
                .schedules(            
                    ClusterConfigPolicyScheduleArgs.builder()
                        .name("weekday-maintenance")
                        .startCron("0 1 * * 1-5")
                        .durationHrs(2.0)
                        .build(),
                    ClusterConfigPolicyScheduleArgs.builder()
                        .name("weekend-maintenance")
                        .startCron("0 3 * * 0,6")
                        .durationHrs(6.0)
                        .build())
                .build());
    
        }
    }
    
    resources:
      multiSchedule:
        type: spectrocloud:ClusterConfigPolicy
        name: multi_schedule
        properties:
          name: multi-schedule-policy
          context: project
          tags:
            - env:production
            - team:devops
            - critical
          schedules:
            - name: weekday-maintenance
              startCron: 0 1 * * 1-5
              durationHrs: 2
            - name: weekend-maintenance
              startCron: 0 3 * * 0,6
              durationHrs: 6
    

    Tenant-level maintenance policy.

    import * as pulumi from "@pulumi/pulumi";
    import * as spectrocloud from "@pulumi/spectrocloud";
    
    const tenantPolicy = new spectrocloud.ClusterConfigPolicy("tenant_policy", {
        name: "tenant-wide-maintenance",
        context: "tenant",
        schedules: [{
            name: "monthly-maintenance",
            startCron: "0 3 1 * *",
            durationHrs: 8,
        }],
    });
    
    import pulumi
    import pulumi_spectrocloud as spectrocloud
    
    tenant_policy = spectrocloud.ClusterConfigPolicy("tenant_policy",
        name="tenant-wide-maintenance",
        context="tenant",
        schedules=[{
            "name": "monthly-maintenance",
            "start_cron": "0 3 1 * *",
            "duration_hrs": 8,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := spectrocloud.NewClusterConfigPolicy(ctx, "tenant_policy", &spectrocloud.ClusterConfigPolicyArgs{
    			Name:    pulumi.String("tenant-wide-maintenance"),
    			Context: pulumi.String("tenant"),
    			Schedules: spectrocloud.ClusterConfigPolicyScheduleArray{
    				&spectrocloud.ClusterConfigPolicyScheduleArgs{
    					Name:        pulumi.String("monthly-maintenance"),
    					StartCron:   pulumi.String("0 3 1 * *"),
    					DurationHrs: pulumi.Float64(8),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Spectrocloud = Pulumi.Spectrocloud;
    
    return await Deployment.RunAsync(() => 
    {
        var tenantPolicy = new Spectrocloud.ClusterConfigPolicy("tenant_policy", new()
        {
            Name = "tenant-wide-maintenance",
            Context = "tenant",
            Schedules = new[]
            {
                new Spectrocloud.Inputs.ClusterConfigPolicyScheduleArgs
                {
                    Name = "monthly-maintenance",
                    StartCron = "0 3 1 * *",
                    DurationHrs = 8,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.spectrocloud.ClusterConfigPolicy;
    import com.pulumi.spectrocloud.ClusterConfigPolicyArgs;
    import com.pulumi.spectrocloud.inputs.ClusterConfigPolicyScheduleArgs;
    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) {
            var tenantPolicy = new ClusterConfigPolicy("tenantPolicy", ClusterConfigPolicyArgs.builder()
                .name("tenant-wide-maintenance")
                .context("tenant")
                .schedules(ClusterConfigPolicyScheduleArgs.builder()
                    .name("monthly-maintenance")
                    .startCron("0 3 1 * *")
                    .durationHrs(8.0)
                    .build())
                .build());
    
        }
    }
    
    resources:
      tenantPolicy:
        type: spectrocloud:ClusterConfigPolicy
        name: tenant_policy
        properties:
          name: tenant-wide-maintenance
          context: tenant
          schedules:
            - name: monthly-maintenance
              startCron: 0 3 1 * *
              durationHrs: 8
    

    Create ClusterConfigPolicy Resource

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

    Constructor syntax

    new ClusterConfigPolicy(name: string, args?: ClusterConfigPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def ClusterConfigPolicy(resource_name: str,
                            args: Optional[ClusterConfigPolicyArgs] = None,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def ClusterConfigPolicy(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            cluster_config_policy_id: Optional[str] = None,
                            context: Optional[str] = None,
                            name: Optional[str] = None,
                            policy_type: Optional[str] = None,
                            schedules: Optional[Sequence[ClusterConfigPolicyScheduleArgs]] = None,
                            tags: Optional[Sequence[str]] = None,
                            timeouts: Optional[ClusterConfigPolicyTimeoutsArgs] = None)
    func NewClusterConfigPolicy(ctx *Context, name string, args *ClusterConfigPolicyArgs, opts ...ResourceOption) (*ClusterConfigPolicy, error)
    public ClusterConfigPolicy(string name, ClusterConfigPolicyArgs? args = null, CustomResourceOptions? opts = null)
    public ClusterConfigPolicy(String name, ClusterConfigPolicyArgs args)
    public ClusterConfigPolicy(String name, ClusterConfigPolicyArgs args, CustomResourceOptions options)
    
    type: spectrocloud:ClusterConfigPolicy
    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 ClusterConfigPolicyArgs
    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 ClusterConfigPolicyArgs
    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 ClusterConfigPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClusterConfigPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClusterConfigPolicyArgs
    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 clusterConfigPolicyResource = new Spectrocloud.ClusterConfigPolicy("clusterConfigPolicyResource", new()
    {
        ClusterConfigPolicyId = "string",
        Context = "string",
        Name = "string",
        PolicyType = "string",
        Schedules = new[]
        {
            new Spectrocloud.Inputs.ClusterConfigPolicyScheduleArgs
            {
                DurationHrs = 0,
                Name = "string",
                StartCron = "string",
            },
        },
        Tags = new[]
        {
            "string",
        },
        Timeouts = new Spectrocloud.Inputs.ClusterConfigPolicyTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := spectrocloud.NewClusterConfigPolicy(ctx, "clusterConfigPolicyResource", &spectrocloud.ClusterConfigPolicyArgs{
    	ClusterConfigPolicyId: pulumi.String("string"),
    	Context:               pulumi.String("string"),
    	Name:                  pulumi.String("string"),
    	PolicyType:            pulumi.String("string"),
    	Schedules: spectrocloud.ClusterConfigPolicyScheduleArray{
    		&spectrocloud.ClusterConfigPolicyScheduleArgs{
    			DurationHrs: pulumi.Float64(0),
    			Name:        pulumi.String("string"),
    			StartCron:   pulumi.String("string"),
    		},
    	},
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Timeouts: &spectrocloud.ClusterConfigPolicyTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var clusterConfigPolicyResource = new ClusterConfigPolicy("clusterConfigPolicyResource", ClusterConfigPolicyArgs.builder()
        .clusterConfigPolicyId("string")
        .context("string")
        .name("string")
        .policyType("string")
        .schedules(ClusterConfigPolicyScheduleArgs.builder()
            .durationHrs(0.0)
            .name("string")
            .startCron("string")
            .build())
        .tags("string")
        .timeouts(ClusterConfigPolicyTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    cluster_config_policy_resource = spectrocloud.ClusterConfigPolicy("clusterConfigPolicyResource",
        cluster_config_policy_id="string",
        context="string",
        name="string",
        policy_type="string",
        schedules=[{
            "duration_hrs": 0,
            "name": "string",
            "start_cron": "string",
        }],
        tags=["string"],
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const clusterConfigPolicyResource = new spectrocloud.ClusterConfigPolicy("clusterConfigPolicyResource", {
        clusterConfigPolicyId: "string",
        context: "string",
        name: "string",
        policyType: "string",
        schedules: [{
            durationHrs: 0,
            name: "string",
            startCron: "string",
        }],
        tags: ["string"],
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: spectrocloud:ClusterConfigPolicy
    properties:
        clusterConfigPolicyId: string
        context: string
        name: string
        policyType: string
        schedules:
            - durationHrs: 0
              name: string
              startCron: string
        tags:
            - string
        timeouts:
            create: string
            delete: string
            update: string
    

    ClusterConfigPolicy 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 ClusterConfigPolicy resource accepts the following input properties:

    ClusterConfigPolicyId string
    The ID of this resource.
    Context string
    The context of the cluster config policy. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    Name string
    The name of the cluster config policy.
    PolicyType string
    Type of the policy. Allowed values are maintenance or upgrade(not supported yet). Default value is maintenance.
    Schedules List<ClusterConfigPolicySchedule>
    Set of maintenance schedules for the policy.
    Tags List<string>
    Assign tags to the cluster config policy. Tags can be in the format key:value or just key.
    Timeouts ClusterConfigPolicyTimeouts
    ClusterConfigPolicyId string
    The ID of this resource.
    Context string
    The context of the cluster config policy. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    Name string
    The name of the cluster config policy.
    PolicyType string
    Type of the policy. Allowed values are maintenance or upgrade(not supported yet). Default value is maintenance.
    Schedules []ClusterConfigPolicyScheduleArgs
    Set of maintenance schedules for the policy.
    Tags []string
    Assign tags to the cluster config policy. Tags can be in the format key:value or just key.
    Timeouts ClusterConfigPolicyTimeoutsArgs
    clusterConfigPolicyId String
    The ID of this resource.
    context String
    The context of the cluster config policy. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    name String
    The name of the cluster config policy.
    policyType String
    Type of the policy. Allowed values are maintenance or upgrade(not supported yet). Default value is maintenance.
    schedules List<ClusterConfigPolicySchedule>
    Set of maintenance schedules for the policy.
    tags List<String>
    Assign tags to the cluster config policy. Tags can be in the format key:value or just key.
    timeouts ClusterConfigPolicyTimeouts
    clusterConfigPolicyId string
    The ID of this resource.
    context string
    The context of the cluster config policy. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    name string
    The name of the cluster config policy.
    policyType string
    Type of the policy. Allowed values are maintenance or upgrade(not supported yet). Default value is maintenance.
    schedules ClusterConfigPolicySchedule[]
    Set of maintenance schedules for the policy.
    tags string[]
    Assign tags to the cluster config policy. Tags can be in the format key:value or just key.
    timeouts ClusterConfigPolicyTimeouts
    cluster_config_policy_id str
    The ID of this resource.
    context str
    The context of the cluster config policy. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    name str
    The name of the cluster config policy.
    policy_type str
    Type of the policy. Allowed values are maintenance or upgrade(not supported yet). Default value is maintenance.
    schedules Sequence[ClusterConfigPolicyScheduleArgs]
    Set of maintenance schedules for the policy.
    tags Sequence[str]
    Assign tags to the cluster config policy. Tags can be in the format key:value or just key.
    timeouts ClusterConfigPolicyTimeoutsArgs
    clusterConfigPolicyId String
    The ID of this resource.
    context String
    The context of the cluster config policy. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    name String
    The name of the cluster config policy.
    policyType String
    Type of the policy. Allowed values are maintenance or upgrade(not supported yet). Default value is maintenance.
    schedules List<Property Map>
    Set of maintenance schedules for the policy.
    tags List<String>
    Assign tags to the cluster config policy. Tags can be in the format key:value or just key.
    timeouts Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ClusterConfigPolicy Resource

    Get an existing ClusterConfigPolicy 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?: ClusterConfigPolicyState, opts?: CustomResourceOptions): ClusterConfigPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_config_policy_id: Optional[str] = None,
            context: Optional[str] = None,
            name: Optional[str] = None,
            policy_type: Optional[str] = None,
            schedules: Optional[Sequence[ClusterConfigPolicyScheduleArgs]] = None,
            tags: Optional[Sequence[str]] = None,
            timeouts: Optional[ClusterConfigPolicyTimeoutsArgs] = None) -> ClusterConfigPolicy
    func GetClusterConfigPolicy(ctx *Context, name string, id IDInput, state *ClusterConfigPolicyState, opts ...ResourceOption) (*ClusterConfigPolicy, error)
    public static ClusterConfigPolicy Get(string name, Input<string> id, ClusterConfigPolicyState? state, CustomResourceOptions? opts = null)
    public static ClusterConfigPolicy get(String name, Output<String> id, ClusterConfigPolicyState state, CustomResourceOptions options)
    resources:  _:    type: spectrocloud:ClusterConfigPolicy    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:
    ClusterConfigPolicyId string
    The ID of this resource.
    Context string
    The context of the cluster config policy. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    Name string
    The name of the cluster config policy.
    PolicyType string
    Type of the policy. Allowed values are maintenance or upgrade(not supported yet). Default value is maintenance.
    Schedules List<ClusterConfigPolicySchedule>
    Set of maintenance schedules for the policy.
    Tags List<string>
    Assign tags to the cluster config policy. Tags can be in the format key:value or just key.
    Timeouts ClusterConfigPolicyTimeouts
    ClusterConfigPolicyId string
    The ID of this resource.
    Context string
    The context of the cluster config policy. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    Name string
    The name of the cluster config policy.
    PolicyType string
    Type of the policy. Allowed values are maintenance or upgrade(not supported yet). Default value is maintenance.
    Schedules []ClusterConfigPolicyScheduleArgs
    Set of maintenance schedules for the policy.
    Tags []string
    Assign tags to the cluster config policy. Tags can be in the format key:value or just key.
    Timeouts ClusterConfigPolicyTimeoutsArgs
    clusterConfigPolicyId String
    The ID of this resource.
    context String
    The context of the cluster config policy. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    name String
    The name of the cluster config policy.
    policyType String
    Type of the policy. Allowed values are maintenance or upgrade(not supported yet). Default value is maintenance.
    schedules List<ClusterConfigPolicySchedule>
    Set of maintenance schedules for the policy.
    tags List<String>
    Assign tags to the cluster config policy. Tags can be in the format key:value or just key.
    timeouts ClusterConfigPolicyTimeouts
    clusterConfigPolicyId string
    The ID of this resource.
    context string
    The context of the cluster config policy. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    name string
    The name of the cluster config policy.
    policyType string
    Type of the policy. Allowed values are maintenance or upgrade(not supported yet). Default value is maintenance.
    schedules ClusterConfigPolicySchedule[]
    Set of maintenance schedules for the policy.
    tags string[]
    Assign tags to the cluster config policy. Tags can be in the format key:value or just key.
    timeouts ClusterConfigPolicyTimeouts
    cluster_config_policy_id str
    The ID of this resource.
    context str
    The context of the cluster config policy. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    name str
    The name of the cluster config policy.
    policy_type str
    Type of the policy. Allowed values are maintenance or upgrade(not supported yet). Default value is maintenance.
    schedules Sequence[ClusterConfigPolicyScheduleArgs]
    Set of maintenance schedules for the policy.
    tags Sequence[str]
    Assign tags to the cluster config policy. Tags can be in the format key:value or just key.
    timeouts ClusterConfigPolicyTimeoutsArgs
    clusterConfigPolicyId String
    The ID of this resource.
    context String
    The context of the cluster config policy. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    name String
    The name of the cluster config policy.
    policyType String
    Type of the policy. Allowed values are maintenance or upgrade(not supported yet). Default value is maintenance.
    schedules List<Property Map>
    Set of maintenance schedules for the policy.
    tags List<String>
    Assign tags to the cluster config policy. Tags can be in the format key:value or just key.
    timeouts Property Map

    Supporting Types

    ClusterConfigPolicySchedule, ClusterConfigPolicyScheduleArgs

    DurationHrs double
    Specifies the time window in hours during which the system is allowed to start upgrades on eligible clusters. Valid range: 1-24.
    Name string
    Name of the upgrade schedule.
    StartCron string
    Cron expression for the start time of the schedule.
    DurationHrs float64
    Specifies the time window in hours during which the system is allowed to start upgrades on eligible clusters. Valid range: 1-24.
    Name string
    Name of the upgrade schedule.
    StartCron string
    Cron expression for the start time of the schedule.
    durationHrs Double
    Specifies the time window in hours during which the system is allowed to start upgrades on eligible clusters. Valid range: 1-24.
    name String
    Name of the upgrade schedule.
    startCron String
    Cron expression for the start time of the schedule.
    durationHrs number
    Specifies the time window in hours during which the system is allowed to start upgrades on eligible clusters. Valid range: 1-24.
    name string
    Name of the upgrade schedule.
    startCron string
    Cron expression for the start time of the schedule.
    duration_hrs float
    Specifies the time window in hours during which the system is allowed to start upgrades on eligible clusters. Valid range: 1-24.
    name str
    Name of the upgrade schedule.
    start_cron str
    Cron expression for the start time of the schedule.
    durationHrs Number
    Specifies the time window in hours during which the system is allowed to start upgrades on eligible clusters. Valid range: 1-24.
    name String
    Name of the upgrade schedule.
    startCron String
    Cron expression for the start time of the schedule.

    ClusterConfigPolicyTimeouts, ClusterConfigPolicyTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Package Details

    Repository
    spectrocloud spectrocloud/terraform-provider-spectrocloud
    License
    Notes
    This Pulumi package is based on the spectrocloud Terraform Provider.
    spectrocloud logo
    spectrocloud 0.26.0 published on Saturday, Nov 22, 2025 by spectrocloud
      Meet Neo: Your AI Platform Teammate