1. Packages
  2. Castai Provider
  3. API Docs
  4. HibernationSchedule
castai 7.49.0 published on Wednesday, Apr 30, 2025 by castai

castai.HibernationSchedule

Explore with Pulumi AI

castai logo
castai 7.49.0 published on Wednesday, Apr 30, 2025 by castai

    CAST AI hibernation schedule resource to manage hibernation schedules.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as castai from "@pulumi/castai";
    
    const mySchedule = new castai.HibernationSchedule("mySchedule", {
        clusterAssignments: {
            assignments: [{
                clusterId: "38a49ce8-e900-4a10-be89-48fb2efb1025",
            }],
        },
        enabled: false,
        pauseConfig: {
            enabled: true,
            schedule: {
                cronExpression: "0 17 * * 1-5",
            },
        },
        resumeConfig: {
            enabled: true,
            jobConfig: {
                nodeConfig: {
                    instanceType: "e2-standard-4",
                },
            },
            schedule: {
                cronExpression: "0 9 * * 1-5",
            },
        },
    });
    
    import pulumi
    import pulumi_castai as castai
    
    my_schedule = castai.HibernationSchedule("mySchedule",
        cluster_assignments={
            "assignments": [{
                "cluster_id": "38a49ce8-e900-4a10-be89-48fb2efb1025",
            }],
        },
        enabled=False,
        pause_config={
            "enabled": True,
            "schedule": {
                "cron_expression": "0 17 * * 1-5",
            },
        },
        resume_config={
            "enabled": True,
            "job_config": {
                "node_config": {
                    "instance_type": "e2-standard-4",
                },
            },
            "schedule": {
                "cron_expression": "0 9 * * 1-5",
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/castai/v7/castai"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := castai.NewHibernationSchedule(ctx, "mySchedule", &castai.HibernationScheduleArgs{
    			ClusterAssignments: &castai.HibernationScheduleClusterAssignmentsArgs{
    				Assignments: castai.HibernationScheduleClusterAssignmentsAssignmentArray{
    					&castai.HibernationScheduleClusterAssignmentsAssignmentArgs{
    						ClusterId: pulumi.String("38a49ce8-e900-4a10-be89-48fb2efb1025"),
    					},
    				},
    			},
    			Enabled: pulumi.Bool(false),
    			PauseConfig: &castai.HibernationSchedulePauseConfigArgs{
    				Enabled: pulumi.Bool(true),
    				Schedule: &castai.HibernationSchedulePauseConfigScheduleArgs{
    					CronExpression: pulumi.String("0 17 * * 1-5"),
    				},
    			},
    			ResumeConfig: &castai.HibernationScheduleResumeConfigArgs{
    				Enabled: pulumi.Bool(true),
    				JobConfig: &castai.HibernationScheduleResumeConfigJobConfigArgs{
    					NodeConfig: &castai.HibernationScheduleResumeConfigJobConfigNodeConfigArgs{
    						InstanceType: pulumi.String("e2-standard-4"),
    					},
    				},
    				Schedule: &castai.HibernationScheduleResumeConfigScheduleArgs{
    					CronExpression: pulumi.String("0 9 * * 1-5"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Castai = Pulumi.Castai;
    
    return await Deployment.RunAsync(() => 
    {
        var mySchedule = new Castai.HibernationSchedule("mySchedule", new()
        {
            ClusterAssignments = new Castai.Inputs.HibernationScheduleClusterAssignmentsArgs
            {
                Assignments = new[]
                {
                    new Castai.Inputs.HibernationScheduleClusterAssignmentsAssignmentArgs
                    {
                        ClusterId = "38a49ce8-e900-4a10-be89-48fb2efb1025",
                    },
                },
            },
            Enabled = false,
            PauseConfig = new Castai.Inputs.HibernationSchedulePauseConfigArgs
            {
                Enabled = true,
                Schedule = new Castai.Inputs.HibernationSchedulePauseConfigScheduleArgs
                {
                    CronExpression = "0 17 * * 1-5",
                },
            },
            ResumeConfig = new Castai.Inputs.HibernationScheduleResumeConfigArgs
            {
                Enabled = true,
                JobConfig = new Castai.Inputs.HibernationScheduleResumeConfigJobConfigArgs
                {
                    NodeConfig = new Castai.Inputs.HibernationScheduleResumeConfigJobConfigNodeConfigArgs
                    {
                        InstanceType = "e2-standard-4",
                    },
                },
                Schedule = new Castai.Inputs.HibernationScheduleResumeConfigScheduleArgs
                {
                    CronExpression = "0 9 * * 1-5",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.castai.HibernationSchedule;
    import com.pulumi.castai.HibernationScheduleArgs;
    import com.pulumi.castai.inputs.HibernationScheduleClusterAssignmentsArgs;
    import com.pulumi.castai.inputs.HibernationSchedulePauseConfigArgs;
    import com.pulumi.castai.inputs.HibernationSchedulePauseConfigScheduleArgs;
    import com.pulumi.castai.inputs.HibernationScheduleResumeConfigArgs;
    import com.pulumi.castai.inputs.HibernationScheduleResumeConfigJobConfigArgs;
    import com.pulumi.castai.inputs.HibernationScheduleResumeConfigJobConfigNodeConfigArgs;
    import com.pulumi.castai.inputs.HibernationScheduleResumeConfigScheduleArgs;
    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 mySchedule = new HibernationSchedule("mySchedule", HibernationScheduleArgs.builder()
                .clusterAssignments(HibernationScheduleClusterAssignmentsArgs.builder()
                    .assignments(HibernationScheduleClusterAssignmentsAssignmentArgs.builder()
                        .clusterId("38a49ce8-e900-4a10-be89-48fb2efb1025")
                        .build())
                    .build())
                .enabled(false)
                .pauseConfig(HibernationSchedulePauseConfigArgs.builder()
                    .enabled(true)
                    .schedule(HibernationSchedulePauseConfigScheduleArgs.builder()
                        .cronExpression("0 17 * * 1-5")
                        .build())
                    .build())
                .resumeConfig(HibernationScheduleResumeConfigArgs.builder()
                    .enabled(true)
                    .jobConfig(HibernationScheduleResumeConfigJobConfigArgs.builder()
                        .nodeConfig(HibernationScheduleResumeConfigJobConfigNodeConfigArgs.builder()
                            .instanceType("e2-standard-4")
                            .build())
                        .build())
                    .schedule(HibernationScheduleResumeConfigScheduleArgs.builder()
                        .cronExpression("0 9 * * 1-5")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      mySchedule:
        type: castai:HibernationSchedule
        properties:
          clusterAssignments:
            assignments:
              - clusterId: 38a49ce8-e900-4a10-be89-48fb2efb1025
          enabled: false
          pauseConfig:
            enabled: true
            schedule:
              cronExpression: 0 17 * * 1-5
          resumeConfig:
            enabled: true
            jobConfig:
              nodeConfig:
                instanceType: e2-standard-4
            schedule:
              cronExpression: 0 9 * * 1-5
    

    Create HibernationSchedule Resource

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

    Constructor syntax

    new HibernationSchedule(name: string, args: HibernationScheduleArgs, opts?: CustomResourceOptions);
    @overload
    def HibernationSchedule(resource_name: str,
                            args: HibernationScheduleArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def HibernationSchedule(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            enabled: Optional[bool] = None,
                            pause_config: Optional[HibernationSchedulePauseConfigArgs] = None,
                            resume_config: Optional[HibernationScheduleResumeConfigArgs] = None,
                            cluster_assignments: Optional[HibernationScheduleClusterAssignmentsArgs] = None,
                            hibernation_schedule_id: Optional[str] = None,
                            name: Optional[str] = None,
                            organization_id: Optional[str] = None,
                            timeouts: Optional[HibernationScheduleTimeoutsArgs] = None)
    func NewHibernationSchedule(ctx *Context, name string, args HibernationScheduleArgs, opts ...ResourceOption) (*HibernationSchedule, error)
    public HibernationSchedule(string name, HibernationScheduleArgs args, CustomResourceOptions? opts = null)
    public HibernationSchedule(String name, HibernationScheduleArgs args)
    public HibernationSchedule(String name, HibernationScheduleArgs args, CustomResourceOptions options)
    
    type: castai:HibernationSchedule
    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 HibernationScheduleArgs
    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 HibernationScheduleArgs
    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 HibernationScheduleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HibernationScheduleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HibernationScheduleArgs
    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 hibernationScheduleResource = new Castai.HibernationSchedule("hibernationScheduleResource", new()
    {
        Enabled = false,
        PauseConfig = new Castai.Inputs.HibernationSchedulePauseConfigArgs
        {
            Enabled = false,
            Schedule = new Castai.Inputs.HibernationSchedulePauseConfigScheduleArgs
            {
                CronExpression = "string",
            },
        },
        ResumeConfig = new Castai.Inputs.HibernationScheduleResumeConfigArgs
        {
            Enabled = false,
            JobConfig = new Castai.Inputs.HibernationScheduleResumeConfigJobConfigArgs
            {
                NodeConfig = new Castai.Inputs.HibernationScheduleResumeConfigJobConfigNodeConfigArgs
                {
                    InstanceType = "string",
                    ConfigId = "string",
                    ConfigName = "string",
                    GpuConfig = new Castai.Inputs.HibernationScheduleResumeConfigJobConfigNodeConfigGpuConfigArgs
                    {
                        Count = 0,
                        Type = "string",
                    },
                    KubernetesLabels = 
                    {
                        { "string", "string" },
                    },
                    KubernetesTaints = new[]
                    {
                        new Castai.Inputs.HibernationScheduleResumeConfigJobConfigNodeConfigKubernetesTaintArgs
                        {
                            Key = "string",
                            Effect = "string",
                            Value = "string",
                        },
                    },
                    NodeAffinities = new[]
                    {
                        new Castai.Inputs.HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinityArgs
                        {
                            DedicatedGroup = "string",
                            Affinities = new[]
                            {
                                new Castai.Inputs.HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinityAffinityArgs
                                {
                                    Key = "string",
                                    Operator = "string",
                                    Values = new[]
                                    {
                                        "string",
                                    },
                                },
                            },
                        },
                    },
                    SpotConfigs = new[]
                    {
                        new Castai.Inputs.HibernationScheduleResumeConfigJobConfigNodeConfigSpotConfigArgs
                        {
                            PriceHourly = "string",
                            Spot = false,
                        },
                    },
                    SubnetId = "string",
                    Volumes = new[]
                    {
                        new Castai.Inputs.HibernationScheduleResumeConfigJobConfigNodeConfigVolumeArgs
                        {
                            RaidConfigs = new[]
                            {
                                new Castai.Inputs.HibernationScheduleResumeConfigJobConfigNodeConfigVolumeRaidConfigArgs
                                {
                                    ChunkSizeKb = 0,
                                },
                            },
                            SizeGib = 0,
                        },
                    },
                    Zone = "string",
                },
            },
            Schedule = new Castai.Inputs.HibernationScheduleResumeConfigScheduleArgs
            {
                CronExpression = "string",
            },
        },
        ClusterAssignments = new Castai.Inputs.HibernationScheduleClusterAssignmentsArgs
        {
            Assignments = new[]
            {
                new Castai.Inputs.HibernationScheduleClusterAssignmentsAssignmentArgs
                {
                    ClusterId = "string",
                },
            },
        },
        HibernationScheduleId = "string",
        Name = "string",
        OrganizationId = "string",
        Timeouts = new Castai.Inputs.HibernationScheduleTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Read = "string",
            Update = "string",
        },
    });
    
    example, err := castai.NewHibernationSchedule(ctx, "hibernationScheduleResource", &castai.HibernationScheduleArgs{
    	Enabled: pulumi.Bool(false),
    	PauseConfig: &castai.HibernationSchedulePauseConfigArgs{
    		Enabled: pulumi.Bool(false),
    		Schedule: &castai.HibernationSchedulePauseConfigScheduleArgs{
    			CronExpression: pulumi.String("string"),
    		},
    	},
    	ResumeConfig: &castai.HibernationScheduleResumeConfigArgs{
    		Enabled: pulumi.Bool(false),
    		JobConfig: &castai.HibernationScheduleResumeConfigJobConfigArgs{
    			NodeConfig: &castai.HibernationScheduleResumeConfigJobConfigNodeConfigArgs{
    				InstanceType: pulumi.String("string"),
    				ConfigId:     pulumi.String("string"),
    				ConfigName:   pulumi.String("string"),
    				GpuConfig: &castai.HibernationScheduleResumeConfigJobConfigNodeConfigGpuConfigArgs{
    					Count: pulumi.Float64(0),
    					Type:  pulumi.String("string"),
    				},
    				KubernetesLabels: pulumi.StringMap{
    					"string": pulumi.String("string"),
    				},
    				KubernetesTaints: castai.HibernationScheduleResumeConfigJobConfigNodeConfigKubernetesTaintArray{
    					&castai.HibernationScheduleResumeConfigJobConfigNodeConfigKubernetesTaintArgs{
    						Key:    pulumi.String("string"),
    						Effect: pulumi.String("string"),
    						Value:  pulumi.String("string"),
    					},
    				},
    				NodeAffinities: castai.HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinityArray{
    					&castai.HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinityArgs{
    						DedicatedGroup: pulumi.String("string"),
    						Affinities: castai.HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinityAffinityArray{
    							&castai.HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinityAffinityArgs{
    								Key:      pulumi.String("string"),
    								Operator: pulumi.String("string"),
    								Values: pulumi.StringArray{
    									pulumi.String("string"),
    								},
    							},
    						},
    					},
    				},
    				SpotConfigs: castai.HibernationScheduleResumeConfigJobConfigNodeConfigSpotConfigArray{
    					&castai.HibernationScheduleResumeConfigJobConfigNodeConfigSpotConfigArgs{
    						PriceHourly: pulumi.String("string"),
    						Spot:        pulumi.Bool(false),
    					},
    				},
    				SubnetId: pulumi.String("string"),
    				Volumes: castai.HibernationScheduleResumeConfigJobConfigNodeConfigVolumeArray{
    					&castai.HibernationScheduleResumeConfigJobConfigNodeConfigVolumeArgs{
    						RaidConfigs: castai.HibernationScheduleResumeConfigJobConfigNodeConfigVolumeRaidConfigArray{
    							&castai.HibernationScheduleResumeConfigJobConfigNodeConfigVolumeRaidConfigArgs{
    								ChunkSizeKb: pulumi.Float64(0),
    							},
    						},
    						SizeGib: pulumi.Float64(0),
    					},
    				},
    				Zone: pulumi.String("string"),
    			},
    		},
    		Schedule: &castai.HibernationScheduleResumeConfigScheduleArgs{
    			CronExpression: pulumi.String("string"),
    		},
    	},
    	ClusterAssignments: &castai.HibernationScheduleClusterAssignmentsArgs{
    		Assignments: castai.HibernationScheduleClusterAssignmentsAssignmentArray{
    			&castai.HibernationScheduleClusterAssignmentsAssignmentArgs{
    				ClusterId: pulumi.String("string"),
    			},
    		},
    	},
    	HibernationScheduleId: pulumi.String("string"),
    	Name:                  pulumi.String("string"),
    	OrganizationId:        pulumi.String("string"),
    	Timeouts: &castai.HibernationScheduleTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Read:   pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var hibernationScheduleResource = new HibernationSchedule("hibernationScheduleResource", HibernationScheduleArgs.builder()
        .enabled(false)
        .pauseConfig(HibernationSchedulePauseConfigArgs.builder()
            .enabled(false)
            .schedule(HibernationSchedulePauseConfigScheduleArgs.builder()
                .cronExpression("string")
                .build())
            .build())
        .resumeConfig(HibernationScheduleResumeConfigArgs.builder()
            .enabled(false)
            .jobConfig(HibernationScheduleResumeConfigJobConfigArgs.builder()
                .nodeConfig(HibernationScheduleResumeConfigJobConfigNodeConfigArgs.builder()
                    .instanceType("string")
                    .configId("string")
                    .configName("string")
                    .gpuConfig(HibernationScheduleResumeConfigJobConfigNodeConfigGpuConfigArgs.builder()
                        .count(0)
                        .type("string")
                        .build())
                    .kubernetesLabels(Map.of("string", "string"))
                    .kubernetesTaints(HibernationScheduleResumeConfigJobConfigNodeConfigKubernetesTaintArgs.builder()
                        .key("string")
                        .effect("string")
                        .value("string")
                        .build())
                    .nodeAffinities(HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinityArgs.builder()
                        .dedicatedGroup("string")
                        .affinities(HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinityAffinityArgs.builder()
                            .key("string")
                            .operator("string")
                            .values("string")
                            .build())
                        .build())
                    .spotConfigs(HibernationScheduleResumeConfigJobConfigNodeConfigSpotConfigArgs.builder()
                        .priceHourly("string")
                        .spot(false)
                        .build())
                    .subnetId("string")
                    .volumes(HibernationScheduleResumeConfigJobConfigNodeConfigVolumeArgs.builder()
                        .raidConfigs(HibernationScheduleResumeConfigJobConfigNodeConfigVolumeRaidConfigArgs.builder()
                            .chunkSizeKb(0)
                            .build())
                        .sizeGib(0)
                        .build())
                    .zone("string")
                    .build())
                .build())
            .schedule(HibernationScheduleResumeConfigScheduleArgs.builder()
                .cronExpression("string")
                .build())
            .build())
        .clusterAssignments(HibernationScheduleClusterAssignmentsArgs.builder()
            .assignments(HibernationScheduleClusterAssignmentsAssignmentArgs.builder()
                .clusterId("string")
                .build())
            .build())
        .hibernationScheduleId("string")
        .name("string")
        .organizationId("string")
        .timeouts(HibernationScheduleTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .read("string")
            .update("string")
            .build())
        .build());
    
    hibernation_schedule_resource = castai.HibernationSchedule("hibernationScheduleResource",
        enabled=False,
        pause_config={
            "enabled": False,
            "schedule": {
                "cron_expression": "string",
            },
        },
        resume_config={
            "enabled": False,
            "job_config": {
                "node_config": {
                    "instance_type": "string",
                    "config_id": "string",
                    "config_name": "string",
                    "gpu_config": {
                        "count": 0,
                        "type": "string",
                    },
                    "kubernetes_labels": {
                        "string": "string",
                    },
                    "kubernetes_taints": [{
                        "key": "string",
                        "effect": "string",
                        "value": "string",
                    }],
                    "node_affinities": [{
                        "dedicated_group": "string",
                        "affinities": [{
                            "key": "string",
                            "operator": "string",
                            "values": ["string"],
                        }],
                    }],
                    "spot_configs": [{
                        "price_hourly": "string",
                        "spot": False,
                    }],
                    "subnet_id": "string",
                    "volumes": [{
                        "raid_configs": [{
                            "chunk_size_kb": 0,
                        }],
                        "size_gib": 0,
                    }],
                    "zone": "string",
                },
            },
            "schedule": {
                "cron_expression": "string",
            },
        },
        cluster_assignments={
            "assignments": [{
                "cluster_id": "string",
            }],
        },
        hibernation_schedule_id="string",
        name="string",
        organization_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "read": "string",
            "update": "string",
        })
    
    const hibernationScheduleResource = new castai.HibernationSchedule("hibernationScheduleResource", {
        enabled: false,
        pauseConfig: {
            enabled: false,
            schedule: {
                cronExpression: "string",
            },
        },
        resumeConfig: {
            enabled: false,
            jobConfig: {
                nodeConfig: {
                    instanceType: "string",
                    configId: "string",
                    configName: "string",
                    gpuConfig: {
                        count: 0,
                        type: "string",
                    },
                    kubernetesLabels: {
                        string: "string",
                    },
                    kubernetesTaints: [{
                        key: "string",
                        effect: "string",
                        value: "string",
                    }],
                    nodeAffinities: [{
                        dedicatedGroup: "string",
                        affinities: [{
                            key: "string",
                            operator: "string",
                            values: ["string"],
                        }],
                    }],
                    spotConfigs: [{
                        priceHourly: "string",
                        spot: false,
                    }],
                    subnetId: "string",
                    volumes: [{
                        raidConfigs: [{
                            chunkSizeKb: 0,
                        }],
                        sizeGib: 0,
                    }],
                    zone: "string",
                },
            },
            schedule: {
                cronExpression: "string",
            },
        },
        clusterAssignments: {
            assignments: [{
                clusterId: "string",
            }],
        },
        hibernationScheduleId: "string",
        name: "string",
        organizationId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            read: "string",
            update: "string",
        },
    });
    
    type: castai:HibernationSchedule
    properties:
        clusterAssignments:
            assignments:
                - clusterId: string
        enabled: false
        hibernationScheduleId: string
        name: string
        organizationId: string
        pauseConfig:
            enabled: false
            schedule:
                cronExpression: string
        resumeConfig:
            enabled: false
            jobConfig:
                nodeConfig:
                    configId: string
                    configName: string
                    gpuConfig:
                        count: 0
                        type: string
                    instanceType: string
                    kubernetesLabels:
                        string: string
                    kubernetesTaints:
                        - effect: string
                          key: string
                          value: string
                    nodeAffinities:
                        - affinities:
                            - key: string
                              operator: string
                              values:
                                - string
                          dedicatedGroup: string
                    spotConfigs:
                        - priceHourly: string
                          spot: false
                    subnetId: string
                    volumes:
                        - raidConfigs:
                            - chunkSizeKb: 0
                          sizeGib: 0
                    zone: string
            schedule:
                cronExpression: string
        timeouts:
            create: string
            delete: string
            read: string
            update: string
    

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

    Enabled bool
    Enables or disables the schedule.
    PauseConfig HibernationSchedulePauseConfig
    ResumeConfig HibernationScheduleResumeConfig
    ClusterAssignments HibernationScheduleClusterAssignments
    HibernationScheduleId string
    The ID of this resource.
    Name string
    Name of the schedule.
    OrganizationId string
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    Timeouts HibernationScheduleTimeouts
    Enabled bool
    Enables or disables the schedule.
    PauseConfig HibernationSchedulePauseConfigArgs
    ResumeConfig HibernationScheduleResumeConfigArgs
    ClusterAssignments HibernationScheduleClusterAssignmentsArgs
    HibernationScheduleId string
    The ID of this resource.
    Name string
    Name of the schedule.
    OrganizationId string
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    Timeouts HibernationScheduleTimeoutsArgs
    enabled Boolean
    Enables or disables the schedule.
    pauseConfig HibernationSchedulePauseConfig
    resumeConfig HibernationScheduleResumeConfig
    clusterAssignments HibernationScheduleClusterAssignments
    hibernationScheduleId String
    The ID of this resource.
    name String
    Name of the schedule.
    organizationId String
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    timeouts HibernationScheduleTimeouts
    enabled boolean
    Enables or disables the schedule.
    pauseConfig HibernationSchedulePauseConfig
    resumeConfig HibernationScheduleResumeConfig
    clusterAssignments HibernationScheduleClusterAssignments
    hibernationScheduleId string
    The ID of this resource.
    name string
    Name of the schedule.
    organizationId string
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    timeouts HibernationScheduleTimeouts
    enabled bool
    Enables or disables the schedule.
    pause_config HibernationSchedulePauseConfigArgs
    resume_config HibernationScheduleResumeConfigArgs
    cluster_assignments HibernationScheduleClusterAssignmentsArgs
    hibernation_schedule_id str
    The ID of this resource.
    name str
    Name of the schedule.
    organization_id str
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    timeouts HibernationScheduleTimeoutsArgs
    enabled Boolean
    Enables or disables the schedule.
    pauseConfig Property Map
    resumeConfig Property Map
    clusterAssignments Property Map
    hibernationScheduleId String
    The ID of this resource.
    name String
    Name of the schedule.
    organizationId String
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the HibernationSchedule 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 HibernationSchedule Resource

    Get an existing HibernationSchedule 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?: HibernationScheduleState, opts?: CustomResourceOptions): HibernationSchedule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_assignments: Optional[HibernationScheduleClusterAssignmentsArgs] = None,
            enabled: Optional[bool] = None,
            hibernation_schedule_id: Optional[str] = None,
            name: Optional[str] = None,
            organization_id: Optional[str] = None,
            pause_config: Optional[HibernationSchedulePauseConfigArgs] = None,
            resume_config: Optional[HibernationScheduleResumeConfigArgs] = None,
            timeouts: Optional[HibernationScheduleTimeoutsArgs] = None) -> HibernationSchedule
    func GetHibernationSchedule(ctx *Context, name string, id IDInput, state *HibernationScheduleState, opts ...ResourceOption) (*HibernationSchedule, error)
    public static HibernationSchedule Get(string name, Input<string> id, HibernationScheduleState? state, CustomResourceOptions? opts = null)
    public static HibernationSchedule get(String name, Output<String> id, HibernationScheduleState state, CustomResourceOptions options)
    resources:  _:    type: castai:HibernationSchedule    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:
    ClusterAssignments HibernationScheduleClusterAssignments
    Enabled bool
    Enables or disables the schedule.
    HibernationScheduleId string
    The ID of this resource.
    Name string
    Name of the schedule.
    OrganizationId string
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    PauseConfig HibernationSchedulePauseConfig
    ResumeConfig HibernationScheduleResumeConfig
    Timeouts HibernationScheduleTimeouts
    ClusterAssignments HibernationScheduleClusterAssignmentsArgs
    Enabled bool
    Enables or disables the schedule.
    HibernationScheduleId string
    The ID of this resource.
    Name string
    Name of the schedule.
    OrganizationId string
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    PauseConfig HibernationSchedulePauseConfigArgs
    ResumeConfig HibernationScheduleResumeConfigArgs
    Timeouts HibernationScheduleTimeoutsArgs
    clusterAssignments HibernationScheduleClusterAssignments
    enabled Boolean
    Enables or disables the schedule.
    hibernationScheduleId String
    The ID of this resource.
    name String
    Name of the schedule.
    organizationId String
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    pauseConfig HibernationSchedulePauseConfig
    resumeConfig HibernationScheduleResumeConfig
    timeouts HibernationScheduleTimeouts
    clusterAssignments HibernationScheduleClusterAssignments
    enabled boolean
    Enables or disables the schedule.
    hibernationScheduleId string
    The ID of this resource.
    name string
    Name of the schedule.
    organizationId string
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    pauseConfig HibernationSchedulePauseConfig
    resumeConfig HibernationScheduleResumeConfig
    timeouts HibernationScheduleTimeouts
    cluster_assignments HibernationScheduleClusterAssignmentsArgs
    enabled bool
    Enables or disables the schedule.
    hibernation_schedule_id str
    The ID of this resource.
    name str
    Name of the schedule.
    organization_id str
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    pause_config HibernationSchedulePauseConfigArgs
    resume_config HibernationScheduleResumeConfigArgs
    timeouts HibernationScheduleTimeoutsArgs
    clusterAssignments Property Map
    enabled Boolean
    Enables or disables the schedule.
    hibernationScheduleId String
    The ID of this resource.
    name String
    Name of the schedule.
    organizationId String
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    pauseConfig Property Map
    resumeConfig Property Map
    timeouts Property Map

    Supporting Types

    HibernationScheduleClusterAssignments, HibernationScheduleClusterAssignmentsArgs

    HibernationScheduleClusterAssignmentsAssignment, HibernationScheduleClusterAssignmentsAssignmentArgs

    ClusterId string
    ID of the cluster.
    ClusterId string
    ID of the cluster.
    clusterId String
    ID of the cluster.
    clusterId string
    ID of the cluster.
    cluster_id str
    ID of the cluster.
    clusterId String
    ID of the cluster.

    HibernationSchedulePauseConfig, HibernationSchedulePauseConfigArgs

    Enabled bool
    Enables or disables the pause configuration.
    Schedule HibernationSchedulePauseConfigSchedule
    Enabled bool
    Enables or disables the pause configuration.
    Schedule HibernationSchedulePauseConfigSchedule
    enabled Boolean
    Enables or disables the pause configuration.
    schedule HibernationSchedulePauseConfigSchedule
    enabled boolean
    Enables or disables the pause configuration.
    schedule HibernationSchedulePauseConfigSchedule
    enabled bool
    Enables or disables the pause configuration.
    schedule HibernationSchedulePauseConfigSchedule
    enabled Boolean
    Enables or disables the pause configuration.
    schedule Property Map

    HibernationSchedulePauseConfigSchedule, HibernationSchedulePauseConfigScheduleArgs

    CronExpression string
    Cron expression defining when the schedule should trigger.
    CronExpression string
    Cron expression defining when the schedule should trigger.
    cronExpression String
    Cron expression defining when the schedule should trigger.
    cronExpression string
    Cron expression defining when the schedule should trigger.
    cron_expression str
    Cron expression defining when the schedule should trigger.
    cronExpression String
    Cron expression defining when the schedule should trigger.

    HibernationScheduleResumeConfig, HibernationScheduleResumeConfigArgs

    enabled Boolean
    Enables or disables the pause configuration.
    jobConfig Property Map
    schedule Property Map

    HibernationScheduleResumeConfigJobConfig, HibernationScheduleResumeConfigJobConfigArgs

    HibernationScheduleResumeConfigJobConfigNodeConfig, HibernationScheduleResumeConfigJobConfigNodeConfigArgs

    InstanceType string
    Instance type.
    ConfigId string
    ID reference of Node Configuration to be used for node creation. Supersedes 'config_name' parameter.
    ConfigName string
    Name reference of Node Configuration to be used for node creation. Superseded if 'config_id' parameter is provided.
    GpuConfig HibernationScheduleResumeConfigJobConfigNodeConfigGpuConfig
    KubernetesLabels Dictionary<string, string>
    Custom labels to be added to the node.
    KubernetesTaints List<HibernationScheduleResumeConfigJobConfigNodeConfigKubernetesTaint>
    Custom taints to be added to the node created from this configuration.
    NodeAffinities List<HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinity>
    Custom taints to be added to the node created from this configuration.
    SpotConfigs List<HibernationScheduleResumeConfigJobConfigNodeConfigSpotConfig>
    Custom taints to be added to the node created from this configuration.
    SubnetId string
    Node subnet ID.
    Volumes List<HibernationScheduleResumeConfigJobConfigNodeConfigVolume>
    Zone string
    Zone of the node.
    InstanceType string
    Instance type.
    ConfigId string
    ID reference of Node Configuration to be used for node creation. Supersedes 'config_name' parameter.
    ConfigName string
    Name reference of Node Configuration to be used for node creation. Superseded if 'config_id' parameter is provided.
    GpuConfig HibernationScheduleResumeConfigJobConfigNodeConfigGpuConfig
    KubernetesLabels map[string]string
    Custom labels to be added to the node.
    KubernetesTaints []HibernationScheduleResumeConfigJobConfigNodeConfigKubernetesTaint
    Custom taints to be added to the node created from this configuration.
    NodeAffinities []HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinity
    Custom taints to be added to the node created from this configuration.
    SpotConfigs []HibernationScheduleResumeConfigJobConfigNodeConfigSpotConfig
    Custom taints to be added to the node created from this configuration.
    SubnetId string
    Node subnet ID.
    Volumes []HibernationScheduleResumeConfigJobConfigNodeConfigVolume
    Zone string
    Zone of the node.
    instanceType String
    Instance type.
    configId String
    ID reference of Node Configuration to be used for node creation. Supersedes 'config_name' parameter.
    configName String
    Name reference of Node Configuration to be used for node creation. Superseded if 'config_id' parameter is provided.
    gpuConfig HibernationScheduleResumeConfigJobConfigNodeConfigGpuConfig
    kubernetesLabels Map<String,String>
    Custom labels to be added to the node.
    kubernetesTaints List<HibernationScheduleResumeConfigJobConfigNodeConfigKubernetesTaint>
    Custom taints to be added to the node created from this configuration.
    nodeAffinities List<HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinity>
    Custom taints to be added to the node created from this configuration.
    spotConfigs List<HibernationScheduleResumeConfigJobConfigNodeConfigSpotConfig>
    Custom taints to be added to the node created from this configuration.
    subnetId String
    Node subnet ID.
    volumes List<HibernationScheduleResumeConfigJobConfigNodeConfigVolume>
    zone String
    Zone of the node.
    instanceType string
    Instance type.
    configId string
    ID reference of Node Configuration to be used for node creation. Supersedes 'config_name' parameter.
    configName string
    Name reference of Node Configuration to be used for node creation. Superseded if 'config_id' parameter is provided.
    gpuConfig HibernationScheduleResumeConfigJobConfigNodeConfigGpuConfig
    kubernetesLabels {[key: string]: string}
    Custom labels to be added to the node.
    kubernetesTaints HibernationScheduleResumeConfigJobConfigNodeConfigKubernetesTaint[]
    Custom taints to be added to the node created from this configuration.
    nodeAffinities HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinity[]
    Custom taints to be added to the node created from this configuration.
    spotConfigs HibernationScheduleResumeConfigJobConfigNodeConfigSpotConfig[]
    Custom taints to be added to the node created from this configuration.
    subnetId string
    Node subnet ID.
    volumes HibernationScheduleResumeConfigJobConfigNodeConfigVolume[]
    zone string
    Zone of the node.
    instance_type str
    Instance type.
    config_id str
    ID reference of Node Configuration to be used for node creation. Supersedes 'config_name' parameter.
    config_name str
    Name reference of Node Configuration to be used for node creation. Superseded if 'config_id' parameter is provided.
    gpu_config HibernationScheduleResumeConfigJobConfigNodeConfigGpuConfig
    kubernetes_labels Mapping[str, str]
    Custom labels to be added to the node.
    kubernetes_taints Sequence[HibernationScheduleResumeConfigJobConfigNodeConfigKubernetesTaint]
    Custom taints to be added to the node created from this configuration.
    node_affinities Sequence[HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinity]
    Custom taints to be added to the node created from this configuration.
    spot_configs Sequence[HibernationScheduleResumeConfigJobConfigNodeConfigSpotConfig]
    Custom taints to be added to the node created from this configuration.
    subnet_id str
    Node subnet ID.
    volumes Sequence[HibernationScheduleResumeConfigJobConfigNodeConfigVolume]
    zone str
    Zone of the node.
    instanceType String
    Instance type.
    configId String
    ID reference of Node Configuration to be used for node creation. Supersedes 'config_name' parameter.
    configName String
    Name reference of Node Configuration to be used for node creation. Superseded if 'config_id' parameter is provided.
    gpuConfig Property Map
    kubernetesLabels Map<String>
    Custom labels to be added to the node.
    kubernetesTaints List<Property Map>
    Custom taints to be added to the node created from this configuration.
    nodeAffinities List<Property Map>
    Custom taints to be added to the node created from this configuration.
    spotConfigs List<Property Map>
    Custom taints to be added to the node created from this configuration.
    subnetId String
    Node subnet ID.
    volumes List<Property Map>
    zone String
    Zone of the node.

    HibernationScheduleResumeConfigJobConfigNodeConfigGpuConfig, HibernationScheduleResumeConfigJobConfigNodeConfigGpuConfigArgs

    Count double
    Number of GPUs.
    Type string
    GPU type.
    Count float64
    Number of GPUs.
    Type string
    GPU type.
    count Double
    Number of GPUs.
    type String
    GPU type.
    count number
    Number of GPUs.
    type string
    GPU type.
    count float
    Number of GPUs.
    type str
    GPU type.
    count Number
    Number of GPUs.
    type String
    GPU type.

    HibernationScheduleResumeConfigJobConfigNodeConfigKubernetesTaint, HibernationScheduleResumeConfigJobConfigNodeConfigKubernetesTaintArgs

    Key string
    Key of a taint to be added to nodes created from this template.
    Effect string
    Effect of a taint to be added to nodes created from this template, the default is NoSchedule. Allowed values: NoSchedule, NoExecute.
    Value string
    Value of a taint to be added to nodes created from this template.
    Key string
    Key of a taint to be added to nodes created from this template.
    Effect string
    Effect of a taint to be added to nodes created from this template, the default is NoSchedule. Allowed values: NoSchedule, NoExecute.
    Value string
    Value of a taint to be added to nodes created from this template.
    key String
    Key of a taint to be added to nodes created from this template.
    effect String
    Effect of a taint to be added to nodes created from this template, the default is NoSchedule. Allowed values: NoSchedule, NoExecute.
    value String
    Value of a taint to be added to nodes created from this template.
    key string
    Key of a taint to be added to nodes created from this template.
    effect string
    Effect of a taint to be added to nodes created from this template, the default is NoSchedule. Allowed values: NoSchedule, NoExecute.
    value string
    Value of a taint to be added to nodes created from this template.
    key str
    Key of a taint to be added to nodes created from this template.
    effect str
    Effect of a taint to be added to nodes created from this template, the default is NoSchedule. Allowed values: NoSchedule, NoExecute.
    value str
    Value of a taint to be added to nodes created from this template.
    key String
    Key of a taint to be added to nodes created from this template.
    effect String
    Effect of a taint to be added to nodes created from this template, the default is NoSchedule. Allowed values: NoSchedule, NoExecute.
    value String
    Value of a taint to be added to nodes created from this template.

    HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinity, HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinityArgs

    DedicatedGroup string
    Key of a taint to be added to nodes created from this template.
    Affinities List<HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinityAffinity>
    DedicatedGroup string
    Key of a taint to be added to nodes created from this template.
    Affinities []HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinityAffinity
    dedicatedGroup String
    Key of a taint to be added to nodes created from this template.
    affinities List<HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinityAffinity>
    dedicatedGroup string
    Key of a taint to be added to nodes created from this template.
    affinities HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinityAffinity[]
    dedicatedGroup String
    Key of a taint to be added to nodes created from this template.
    affinities List<Property Map>

    HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinityAffinity, HibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinityAffinityArgs

    Key string
    Key of the node affinity selector.
    Operator string
    Operator of the node affinity selector. Allowed values: DOESNOTEXIST, EXISTS, GT, IN, LT, NOT_IN.
    Values List<string>
    Values of the node affinity selector.
    Key string
    Key of the node affinity selector.
    Operator string
    Operator of the node affinity selector. Allowed values: DOESNOTEXIST, EXISTS, GT, IN, LT, NOT_IN.
    Values []string
    Values of the node affinity selector.
    key String
    Key of the node affinity selector.
    operator String
    Operator of the node affinity selector. Allowed values: DOESNOTEXIST, EXISTS, GT, IN, LT, NOT_IN.
    values List<String>
    Values of the node affinity selector.
    key string
    Key of the node affinity selector.
    operator string
    Operator of the node affinity selector. Allowed values: DOESNOTEXIST, EXISTS, GT, IN, LT, NOT_IN.
    values string[]
    Values of the node affinity selector.
    key str
    Key of the node affinity selector.
    operator str
    Operator of the node affinity selector. Allowed values: DOESNOTEXIST, EXISTS, GT, IN, LT, NOT_IN.
    values Sequence[str]
    Values of the node affinity selector.
    key String
    Key of the node affinity selector.
    operator String
    Operator of the node affinity selector. Allowed values: DOESNOTEXIST, EXISTS, GT, IN, LT, NOT_IN.
    values List<String>
    Values of the node affinity selector.

    HibernationScheduleResumeConfigJobConfigNodeConfigSpotConfig, HibernationScheduleResumeConfigJobConfigNodeConfigSpotConfigArgs

    PriceHourly string
    Spot instance price. Applicable only for AWS nodes.
    Spot bool
    Whether node should be created as spot instance.
    PriceHourly string
    Spot instance price. Applicable only for AWS nodes.
    Spot bool
    Whether node should be created as spot instance.
    priceHourly String
    Spot instance price. Applicable only for AWS nodes.
    spot Boolean
    Whether node should be created as spot instance.
    priceHourly string
    Spot instance price. Applicable only for AWS nodes.
    spot boolean
    Whether node should be created as spot instance.
    price_hourly str
    Spot instance price. Applicable only for AWS nodes.
    spot bool
    Whether node should be created as spot instance.
    priceHourly String
    Spot instance price. Applicable only for AWS nodes.
    spot Boolean
    Whether node should be created as spot instance.

    HibernationScheduleResumeConfigJobConfigNodeConfigVolume, HibernationScheduleResumeConfigJobConfigNodeConfigVolumeArgs

    raidConfigs List<Property Map>
    sizeGib Number
    Volume size in GiB.

    HibernationScheduleResumeConfigJobConfigNodeConfigVolumeRaidConfig, HibernationScheduleResumeConfigJobConfigNodeConfigVolumeRaidConfigArgs

    ChunkSizeKb double
    Specify the RAID0 chunk size in kilobytes, this parameter affects the read/write in the disk array and must be tailored for the type of data written by the workloads in the node. If not provided it will default to 64KB
    ChunkSizeKb float64
    Specify the RAID0 chunk size in kilobytes, this parameter affects the read/write in the disk array and must be tailored for the type of data written by the workloads in the node. If not provided it will default to 64KB
    chunkSizeKb Double
    Specify the RAID0 chunk size in kilobytes, this parameter affects the read/write in the disk array and must be tailored for the type of data written by the workloads in the node. If not provided it will default to 64KB
    chunkSizeKb number
    Specify the RAID0 chunk size in kilobytes, this parameter affects the read/write in the disk array and must be tailored for the type of data written by the workloads in the node. If not provided it will default to 64KB
    chunk_size_kb float
    Specify the RAID0 chunk size in kilobytes, this parameter affects the read/write in the disk array and must be tailored for the type of data written by the workloads in the node. If not provided it will default to 64KB
    chunkSizeKb Number
    Specify the RAID0 chunk size in kilobytes, this parameter affects the read/write in the disk array and must be tailored for the type of data written by the workloads in the node. If not provided it will default to 64KB

    HibernationScheduleResumeConfigSchedule, HibernationScheduleResumeConfigScheduleArgs

    CronExpression string
    Cron expression defining when the schedule should trigger.
    CronExpression string
    Cron expression defining when the schedule should trigger.
    cronExpression String
    Cron expression defining when the schedule should trigger.
    cronExpression string
    Cron expression defining when the schedule should trigger.
    cron_expression str
    Cron expression defining when the schedule should trigger.
    cronExpression String
    Cron expression defining when the schedule should trigger.

    HibernationScheduleTimeouts, HibernationScheduleTimeoutsArgs

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

    Import

    Associate terraform resource “my_schedule” with a hibernation schedule named “workday”.

    Will use the default organization ID, that is associated with the API token.

    $ pulumi import castai:index/hibernationSchedule:HibernationSchedule my_schedule' workday
    

    Importing via direct schedule ID is also possible.

    Will use the default organization ID, that is associated with the API token.

    $ pulumi import castai:index/hibernationSchedule:HibernationSchedule my_schedule' e5ee784d-2c4b-4820-ab4e-16e4b81534a4
    

    Import using organization ID and schedule name/ID in format /<schedule id|schedule name>.

    $ pulumi import castai:index/hibernationSchedule:HibernationSchedule my_schedule' 63895dfe-dc8b-49b6-959c-3f3545de525a/workday
    

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

    Package Details

    Repository
    castai castai/terraform-provider-castai
    License
    Notes
    This Pulumi package is based on the castai Terraform Provider.
    castai logo
    castai 7.49.0 published on Wednesday, Apr 30, 2025 by castai