1. Registry
  2. Packages
  3. CAST AI
  4. API Docs
  5. getWorkloadScalingPolicies
Viewing docs for CAST AI v8.60.0
published on Wednesday, Aug 19, 2026 by CAST AI
castai logo
Viewing docs for CAST AI v8.60.0
published on Wednesday, Aug 19, 2026 by CAST AI

    Using getWorkloadScalingPolicies

    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 getWorkloadScalingPolicies(args: GetWorkloadScalingPoliciesArgs, opts?: InvokeOptions): Promise<GetWorkloadScalingPoliciesResult>
    function getWorkloadScalingPoliciesOutput(args: GetWorkloadScalingPoliciesOutputArgs, opts?: InvokeOutputOptions): Output<GetWorkloadScalingPoliciesResult>
    def get_workload_scaling_policies(cluster_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetWorkloadScalingPoliciesResult
    def get_workload_scaling_policies_output(cluster_id: pulumi.Input[Optional[str]] = None,
                                      opts: Optional[InvokeOutputOptions] = None) -> Output[GetWorkloadScalingPoliciesResult]
    func GetWorkloadScalingPolicies(ctx *Context, args *GetWorkloadScalingPoliciesArgs, opts ...InvokeOption) (*GetWorkloadScalingPoliciesResult, error)
    func GetWorkloadScalingPoliciesOutput(ctx *Context, args *GetWorkloadScalingPoliciesOutputArgs, opts ...InvokeOption) GetWorkloadScalingPoliciesResultOutput

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

    public static class GetWorkloadScalingPolicies 
    {
        public static Task<GetWorkloadScalingPoliciesResult> InvokeAsync(GetWorkloadScalingPoliciesArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkloadScalingPoliciesResult> Invoke(GetWorkloadScalingPoliciesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkloadScalingPoliciesResult> Invoke(GetWorkloadScalingPoliciesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetWorkloadScalingPoliciesResult> getWorkloadScalingPolicies(GetWorkloadScalingPoliciesArgs args, InvokeOptions options)
    public static Output<GetWorkloadScalingPoliciesResult> getWorkloadScalingPolicies(GetWorkloadScalingPoliciesArgs args, InvokeOptions options)
    public static Output<GetWorkloadScalingPoliciesResult> getWorkloadScalingPolicies(GetWorkloadScalingPoliciesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: castai:workload:getWorkloadScalingPolicies
      arguments:
        # arguments dictionary
    data "castai_get_workload_scaling_policies" "name" {
        # arguments
    }

    The following arguments are supported:

    ClusterId string
    ClusterId string
    cluster_id string
    clusterId String
    clusterId string
    clusterId String

    getWorkloadScalingPolicies Result

    The following output properties are available:

    ClusterId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Policies List<Pulumi.CastAI.Workload.Outputs.GetWorkloadScalingPoliciesPolicy>
    PoliciesByName Dictionary<string, string>
    ClusterId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Policies GetWorkloadScalingPoliciesPolicy
    PoliciesByName map[string]string
    cluster_id string
    id string
    The provider-assigned unique ID for this managed resource.
    policies list(object)
    policies_by_name map(string)
    clusterId String
    id String
    The provider-assigned unique ID for this managed resource.
    policies List<GetWorkloadScalingPoliciesPolicy>
    policiesByName Map<String,String>
    clusterId string
    id string
    The provider-assigned unique ID for this managed resource.
    policies workloadGetWorkloadScalingPoliciesPolicy[]
    policiesByName {[key: string]: string}
    cluster_id str
    id str
    The provider-assigned unique ID for this managed resource.
    policies Sequence[workload.GetWorkloadScalingPoliciesPolicy]
    policies_by_name Mapping[str, str]
    clusterId String
    id String
    The provider-assigned unique ID for this managed resource.
    policies List<Property Map>
    policiesByName Map<String>

    Supporting Types

    GetWorkloadScalingPoliciesPolicy

    Id string
    Policy UUID.
    IsCastware bool
    Whether this policy is managed by CAST AI and only applies to castware workloads.
    IsDefault bool
    Whether this is the default scaling policy for the cluster.
    IsReadonly bool
    Whether this policy is read-only (cannot be updated or deleted).
    Name string
    Policy name.
    Id string
    Policy UUID.
    IsCastware bool
    Whether this policy is managed by CAST AI and only applies to castware workloads.
    IsDefault bool
    Whether this is the default scaling policy for the cluster.
    IsReadonly bool
    Whether this policy is read-only (cannot be updated or deleted).
    Name string
    Policy name.
    id string
    Policy UUID.
    is_castware bool
    Whether this policy is managed by CAST AI and only applies to castware workloads.
    is_default bool
    Whether this is the default scaling policy for the cluster.
    is_readonly bool
    Whether this policy is read-only (cannot be updated or deleted).
    name string
    Policy name.
    id String
    Policy UUID.
    isCastware Boolean
    Whether this policy is managed by CAST AI and only applies to castware workloads.
    isDefault Boolean
    Whether this is the default scaling policy for the cluster.
    isReadonly Boolean
    Whether this policy is read-only (cannot be updated or deleted).
    name String
    Policy name.
    id string
    Policy UUID.
    isCastware boolean
    Whether this policy is managed by CAST AI and only applies to castware workloads.
    isDefault boolean
    Whether this is the default scaling policy for the cluster.
    isReadonly boolean
    Whether this policy is read-only (cannot be updated or deleted).
    name string
    Policy name.
    id str
    Policy UUID.
    is_castware bool
    Whether this policy is managed by CAST AI and only applies to castware workloads.
    is_default bool
    Whether this is the default scaling policy for the cluster.
    is_readonly bool
    Whether this policy is read-only (cannot be updated or deleted).
    name str
    Policy name.
    id String
    Policy UUID.
    isCastware Boolean
    Whether this policy is managed by CAST AI and only applies to castware workloads.
    isDefault Boolean
    Whether this is the default scaling policy for the cluster.
    isReadonly Boolean
    Whether this policy is read-only (cannot be updated or deleted).
    name String
    Policy name.

    Package Details

    Repository
    castai castai/pulumi-castai
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the castai Terraform Provider.
    castai logo
    Viewing docs for CAST AI v8.60.0
    published on Wednesday, Aug 19, 2026 by CAST AI

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial