Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getAutoScalingConfiguration

This data source provides details about a specific Auto Scaling Configuration resource in Oracle Cloud Infrastructure Big Data Service service.

Returns details of the autoscale configuration identified by the given ID.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testAutoScalingConfiguration = Output.Create(Oci.BigDataService.GetAutoScalingConfiguration.InvokeAsync(new Oci.BigDataService.GetAutoScalingConfigurationArgs
        {
            AutoScalingConfigurationId = oci_autoscaling_auto_scaling_configuration.Test_auto_scaling_configuration.Id,
            BdsInstanceId = oci_bds_bds_instance.Test_bds_instance.Id,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/BigDataService"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := BigDataService.GetAutoScalingConfiguration(ctx, &bigdataservice.GetAutoScalingConfigurationArgs{
			AutoScalingConfigurationId: oci_autoscaling_auto_scaling_configuration.Test_auto_scaling_configuration.Id,
			BdsInstanceId:              oci_bds_bds_instance.Test_bds_instance.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_auto_scaling_configuration = oci.BigDataService.get_auto_scaling_configuration(auto_scaling_configuration_id=oci_autoscaling_auto_scaling_configuration["test_auto_scaling_configuration"]["id"],
    bds_instance_id=oci_bds_bds_instance["test_bds_instance"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAutoScalingConfiguration = oci.BigDataService.getAutoScalingConfiguration({
    autoScalingConfigurationId: oci_autoscaling_auto_scaling_configuration.test_auto_scaling_configuration.id,
    bdsInstanceId: oci_bds_bds_instance.test_bds_instance.id,
});

Coming soon!

Using getAutoScalingConfiguration

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 getAutoScalingConfiguration(args: GetAutoScalingConfigurationArgs, opts?: InvokeOptions): Promise<GetAutoScalingConfigurationResult>
function getAutoScalingConfigurationOutput(args: GetAutoScalingConfigurationOutputArgs, opts?: InvokeOptions): Output<GetAutoScalingConfigurationResult>
def get_auto_scaling_configuration(auto_scaling_configuration_id: Optional[str] = None,
                                   bds_instance_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetAutoScalingConfigurationResult
def get_auto_scaling_configuration_output(auto_scaling_configuration_id: Optional[pulumi.Input[str]] = None,
                                   bds_instance_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetAutoScalingConfigurationResult]
func GetAutoScalingConfiguration(ctx *Context, args *GetAutoScalingConfigurationArgs, opts ...InvokeOption) (*GetAutoScalingConfigurationResult, error)
func GetAutoScalingConfigurationOutput(ctx *Context, args *GetAutoScalingConfigurationOutputArgs, opts ...InvokeOption) GetAutoScalingConfigurationResultOutput

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

public static class GetAutoScalingConfiguration 
{
    public static Task<GetAutoScalingConfigurationResult> InvokeAsync(GetAutoScalingConfigurationArgs args, InvokeOptions? opts = null)
    public static Output<GetAutoScalingConfigurationResult> Invoke(GetAutoScalingConfigurationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAutoScalingConfigurationResult> getAutoScalingConfiguration(GetAutoScalingConfigurationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:BigDataService/getAutoScalingConfiguration:getAutoScalingConfiguration
  Arguments:
    # Arguments dictionary

The following arguments are supported:

AutoScalingConfigurationId string

Unique Oracle-assigned identifier of the autoscale configuration.

BdsInstanceId string

The OCID of the cluster.

AutoScalingConfigurationId string

Unique Oracle-assigned identifier of the autoscale configuration.

BdsInstanceId string

The OCID of the cluster.

autoScalingConfigurationId String

Unique Oracle-assigned identifier of the autoscale configuration.

bdsInstanceId String

The OCID of the cluster.

autoScalingConfigurationId string

Unique Oracle-assigned identifier of the autoscale configuration.

bdsInstanceId string

The OCID of the cluster.

auto_scaling_configuration_id str

Unique Oracle-assigned identifier of the autoscale configuration.

bds_instance_id str

The OCID of the cluster.

autoScalingConfigurationId String

Unique Oracle-assigned identifier of the autoscale configuration.

bdsInstanceId String

The OCID of the cluster.

getAutoScalingConfiguration Result

The following output properties are available:

AutoScalingConfigurationId string
BdsInstanceId string
ClusterAdminPassword string
DisplayName string

A user-friendly name. The name does not have to be unique, and it may be changed. Avoid entering confidential information.

Id string

The unique identifier for the autoscale configuration.

IsEnabled bool
NodeType string

A node type that is managed by an autoscale configuration. The only supported type is WORKER.

Policies List<GetAutoScalingConfigurationPolicy>

Policy definitions for the autoscale configuration.

State string

The state of the autoscale configuration.

TimeCreated string

The time the cluster was created, shown as an RFC 3339 formatted datetime string.

TimeUpdated string

The time the autoscale configuration was updated, shown as an RFC 3339 formatted datetime string.

AutoScalingConfigurationId string
BdsInstanceId string
ClusterAdminPassword string
DisplayName string

A user-friendly name. The name does not have to be unique, and it may be changed. Avoid entering confidential information.

Id string

The unique identifier for the autoscale configuration.

IsEnabled bool
NodeType string

A node type that is managed by an autoscale configuration. The only supported type is WORKER.

Policies []GetAutoScalingConfigurationPolicy

Policy definitions for the autoscale configuration.

State string

The state of the autoscale configuration.

TimeCreated string

The time the cluster was created, shown as an RFC 3339 formatted datetime string.

TimeUpdated string

The time the autoscale configuration was updated, shown as an RFC 3339 formatted datetime string.

autoScalingConfigurationId String
bdsInstanceId String
clusterAdminPassword String
displayName String

A user-friendly name. The name does not have to be unique, and it may be changed. Avoid entering confidential information.

id String

The unique identifier for the autoscale configuration.

isEnabled Boolean
nodeType String

A node type that is managed by an autoscale configuration. The only supported type is WORKER.

policies List<GetAutoScalingConfigurationPolicy>

Policy definitions for the autoscale configuration.

state String

The state of the autoscale configuration.

timeCreated String

The time the cluster was created, shown as an RFC 3339 formatted datetime string.

timeUpdated String

The time the autoscale configuration was updated, shown as an RFC 3339 formatted datetime string.

autoScalingConfigurationId string
bdsInstanceId string
clusterAdminPassword string
displayName string

A user-friendly name. The name does not have to be unique, and it may be changed. Avoid entering confidential information.

id string

The unique identifier for the autoscale configuration.

isEnabled boolean
nodeType string

A node type that is managed by an autoscale configuration. The only supported type is WORKER.

policies GetAutoScalingConfigurationPolicy[]

Policy definitions for the autoscale configuration.

state string

The state of the autoscale configuration.

timeCreated string

The time the cluster was created, shown as an RFC 3339 formatted datetime string.

timeUpdated string

The time the autoscale configuration was updated, shown as an RFC 3339 formatted datetime string.

auto_scaling_configuration_id str
bds_instance_id str
cluster_admin_password str
display_name str

A user-friendly name. The name does not have to be unique, and it may be changed. Avoid entering confidential information.

id str

The unique identifier for the autoscale configuration.

is_enabled bool
node_type str

A node type that is managed by an autoscale configuration. The only supported type is WORKER.

policies GetAutoScalingConfigurationPolicy]

Policy definitions for the autoscale configuration.

state str

The state of the autoscale configuration.

time_created str

The time the cluster was created, shown as an RFC 3339 formatted datetime string.

time_updated str

The time the autoscale configuration was updated, shown as an RFC 3339 formatted datetime string.

autoScalingConfigurationId String
bdsInstanceId String
clusterAdminPassword String
displayName String

A user-friendly name. The name does not have to be unique, and it may be changed. Avoid entering confidential information.

id String

The unique identifier for the autoscale configuration.

isEnabled Boolean
nodeType String

A node type that is managed by an autoscale configuration. The only supported type is WORKER.

policies List<Property Map>

Policy definitions for the autoscale configuration.

state String

The state of the autoscale configuration.

timeCreated String

The time the cluster was created, shown as an RFC 3339 formatted datetime string.

timeUpdated String

The time the autoscale configuration was updated, shown as an RFC 3339 formatted datetime string.

Supporting Types

GetAutoScalingConfigurationPolicy

PolicyType string

Types of autoscale policies. Options are SCHEDULE-BASED or THRESHOLD-BASED. (Only THRESHOLD-BASED is supported in this release.)

Rules List<GetAutoScalingConfigurationPolicyRule>

The list of rules for autoscaling. If an action has multiple rules, the last rule in the array will be applied.

PolicyType string

Types of autoscale policies. Options are SCHEDULE-BASED or THRESHOLD-BASED. (Only THRESHOLD-BASED is supported in this release.)

Rules []GetAutoScalingConfigurationPolicyRule

The list of rules for autoscaling. If an action has multiple rules, the last rule in the array will be applied.

policyType String

Types of autoscale policies. Options are SCHEDULE-BASED or THRESHOLD-BASED. (Only THRESHOLD-BASED is supported in this release.)

rules List<GetAutoScalingConfigurationPolicyRule>

The list of rules for autoscaling. If an action has multiple rules, the last rule in the array will be applied.

policyType string

Types of autoscale policies. Options are SCHEDULE-BASED or THRESHOLD-BASED. (Only THRESHOLD-BASED is supported in this release.)

rules GetAutoScalingConfigurationPolicyRule[]

The list of rules for autoscaling. If an action has multiple rules, the last rule in the array will be applied.

policy_type str

Types of autoscale policies. Options are SCHEDULE-BASED or THRESHOLD-BASED. (Only THRESHOLD-BASED is supported in this release.)

rules GetAutoScalingConfigurationPolicyRule]

The list of rules for autoscaling. If an action has multiple rules, the last rule in the array will be applied.

policyType String

Types of autoscale policies. Options are SCHEDULE-BASED or THRESHOLD-BASED. (Only THRESHOLD-BASED is supported in this release.)

rules List<Property Map>

The list of rules for autoscaling. If an action has multiple rules, the last rule in the array will be applied.

GetAutoScalingConfigurationPolicyRule

Action string

The valid value are CHANGE_SHAPE_SCALE_UP or CHANGE_SHAPE_SCALE_DOWN.

Metrics List<GetAutoScalingConfigurationPolicyRuleMetric>

Metric and threshold details for triggering an autoscale action.

Action string

The valid value are CHANGE_SHAPE_SCALE_UP or CHANGE_SHAPE_SCALE_DOWN.

Metrics []GetAutoScalingConfigurationPolicyRuleMetric

Metric and threshold details for triggering an autoscale action.

action String

The valid value are CHANGE_SHAPE_SCALE_UP or CHANGE_SHAPE_SCALE_DOWN.

metrics List<GetAutoScalingConfigurationPolicyRuleMetric>

Metric and threshold details for triggering an autoscale action.

action string

The valid value are CHANGE_SHAPE_SCALE_UP or CHANGE_SHAPE_SCALE_DOWN.

metrics GetAutoScalingConfigurationPolicyRuleMetric[]

Metric and threshold details for triggering an autoscale action.

action str

The valid value are CHANGE_SHAPE_SCALE_UP or CHANGE_SHAPE_SCALE_DOWN.

metrics GetAutoScalingConfigurationPolicyRuleMetric]

Metric and threshold details for triggering an autoscale action.

action String

The valid value are CHANGE_SHAPE_SCALE_UP or CHANGE_SHAPE_SCALE_DOWN.

metrics List<Property Map>

Metric and threshold details for triggering an autoscale action.

GetAutoScalingConfigurationPolicyRuleMetric

MetricType string

Allowed value is CPU_UTILIZATION.

Thresholds List<GetAutoScalingConfigurationPolicyRuleMetricThreshold>

An autoscale action is triggered when a performance metric meets or exceeds a threshold.

MetricType string

Allowed value is CPU_UTILIZATION.

Thresholds []GetAutoScalingConfigurationPolicyRuleMetricThreshold

An autoscale action is triggered when a performance metric meets or exceeds a threshold.

metricType String

Allowed value is CPU_UTILIZATION.

thresholds List<GetAutoScalingConfigurationPolicyRuleMetricThreshold>

An autoscale action is triggered when a performance metric meets or exceeds a threshold.

metricType string

Allowed value is CPU_UTILIZATION.

thresholds GetAutoScalingConfigurationPolicyRuleMetricThreshold[]

An autoscale action is triggered when a performance metric meets or exceeds a threshold.

metric_type str

Allowed value is CPU_UTILIZATION.

thresholds GetAutoScalingConfigurationPolicyRuleMetricThreshold]

An autoscale action is triggered when a performance metric meets or exceeds a threshold.

metricType String

Allowed value is CPU_UTILIZATION.

thresholds List<Property Map>

An autoscale action is triggered when a performance metric meets or exceeds a threshold.

GetAutoScalingConfigurationPolicyRuleMetricThreshold

DurationInMinutes int

This value is the minimum period of time the metric value meets or exceeds the threshold value before the action is triggered. The value is in minutes.

Operator string

The comparison operator to use. Options are greater than (GT) or less than (LT).

Value int

Integer non-negative value. 0 < value < 100

DurationInMinutes int

This value is the minimum period of time the metric value meets or exceeds the threshold value before the action is triggered. The value is in minutes.

Operator string

The comparison operator to use. Options are greater than (GT) or less than (LT).

Value int

Integer non-negative value. 0 < value < 100

durationInMinutes Integer

This value is the minimum period of time the metric value meets or exceeds the threshold value before the action is triggered. The value is in minutes.

operator String

The comparison operator to use. Options are greater than (GT) or less than (LT).

value Integer

Integer non-negative value. 0 < value < 100

durationInMinutes number

This value is the minimum period of time the metric value meets or exceeds the threshold value before the action is triggered. The value is in minutes.

operator string

The comparison operator to use. Options are greater than (GT) or less than (LT).

value number

Integer non-negative value. 0 < value < 100

duration_in_minutes int

This value is the minimum period of time the metric value meets or exceeds the threshold value before the action is triggered. The value is in minutes.

operator str

The comparison operator to use. Options are greater than (GT) or less than (LT).

value int

Integer non-negative value. 0 < value < 100

durationInMinutes Number

This value is the minimum period of time the metric value meets or exceeds the threshold value before the action is triggered. The value is in minutes.

operator String

The comparison operator to use. Options are greater than (GT) or less than (LT).

value Number

Integer non-negative value. 0 < value < 100

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.