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

castai.getHibernationSchedule

Explore with Pulumi AI

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

    Retrieve Hibernation Schedule

    Using getHibernationSchedule

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getHibernationSchedule(args: GetHibernationScheduleArgs, opts?: InvokeOptions): Promise<GetHibernationScheduleResult>
    function getHibernationScheduleOutput(args: GetHibernationScheduleOutputArgs, opts?: InvokeOptions): Output<GetHibernationScheduleResult>
    def get_hibernation_schedule(cluster_assignments: Optional[Sequence[GetHibernationScheduleClusterAssignment]] = None,
                                 id: Optional[str] = None,
                                 name: Optional[str] = None,
                                 organization_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetHibernationScheduleResult
    def get_hibernation_schedule_output(cluster_assignments: Optional[pulumi.Input[Sequence[pulumi.Input[GetHibernationScheduleClusterAssignmentArgs]]]] = None,
                                 id: Optional[pulumi.Input[str]] = None,
                                 name: Optional[pulumi.Input[str]] = None,
                                 organization_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetHibernationScheduleResult]
    func LookupHibernationSchedule(ctx *Context, args *LookupHibernationScheduleArgs, opts ...InvokeOption) (*LookupHibernationScheduleResult, error)
    func LookupHibernationScheduleOutput(ctx *Context, args *LookupHibernationScheduleOutputArgs, opts ...InvokeOption) LookupHibernationScheduleResultOutput

    > Note: This function is named LookupHibernationSchedule in the Go SDK.

    public static class GetHibernationSchedule 
    {
        public static Task<GetHibernationScheduleResult> InvokeAsync(GetHibernationScheduleArgs args, InvokeOptions? opts = null)
        public static Output<GetHibernationScheduleResult> Invoke(GetHibernationScheduleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetHibernationScheduleResult> getHibernationSchedule(GetHibernationScheduleArgs args, InvokeOptions options)
    public static Output<GetHibernationScheduleResult> getHibernationSchedule(GetHibernationScheduleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: castai:index/getHibernationSchedule:getHibernationSchedule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the schedule.
    ClusterAssignments List<GetHibernationScheduleClusterAssignment>
    Id string
    The ID of this resource.
    OrganizationId string
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    Name string
    Name of the schedule.
    ClusterAssignments []GetHibernationScheduleClusterAssignment
    Id string
    The ID of this resource.
    OrganizationId string
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    name String
    Name of the schedule.
    clusterAssignments List<GetHibernationScheduleClusterAssignment>
    id String
    The ID of this resource.
    organizationId String
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    name string
    Name of the schedule.
    clusterAssignments GetHibernationScheduleClusterAssignment[]
    id string
    The ID of this resource.
    organizationId string
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    name str
    Name of the schedule.
    cluster_assignments Sequence[GetHibernationScheduleClusterAssignment]
    id str
    The ID of this resource.
    organization_id str
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    name String
    Name of the schedule.
    clusterAssignments List<Property Map>
    id String
    The ID of this resource.
    organizationId String
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.

    getHibernationSchedule Result

    The following output properties are available:

    Enabled bool
    Enables or disables the schedule.
    Id string
    The ID of this resource.
    Name string
    Name of the schedule.
    PauseConfigs List<GetHibernationSchedulePauseConfig>
    ResumeConfigs List<GetHibernationScheduleResumeConfig>
    ClusterAssignments List<GetHibernationScheduleClusterAssignment>
    OrganizationId string
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    Enabled bool
    Enables or disables the schedule.
    Id string
    The ID of this resource.
    Name string
    Name of the schedule.
    PauseConfigs []GetHibernationSchedulePauseConfig
    ResumeConfigs []GetHibernationScheduleResumeConfig
    ClusterAssignments []GetHibernationScheduleClusterAssignment
    OrganizationId string
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    enabled Boolean
    Enables or disables the schedule.
    id String
    The ID of this resource.
    name String
    Name of the schedule.
    pauseConfigs List<GetHibernationSchedulePauseConfig>
    resumeConfigs List<GetHibernationScheduleResumeConfig>
    clusterAssignments List<GetHibernationScheduleClusterAssignment>
    organizationId String
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    enabled boolean
    Enables or disables the schedule.
    id string
    The ID of this resource.
    name string
    Name of the schedule.
    pauseConfigs GetHibernationSchedulePauseConfig[]
    resumeConfigs GetHibernationScheduleResumeConfig[]
    clusterAssignments GetHibernationScheduleClusterAssignment[]
    organizationId string
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    enabled bool
    Enables or disables the schedule.
    id str
    The ID of this resource.
    name str
    Name of the schedule.
    pause_configs Sequence[GetHibernationSchedulePauseConfig]
    resume_configs Sequence[GetHibernationScheduleResumeConfig]
    cluster_assignments Sequence[GetHibernationScheduleClusterAssignment]
    organization_id str
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.
    enabled Boolean
    Enables or disables the schedule.
    id String
    The ID of this resource.
    name String
    Name of the schedule.
    pauseConfigs List<Property Map>
    resumeConfigs List<Property Map>
    clusterAssignments List<Property Map>
    organizationId String
    ID of the organization. If not provided, then will attempt to infer it using CAST AI API client.

    Supporting Types

    GetHibernationScheduleClusterAssignment

    GetHibernationScheduleClusterAssignmentAssignment

    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.

    GetHibernationSchedulePauseConfig

    GetHibernationSchedulePauseConfigSchedule

    GetHibernationScheduleResumeConfig

    GetHibernationScheduleResumeConfigJobConfig

    GetHibernationScheduleResumeConfigJobConfigNodeConfig

    GetHibernationScheduleResumeConfigJobConfigNodeConfigGpuConfig

    Count double
    Type string
    Count float64
    Type string
    count Double
    type String
    count number
    type string
    count float
    type str
    count Number
    type String

    GetHibernationScheduleResumeConfigJobConfigNodeConfigKubernetesTaint

    Effect string
    Key string
    Value string
    Effect string
    Key string
    Value string
    effect String
    key String
    value String
    effect string
    key string
    value string
    effect str
    key str
    value str
    effect String
    key String
    value String

    GetHibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinity

    GetHibernationScheduleResumeConfigJobConfigNodeConfigNodeAffinityAffinity

    Key string
    Operator string
    Values List<string>
    Key string
    Operator string
    Values []string
    key String
    operator String
    values List<String>
    key string
    operator string
    values string[]
    key str
    operator str
    values Sequence[str]
    key String
    operator String
    values List<String>

    GetHibernationScheduleResumeConfigJobConfigNodeConfigSpotConfig

    PriceHourly string
    Spot bool
    PriceHourly string
    Spot bool
    priceHourly String
    spot Boolean
    priceHourly string
    spot boolean
    priceHourly String
    spot Boolean

    GetHibernationScheduleResumeConfigJobConfigNodeConfigVolume

    GetHibernationScheduleResumeConfigJobConfigNodeConfigVolumeRaidConfig

    ChunkSizeKb float64

    GetHibernationScheduleResumeConfigSchedule

    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