1. Packages
  2. Volcengine
  3. API Docs
  4. rds
  5. Instances
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.rds.Instances

Explore with Pulumi AI

Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

(Deprecated! Recommend use volcengine_rds_mysql_*** replace) Use this data source to query detailed information of rds instances

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";

const default = volcengine.rds.Instances({
    instanceId: "mysql-0fdd3bab2e7c",
});
Copy
import pulumi
import pulumi_volcengine as volcengine

default = volcengine.rds.instances(instance_id="mysql-0fdd3bab2e7c")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/rds"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := rds.Instances(ctx, &rds.InstancesArgs{
			InstanceId: pulumi.StringRef("mysql-0fdd3bab2e7c"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;

return await Deployment.RunAsync(() => 
{
    var @default = Volcengine.Rds.Instances.Invoke(new()
    {
        InstanceId = "mysql-0fdd3bab2e7c",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.rds.RdsFunctions;
import com.pulumi.volcengine.rds.inputs.InstancesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var default = RdsFunctions.Instances(InstancesArgs.builder()
            .instanceId("mysql-0fdd3bab2e7c")
            .build());

    }
}
Copy
variables:
  default:
    fn::invoke:
      Function: volcengine:rds:Instances
      Arguments:
        instanceId: mysql-0fdd3bab2e7c
Copy

Using Instances

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function instances(args: InstancesArgs, opts?: InvokeOptions): Promise<InstancesResult>
function instancesOutput(args: InstancesOutputArgs, opts?: InvokeOptions): Output<InstancesResult>
Copy
def instances(create_end_time: Optional[str] = None,
              create_start_time: Optional[str] = None,
              instance_id: Optional[str] = None,
              instance_status: Optional[str] = None,
              instance_type: Optional[str] = None,
              name_regex: Optional[str] = None,
              output_file: Optional[str] = None,
              region: Optional[str] = None,
              zone: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> InstancesResult
def instances_output(create_end_time: Optional[pulumi.Input[str]] = None,
              create_start_time: Optional[pulumi.Input[str]] = None,
              instance_id: Optional[pulumi.Input[str]] = None,
              instance_status: Optional[pulumi.Input[str]] = None,
              instance_type: Optional[pulumi.Input[str]] = None,
              name_regex: Optional[pulumi.Input[str]] = None,
              output_file: Optional[pulumi.Input[str]] = None,
              region: Optional[pulumi.Input[str]] = None,
              zone: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[InstancesResult]
Copy
func Instances(ctx *Context, args *InstancesArgs, opts ...InvokeOption) (*InstancesResult, error)
func InstancesOutput(ctx *Context, args *InstancesOutputArgs, opts ...InvokeOption) InstancesResultOutput
Copy
public static class Instances 
{
    public static Task<InstancesResult> InvokeAsync(InstancesArgs args, InvokeOptions? opts = null)
    public static Output<InstancesResult> Invoke(InstancesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<InstancesResult> instances(InstancesArgs args, InvokeOptions options)
public static Output<InstancesResult> instances(InstancesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: volcengine:rds:Instances
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CreateEndTime string
The end time of creating RDS instance.
CreateStartTime string
The start time of creating RDS instance.
InstanceId string
The id of the RDS instance.
InstanceStatus string
The status of the RDS instance.
InstanceType string
The type of the RDS instance.
NameRegex string
A Name Regex of RDS instance.
OutputFile string
File name where to save data source results.
Region string
The region of the RDS instance.
Zone string
The available zone of the RDS instance.
CreateEndTime string
The end time of creating RDS instance.
CreateStartTime string
The start time of creating RDS instance.
InstanceId string
The id of the RDS instance.
InstanceStatus string
The status of the RDS instance.
InstanceType string
The type of the RDS instance.
NameRegex string
A Name Regex of RDS instance.
OutputFile string
File name where to save data source results.
Region string
The region of the RDS instance.
Zone string
The available zone of the RDS instance.
createEndTime String
The end time of creating RDS instance.
createStartTime String
The start time of creating RDS instance.
instanceId String
The id of the RDS instance.
instanceStatus String
The status of the RDS instance.
instanceType String
The type of the RDS instance.
nameRegex String
A Name Regex of RDS instance.
outputFile String
File name where to save data source results.
region String
The region of the RDS instance.
zone String
The available zone of the RDS instance.
createEndTime string
The end time of creating RDS instance.
createStartTime string
The start time of creating RDS instance.
instanceId string
The id of the RDS instance.
instanceStatus string
The status of the RDS instance.
instanceType string
The type of the RDS instance.
nameRegex string
A Name Regex of RDS instance.
outputFile string
File name where to save data source results.
region string
The region of the RDS instance.
zone string
The available zone of the RDS instance.
create_end_time str
The end time of creating RDS instance.
create_start_time str
The start time of creating RDS instance.
instance_id str
The id of the RDS instance.
instance_status str
The status of the RDS instance.
instance_type str
The type of the RDS instance.
name_regex str
A Name Regex of RDS instance.
output_file str
File name where to save data source results.
region str
The region of the RDS instance.
zone str
The available zone of the RDS instance.
createEndTime String
The end time of creating RDS instance.
createStartTime String
The start time of creating RDS instance.
instanceId String
The id of the RDS instance.
instanceStatus String
The status of the RDS instance.
instanceType String
The type of the RDS instance.
nameRegex String
A Name Regex of RDS instance.
outputFile String
File name where to save data source results.
region String
The region of the RDS instance.
zone String
The available zone of the RDS instance.

Instances Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
RdsInstances List<InstancesRdsInstance>
The collection of RDS instance query.
TotalCount int
The total count of RDS instance query.
CreateEndTime string
CreateStartTime string
InstanceId string
The ID of the RDS instance.
InstanceStatus string
The status of the RDS instance.
InstanceType string
The type of the RDS instance.
NameRegex string
OutputFile string
Region string
The region of the RDS instance.
Zone string
The available zone of the RDS instance.
Id string
The provider-assigned unique ID for this managed resource.
RdsInstances []InstancesRdsInstance
The collection of RDS instance query.
TotalCount int
The total count of RDS instance query.
CreateEndTime string
CreateStartTime string
InstanceId string
The ID of the RDS instance.
InstanceStatus string
The status of the RDS instance.
InstanceType string
The type of the RDS instance.
NameRegex string
OutputFile string
Region string
The region of the RDS instance.
Zone string
The available zone of the RDS instance.
id String
The provider-assigned unique ID for this managed resource.
rdsInstances List<InstancesRdsInstance>
The collection of RDS instance query.
totalCount Integer
The total count of RDS instance query.
createEndTime String
createStartTime String
instanceId String
The ID of the RDS instance.
instanceStatus String
The status of the RDS instance.
instanceType String
The type of the RDS instance.
nameRegex String
outputFile String
region String
The region of the RDS instance.
zone String
The available zone of the RDS instance.
id string
The provider-assigned unique ID for this managed resource.
rdsInstances InstancesRdsInstance[]
The collection of RDS instance query.
totalCount number
The total count of RDS instance query.
createEndTime string
createStartTime string
instanceId string
The ID of the RDS instance.
instanceStatus string
The status of the RDS instance.
instanceType string
The type of the RDS instance.
nameRegex string
outputFile string
region string
The region of the RDS instance.
zone string
The available zone of the RDS instance.
id str
The provider-assigned unique ID for this managed resource.
rds_instances Sequence[InstancesRdsInstance]
The collection of RDS instance query.
total_count int
The total count of RDS instance query.
create_end_time str
create_start_time str
instance_id str
The ID of the RDS instance.
instance_status str
The status of the RDS instance.
instance_type str
The type of the RDS instance.
name_regex str
output_file str
region str
The region of the RDS instance.
zone str
The available zone of the RDS instance.
id String
The provider-assigned unique ID for this managed resource.
rdsInstances List<Property Map>
The collection of RDS instance query.
totalCount Number
The total count of RDS instance query.
createEndTime String
createStartTime String
instanceId String
The ID of the RDS instance.
instanceStatus String
The status of the RDS instance.
instanceType String
The type of the RDS instance.
nameRegex String
outputFile String
region String
The region of the RDS instance.
zone String
The available zone of the RDS instance.

Supporting Types

InstancesRdsInstance

ChargeStatus This property is required. string
The charge status of the RDS instance.
ChargeType This property is required. string
The charge type of the RDS instance.
ConnectionInfo This property is required. InstancesRdsInstanceConnectionInfo
The connection info ot the RDS instance.
CreateTime This property is required. string
The create time of the RDS instance.
DbEngine This property is required. string
The engine of the RDS instance.
DbEngineVersion This property is required. string
The engine version of the RDS instance.
Id This property is required. string
The ID of the RDS instance.
InstanceId This property is required. string
The id of the RDS instance.
InstanceName This property is required. string
The name of the RDS instance.
InstanceSpec This property is required. InstancesRdsInstanceInstanceSpec
The spec type detail of RDS instance.
InstanceStatus This property is required. string
The status of the RDS instance.
InstanceType This property is required. string
The type of the RDS instance.
Region This property is required. string
The region of the RDS instance.
StorageSpaceGb This property is required. int
The total storage GB of the RDS instance.
UpdateTime This property is required. string
The update time of the RDS instance.
VpcId This property is required. string
The vpc ID of the RDS instance.
Zone This property is required. string
The available zone of the RDS instance.
ReadOnlyInstanceIds List<string>
The ID list of read only instance.
ChargeStatus This property is required. string
The charge status of the RDS instance.
ChargeType This property is required. string
The charge type of the RDS instance.
ConnectionInfo This property is required. InstancesRdsInstanceConnectionInfo
The connection info ot the RDS instance.
CreateTime This property is required. string
The create time of the RDS instance.
DbEngine This property is required. string
The engine of the RDS instance.
DbEngineVersion This property is required. string
The engine version of the RDS instance.
Id This property is required. string
The ID of the RDS instance.
InstanceId This property is required. string
The id of the RDS instance.
InstanceName This property is required. string
The name of the RDS instance.
InstanceSpec This property is required. InstancesRdsInstanceInstanceSpec
The spec type detail of RDS instance.
InstanceStatus This property is required. string
The status of the RDS instance.
InstanceType This property is required. string
The type of the RDS instance.
Region This property is required. string
The region of the RDS instance.
StorageSpaceGb This property is required. int
The total storage GB of the RDS instance.
UpdateTime This property is required. string
The update time of the RDS instance.
VpcId This property is required. string
The vpc ID of the RDS instance.
Zone This property is required. string
The available zone of the RDS instance.
ReadOnlyInstanceIds []string
The ID list of read only instance.
chargeStatus This property is required. String
The charge status of the RDS instance.
chargeType This property is required. String
The charge type of the RDS instance.
connectionInfo This property is required. InstancesRdsInstanceConnectionInfo
The connection info ot the RDS instance.
createTime This property is required. String
The create time of the RDS instance.
dbEngine This property is required. String
The engine of the RDS instance.
dbEngineVersion This property is required. String
The engine version of the RDS instance.
id This property is required. String
The ID of the RDS instance.
instanceId This property is required. String
The id of the RDS instance.
instanceName This property is required. String
The name of the RDS instance.
instanceSpec This property is required. InstancesRdsInstanceInstanceSpec
The spec type detail of RDS instance.
instanceStatus This property is required. String
The status of the RDS instance.
instanceType This property is required. String
The type of the RDS instance.
region This property is required. String
The region of the RDS instance.
storageSpaceGb This property is required. Integer
The total storage GB of the RDS instance.
updateTime This property is required. String
The update time of the RDS instance.
vpcId This property is required. String
The vpc ID of the RDS instance.
zone This property is required. String
The available zone of the RDS instance.
readOnlyInstanceIds List<String>
The ID list of read only instance.
chargeStatus This property is required. string
The charge status of the RDS instance.
chargeType This property is required. string
The charge type of the RDS instance.
connectionInfo This property is required. InstancesRdsInstanceConnectionInfo
The connection info ot the RDS instance.
createTime This property is required. string
The create time of the RDS instance.
dbEngine This property is required. string
The engine of the RDS instance.
dbEngineVersion This property is required. string
The engine version of the RDS instance.
id This property is required. string
The ID of the RDS instance.
instanceId This property is required. string
The id of the RDS instance.
instanceName This property is required. string
The name of the RDS instance.
instanceSpec This property is required. InstancesRdsInstanceInstanceSpec
The spec type detail of RDS instance.
instanceStatus This property is required. string
The status of the RDS instance.
instanceType This property is required. string
The type of the RDS instance.
region This property is required. string
The region of the RDS instance.
storageSpaceGb This property is required. number
The total storage GB of the RDS instance.
updateTime This property is required. string
The update time of the RDS instance.
vpcId This property is required. string
The vpc ID of the RDS instance.
zone This property is required. string
The available zone of the RDS instance.
readOnlyInstanceIds string[]
The ID list of read only instance.
charge_status This property is required. str
The charge status of the RDS instance.
charge_type This property is required. str
The charge type of the RDS instance.
connection_info This property is required. InstancesRdsInstanceConnectionInfo
The connection info ot the RDS instance.
create_time This property is required. str
The create time of the RDS instance.
db_engine This property is required. str
The engine of the RDS instance.
db_engine_version This property is required. str
The engine version of the RDS instance.
id This property is required. str
The ID of the RDS instance.
instance_id This property is required. str
The id of the RDS instance.
instance_name This property is required. str
The name of the RDS instance.
instance_spec This property is required. InstancesRdsInstanceInstanceSpec
The spec type detail of RDS instance.
instance_status This property is required. str
The status of the RDS instance.
instance_type This property is required. str
The type of the RDS instance.
region This property is required. str
The region of the RDS instance.
storage_space_gb This property is required. int
The total storage GB of the RDS instance.
update_time This property is required. str
The update time of the RDS instance.
vpc_id This property is required. str
The vpc ID of the RDS instance.
zone This property is required. str
The available zone of the RDS instance.
read_only_instance_ids Sequence[str]
The ID list of read only instance.
chargeStatus This property is required. String
The charge status of the RDS instance.
chargeType This property is required. String
The charge type of the RDS instance.
connectionInfo This property is required. Property Map
The connection info ot the RDS instance.
createTime This property is required. String
The create time of the RDS instance.
dbEngine This property is required. String
The engine of the RDS instance.
dbEngineVersion This property is required. String
The engine version of the RDS instance.
id This property is required. String
The ID of the RDS instance.
instanceId This property is required. String
The id of the RDS instance.
instanceName This property is required. String
The name of the RDS instance.
instanceSpec This property is required. Property Map
The spec type detail of RDS instance.
instanceStatus This property is required. String
The status of the RDS instance.
instanceType This property is required. String
The type of the RDS instance.
region This property is required. String
The region of the RDS instance.
storageSpaceGb This property is required. Number
The total storage GB of the RDS instance.
updateTime This property is required. String
The update time of the RDS instance.
vpcId This property is required. String
The vpc ID of the RDS instance.
zone This property is required. String
The available zone of the RDS instance.
readOnlyInstanceIds List<String>
The ID list of read only instance.

InstancesRdsInstanceConnectionInfo

EnableReadOnly This property is required. string
Whether global read-only is enabled.
EnableReadWriteSplitting This property is required. string
Whether read-write separation is enabled.
InternalDomain This property is required. string
The internal domain of the RDS instance.
InternalPort This property is required. string
The interval port of the RDS instance.
PublicDomain This property is required. string
The public domain of the RDS instance.
PublicPort This property is required. string
The public port of the RDS instance.
EnableReadOnly This property is required. string
Whether global read-only is enabled.
EnableReadWriteSplitting This property is required. string
Whether read-write separation is enabled.
InternalDomain This property is required. string
The internal domain of the RDS instance.
InternalPort This property is required. string
The interval port of the RDS instance.
PublicDomain This property is required. string
The public domain of the RDS instance.
PublicPort This property is required. string
The public port of the RDS instance.
enableReadOnly This property is required. String
Whether global read-only is enabled.
enableReadWriteSplitting This property is required. String
Whether read-write separation is enabled.
internalDomain This property is required. String
The internal domain of the RDS instance.
internalPort This property is required. String
The interval port of the RDS instance.
publicDomain This property is required. String
The public domain of the RDS instance.
publicPort This property is required. String
The public port of the RDS instance.
enableReadOnly This property is required. string
Whether global read-only is enabled.
enableReadWriteSplitting This property is required. string
Whether read-write separation is enabled.
internalDomain This property is required. string
The internal domain of the RDS instance.
internalPort This property is required. string
The interval port of the RDS instance.
publicDomain This property is required. string
The public domain of the RDS instance.
publicPort This property is required. string
The public port of the RDS instance.
enable_read_only This property is required. str
Whether global read-only is enabled.
enable_read_write_splitting This property is required. str
Whether read-write separation is enabled.
internal_domain This property is required. str
The internal domain of the RDS instance.
internal_port This property is required. str
The interval port of the RDS instance.
public_domain This property is required. str
The public domain of the RDS instance.
public_port This property is required. str
The public port of the RDS instance.
enableReadOnly This property is required. String
Whether global read-only is enabled.
enableReadWriteSplitting This property is required. String
Whether read-write separation is enabled.
internalDomain This property is required. String
The internal domain of the RDS instance.
internalPort This property is required. String
The interval port of the RDS instance.
publicDomain This property is required. String
The public domain of the RDS instance.
publicPort This property is required. String
The public port of the RDS instance.

InstancesRdsInstanceInstanceSpec

CpuNum This property is required. int
The cpu core count of spec type.
MemInGb This property is required. int
The memory size(GB) of spec type.
SpecName This property is required. string
The name of spec type.
CpuNum This property is required. int
The cpu core count of spec type.
MemInGb This property is required. int
The memory size(GB) of spec type.
SpecName This property is required. string
The name of spec type.
cpuNum This property is required. Integer
The cpu core count of spec type.
memInGb This property is required. Integer
The memory size(GB) of spec type.
specName This property is required. String
The name of spec type.
cpuNum This property is required. number
The cpu core count of spec type.
memInGb This property is required. number
The memory size(GB) of spec type.
specName This property is required. string
The name of spec type.
cpu_num This property is required. int
The cpu core count of spec type.
mem_in_gb This property is required. int
The memory size(GB) of spec type.
spec_name This property is required. str
The name of spec type.
cpuNum This property is required. Number
The cpu core count of spec type.
memInGb This property is required. Number
The memory size(GB) of spec type.
specName This property is required. String
The name of spec type.

Package Details

Repository
volcengine volcengine/pulumi-volcengine
License
Apache-2.0
Notes
This Pulumi package is based on the volcengine Terraform Provider.
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine