1. Packages
  2. Ibm Provider
  3. API Docs
  4. getDb2Autoscale
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getDb2Autoscale

Explore with Pulumi AI

ibm 1.77.1 published on Monday, Apr 14, 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>",
});
Copy
import pulumi
import pulumi_ibm as ibm

db2_autoscale = ibm.get_db2_autoscale(deployment_id="<encoded_crn>")
Copy
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
	})
}
Copy
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>",
    });

});
Copy
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());

    }
}
Copy
variables:
  db2Autoscale:
    fn::invoke:
      function: ibm:getDb2Autoscale
      arguments:
        deploymentId: <encoded_crn>
Copy

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>
Copy
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]
Copy
func GetDb2Autoscale(ctx *Context, args *GetDb2AutoscaleArgs, opts ...InvokeOption) (*GetDb2AutoscaleResult, error)
func GetDb2AutoscaleOutput(ctx *Context, args *GetDb2AutoscaleOutputArgs, opts ...InvokeOption) GetDb2AutoscaleResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetDb2AutoscaleResult> getDb2Autoscale(GetDb2AutoscaleArgs args, InvokeOptions options)
public static Output<GetDb2AutoscaleResult> getDb2Autoscale(GetDb2AutoscaleArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getDb2Autoscale:getDb2Autoscale
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DeploymentId This property is required. string
Encoded CRN of the instance this autoscale relates to.
Id string
DeploymentId This property is required. string
Encoded CRN of the instance this autoscale relates to.
Id string
deploymentId This property is required. String
Encoded CRN of the instance this autoscale relates to.
id String
deploymentId This property is required. string
Encoded CRN of the instance this autoscale relates to.
id string
deployment_id This property is required. str
Encoded CRN of the instance this autoscale relates to.
id str
deploymentId This property is required. 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 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud