published on Thursday, May 28, 2026 by Pulumi
published on Thursday, May 28, 2026 by Pulumi
This resource provides the Compute Target resource in Oracle Cloud Infrastructure Data Science service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/data-science/latest/ComputeTarget
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/datascience
Creates a new compute target resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testComputeTarget = new oci.datascience.ComputeTarget("test_compute_target", {
compartmentId: compartmentId,
computeConfigurationDetails: {
computeType: computeTargetComputeConfigurationDetailsComputeType,
instanceConfiguration: {
instanceShape: computeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShape,
bootVolumeSizeInGbs: Number(computeTargetComputeConfigurationDetailsInstanceConfigurationBootVolumeSizeInGbs),
instanceShapeDetails: {
memoryInGbs: computeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsMemoryInGbs,
ocpus: computeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsOcpus,
},
},
scalingPolicy: {
policyType: computeTargetComputeConfigurationDetailsScalingPolicyPolicyType,
autoScalingPolicies: [{
autoScalingPolicyType: computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesAutoScalingPolicyType,
initialInstanceCount: Number(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesInitialInstanceCount),
maximumInstanceCount: Number(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesMaximumInstanceCount),
minimumInstanceCount: Number(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesMinimumInstanceCount),
rules: [{
metricExpressionRuleType: computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesMetricExpressionRuleType,
scaleInConfiguration: {
instanceCountAdjustment: Number(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationInstanceCountAdjustment),
pendingDuration: computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationPendingDuration,
query: computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationQuery,
scalingConfigurationType: computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationScalingConfigurationType,
threshold: Number(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationThreshold),
},
scaleOutConfiguration: {
instanceCountAdjustment: Number(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationInstanceCountAdjustment),
pendingDuration: computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationPendingDuration,
query: computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationQuery,
scalingConfigurationType: computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationScalingConfigurationType,
threshold: Number(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationThreshold),
},
metricType: computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesMetricType,
}],
}],
coolDownInSeconds: Number(computeTargetComputeConfigurationDetailsScalingPolicyCoolDownInSeconds),
instanceCount: Number(computeTargetComputeConfigurationDetailsScalingPolicyInstanceCount),
isEnabled: computeTargetComputeConfigurationDetailsScalingPolicyIsEnabled === "true",
},
},
definedTags: {
"Operations.CostCenter": "42",
},
description: computeTargetDescription,
displayName: computeTargetDisplayName,
freeformTags: {
Department: "Finance",
},
metadata: computeTargetMetadata,
});
import pulumi
import pulumi_oci as oci
test_compute_target = oci.datascience.ComputeTarget("test_compute_target",
compartment_id=compartment_id,
compute_configuration_details={
"compute_type": compute_target_compute_configuration_details_compute_type,
"instance_configuration": {
"instance_shape": compute_target_compute_configuration_details_instance_configuration_instance_shape,
"boot_volume_size_in_gbs": int(compute_target_compute_configuration_details_instance_configuration_boot_volume_size_in_gbs),
"instance_shape_details": {
"memory_in_gbs": compute_target_compute_configuration_details_instance_configuration_instance_shape_details_memory_in_gbs,
"ocpus": compute_target_compute_configuration_details_instance_configuration_instance_shape_details_ocpus,
},
},
"scaling_policy": {
"policy_type": compute_target_compute_configuration_details_scaling_policy_policy_type,
"auto_scaling_policies": [{
"auto_scaling_policy_type": compute_target_compute_configuration_details_scaling_policy_auto_scaling_policies_auto_scaling_policy_type,
"initial_instance_count": int(compute_target_compute_configuration_details_scaling_policy_auto_scaling_policies_initial_instance_count),
"maximum_instance_count": int(compute_target_compute_configuration_details_scaling_policy_auto_scaling_policies_maximum_instance_count),
"minimum_instance_count": int(compute_target_compute_configuration_details_scaling_policy_auto_scaling_policies_minimum_instance_count),
"rules": [{
"metric_expression_rule_type": compute_target_compute_configuration_details_scaling_policy_auto_scaling_policies_rules_metric_expression_rule_type,
"scale_in_configuration": {
"instance_count_adjustment": int(compute_target_compute_configuration_details_scaling_policy_auto_scaling_policies_rules_scale_in_configuration_instance_count_adjustment),
"pending_duration": compute_target_compute_configuration_details_scaling_policy_auto_scaling_policies_rules_scale_in_configuration_pending_duration,
"query": compute_target_compute_configuration_details_scaling_policy_auto_scaling_policies_rules_scale_in_configuration_query,
"scaling_configuration_type": compute_target_compute_configuration_details_scaling_policy_auto_scaling_policies_rules_scale_in_configuration_scaling_configuration_type,
"threshold": int(compute_target_compute_configuration_details_scaling_policy_auto_scaling_policies_rules_scale_in_configuration_threshold),
},
"scale_out_configuration": {
"instance_count_adjustment": int(compute_target_compute_configuration_details_scaling_policy_auto_scaling_policies_rules_scale_out_configuration_instance_count_adjustment),
"pending_duration": compute_target_compute_configuration_details_scaling_policy_auto_scaling_policies_rules_scale_out_configuration_pending_duration,
"query": compute_target_compute_configuration_details_scaling_policy_auto_scaling_policies_rules_scale_out_configuration_query,
"scaling_configuration_type": compute_target_compute_configuration_details_scaling_policy_auto_scaling_policies_rules_scale_out_configuration_scaling_configuration_type,
"threshold": int(compute_target_compute_configuration_details_scaling_policy_auto_scaling_policies_rules_scale_out_configuration_threshold),
},
"metric_type": compute_target_compute_configuration_details_scaling_policy_auto_scaling_policies_rules_metric_type,
}],
}],
"cool_down_in_seconds": int(compute_target_compute_configuration_details_scaling_policy_cool_down_in_seconds),
"instance_count": int(compute_target_compute_configuration_details_scaling_policy_instance_count),
"is_enabled": compute_target_compute_configuration_details_scaling_policy_is_enabled == "true",
},
},
defined_tags={
"Operations.CostCenter": "42",
},
description=compute_target_description,
display_name=compute_target_display_name,
freeform_tags={
"Department": "Finance",
},
metadata=compute_target_metadata)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/datascience"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datascience.NewComputeTarget(ctx, "test_compute_target", &datascience.ComputeTargetArgs{
CompartmentId: pulumi.Any(compartmentId),
ComputeConfigurationDetails: &datascience.ComputeTargetComputeConfigurationDetailsArgs{
ComputeType: pulumi.Any(computeTargetComputeConfigurationDetailsComputeType),
InstanceConfiguration: &datascience.ComputeTargetComputeConfigurationDetailsInstanceConfigurationArgs{
InstanceShape: pulumi.Any(computeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShape),
BootVolumeSizeInGbs: pulumi.Any(computeTargetComputeConfigurationDetailsInstanceConfigurationBootVolumeSizeInGbs),
InstanceShapeDetails: &datascience.ComputeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsArgs{
MemoryInGbs: pulumi.Any(computeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsMemoryInGbs),
Ocpus: pulumi.Any(computeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsOcpus),
},
},
ScalingPolicy: &datascience.ComputeTargetComputeConfigurationDetailsScalingPolicyArgs{
PolicyType: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyPolicyType),
AutoScalingPolicies: datascience.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyArray{
&datascience.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyArgs{
AutoScalingPolicyType: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesAutoScalingPolicyType),
InitialInstanceCount: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesInitialInstanceCount),
MaximumInstanceCount: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesMaximumInstanceCount),
MinimumInstanceCount: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesMinimumInstanceCount),
Rules: datascience.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleArray{
&datascience.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleArgs{
MetricExpressionRuleType: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesMetricExpressionRuleType),
ScaleInConfiguration: &datascience.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleScaleInConfigurationArgs{
InstanceCountAdjustment: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationInstanceCountAdjustment),
PendingDuration: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationPendingDuration),
Query: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationQuery),
ScalingConfigurationType: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationScalingConfigurationType),
Threshold: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationThreshold),
},
ScaleOutConfiguration: &datascience.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleScaleOutConfigurationArgs{
InstanceCountAdjustment: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationInstanceCountAdjustment),
PendingDuration: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationPendingDuration),
Query: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationQuery),
ScalingConfigurationType: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationScalingConfigurationType),
Threshold: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationThreshold),
},
MetricType: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesMetricType),
},
},
},
},
CoolDownInSeconds: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyCoolDownInSeconds),
InstanceCount: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyInstanceCount),
IsEnabled: pulumi.Any(computeTargetComputeConfigurationDetailsScalingPolicyIsEnabled),
},
},
DefinedTags: pulumi.StringMap{
"Operations.CostCenter": pulumi.String("42"),
},
Description: pulumi.Any(computeTargetDescription),
DisplayName: pulumi.Any(computeTargetDisplayName),
FreeformTags: pulumi.StringMap{
"Department": pulumi.String("Finance"),
},
Metadata: pulumi.Any(computeTargetMetadata),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testComputeTarget = new Oci.DataScience.ComputeTarget("test_compute_target", new()
{
CompartmentId = compartmentId,
ComputeConfigurationDetails = new Oci.DataScience.Inputs.ComputeTargetComputeConfigurationDetailsArgs
{
ComputeType = computeTargetComputeConfigurationDetailsComputeType,
InstanceConfiguration = new Oci.DataScience.Inputs.ComputeTargetComputeConfigurationDetailsInstanceConfigurationArgs
{
InstanceShape = computeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShape,
BootVolumeSizeInGbs = computeTargetComputeConfigurationDetailsInstanceConfigurationBootVolumeSizeInGbs,
InstanceShapeDetails = new Oci.DataScience.Inputs.ComputeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsArgs
{
MemoryInGbs = computeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsMemoryInGbs,
Ocpus = computeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsOcpus,
},
},
ScalingPolicy = new Oci.DataScience.Inputs.ComputeTargetComputeConfigurationDetailsScalingPolicyArgs
{
PolicyType = computeTargetComputeConfigurationDetailsScalingPolicyPolicyType,
AutoScalingPolicies = new[]
{
new Oci.DataScience.Inputs.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyArgs
{
AutoScalingPolicyType = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesAutoScalingPolicyType,
InitialInstanceCount = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesInitialInstanceCount,
MaximumInstanceCount = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesMaximumInstanceCount,
MinimumInstanceCount = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesMinimumInstanceCount,
Rules = new[]
{
new Oci.DataScience.Inputs.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleArgs
{
MetricExpressionRuleType = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesMetricExpressionRuleType,
ScaleInConfiguration = new Oci.DataScience.Inputs.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleScaleInConfigurationArgs
{
InstanceCountAdjustment = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationInstanceCountAdjustment,
PendingDuration = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationPendingDuration,
Query = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationQuery,
ScalingConfigurationType = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationScalingConfigurationType,
Threshold = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationThreshold,
},
ScaleOutConfiguration = new Oci.DataScience.Inputs.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleScaleOutConfigurationArgs
{
InstanceCountAdjustment = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationInstanceCountAdjustment,
PendingDuration = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationPendingDuration,
Query = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationQuery,
ScalingConfigurationType = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationScalingConfigurationType,
Threshold = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationThreshold,
},
MetricType = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesMetricType,
},
},
},
},
CoolDownInSeconds = computeTargetComputeConfigurationDetailsScalingPolicyCoolDownInSeconds,
InstanceCount = computeTargetComputeConfigurationDetailsScalingPolicyInstanceCount,
IsEnabled = computeTargetComputeConfigurationDetailsScalingPolicyIsEnabled,
},
},
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
Description = computeTargetDescription,
DisplayName = computeTargetDisplayName,
FreeformTags =
{
{ "Department", "Finance" },
},
Metadata = computeTargetMetadata,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataScience.ComputeTarget;
import com.pulumi.oci.DataScience.ComputeTargetArgs;
import com.pulumi.oci.DataScience.inputs.ComputeTargetComputeConfigurationDetailsArgs;
import com.pulumi.oci.DataScience.inputs.ComputeTargetComputeConfigurationDetailsInstanceConfigurationArgs;
import com.pulumi.oci.DataScience.inputs.ComputeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsArgs;
import com.pulumi.oci.DataScience.inputs.ComputeTargetComputeConfigurationDetailsScalingPolicyArgs;
import java.util.ArrayList;
import java.util.Arrays;
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) {
var testComputeTarget = new ComputeTarget("testComputeTarget", ComputeTargetArgs.builder()
.compartmentId(compartmentId)
.computeConfigurationDetails(ComputeTargetComputeConfigurationDetailsArgs.builder()
.computeType(computeTargetComputeConfigurationDetailsComputeType)
.instanceConfiguration(ComputeTargetComputeConfigurationDetailsInstanceConfigurationArgs.builder()
.instanceShape(computeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShape)
.bootVolumeSizeInGbs(computeTargetComputeConfigurationDetailsInstanceConfigurationBootVolumeSizeInGbs)
.instanceShapeDetails(ComputeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsArgs.builder()
.memoryInGbs(computeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsMemoryInGbs)
.ocpus(computeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsOcpus)
.build())
.build())
.scalingPolicy(ComputeTargetComputeConfigurationDetailsScalingPolicyArgs.builder()
.policyType(computeTargetComputeConfigurationDetailsScalingPolicyPolicyType)
.autoScalingPolicies(ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyArgs.builder()
.autoScalingPolicyType(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesAutoScalingPolicyType)
.initialInstanceCount(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesInitialInstanceCount)
.maximumInstanceCount(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesMaximumInstanceCount)
.minimumInstanceCount(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesMinimumInstanceCount)
.rules(ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleArgs.builder()
.metricExpressionRuleType(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesMetricExpressionRuleType)
.scaleInConfiguration(ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleScaleInConfigurationArgs.builder()
.instanceCountAdjustment(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationInstanceCountAdjustment)
.pendingDuration(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationPendingDuration)
.query(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationQuery)
.scalingConfigurationType(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationScalingConfigurationType)
.threshold(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationThreshold)
.build())
.scaleOutConfiguration(ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleScaleOutConfigurationArgs.builder()
.instanceCountAdjustment(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationInstanceCountAdjustment)
.pendingDuration(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationPendingDuration)
.query(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationQuery)
.scalingConfigurationType(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationScalingConfigurationType)
.threshold(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationThreshold)
.build())
.metricType(computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesMetricType)
.build())
.build())
.coolDownInSeconds(computeTargetComputeConfigurationDetailsScalingPolicyCoolDownInSeconds)
.instanceCount(computeTargetComputeConfigurationDetailsScalingPolicyInstanceCount)
.isEnabled(computeTargetComputeConfigurationDetailsScalingPolicyIsEnabled)
.build())
.build())
.definedTags(Map.of("Operations.CostCenter", "42"))
.description(computeTargetDescription)
.displayName(computeTargetDisplayName)
.freeformTags(Map.of("Department", "Finance"))
.metadata(computeTargetMetadata)
.build());
}
}
resources:
testComputeTarget:
type: oci:DataScience:ComputeTarget
name: test_compute_target
properties:
compartmentId: ${compartmentId}
computeConfigurationDetails:
computeType: ${computeTargetComputeConfigurationDetailsComputeType}
instanceConfiguration:
instanceShape: ${computeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShape}
bootVolumeSizeInGbs: ${computeTargetComputeConfigurationDetailsInstanceConfigurationBootVolumeSizeInGbs}
instanceShapeDetails:
memoryInGbs: ${computeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsMemoryInGbs}
ocpus: ${computeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsOcpus}
scalingPolicy:
policyType: ${computeTargetComputeConfigurationDetailsScalingPolicyPolicyType}
autoScalingPolicies:
- autoScalingPolicyType: ${computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesAutoScalingPolicyType}
initialInstanceCount: ${computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesInitialInstanceCount}
maximumInstanceCount: ${computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesMaximumInstanceCount}
minimumInstanceCount: ${computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesMinimumInstanceCount}
rules:
- metricExpressionRuleType: ${computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesMetricExpressionRuleType}
scaleInConfiguration:
instanceCountAdjustment: ${computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationInstanceCountAdjustment}
pendingDuration: ${computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationPendingDuration}
query: ${computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationQuery}
scalingConfigurationType: ${computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationScalingConfigurationType}
threshold: ${computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationThreshold}
scaleOutConfiguration:
instanceCountAdjustment: ${computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationInstanceCountAdjustment}
pendingDuration: ${computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationPendingDuration}
query: ${computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationQuery}
scalingConfigurationType: ${computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationScalingConfigurationType}
threshold: ${computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationThreshold}
metricType: ${computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesMetricType}
coolDownInSeconds: ${computeTargetComputeConfigurationDetailsScalingPolicyCoolDownInSeconds}
instanceCount: ${computeTargetComputeConfigurationDetailsScalingPolicyInstanceCount}
isEnabled: ${computeTargetComputeConfigurationDetailsScalingPolicyIsEnabled}
definedTags:
Operations.CostCenter: '42'
description: ${computeTargetDescription}
displayName: ${computeTargetDisplayName}
freeformTags:
Department: Finance
metadata: ${computeTargetMetadata}
pulumi {
required_providers {
oci = {
source = "pulumi/oci"
}
}
}
resource "oci_datascience_computetarget" "test_compute_target" {
compartment_id = compartmentId
compute_configuration_details = {
compute_type = computeTargetComputeConfigurationDetailsComputeType
instance_configuration = {
instance_shape = computeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShape
boot_volume_size_in_gbs = computeTargetComputeConfigurationDetailsInstanceConfigurationBootVolumeSizeInGbs
instance_shape_details = {
memory_in_gbs = computeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsMemoryInGbs
ocpus = computeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsOcpus
}
}
scaling_policy = {
policy_type = computeTargetComputeConfigurationDetailsScalingPolicyPolicyType
auto_scaling_policies = [{
"autoScalingPolicyType" = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesAutoScalingPolicyType
"initialInstanceCount" = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesInitialInstanceCount
"maximumInstanceCount" = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesMaximumInstanceCount
"minimumInstanceCount" = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesMinimumInstanceCount
"rules" = [{
"metricExpressionRuleType" = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesMetricExpressionRuleType
"scaleInConfiguration" = {
"instanceCountAdjustment" = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationInstanceCountAdjustment
"pendingDuration" = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationPendingDuration
"query" = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationQuery
"scalingConfigurationType" = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationScalingConfigurationType
"threshold" = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationThreshold
}
"scaleOutConfiguration" = {
"instanceCountAdjustment" = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationInstanceCountAdjustment
"pendingDuration" = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationPendingDuration
"query" = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationQuery
"scalingConfigurationType" = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationScalingConfigurationType
"threshold" = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationThreshold
}
"metricType" = computeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesMetricType
}]
}]
cool_down_in_seconds = computeTargetComputeConfigurationDetailsScalingPolicyCoolDownInSeconds
instance_count = computeTargetComputeConfigurationDetailsScalingPolicyInstanceCount
is_enabled = computeTargetComputeConfigurationDetailsScalingPolicyIsEnabled
}
}
#Required
#Required
#Optional
#Optional
#Required
#Required
#Required
#Optional
#Optional
#Optional
defined_tags = {
"Operations.CostCenter" = "42"
}
description = computeTargetDescription
display_name = computeTargetDisplayName
freeform_tags = {
"Department" = "Finance"
}
metadata = computeTargetMetadata
}
Create ComputeTarget Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ComputeTarget(name: string, args: ComputeTargetArgs, opts?: CustomResourceOptions);@overload
def ComputeTarget(resource_name: str,
args: ComputeTargetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ComputeTarget(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
compute_configuration_details: Optional[ComputeTargetComputeConfigurationDetailsArgs] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
metadata: Optional[Mapping[str, str]] = None)func NewComputeTarget(ctx *Context, name string, args ComputeTargetArgs, opts ...ResourceOption) (*ComputeTarget, error)public ComputeTarget(string name, ComputeTargetArgs args, CustomResourceOptions? opts = null)
public ComputeTarget(String name, ComputeTargetArgs args)
public ComputeTarget(String name, ComputeTargetArgs args, CustomResourceOptions options)
type: oci:DataScience:ComputeTarget
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "oci_datascience_computetarget" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ComputeTargetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ComputeTargetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ComputeTargetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ComputeTargetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ComputeTargetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var computeTargetResource = new Oci.DataScience.ComputeTarget("computeTargetResource", new()
{
CompartmentId = "string",
ComputeConfigurationDetails = new Oci.DataScience.Inputs.ComputeTargetComputeConfigurationDetailsArgs
{
ComputeType = "string",
InstanceConfiguration = new Oci.DataScience.Inputs.ComputeTargetComputeConfigurationDetailsInstanceConfigurationArgs
{
InstanceShape = "string",
BootVolumeSizeInGbs = 0,
InstanceShapeDetails = new Oci.DataScience.Inputs.ComputeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsArgs
{
MemoryInGbs = 0,
Ocpus = 0,
},
},
ScalingPolicy = new Oci.DataScience.Inputs.ComputeTargetComputeConfigurationDetailsScalingPolicyArgs
{
PolicyType = "string",
AutoScalingPolicies = new[]
{
new Oci.DataScience.Inputs.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyArgs
{
AutoScalingPolicyType = "string",
InitialInstanceCount = 0,
MaximumInstanceCount = 0,
MinimumInstanceCount = 0,
Rules = new[]
{
new Oci.DataScience.Inputs.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleArgs
{
MetricExpressionRuleType = "string",
ScaleInConfiguration = new Oci.DataScience.Inputs.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleScaleInConfigurationArgs
{
InstanceCountAdjustment = 0,
PendingDuration = "string",
Query = "string",
ScalingConfigurationType = "string",
Threshold = 0,
},
ScaleOutConfiguration = new Oci.DataScience.Inputs.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleScaleOutConfigurationArgs
{
InstanceCountAdjustment = 0,
PendingDuration = "string",
Query = "string",
ScalingConfigurationType = "string",
Threshold = 0,
},
MetricType = "string",
},
},
},
},
CoolDownInSeconds = 0,
InstanceCount = 0,
IsEnabled = false,
},
},
DefinedTags =
{
{ "string", "string" },
},
Description = "string",
DisplayName = "string",
FreeformTags =
{
{ "string", "string" },
},
Metadata =
{
{ "string", "string" },
},
});
example, err := datascience.NewComputeTarget(ctx, "computeTargetResource", &datascience.ComputeTargetArgs{
CompartmentId: pulumi.String("string"),
ComputeConfigurationDetails: &datascience.ComputeTargetComputeConfigurationDetailsArgs{
ComputeType: pulumi.String("string"),
InstanceConfiguration: &datascience.ComputeTargetComputeConfigurationDetailsInstanceConfigurationArgs{
InstanceShape: pulumi.String("string"),
BootVolumeSizeInGbs: pulumi.Int(0),
InstanceShapeDetails: &datascience.ComputeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsArgs{
MemoryInGbs: pulumi.Float64(0),
Ocpus: pulumi.Float64(0),
},
},
ScalingPolicy: &datascience.ComputeTargetComputeConfigurationDetailsScalingPolicyArgs{
PolicyType: pulumi.String("string"),
AutoScalingPolicies: datascience.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyArray{
&datascience.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyArgs{
AutoScalingPolicyType: pulumi.String("string"),
InitialInstanceCount: pulumi.Int(0),
MaximumInstanceCount: pulumi.Int(0),
MinimumInstanceCount: pulumi.Int(0),
Rules: datascience.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleArray{
&datascience.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleArgs{
MetricExpressionRuleType: pulumi.String("string"),
ScaleInConfiguration: &datascience.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleScaleInConfigurationArgs{
InstanceCountAdjustment: pulumi.Int(0),
PendingDuration: pulumi.String("string"),
Query: pulumi.String("string"),
ScalingConfigurationType: pulumi.String("string"),
Threshold: pulumi.Int(0),
},
ScaleOutConfiguration: &datascience.ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleScaleOutConfigurationArgs{
InstanceCountAdjustment: pulumi.Int(0),
PendingDuration: pulumi.String("string"),
Query: pulumi.String("string"),
ScalingConfigurationType: pulumi.String("string"),
Threshold: pulumi.Int(0),
},
MetricType: pulumi.String("string"),
},
},
},
},
CoolDownInSeconds: pulumi.Int(0),
InstanceCount: pulumi.Int(0),
IsEnabled: pulumi.Bool(false),
},
},
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
resource "oci_datascience_computetarget" "computeTargetResource" {
compartment_id = "string"
compute_configuration_details = {
compute_type = "string"
instance_configuration = {
instance_shape = "string"
boot_volume_size_in_gbs = 0
instance_shape_details = {
memory_in_gbs = 0
ocpus = 0
}
}
scaling_policy = {
policy_type = "string"
auto_scaling_policies = [{
"autoScalingPolicyType" = "string"
"initialInstanceCount" = 0
"maximumInstanceCount" = 0
"minimumInstanceCount" = 0
"rules" = [{
"metricExpressionRuleType" = "string"
"scaleInConfiguration" = {
"instanceCountAdjustment" = 0
"pendingDuration" = "string"
"query" = "string"
"scalingConfigurationType" = "string"
"threshold" = 0
}
"scaleOutConfiguration" = {
"instanceCountAdjustment" = 0
"pendingDuration" = "string"
"query" = "string"
"scalingConfigurationType" = "string"
"threshold" = 0
}
"metricType" = "string"
}]
}]
cool_down_in_seconds = 0
instance_count = 0
is_enabled = false
}
}
defined_tags = {
"string" = "string"
}
description = "string"
display_name = "string"
freeform_tags = {
"string" = "string"
}
metadata = {
"string" = "string"
}
}
var computeTargetResource = new ComputeTarget("computeTargetResource", ComputeTargetArgs.builder()
.compartmentId("string")
.computeConfigurationDetails(ComputeTargetComputeConfigurationDetailsArgs.builder()
.computeType("string")
.instanceConfiguration(ComputeTargetComputeConfigurationDetailsInstanceConfigurationArgs.builder()
.instanceShape("string")
.bootVolumeSizeInGbs(0)
.instanceShapeDetails(ComputeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsArgs.builder()
.memoryInGbs(0.0)
.ocpus(0.0)
.build())
.build())
.scalingPolicy(ComputeTargetComputeConfigurationDetailsScalingPolicyArgs.builder()
.policyType("string")
.autoScalingPolicies(ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyArgs.builder()
.autoScalingPolicyType("string")
.initialInstanceCount(0)
.maximumInstanceCount(0)
.minimumInstanceCount(0)
.rules(ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleArgs.builder()
.metricExpressionRuleType("string")
.scaleInConfiguration(ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleScaleInConfigurationArgs.builder()
.instanceCountAdjustment(0)
.pendingDuration("string")
.query("string")
.scalingConfigurationType("string")
.threshold(0)
.build())
.scaleOutConfiguration(ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleScaleOutConfigurationArgs.builder()
.instanceCountAdjustment(0)
.pendingDuration("string")
.query("string")
.scalingConfigurationType("string")
.threshold(0)
.build())
.metricType("string")
.build())
.build())
.coolDownInSeconds(0)
.instanceCount(0)
.isEnabled(false)
.build())
.build())
.definedTags(Map.of("string", "string"))
.description("string")
.displayName("string")
.freeformTags(Map.of("string", "string"))
.metadata(Map.of("string", "string"))
.build());
compute_target_resource = oci.datascience.ComputeTarget("computeTargetResource",
compartment_id="string",
compute_configuration_details={
"compute_type": "string",
"instance_configuration": {
"instance_shape": "string",
"boot_volume_size_in_gbs": 0,
"instance_shape_details": {
"memory_in_gbs": float(0),
"ocpus": float(0),
},
},
"scaling_policy": {
"policy_type": "string",
"auto_scaling_policies": [{
"auto_scaling_policy_type": "string",
"initial_instance_count": 0,
"maximum_instance_count": 0,
"minimum_instance_count": 0,
"rules": [{
"metric_expression_rule_type": "string",
"scale_in_configuration": {
"instance_count_adjustment": 0,
"pending_duration": "string",
"query": "string",
"scaling_configuration_type": "string",
"threshold": 0,
},
"scale_out_configuration": {
"instance_count_adjustment": 0,
"pending_duration": "string",
"query": "string",
"scaling_configuration_type": "string",
"threshold": 0,
},
"metric_type": "string",
}],
}],
"cool_down_in_seconds": 0,
"instance_count": 0,
"is_enabled": False,
},
},
defined_tags={
"string": "string",
},
description="string",
display_name="string",
freeform_tags={
"string": "string",
},
metadata={
"string": "string",
})
const computeTargetResource = new oci.datascience.ComputeTarget("computeTargetResource", {
compartmentId: "string",
computeConfigurationDetails: {
computeType: "string",
instanceConfiguration: {
instanceShape: "string",
bootVolumeSizeInGbs: 0,
instanceShapeDetails: {
memoryInGbs: 0,
ocpus: 0,
},
},
scalingPolicy: {
policyType: "string",
autoScalingPolicies: [{
autoScalingPolicyType: "string",
initialInstanceCount: 0,
maximumInstanceCount: 0,
minimumInstanceCount: 0,
rules: [{
metricExpressionRuleType: "string",
scaleInConfiguration: {
instanceCountAdjustment: 0,
pendingDuration: "string",
query: "string",
scalingConfigurationType: "string",
threshold: 0,
},
scaleOutConfiguration: {
instanceCountAdjustment: 0,
pendingDuration: "string",
query: "string",
scalingConfigurationType: "string",
threshold: 0,
},
metricType: "string",
}],
}],
coolDownInSeconds: 0,
instanceCount: 0,
isEnabled: false,
},
},
definedTags: {
string: "string",
},
description: "string",
displayName: "string",
freeformTags: {
string: "string",
},
metadata: {
string: "string",
},
});
type: oci:DataScience:ComputeTarget
properties:
compartmentId: string
computeConfigurationDetails:
computeType: string
instanceConfiguration:
bootVolumeSizeInGbs: 0
instanceShape: string
instanceShapeDetails:
memoryInGbs: 0
ocpus: 0
scalingPolicy:
autoScalingPolicies:
- autoScalingPolicyType: string
initialInstanceCount: 0
maximumInstanceCount: 0
minimumInstanceCount: 0
rules:
- metricExpressionRuleType: string
metricType: string
scaleInConfiguration:
instanceCountAdjustment: 0
pendingDuration: string
query: string
scalingConfigurationType: string
threshold: 0
scaleOutConfiguration:
instanceCountAdjustment: 0
pendingDuration: string
query: string
scalingConfigurationType: string
threshold: 0
coolDownInSeconds: 0
instanceCount: 0
isEnabled: false
policyType: string
definedTags:
string: string
description: string
displayName: string
freeformTags:
string: string
metadata:
string: string
ComputeTarget Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ComputeTarget resource accepts the following input properties:
- Compartment
Id string - (Updatable) The OCID of the compartment where you want to create the compute target.
- Compute
Configuration ComputeDetails Target Compute Configuration Details - (Updatable) Configuration details of the targeted compute.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- (Updatable) A short description of the compute target.
- Display
Name string - (Updatable) A user-friendly display name for the resource.
- Dictionary<string, string>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - Metadata Dictionary<string, string>
(Updatable) Metadata for the compute target. The size of metadata must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. Key can't be reserved Compute Target metadata.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Compartment
Id string - (Updatable) The OCID of the compartment where you want to create the compute target.
- Compute
Configuration ComputeDetails Target Compute Configuration Details Args - (Updatable) Configuration details of the targeted compute.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- (Updatable) A short description of the compute target.
- Display
Name string - (Updatable) A user-friendly display name for the resource.
- map[string]string
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - Metadata map[string]string
(Updatable) Metadata for the compute target. The size of metadata must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. Key can't be reserved Compute Target metadata.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment_
id string - (Updatable) The OCID of the compartment where you want to create the compute target.
- compute_
configuration_ objectdetails - (Updatable) Configuration details of the targeted compute.
- map(string)
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - description string
- (Updatable) A short description of the compute target.
- display_
name string - (Updatable) A user-friendly display name for the resource.
- map(string)
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - metadata map(string)
(Updatable) Metadata for the compute target. The size of metadata must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. Key can't be reserved Compute Target metadata.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id String - (Updatable) The OCID of the compartment where you want to create the compute target.
- compute
Configuration ComputeDetails Target Compute Configuration Details - (Updatable) Configuration details of the targeted compute.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- (Updatable) A short description of the compute target.
- display
Name String - (Updatable) A user-friendly display name for the resource.
- Map<String,String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - metadata Map<String,String>
(Updatable) Metadata for the compute target. The size of metadata must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. Key can't be reserved Compute Target metadata.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id string - (Updatable) The OCID of the compartment where you want to create the compute target.
- compute
Configuration ComputeDetails Target Compute Configuration Details - (Updatable) Configuration details of the targeted compute.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - description string
- (Updatable) A short description of the compute target.
- display
Name string - (Updatable) A user-friendly display name for the resource.
- {[key: string]: string}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - metadata {[key: string]: string}
(Updatable) Metadata for the compute target. The size of metadata must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. Key can't be reserved Compute Target metadata.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment_
id str - (Updatable) The OCID of the compartment where you want to create the compute target.
- compute_
configuration_ Computedetails Target Compute Configuration Details Args - (Updatable) Configuration details of the targeted compute.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - description str
- (Updatable) A short description of the compute target.
- display_
name str - (Updatable) A user-friendly display name for the resource.
- Mapping[str, str]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - metadata Mapping[str, str]
(Updatable) Metadata for the compute target. The size of metadata must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. Key can't be reserved Compute Target metadata.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id String - (Updatable) The OCID of the compartment where you want to create the compute target.
- compute
Configuration Property MapDetails - (Updatable) Configuration details of the targeted compute.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- (Updatable) A short description of the compute target.
- display
Name String - (Updatable) A user-friendly display name for the resource.
- Map<String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - metadata Map<String>
(Updatable) Metadata for the compute target. The size of metadata must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. Key can't be reserved Compute Target metadata.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the ComputeTarget resource produces the following output properties:
- Compute
Target List<ComputeSystem Datas Target Compute Target System Data> - System data of the compute target.
- Created
By string - The OCID of the user who created the compute target.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Details about the state of the compute target.
- State string
- The state of the compute target.
- Time
Created string - The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z
- Compute
Target []ComputeSystem Datas Target Compute Target System Data - System data of the compute target.
- Created
By string - The OCID of the user who created the compute target.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Details about the state of the compute target.
- State string
- The state of the compute target.
- Time
Created string - The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z
- compute_
target_ list(object)system_ datas - System data of the compute target.
- created_
by string - The OCID of the user who created the compute target.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details string - Details about the state of the compute target.
- state string
- The state of the compute target.
- time_
created string - The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z
- compute
Target List<ComputeSystem Datas Target Compute Target System Data> - System data of the compute target.
- created
By String - The OCID of the user who created the compute target.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Details about the state of the compute target.
- state String
- The state of the compute target.
- time
Created String - The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z
- compute
Target ComputeSystem Datas Target Compute Target System Data[] - System data of the compute target.
- created
By string - The OCID of the user who created the compute target.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details string - Details about the state of the compute target.
- state string
- The state of the compute target.
- time
Created string - The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z
- compute_
target_ Sequence[Computesystem_ datas Target Compute Target System Data] - System data of the compute target.
- created_
by str - The OCID of the user who created the compute target.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details str - Details about the state of the compute target.
- state str
- The state of the compute target.
- time_
created str - The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z
- compute
Target List<Property Map>System Datas - System data of the compute target.
- created
By String - The OCID of the user who created the compute target.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Details about the state of the compute target.
- state String
- The state of the compute target.
- time
Created String - The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z
Look up Existing ComputeTarget Resource
Get an existing ComputeTarget resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ComputeTargetState, opts?: CustomResourceOptions): ComputeTarget@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
compute_configuration_details: Optional[ComputeTargetComputeConfigurationDetailsArgs] = None,
compute_target_system_datas: Optional[Sequence[ComputeTargetComputeTargetSystemDataArgs]] = None,
created_by: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
lifecycle_details: Optional[str] = None,
metadata: Optional[Mapping[str, str]] = None,
state: Optional[str] = None,
time_created: Optional[str] = None) -> ComputeTargetfunc GetComputeTarget(ctx *Context, name string, id IDInput, state *ComputeTargetState, opts ...ResourceOption) (*ComputeTarget, error)public static ComputeTarget Get(string name, Input<string> id, ComputeTargetState? state, CustomResourceOptions? opts = null)public static ComputeTarget get(String name, Output<String> id, ComputeTargetState state, CustomResourceOptions options)resources: _: type: oci:DataScience:ComputeTarget get: id: ${id}import {
to = oci_datascience_computetarget.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Compartment
Id string - (Updatable) The OCID of the compartment where you want to create the compute target.
- Compute
Configuration ComputeDetails Target Compute Configuration Details - (Updatable) Configuration details of the targeted compute.
- Compute
Target List<ComputeSystem Datas Target Compute Target System Data> - System data of the compute target.
- Created
By string - The OCID of the user who created the compute target.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- (Updatable) A short description of the compute target.
- Display
Name string - (Updatable) A user-friendly display name for the resource.
- Dictionary<string, string>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - Lifecycle
Details string - Details about the state of the compute target.
- Metadata Dictionary<string, string>
(Updatable) Metadata for the compute target. The size of metadata must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. Key can't be reserved Compute Target metadata.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- State string
- The state of the compute target.
- Time
Created string - The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z
- Compartment
Id string - (Updatable) The OCID of the compartment where you want to create the compute target.
- Compute
Configuration ComputeDetails Target Compute Configuration Details Args - (Updatable) Configuration details of the targeted compute.
- Compute
Target []ComputeSystem Datas Target Compute Target System Data Args - System data of the compute target.
- Created
By string - The OCID of the user who created the compute target.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- (Updatable) A short description of the compute target.
- Display
Name string - (Updatable) A user-friendly display name for the resource.
- map[string]string
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - Lifecycle
Details string - Details about the state of the compute target.
- Metadata map[string]string
(Updatable) Metadata for the compute target. The size of metadata must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. Key can't be reserved Compute Target metadata.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- State string
- The state of the compute target.
- Time
Created string - The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z
- compartment_
id string - (Updatable) The OCID of the compartment where you want to create the compute target.
- compute_
configuration_ objectdetails - (Updatable) Configuration details of the targeted compute.
- compute_
target_ list(object)system_ datas - System data of the compute target.
- created_
by string - The OCID of the user who created the compute target.
- map(string)
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - description string
- (Updatable) A short description of the compute target.
- display_
name string - (Updatable) A user-friendly display name for the resource.
- map(string)
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - lifecycle_
details string - Details about the state of the compute target.
- metadata map(string)
(Updatable) Metadata for the compute target. The size of metadata must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. Key can't be reserved Compute Target metadata.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state string
- The state of the compute target.
- time_
created string - The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z
- compartment
Id String - (Updatable) The OCID of the compartment where you want to create the compute target.
- compute
Configuration ComputeDetails Target Compute Configuration Details - (Updatable) Configuration details of the targeted compute.
- compute
Target List<ComputeSystem Datas Target Compute Target System Data> - System data of the compute target.
- created
By String - The OCID of the user who created the compute target.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- (Updatable) A short description of the compute target.
- display
Name String - (Updatable) A user-friendly display name for the resource.
- Map<String,String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - lifecycle
Details String - Details about the state of the compute target.
- metadata Map<String,String>
(Updatable) Metadata for the compute target. The size of metadata must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. Key can't be reserved Compute Target metadata.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state String
- The state of the compute target.
- time
Created String - The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z
- compartment
Id string - (Updatable) The OCID of the compartment where you want to create the compute target.
- compute
Configuration ComputeDetails Target Compute Configuration Details - (Updatable) Configuration details of the targeted compute.
- compute
Target ComputeSystem Datas Target Compute Target System Data[] - System data of the compute target.
- created
By string - The OCID of the user who created the compute target.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - description string
- (Updatable) A short description of the compute target.
- display
Name string - (Updatable) A user-friendly display name for the resource.
- {[key: string]: string}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - lifecycle
Details string - Details about the state of the compute target.
- metadata {[key: string]: string}
(Updatable) Metadata for the compute target. The size of metadata must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. Key can't be reserved Compute Target metadata.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state string
- The state of the compute target.
- time
Created string - The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z
- compartment_
id str - (Updatable) The OCID of the compartment where you want to create the compute target.
- compute_
configuration_ Computedetails Target Compute Configuration Details Args - (Updatable) Configuration details of the targeted compute.
- compute_
target_ Sequence[Computesystem_ datas Target Compute Target System Data Args] - System data of the compute target.
- created_
by str - The OCID of the user who created the compute target.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - description str
- (Updatable) A short description of the compute target.
- display_
name str - (Updatable) A user-friendly display name for the resource.
- Mapping[str, str]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - lifecycle_
details str - Details about the state of the compute target.
- metadata Mapping[str, str]
(Updatable) Metadata for the compute target. The size of metadata must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. Key can't be reserved Compute Target metadata.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state str
- The state of the compute target.
- time_
created str - The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z
- compartment
Id String - (Updatable) The OCID of the compartment where you want to create the compute target.
- compute
Configuration Property MapDetails - (Updatable) Configuration details of the targeted compute.
- compute
Target List<Property Map>System Datas - System data of the compute target.
- created
By String - The OCID of the user who created the compute target.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- (Updatable) A short description of the compute target.
- display
Name String - (Updatable) A user-friendly display name for the resource.
- Map<String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - lifecycle
Details String - Details about the state of the compute target.
- metadata Map<String>
(Updatable) Metadata for the compute target. The size of metadata must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. Key can't be reserved Compute Target metadata.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state String
- The state of the compute target.
- time
Created String - The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z
Supporting Types
ComputeTargetComputeConfigurationDetails, ComputeTargetComputeConfigurationDetailsArgs
- Compute
Type string - (Updatable) The type of compute.
- Instance
Configuration ComputeTarget Compute Configuration Details Instance Configuration - (Updatable) The compute target instance configuration details for managed compute cluster type compute target.
- Scaling
Policy ComputeTarget Compute Configuration Details Scaling Policy - (Updatable) The scaling policy to apply to managed compute cluster type compute target.
- Compute
Type string - (Updatable) The type of compute.
- Instance
Configuration ComputeTarget Compute Configuration Details Instance Configuration - (Updatable) The compute target instance configuration details for managed compute cluster type compute target.
- Scaling
Policy ComputeTarget Compute Configuration Details Scaling Policy - (Updatable) The scaling policy to apply to managed compute cluster type compute target.
- compute_
type string - (Updatable) The type of compute.
- instance_
configuration object - (Updatable) The compute target instance configuration details for managed compute cluster type compute target.
- scaling_
policy object - (Updatable) The scaling policy to apply to managed compute cluster type compute target.
- compute
Type String - (Updatable) The type of compute.
- instance
Configuration ComputeTarget Compute Configuration Details Instance Configuration - (Updatable) The compute target instance configuration details for managed compute cluster type compute target.
- scaling
Policy ComputeTarget Compute Configuration Details Scaling Policy - (Updatable) The scaling policy to apply to managed compute cluster type compute target.
- compute
Type string - (Updatable) The type of compute.
- instance
Configuration ComputeTarget Compute Configuration Details Instance Configuration - (Updatable) The compute target instance configuration details for managed compute cluster type compute target.
- scaling
Policy ComputeTarget Compute Configuration Details Scaling Policy - (Updatable) The scaling policy to apply to managed compute cluster type compute target.
- compute_
type str - (Updatable) The type of compute.
- instance_
configuration ComputeTarget Compute Configuration Details Instance Configuration - (Updatable) The compute target instance configuration details for managed compute cluster type compute target.
- scaling_
policy ComputeTarget Compute Configuration Details Scaling Policy - (Updatable) The scaling policy to apply to managed compute cluster type compute target.
- compute
Type String - (Updatable) The type of compute.
- instance
Configuration Property Map - (Updatable) The compute target instance configuration details for managed compute cluster type compute target.
- scaling
Policy Property Map - (Updatable) The scaling policy to apply to managed compute cluster type compute target.
ComputeTargetComputeConfigurationDetailsInstanceConfiguration, ComputeTargetComputeConfigurationDetailsInstanceConfigurationArgs
- Instance
Shape string - (Updatable) The shape used to launch the instances in compute target. Supported shapes can be retrieved using compute target shapes api.
- Boot
Volume intSize In Gbs - (Updatable) The size of the boot volume to attach to the instance.
- Instance
Shape ComputeDetails Target Compute Configuration Details Instance Configuration Instance Shape Details - (Updatable) Instance shape configuration for managed compute cluster type compute target. Specify only when a flex shape is selected.
- Instance
Shape string - (Updatable) The shape used to launch the instances in compute target. Supported shapes can be retrieved using compute target shapes api.
- Boot
Volume intSize In Gbs - (Updatable) The size of the boot volume to attach to the instance.
- Instance
Shape ComputeDetails Target Compute Configuration Details Instance Configuration Instance Shape Details - (Updatable) Instance shape configuration for managed compute cluster type compute target. Specify only when a flex shape is selected.
- instance_
shape string - (Updatable) The shape used to launch the instances in compute target. Supported shapes can be retrieved using compute target shapes api.
- boot_
volume_ numbersize_ in_ gbs - (Updatable) The size of the boot volume to attach to the instance.
- instance_
shape_ objectdetails - (Updatable) Instance shape configuration for managed compute cluster type compute target. Specify only when a flex shape is selected.
- instance
Shape String - (Updatable) The shape used to launch the instances in compute target. Supported shapes can be retrieved using compute target shapes api.
- boot
Volume IntegerSize In Gbs - (Updatable) The size of the boot volume to attach to the instance.
- instance
Shape ComputeDetails Target Compute Configuration Details Instance Configuration Instance Shape Details - (Updatable) Instance shape configuration for managed compute cluster type compute target. Specify only when a flex shape is selected.
- instance
Shape string - (Updatable) The shape used to launch the instances in compute target. Supported shapes can be retrieved using compute target shapes api.
- boot
Volume numberSize In Gbs - (Updatable) The size of the boot volume to attach to the instance.
- instance
Shape ComputeDetails Target Compute Configuration Details Instance Configuration Instance Shape Details - (Updatable) Instance shape configuration for managed compute cluster type compute target. Specify only when a flex shape is selected.
- instance_
shape str - (Updatable) The shape used to launch the instances in compute target. Supported shapes can be retrieved using compute target shapes api.
- boot_
volume_ intsize_ in_ gbs - (Updatable) The size of the boot volume to attach to the instance.
- instance_
shape_ Computedetails Target Compute Configuration Details Instance Configuration Instance Shape Details - (Updatable) Instance shape configuration for managed compute cluster type compute target. Specify only when a flex shape is selected.
- instance
Shape String - (Updatable) The shape used to launch the instances in compute target. Supported shapes can be retrieved using compute target shapes api.
- boot
Volume NumberSize In Gbs - (Updatable) The size of the boot volume to attach to the instance.
- instance
Shape Property MapDetails - (Updatable) Instance shape configuration for managed compute cluster type compute target. Specify only when a flex shape is selected.
ComputeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetails, ComputeTargetComputeConfigurationDetailsInstanceConfigurationInstanceShapeDetailsArgs
- Memory
In doubleGbs - (Updatable) The total amount of memory allocated to the instance, in gigabytes.
- Ocpus double
- (Updatable) The total number of OCPUs allocated to the instance.
- Memory
In float64Gbs - (Updatable) The total amount of memory allocated to the instance, in gigabytes.
- Ocpus float64
- (Updatable) The total number of OCPUs allocated to the instance.
- memory_
in_ numbergbs - (Updatable) The total amount of memory allocated to the instance, in gigabytes.
- ocpus number
- (Updatable) The total number of OCPUs allocated to the instance.
- memory
In DoubleGbs - (Updatable) The total amount of memory allocated to the instance, in gigabytes.
- ocpus Double
- (Updatable) The total number of OCPUs allocated to the instance.
- memory
In numberGbs - (Updatable) The total amount of memory allocated to the instance, in gigabytes.
- ocpus number
- (Updatable) The total number of OCPUs allocated to the instance.
- memory_
in_ floatgbs - (Updatable) The total amount of memory allocated to the instance, in gigabytes.
- ocpus float
- (Updatable) The total number of OCPUs allocated to the instance.
- memory
In NumberGbs - (Updatable) The total amount of memory allocated to the instance, in gigabytes.
- ocpus Number
- (Updatable) The total number of OCPUs allocated to the instance.
ComputeTargetComputeConfigurationDetailsScalingPolicy, ComputeTargetComputeConfigurationDetailsScalingPolicyArgs
- Policy
Type string - (Updatable) The type of scaling policy.
- Auto
Scaling List<ComputePolicies Target Compute Configuration Details Scaling Policy Auto Scaling Policy> - (Updatable) The list of autoscaling policy details.
- Cool
Down intIn Seconds - (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the managed compute cluster type compute target becomes ACTIVE after the scaling operation.
- Instance
Count int - (Updatable) The number of instances for the managed compute cluster type compute target.
- Is
Enabled bool - (Updatable) Whether the autoscaling policy is enabled.
- Policy
Type string - (Updatable) The type of scaling policy.
- Auto
Scaling []ComputePolicies Target Compute Configuration Details Scaling Policy Auto Scaling Policy - (Updatable) The list of autoscaling policy details.
- Cool
Down intIn Seconds - (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the managed compute cluster type compute target becomes ACTIVE after the scaling operation.
- Instance
Count int - (Updatable) The number of instances for the managed compute cluster type compute target.
- Is
Enabled bool - (Updatable) Whether the autoscaling policy is enabled.
- policy_
type string - (Updatable) The type of scaling policy.
- auto_
scaling_ list(object)policies - (Updatable) The list of autoscaling policy details.
- cool_
down_ numberin_ seconds - (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the managed compute cluster type compute target becomes ACTIVE after the scaling operation.
- instance_
count number - (Updatable) The number of instances for the managed compute cluster type compute target.
- is_
enabled bool - (Updatable) Whether the autoscaling policy is enabled.
- policy
Type String - (Updatable) The type of scaling policy.
- auto
Scaling List<ComputePolicies Target Compute Configuration Details Scaling Policy Auto Scaling Policy> - (Updatable) The list of autoscaling policy details.
- cool
Down IntegerIn Seconds - (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the managed compute cluster type compute target becomes ACTIVE after the scaling operation.
- instance
Count Integer - (Updatable) The number of instances for the managed compute cluster type compute target.
- is
Enabled Boolean - (Updatable) Whether the autoscaling policy is enabled.
- policy
Type string - (Updatable) The type of scaling policy.
- auto
Scaling ComputePolicies Target Compute Configuration Details Scaling Policy Auto Scaling Policy[] - (Updatable) The list of autoscaling policy details.
- cool
Down numberIn Seconds - (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the managed compute cluster type compute target becomes ACTIVE after the scaling operation.
- instance
Count number - (Updatable) The number of instances for the managed compute cluster type compute target.
- is
Enabled boolean - (Updatable) Whether the autoscaling policy is enabled.
- policy_
type str - (Updatable) The type of scaling policy.
- auto_
scaling_ Sequence[Computepolicies Target Compute Configuration Details Scaling Policy Auto Scaling Policy] - (Updatable) The list of autoscaling policy details.
- cool_
down_ intin_ seconds - (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the managed compute cluster type compute target becomes ACTIVE after the scaling operation.
- instance_
count int - (Updatable) The number of instances for the managed compute cluster type compute target.
- is_
enabled bool - (Updatable) Whether the autoscaling policy is enabled.
- policy
Type String - (Updatable) The type of scaling policy.
- auto
Scaling List<Property Map>Policies - (Updatable) The list of autoscaling policy details.
- cool
Down NumberIn Seconds - (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the managed compute cluster type compute target becomes ACTIVE after the scaling operation.
- instance
Count Number - (Updatable) The number of instances for the managed compute cluster type compute target.
- is
Enabled Boolean - (Updatable) Whether the autoscaling policy is enabled.
ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicy, ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyArgs
- Auto
Scaling stringPolicy Type - (Updatable) The type of autoscaling policy.
- Initial
Instance intCount - (Updatable) For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the managed compute cluster type compute target immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this initial number to a number that is based on the limits that you set.
- Maximum
Instance intCount - (Updatable) For a threshold-based autoscaling policy, this value is the maximum number of instances the managed compute cluster type compute target is allowed to increase to (scale out).
- Minimum
Instance intCount - (Updatable) For a threshold-based autoscaling policy, this value is the minimum number of instances the managed compute cluster type compute target is allowed to decrease to (scale in).
- Rules
List<Compute
Target Compute Configuration Details Scaling Policy Auto Scaling Policy Rule> - (Updatable) The list of autoscaling policy rules.
- Auto
Scaling stringPolicy Type - (Updatable) The type of autoscaling policy.
- Initial
Instance intCount - (Updatable) For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the managed compute cluster type compute target immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this initial number to a number that is based on the limits that you set.
- Maximum
Instance intCount - (Updatable) For a threshold-based autoscaling policy, this value is the maximum number of instances the managed compute cluster type compute target is allowed to increase to (scale out).
- Minimum
Instance intCount - (Updatable) For a threshold-based autoscaling policy, this value is the minimum number of instances the managed compute cluster type compute target is allowed to decrease to (scale in).
- Rules
[]Compute
Target Compute Configuration Details Scaling Policy Auto Scaling Policy Rule - (Updatable) The list of autoscaling policy rules.
- auto_
scaling_ stringpolicy_ type - (Updatable) The type of autoscaling policy.
- initial_
instance_ numbercount - (Updatable) For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the managed compute cluster type compute target immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this initial number to a number that is based on the limits that you set.
- maximum_
instance_ numbercount - (Updatable) For a threshold-based autoscaling policy, this value is the maximum number of instances the managed compute cluster type compute target is allowed to increase to (scale out).
- minimum_
instance_ numbercount - (Updatable) For a threshold-based autoscaling policy, this value is the minimum number of instances the managed compute cluster type compute target is allowed to decrease to (scale in).
- rules list(object)
- (Updatable) The list of autoscaling policy rules.
- auto
Scaling StringPolicy Type - (Updatable) The type of autoscaling policy.
- initial
Instance IntegerCount - (Updatable) For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the managed compute cluster type compute target immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this initial number to a number that is based on the limits that you set.
- maximum
Instance IntegerCount - (Updatable) For a threshold-based autoscaling policy, this value is the maximum number of instances the managed compute cluster type compute target is allowed to increase to (scale out).
- minimum
Instance IntegerCount - (Updatable) For a threshold-based autoscaling policy, this value is the minimum number of instances the managed compute cluster type compute target is allowed to decrease to (scale in).
- rules
List<Compute
Target Compute Configuration Details Scaling Policy Auto Scaling Policy Rule> - (Updatable) The list of autoscaling policy rules.
- auto
Scaling stringPolicy Type - (Updatable) The type of autoscaling policy.
- initial
Instance numberCount - (Updatable) For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the managed compute cluster type compute target immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this initial number to a number that is based on the limits that you set.
- maximum
Instance numberCount - (Updatable) For a threshold-based autoscaling policy, this value is the maximum number of instances the managed compute cluster type compute target is allowed to increase to (scale out).
- minimum
Instance numberCount - (Updatable) For a threshold-based autoscaling policy, this value is the minimum number of instances the managed compute cluster type compute target is allowed to decrease to (scale in).
- rules
Compute
Target Compute Configuration Details Scaling Policy Auto Scaling Policy Rule[] - (Updatable) The list of autoscaling policy rules.
- auto_
scaling_ strpolicy_ type - (Updatable) The type of autoscaling policy.
- initial_
instance_ intcount - (Updatable) For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the managed compute cluster type compute target immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this initial number to a number that is based on the limits that you set.
- maximum_
instance_ intcount - (Updatable) For a threshold-based autoscaling policy, this value is the maximum number of instances the managed compute cluster type compute target is allowed to increase to (scale out).
- minimum_
instance_ intcount - (Updatable) For a threshold-based autoscaling policy, this value is the minimum number of instances the managed compute cluster type compute target is allowed to decrease to (scale in).
- rules
Sequence[Compute
Target Compute Configuration Details Scaling Policy Auto Scaling Policy Rule] - (Updatable) The list of autoscaling policy rules.
- auto
Scaling StringPolicy Type - (Updatable) The type of autoscaling policy.
- initial
Instance NumberCount - (Updatable) For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the managed compute cluster type compute target immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this initial number to a number that is based on the limits that you set.
- maximum
Instance NumberCount - (Updatable) For a threshold-based autoscaling policy, this value is the maximum number of instances the managed compute cluster type compute target is allowed to increase to (scale out).
- minimum
Instance NumberCount - (Updatable) For a threshold-based autoscaling policy, this value is the minimum number of instances the managed compute cluster type compute target is allowed to decrease to (scale in).
- rules List<Property Map>
- (Updatable) The list of autoscaling policy rules.
ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRule, ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleArgs
- Metric
Expression stringRule Type - (Updatable) The metric expression for creating the alarm used to trigger autoscaling actions on the managed compute cluster type compute target .
- Scale
In ComputeConfiguration Target Compute Configuration Details Scaling Policy Auto Scaling Policy Rule Scale In Configuration - (Updatable) The scaling configuration for the predefined metric expression rule.
- Scale
Out ComputeConfiguration Target Compute Configuration Details Scaling Policy Auto Scaling Policy Rule Scale Out Configuration - (Updatable) The scaling configuration for the predefined metric expression rule.
- Metric
Type string - (Updatable) Metric type
- Metric
Expression stringRule Type - (Updatable) The metric expression for creating the alarm used to trigger autoscaling actions on the managed compute cluster type compute target .
- Scale
In ComputeConfiguration Target Compute Configuration Details Scaling Policy Auto Scaling Policy Rule Scale In Configuration - (Updatable) The scaling configuration for the predefined metric expression rule.
- Scale
Out ComputeConfiguration Target Compute Configuration Details Scaling Policy Auto Scaling Policy Rule Scale Out Configuration - (Updatable) The scaling configuration for the predefined metric expression rule.
- Metric
Type string - (Updatable) Metric type
- metric_
expression_ stringrule_ type - (Updatable) The metric expression for creating the alarm used to trigger autoscaling actions on the managed compute cluster type compute target .
- scale_
in_ objectconfiguration - (Updatable) The scaling configuration for the predefined metric expression rule.
- scale_
out_ objectconfiguration - (Updatable) The scaling configuration for the predefined metric expression rule.
- metric_
type string - (Updatable) Metric type
- metric
Expression StringRule Type - (Updatable) The metric expression for creating the alarm used to trigger autoscaling actions on the managed compute cluster type compute target .
- scale
In ComputeConfiguration Target Compute Configuration Details Scaling Policy Auto Scaling Policy Rule Scale In Configuration - (Updatable) The scaling configuration for the predefined metric expression rule.
- scale
Out ComputeConfiguration Target Compute Configuration Details Scaling Policy Auto Scaling Policy Rule Scale Out Configuration - (Updatable) The scaling configuration for the predefined metric expression rule.
- metric
Type String - (Updatable) Metric type
- metric
Expression stringRule Type - (Updatable) The metric expression for creating the alarm used to trigger autoscaling actions on the managed compute cluster type compute target .
- scale
In ComputeConfiguration Target Compute Configuration Details Scaling Policy Auto Scaling Policy Rule Scale In Configuration - (Updatable) The scaling configuration for the predefined metric expression rule.
- scale
Out ComputeConfiguration Target Compute Configuration Details Scaling Policy Auto Scaling Policy Rule Scale Out Configuration - (Updatable) The scaling configuration for the predefined metric expression rule.
- metric
Type string - (Updatable) Metric type
- metric_
expression_ strrule_ type - (Updatable) The metric expression for creating the alarm used to trigger autoscaling actions on the managed compute cluster type compute target .
- scale_
in_ Computeconfiguration Target Compute Configuration Details Scaling Policy Auto Scaling Policy Rule Scale In Configuration - (Updatable) The scaling configuration for the predefined metric expression rule.
- scale_
out_ Computeconfiguration Target Compute Configuration Details Scaling Policy Auto Scaling Policy Rule Scale Out Configuration - (Updatable) The scaling configuration for the predefined metric expression rule.
- metric_
type str - (Updatable) Metric type
- metric
Expression StringRule Type - (Updatable) The metric expression for creating the alarm used to trigger autoscaling actions on the managed compute cluster type compute target .
- scale
In Property MapConfiguration - (Updatable) The scaling configuration for the predefined metric expression rule.
- scale
Out Property MapConfiguration - (Updatable) The scaling configuration for the predefined metric expression rule.
- metric
Type String - (Updatable) Metric type
ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleScaleInConfiguration, ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleScaleInConfigurationArgs
- Instance
Count intAdjustment - (Updatable) The value is used for adjusting the count of instances by.
- Pending
Duration string - (Updatable) The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes or PT1H for one hour). Minimum: PT3M. Maximum: PT1H. Default: PT3M.
- Query string
- (Updatable) The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). Example of threshold alarm:
CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() < 25 CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() > 75 - Scaling
Configuration stringType - (Updatable) The type of scaling configuration.
- Threshold int
- (Updatable) A metric value at which the scaling operation will be triggered.
- Instance
Count intAdjustment - (Updatable) The value is used for adjusting the count of instances by.
- Pending
Duration string - (Updatable) The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes or PT1H for one hour). Minimum: PT3M. Maximum: PT1H. Default: PT3M.
- Query string
- (Updatable) The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). Example of threshold alarm:
CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() < 25 CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() > 75 - Scaling
Configuration stringType - (Updatable) The type of scaling configuration.
- Threshold int
- (Updatable) A metric value at which the scaling operation will be triggered.
- instance_
count_ numberadjustment - (Updatable) The value is used for adjusting the count of instances by.
- pending_
duration string - (Updatable) The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes or PT1H for one hour). Minimum: PT3M. Maximum: PT1H. Default: PT3M.
- query string
- (Updatable) The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). Example of threshold alarm:
CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() < 25 CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() > 75 - scaling_
configuration_ stringtype - (Updatable) The type of scaling configuration.
- threshold number
- (Updatable) A metric value at which the scaling operation will be triggered.
- instance
Count IntegerAdjustment - (Updatable) The value is used for adjusting the count of instances by.
- pending
Duration String - (Updatable) The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes or PT1H for one hour). Minimum: PT3M. Maximum: PT1H. Default: PT3M.
- query String
- (Updatable) The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). Example of threshold alarm:
CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() < 25 CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() > 75 - scaling
Configuration StringType - (Updatable) The type of scaling configuration.
- threshold Integer
- (Updatable) A metric value at which the scaling operation will be triggered.
- instance
Count numberAdjustment - (Updatable) The value is used for adjusting the count of instances by.
- pending
Duration string - (Updatable) The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes or PT1H for one hour). Minimum: PT3M. Maximum: PT1H. Default: PT3M.
- query string
- (Updatable) The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). Example of threshold alarm:
CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() < 25 CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() > 75 - scaling
Configuration stringType - (Updatable) The type of scaling configuration.
- threshold number
- (Updatable) A metric value at which the scaling operation will be triggered.
- instance_
count_ intadjustment - (Updatable) The value is used for adjusting the count of instances by.
- pending_
duration str - (Updatable) The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes or PT1H for one hour). Minimum: PT3M. Maximum: PT1H. Default: PT3M.
- query str
- (Updatable) The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). Example of threshold alarm:
CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() < 25 CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() > 75 - scaling_
configuration_ strtype - (Updatable) The type of scaling configuration.
- threshold int
- (Updatable) A metric value at which the scaling operation will be triggered.
- instance
Count NumberAdjustment - (Updatable) The value is used for adjusting the count of instances by.
- pending
Duration String - (Updatable) The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes or PT1H for one hour). Minimum: PT3M. Maximum: PT1H. Default: PT3M.
- query String
- (Updatable) The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). Example of threshold alarm:
CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() < 25 CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() > 75 - scaling
Configuration StringType - (Updatable) The type of scaling configuration.
- threshold Number
- (Updatable) A metric value at which the scaling operation will be triggered.
ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleScaleOutConfiguration, ComputeTargetComputeConfigurationDetailsScalingPolicyAutoScalingPolicyRuleScaleOutConfigurationArgs
- Instance
Count intAdjustment - (Updatable) The value is used for adjusting the count of instances by.
- Pending
Duration string - (Updatable) The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes or PT1H for one hour). Minimum: PT3M. Maximum: PT1H. Default: PT3M.
- Query string
- (Updatable) The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). Example of threshold alarm:
CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() < 25 CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() > 75 - Scaling
Configuration stringType - (Updatable) The type of scaling configuration.
- Threshold int
- (Updatable) A metric value at which the scaling operation will be triggered.
- Instance
Count intAdjustment - (Updatable) The value is used for adjusting the count of instances by.
- Pending
Duration string - (Updatable) The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes or PT1H for one hour). Minimum: PT3M. Maximum: PT1H. Default: PT3M.
- Query string
- (Updatable) The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). Example of threshold alarm:
CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() < 25 CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() > 75 - Scaling
Configuration stringType - (Updatable) The type of scaling configuration.
- Threshold int
- (Updatable) A metric value at which the scaling operation will be triggered.
- instance_
count_ numberadjustment - (Updatable) The value is used for adjusting the count of instances by.
- pending_
duration string - (Updatable) The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes or PT1H for one hour). Minimum: PT3M. Maximum: PT1H. Default: PT3M.
- query string
- (Updatable) The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). Example of threshold alarm:
CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() < 25 CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() > 75 - scaling_
configuration_ stringtype - (Updatable) The type of scaling configuration.
- threshold number
- (Updatable) A metric value at which the scaling operation will be triggered.
- instance
Count IntegerAdjustment - (Updatable) The value is used for adjusting the count of instances by.
- pending
Duration String - (Updatable) The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes or PT1H for one hour). Minimum: PT3M. Maximum: PT1H. Default: PT3M.
- query String
- (Updatable) The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). Example of threshold alarm:
CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() < 25 CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() > 75 - scaling
Configuration StringType - (Updatable) The type of scaling configuration.
- threshold Integer
- (Updatable) A metric value at which the scaling operation will be triggered.
- instance
Count numberAdjustment - (Updatable) The value is used for adjusting the count of instances by.
- pending
Duration string - (Updatable) The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes or PT1H for one hour). Minimum: PT3M. Maximum: PT1H. Default: PT3M.
- query string
- (Updatable) The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). Example of threshold alarm:
CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() < 25 CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() > 75 - scaling
Configuration stringType - (Updatable) The type of scaling configuration.
- threshold number
- (Updatable) A metric value at which the scaling operation will be triggered.
- instance_
count_ intadjustment - (Updatable) The value is used for adjusting the count of instances by.
- pending_
duration str - (Updatable) The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes or PT1H for one hour). Minimum: PT3M. Maximum: PT1H. Default: PT3M.
- query str
- (Updatable) The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). Example of threshold alarm:
CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() < 25 CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() > 75 - scaling_
configuration_ strtype - (Updatable) The type of scaling configuration.
- threshold int
- (Updatable) A metric value at which the scaling operation will be triggered.
- instance
Count NumberAdjustment - (Updatable) The value is used for adjusting the count of instances by.
- pending
Duration String - (Updatable) The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes or PT1H for one hour). Minimum: PT3M. Maximum: PT1H. Default: PT3M.
- query String
- (Updatable) The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). Example of threshold alarm:
CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() < 25 CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() > 75 - scaling
Configuration StringType - (Updatable) The type of scaling configuration.
- threshold Number
- (Updatable) A metric value at which the scaling operation will be triggered.
ComputeTargetComputeTargetSystemData, ComputeTargetComputeTargetSystemDataArgs
- Compute
Type string - Type of compute target.
- Current
Instance intCount - Current count of the instances in managed compute cluster type compute target.
- Compute
Type string - Type of compute target.
- Current
Instance intCount - Current count of the instances in managed compute cluster type compute target.
- compute_
type string - Type of compute target.
- current_
instance_ numbercount - Current count of the instances in managed compute cluster type compute target.
- compute
Type String - Type of compute target.
- current
Instance IntegerCount - Current count of the instances in managed compute cluster type compute target.
- compute
Type string - Type of compute target.
- current
Instance numberCount - Current count of the instances in managed compute cluster type compute target.
- compute_
type str - Type of compute target.
- current_
instance_ intcount - Current count of the instances in managed compute cluster type compute target.
- compute
Type String - Type of compute target.
- current
Instance NumberCount - Current count of the instances in managed compute cluster type compute target.
Import
ComputeTargets can be imported using the id, e.g.
$ pulumi import oci:DataScience/computeTarget:ComputeTarget test_compute_target "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
published on Thursday, May 28, 2026 by Pulumi