1. Packages
  2. Ibm Provider
  3. API Docs
  4. getDb2Autoscale
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getDb2Autoscale

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Retrieve information about Autoscale configurations of an existing IBM Db2 Instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const db2Autoscale = ibm.getDb2Autoscale({
        deploymentId: "<encoded_crn>",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    db2_autoscale = ibm.get_db2_autoscale(deployment_id="<encoded_crn>")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.GetDb2Autoscale(ctx, &ibm.GetDb2AutoscaleArgs{
    			DeploymentId: "<encoded_crn>",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var db2Autoscale = Ibm.GetDb2Autoscale.Invoke(new()
        {
            DeploymentId = "<encoded_crn>",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetDb2AutoscaleArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var db2Autoscale = IbmFunctions.getDb2Autoscale(GetDb2AutoscaleArgs.builder()
                .deploymentId("<encoded_crn>")
                .build());
    
        }
    }
    
    variables:
      db2Autoscale:
        fn::invoke:
          function: ibm:getDb2Autoscale
          arguments:
            deploymentId: <encoded_crn>
    

    Using getDb2Autoscale

    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 getDb2Autoscale(args: GetDb2AutoscaleArgs, opts?: InvokeOptions): Promise<GetDb2AutoscaleResult>
    function getDb2AutoscaleOutput(args: GetDb2AutoscaleOutputArgs, opts?: InvokeOptions): Output<GetDb2AutoscaleResult>
    def get_db2_autoscale(deployment_id: Optional[str] = None,
                          id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetDb2AutoscaleResult
    def get_db2_autoscale_output(deployment_id: Optional[pulumi.Input[str]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetDb2AutoscaleResult]
    func GetDb2Autoscale(ctx *Context, args *GetDb2AutoscaleArgs, opts ...InvokeOption) (*GetDb2AutoscaleResult, error)
    func GetDb2AutoscaleOutput(ctx *Context, args *GetDb2AutoscaleOutputArgs, opts ...InvokeOption) GetDb2AutoscaleResultOutput

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

    public static class GetDb2Autoscale 
    {
        public static Task<GetDb2AutoscaleResult> InvokeAsync(GetDb2AutoscaleArgs args, InvokeOptions? opts = null)
        public static Output<GetDb2AutoscaleResult> Invoke(GetDb2AutoscaleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDb2AutoscaleResult> getDb2Autoscale(GetDb2AutoscaleArgs args, InvokeOptions options)
    public static Output<GetDb2AutoscaleResult> getDb2Autoscale(GetDb2AutoscaleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getDb2Autoscale:getDb2Autoscale
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DeploymentId string
    Encoded CRN of the instance this autoscale relates to.
    Id string
    DeploymentId string
    Encoded CRN of the instance this autoscale relates to.
    Id string
    deploymentId String
    Encoded CRN of the instance this autoscale relates to.
    id String
    deploymentId string
    Encoded CRN of the instance this autoscale relates to.
    id string
    deployment_id str
    Encoded CRN of the instance this autoscale relates to.
    id str
    deploymentId String
    Encoded CRN of the instance this autoscale relates to.
    id String

    getDb2Autoscale Result

    The following output properties are available:

    AutoScalingAllowPlanLimit bool
    (Boolean) Indicates the maximum number of scaling actions that are allowed within a specified time period.
    AutoScalingEnabled bool
    (Boolean) Indicates if automatic scaling is enabled or not.
    AutoScalingMaxStorage double
    (Integer) The maximum limit for automatically increasing storage capacity to handle growing data needs.
    AutoScalingOverTimePeriod double
    (Integer) Defines the time period over which auto-scaling adjustments are monitored and applied.
    AutoScalingPauseLimit double
    (Integer) Specifies the duration to pause auto-scaling actions after a scaling event has occurred.
    AutoScalingThreshold double
    (Integer) Specifies the resource utilization level that triggers an auto-scaling.
    DeploymentId string
    Id string
    StorageUnit string
    (String) Specifies the unit of measurement for storage capacity.
    StorageUtilizationPercentage double
    (Integer) Represents the percentage of total storage capacity currently in use.
    SupportAutoScaling bool
    (Boolean) Indicates whether a system or service can automatically adjust resources based on demand.
    AutoScalingAllowPlanLimit bool
    (Boolean) Indicates the maximum number of scaling actions that are allowed within a specified time period.
    AutoScalingEnabled bool
    (Boolean) Indicates if automatic scaling is enabled or not.
    AutoScalingMaxStorage float64
    (Integer) The maximum limit for automatically increasing storage capacity to handle growing data needs.
    AutoScalingOverTimePeriod float64
    (Integer) Defines the time period over which auto-scaling adjustments are monitored and applied.
    AutoScalingPauseLimit float64
    (Integer) Specifies the duration to pause auto-scaling actions after a scaling event has occurred.
    AutoScalingThreshold float64
    (Integer) Specifies the resource utilization level that triggers an auto-scaling.
    DeploymentId string
    Id string
    StorageUnit string
    (String) Specifies the unit of measurement for storage capacity.
    StorageUtilizationPercentage float64
    (Integer) Represents the percentage of total storage capacity currently in use.
    SupportAutoScaling bool
    (Boolean) Indicates whether a system or service can automatically adjust resources based on demand.
    autoScalingAllowPlanLimit Boolean
    (Boolean) Indicates the maximum number of scaling actions that are allowed within a specified time period.
    autoScalingEnabled Boolean
    (Boolean) Indicates if automatic scaling is enabled or not.
    autoScalingMaxStorage Double
    (Integer) The maximum limit for automatically increasing storage capacity to handle growing data needs.
    autoScalingOverTimePeriod Double
    (Integer) Defines the time period over which auto-scaling adjustments are monitored and applied.
    autoScalingPauseLimit Double
    (Integer) Specifies the duration to pause auto-scaling actions after a scaling event has occurred.
    autoScalingThreshold Double
    (Integer) Specifies the resource utilization level that triggers an auto-scaling.
    deploymentId String
    id String
    storageUnit String
    (String) Specifies the unit of measurement for storage capacity.
    storageUtilizationPercentage Double
    (Integer) Represents the percentage of total storage capacity currently in use.
    supportAutoScaling Boolean
    (Boolean) Indicates whether a system or service can automatically adjust resources based on demand.
    autoScalingAllowPlanLimit boolean
    (Boolean) Indicates the maximum number of scaling actions that are allowed within a specified time period.
    autoScalingEnabled boolean
    (Boolean) Indicates if automatic scaling is enabled or not.
    autoScalingMaxStorage number
    (Integer) The maximum limit for automatically increasing storage capacity to handle growing data needs.
    autoScalingOverTimePeriod number
    (Integer) Defines the time period over which auto-scaling adjustments are monitored and applied.
    autoScalingPauseLimit number
    (Integer) Specifies the duration to pause auto-scaling actions after a scaling event has occurred.
    autoScalingThreshold number
    (Integer) Specifies the resource utilization level that triggers an auto-scaling.
    deploymentId string
    id string
    storageUnit string
    (String) Specifies the unit of measurement for storage capacity.
    storageUtilizationPercentage number
    (Integer) Represents the percentage of total storage capacity currently in use.
    supportAutoScaling boolean
    (Boolean) Indicates whether a system or service can automatically adjust resources based on demand.
    auto_scaling_allow_plan_limit bool
    (Boolean) Indicates the maximum number of scaling actions that are allowed within a specified time period.
    auto_scaling_enabled bool
    (Boolean) Indicates if automatic scaling is enabled or not.
    auto_scaling_max_storage float
    (Integer) The maximum limit for automatically increasing storage capacity to handle growing data needs.
    auto_scaling_over_time_period float
    (Integer) Defines the time period over which auto-scaling adjustments are monitored and applied.
    auto_scaling_pause_limit float
    (Integer) Specifies the duration to pause auto-scaling actions after a scaling event has occurred.
    auto_scaling_threshold float
    (Integer) Specifies the resource utilization level that triggers an auto-scaling.
    deployment_id str
    id str
    storage_unit str
    (String) Specifies the unit of measurement for storage capacity.
    storage_utilization_percentage float
    (Integer) Represents the percentage of total storage capacity currently in use.
    support_auto_scaling bool
    (Boolean) Indicates whether a system or service can automatically adjust resources based on demand.
    autoScalingAllowPlanLimit Boolean
    (Boolean) Indicates the maximum number of scaling actions that are allowed within a specified time period.
    autoScalingEnabled Boolean
    (Boolean) Indicates if automatic scaling is enabled or not.
    autoScalingMaxStorage Number
    (Integer) The maximum limit for automatically increasing storage capacity to handle growing data needs.
    autoScalingOverTimePeriod Number
    (Integer) Defines the time period over which auto-scaling adjustments are monitored and applied.
    autoScalingPauseLimit Number
    (Integer) Specifies the duration to pause auto-scaling actions after a scaling event has occurred.
    autoScalingThreshold Number
    (Integer) Specifies the resource utilization level that triggers an auto-scaling.
    deploymentId String
    id String
    storageUnit String
    (String) Specifies the unit of measurement for storage capacity.
    storageUtilizationPercentage Number
    (Integer) Represents the percentage of total storage capacity currently in use.
    supportAutoScaling Boolean
    (Boolean) Indicates whether a system or service can automatically adjust resources based on demand.

    Package Details

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