ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getDb2Autoscale
Explore with Pulumi AI
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:
- Deployment
Id string - Encoded CRN of the instance this autoscale relates to.
- Id string
- Deployment
Id string - Encoded CRN of the instance this autoscale relates to.
- Id string
- deployment
Id String - Encoded CRN of the instance this autoscale relates to.
- id String
- deployment
Id 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
- deployment
Id String - Encoded CRN of the instance this autoscale relates to.
- id String
getDb2Autoscale Result
The following output properties are available:
- Auto
Scaling boolAllow Plan Limit - (Boolean) Indicates the maximum number of scaling actions that are allowed within a specified time period.
- Auto
Scaling boolEnabled - (Boolean) Indicates if automatic scaling is enabled or not.
- Auto
Scaling doubleMax Storage - (Integer) The maximum limit for automatically increasing storage capacity to handle growing data needs.
- Auto
Scaling doubleOver Time Period - (Integer) Defines the time period over which auto-scaling adjustments are monitored and applied.
- Auto
Scaling doublePause Limit - (Integer) Specifies the duration to pause auto-scaling actions after a scaling event has occurred.
- Auto
Scaling doubleThreshold - (Integer) Specifies the resource utilization level that triggers an auto-scaling.
- Deployment
Id string - Id string
- Storage
Unit string - (String) Specifies the unit of measurement for storage capacity.
- Storage
Utilization doublePercentage - (Integer) Represents the percentage of total storage capacity currently in use.
- Support
Auto boolScaling - (Boolean) Indicates whether a system or service can automatically adjust resources based on demand.
- Auto
Scaling boolAllow Plan Limit - (Boolean) Indicates the maximum number of scaling actions that are allowed within a specified time period.
- Auto
Scaling boolEnabled - (Boolean) Indicates if automatic scaling is enabled or not.
- Auto
Scaling float64Max Storage - (Integer) The maximum limit for automatically increasing storage capacity to handle growing data needs.
- Auto
Scaling float64Over Time Period - (Integer) Defines the time period over which auto-scaling adjustments are monitored and applied.
- Auto
Scaling float64Pause Limit - (Integer) Specifies the duration to pause auto-scaling actions after a scaling event has occurred.
- Auto
Scaling float64Threshold - (Integer) Specifies the resource utilization level that triggers an auto-scaling.
- Deployment
Id string - Id string
- Storage
Unit string - (String) Specifies the unit of measurement for storage capacity.
- Storage
Utilization float64Percentage - (Integer) Represents the percentage of total storage capacity currently in use.
- Support
Auto boolScaling - (Boolean) Indicates whether a system or service can automatically adjust resources based on demand.
- auto
Scaling BooleanAllow Plan Limit - (Boolean) Indicates the maximum number of scaling actions that are allowed within a specified time period.
- auto
Scaling BooleanEnabled - (Boolean) Indicates if automatic scaling is enabled or not.
- auto
Scaling DoubleMax Storage - (Integer) The maximum limit for automatically increasing storage capacity to handle growing data needs.
- auto
Scaling DoubleOver Time Period - (Integer) Defines the time period over which auto-scaling adjustments are monitored and applied.
- auto
Scaling DoublePause Limit - (Integer) Specifies the duration to pause auto-scaling actions after a scaling event has occurred.
- auto
Scaling DoubleThreshold - (Integer) Specifies the resource utilization level that triggers an auto-scaling.
- deployment
Id String - id String
- storage
Unit String - (String) Specifies the unit of measurement for storage capacity.
- storage
Utilization DoublePercentage - (Integer) Represents the percentage of total storage capacity currently in use.
- support
Auto BooleanScaling - (Boolean) Indicates whether a system or service can automatically adjust resources based on demand.
- auto
Scaling booleanAllow Plan Limit - (Boolean) Indicates the maximum number of scaling actions that are allowed within a specified time period.
- auto
Scaling booleanEnabled - (Boolean) Indicates if automatic scaling is enabled or not.
- auto
Scaling numberMax Storage - (Integer) The maximum limit for automatically increasing storage capacity to handle growing data needs.
- auto
Scaling numberOver Time Period - (Integer) Defines the time period over which auto-scaling adjustments are monitored and applied.
- auto
Scaling numberPause Limit - (Integer) Specifies the duration to pause auto-scaling actions after a scaling event has occurred.
- auto
Scaling numberThreshold - (Integer) Specifies the resource utilization level that triggers an auto-scaling.
- deployment
Id string - id string
- storage
Unit string - (String) Specifies the unit of measurement for storage capacity.
- storage
Utilization numberPercentage - (Integer) Represents the percentage of total storage capacity currently in use.
- support
Auto booleanScaling - (Boolean) Indicates whether a system or service can automatically adjust resources based on demand.
- auto_
scaling_ boolallow_ plan_ limit - (Boolean) Indicates the maximum number of scaling actions that are allowed within a specified time period.
- auto_
scaling_ boolenabled - (Boolean) Indicates if automatic scaling is enabled or not.
- auto_
scaling_ floatmax_ storage - (Integer) The maximum limit for automatically increasing storage capacity to handle growing data needs.
- auto_
scaling_ floatover_ time_ period - (Integer) Defines the time period over which auto-scaling adjustments are monitored and applied.
- auto_
scaling_ floatpause_ limit - (Integer) Specifies the duration to pause auto-scaling actions after a scaling event has occurred.
- auto_
scaling_ floatthreshold - (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_ floatpercentage - (Integer) Represents the percentage of total storage capacity currently in use.
- support_
auto_ boolscaling - (Boolean) Indicates whether a system or service can automatically adjust resources based on demand.
- auto
Scaling BooleanAllow Plan Limit - (Boolean) Indicates the maximum number of scaling actions that are allowed within a specified time period.
- auto
Scaling BooleanEnabled - (Boolean) Indicates if automatic scaling is enabled or not.
- auto
Scaling NumberMax Storage - (Integer) The maximum limit for automatically increasing storage capacity to handle growing data needs.
- auto
Scaling NumberOver Time Period - (Integer) Defines the time period over which auto-scaling adjustments are monitored and applied.
- auto
Scaling NumberPause Limit - (Integer) Specifies the duration to pause auto-scaling actions after a scaling event has occurred.
- auto
Scaling NumberThreshold - (Integer) Specifies the resource utilization level that triggers an auto-scaling.
- deployment
Id String - id String
- storage
Unit String - (String) Specifies the unit of measurement for storage capacity.
- storage
Utilization NumberPercentage - (Integer) Represents the percentage of total storage capacity currently in use.
- support
Auto BooleanScaling - (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.