BaseInstance

class BaseInstance : KotlinCustomResource

Provides a Ocean Base Instance resource. For information about Ocean Base Instance and how to use it, see What is Instance.

NOTE: Available since v1.203.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ocean.BaseInstance;
import com.pulumi.alicloud.ocean.BaseInstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new BaseInstance("default", BaseInstanceArgs.builder()
.instanceName(var_.name())
.series("normal")
.diskSize(200)
.instanceClass("14C70GB")
.zones(
"ap-southeast-1a",
"ap-southeast-1b",
"ap-southeast-1c")
.paymentType("PayAsYouGo")
.build());
}
}

Import

Ocean Base Instance can be imported using the id, e.g.

$ pulumi import alicloud:ocean/baseInstance:BaseInstance example <id>

Properties

Link copied to clipboard
val autoRenew: Output<Boolean>

Whether to automatically renew.It takes effect when the parameter ChargeType is PrePaid. Value range:

Link copied to clipboard
val autoRenewPeriod: Output<Int>?

The duration of each auto-renewal. When the value of the AutoRenew parameter is True, this parameter is required.-PeriodUnit is Week, AutoRenewPeriod is {"1", "2", "3"}.-PeriodUnit is Month, AutoRenewPeriod is {"1", "2", "3", "6", "12"}.

Link copied to clipboard
val backupRetainMode: Output<String>?

The backup retain mode.

Link copied to clipboard
val commodityCode: Output<String>

The product code of the OceanBase cluster.

Link copied to clipboard
val cpu: Output<Int>

The number of CPU cores of the cluster.

Link copied to clipboard
val createTime: Output<String>

The creation time of the resource

Link copied to clipboard
val diskSize: Output<Int>

The size of the storage space, in GB.The limits of storage space vary according to the cluster specifications, as follows:

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val instanceClass: Output<String>

Cluster specification information. Valid values: 14C70GB (default), 30C180GB, 62C400GB, 8C32GB, 16C70GB, 24C120GB, 32C160GB, 64C380GB, 20C32GB, 40C64GB, 4C16GB.

Link copied to clipboard
val instanceName: Output<String>

OceanBase cluster name. The length is 1 to 20 English or Chinese characters. If this parameter is not specified, the default value is the InstanceId of the cluster.

Link copied to clipboard
val nodeNum: Output<String>

The number of nodes in the cluster.

Link copied to clipboard
val paymentType: Output<String>

The payment method of the instance. Valid values: PayAsYouGo, Subscription.

Link copied to clipboard
val period: Output<Int>?

The duration of the resource purchase. The unit is specified by the PeriodUnit. The parameter payment_type takes effect only when the value is Subscription and is required. Once the DedicatedHostId is specified, the value cannot exceed the subscription duration of the dedicated host. When period_unit = Year, Period values: {"1", "2", "3"}. When period_unit = Month, Period values: {"1", "2", "3", "4", "5", "6", "7", "8", "9"}.

Link copied to clipboard
val periodUnit: Output<String>?

The period unit. Valid values: Month,Year.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resourceGroupId: Output<String>

The ID of the enterprise resource group to which the instance resides.

Link copied to clipboard
val series: Output<String>

Series of OceanBase clusters. Valid values: normal(default), history, normal_ssd.

Link copied to clipboard
val status: Output<String>

The status of the resource.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val zones: Output<List<String>>

Information about the zone where the cluster is deployed.