Viewing docs for Volcengine v0.0.46
published on Friday, Feb 27, 2026 by Volcengine
published on Friday, Feb 27, 2026 by Volcengine
Viewing docs for Volcengine v0.0.46
published on Friday, Feb 27, 2026 by Volcengine
published on Friday, Feb 27, 2026 by Volcengine
(Deprecated! Recommend use volcengine_rds_mysql_*** replace) Use this data source to query detailed information of rds accounts
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.rds.getAccounts({
instanceId: "mysql-0fdd3bab2e7c",
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.rds.get_accounts(instance_id="mysql-0fdd3bab2e7c")
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.GetAccounts(ctx, &rds.GetAccountsArgs{
InstanceId: "mysql-0fdd3bab2e7c",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var @default = Volcengine.Rds.GetAccounts.Invoke(new()
{
InstanceId = "mysql-0fdd3bab2e7c",
});
});
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.GetAccountsArgs;
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.getAccounts(GetAccountsArgs.builder()
.instanceId("mysql-0fdd3bab2e7c")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:rds:getAccounts
Arguments:
instanceId: mysql-0fdd3bab2e7c
Using getAccounts
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 getAccounts(args: GetAccountsArgs, opts?: InvokeOptions): Promise<GetAccountsResult>
function getAccountsOutput(args: GetAccountsOutputArgs, opts?: InvokeOptions): Output<GetAccountsResult>def get_accounts(account_name: Optional[str] = None,
instance_id: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAccountsResult
def get_accounts_output(account_name: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAccountsResult]func GetAccounts(ctx *Context, args *GetAccountsArgs, opts ...InvokeOption) (*GetAccountsResult, error)
func GetAccountsOutput(ctx *Context, args *GetAccountsOutputArgs, opts ...InvokeOption) GetAccountsResultOutput> Note: This function is named GetAccounts in the Go SDK.
public static class GetAccounts
{
public static Task<GetAccountsResult> InvokeAsync(GetAccountsArgs args, InvokeOptions? opts = null)
public static Output<GetAccountsResult> Invoke(GetAccountsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAccountsResult> getAccounts(GetAccountsArgs args, InvokeOptions options)
public static Output<GetAccountsResult> getAccounts(GetAccountsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:rds/getAccounts:getAccounts
arguments:
# arguments dictionaryThe following arguments are supported:
- Instance
Id string - The id of the RDS instance.
- Account
Name string - The name of the database account.
- Name
Regex string - A Name Regex of database account.
- Output
File string - File name where to save data source results.
- Instance
Id string - The id of the RDS instance.
- Account
Name string - The name of the database account.
- Name
Regex string - A Name Regex of database account.
- Output
File string - File name where to save data source results.
- instance
Id String - The id of the RDS instance.
- account
Name String - The name of the database account.
- name
Regex String - A Name Regex of database account.
- output
File String - File name where to save data source results.
- instance
Id string - The id of the RDS instance.
- account
Name string - The name of the database account.
- name
Regex string - A Name Regex of database account.
- output
File string - File name where to save data source results.
- instance_
id str - The id of the RDS instance.
- account_
name str - The name of the database account.
- name_
regex str - A Name Regex of database account.
- output_
file str - File name where to save data source results.
- instance
Id String - The id of the RDS instance.
- account
Name String - The name of the database account.
- name
Regex String - A Name Regex of database account.
- output
File String - File name where to save data source results.
getAccounts Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Rds
Accounts List<GetAccounts Rds Account> - The collection of RDS instance account query.
- Total
Count int - The total count of database account query.
- Account
Name string - The name of the database account.
- Name
Regex string - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Rds
Accounts []GetAccounts Rds Account - The collection of RDS instance account query.
- Total
Count int - The total count of database account query.
- Account
Name string - The name of the database account.
- Name
Regex string - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - rds
Accounts List<GetAccounts Rds Account> - The collection of RDS instance account query.
- total
Count Integer - The total count of database account query.
- account
Name String - The name of the database account.
- name
Regex String - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - rds
Accounts GetAccounts Rds Account[] - The collection of RDS instance account query.
- total
Count number - The total count of database account query.
- account
Name string - The name of the database account.
- name
Regex string - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - rds_
accounts Sequence[GetAccounts Rds Account] - The collection of RDS instance account query.
- total_
count int - The total count of database account query.
- account_
name str - The name of the database account.
- name_
regex str - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - rds
Accounts List<Property Map> - The collection of RDS instance account query.
- total
Count Number - The total count of database account query.
- account
Name String - The name of the database account.
- name
Regex String - output
File String
Supporting Types
GetAccountsRdsAccount
- Account
Name string - The name of the database account.
- Account
Status string - The status of the database account.
- Account
Type string - The type of the database account.
- Db
Privileges List<GetAccounts Rds Account Db Privilege> - The privilege detail list of RDS instance account.
- Id string
- The ID of the RDS instance account.
- Account
Name string - The name of the database account.
- Account
Status string - The status of the database account.
- Account
Type string - The type of the database account.
- Db
Privileges []GetAccounts Rds Account Db Privilege - The privilege detail list of RDS instance account.
- Id string
- The ID of the RDS instance account.
- account
Name String - The name of the database account.
- account
Status String - The status of the database account.
- account
Type String - The type of the database account.
- db
Privileges List<GetAccounts Rds Account Db Privilege> - The privilege detail list of RDS instance account.
- id String
- The ID of the RDS instance account.
- account
Name string - The name of the database account.
- account
Status string - The status of the database account.
- account
Type string - The type of the database account.
- db
Privileges GetAccounts Rds Account Db Privilege[] - The privilege detail list of RDS instance account.
- id string
- The ID of the RDS instance account.
- account_
name str - The name of the database account.
- account_
status str - The status of the database account.
- account_
type str - The type of the database account.
- db_
privileges Sequence[GetAccounts Rds Account Db Privilege] - The privilege detail list of RDS instance account.
- id str
- The ID of the RDS instance account.
- account
Name String - The name of the database account.
- account
Status String - The status of the database account.
- account
Type String - The type of the database account.
- db
Privileges List<Property Map> - The privilege detail list of RDS instance account.
- id String
- The ID of the RDS instance account.
GetAccountsRdsAccountDbPrivilege
- Account
Privilege string - The privilege type of the account.
- Account
Privilege stringStr - The privilege string of the account.
- Db
Name string - The name of database.
- Account
Privilege string - The privilege type of the account.
- Account
Privilege stringStr - The privilege string of the account.
- Db
Name string - The name of database.
- account
Privilege String - The privilege type of the account.
- account
Privilege StringStr - The privilege string of the account.
- db
Name String - The name of database.
- account
Privilege string - The privilege type of the account.
- account
Privilege stringStr - The privilege string of the account.
- db
Name string - The name of database.
- account_
privilege str - The privilege type of the account.
- account_
privilege_ strstr - The privilege string of the account.
- db_
name str - The name of database.
- account
Privilege String - The privilege type of the account.
- account
Privilege StringStr - The privilege string of the account.
- db
Name String - The name of database.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Viewing docs for Volcengine v0.0.46
published on Friday, Feb 27, 2026 by Volcengine
published on Friday, Feb 27, 2026 by Volcengine
