1. Packages
  2. Volcengine
  3. API Docs
  4. rds
  5. Accounts
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.rds.Accounts

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

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

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Volcengine.Rds.Accounts.Invoke(new()
        {
            InstanceId = "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.Accounts(ctx, &rds.AccountsArgs{
    			InstanceId: "mysql-0fdd3bab2e7c",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.AccountsArgs;
    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.Accounts(AccountsArgs.builder()
                .instanceId("mysql-0fdd3bab2e7c")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.rds.accounts(instance_id="mysql-0fdd3bab2e7c")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.rds.Accounts({
        instanceId: "mysql-0fdd3bab2e7c",
    });
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:rds:Accounts
          Arguments:
            instanceId: mysql-0fdd3bab2e7c
    

    Using Accounts

    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 accounts(args: AccountsArgs, opts?: InvokeOptions): Promise<AccountsResult>
    function accountsOutput(args: AccountsOutputArgs, opts?: InvokeOptions): Output<AccountsResult>
    def 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) -> AccountsResult
    def 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[AccountsResult]
    func Accounts(ctx *Context, args *AccountsArgs, opts ...InvokeOption) (*AccountsResult, error)
    func AccountsOutput(ctx *Context, args *AccountsOutputArgs, opts ...InvokeOption) AccountsResultOutput
    public static class Accounts 
    {
        public static Task<AccountsResult> InvokeAsync(AccountsArgs args, InvokeOptions? opts = null)
        public static Output<AccountsResult> Invoke(AccountsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<AccountsResult> accounts(AccountsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:rds:Accounts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    The id of the RDS instance.
    AccountName string
    The name of the database account.
    NameRegex string
    A Name Regex of database account.
    OutputFile string
    File name where to save data source results.
    InstanceId string
    The id of the RDS instance.
    AccountName string
    The name of the database account.
    NameRegex string
    A Name Regex of database account.
    OutputFile string
    File name where to save data source results.
    instanceId String
    The id of the RDS instance.
    accountName String
    The name of the database account.
    nameRegex String
    A Name Regex of database account.
    outputFile String
    File name where to save data source results.
    instanceId string
    The id of the RDS instance.
    accountName string
    The name of the database account.
    nameRegex string
    A Name Regex of database account.
    outputFile 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.
    instanceId String
    The id of the RDS instance.
    accountName String
    The name of the database account.
    nameRegex String
    A Name Regex of database account.
    outputFile String
    File name where to save data source results.

    Accounts Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    RdsAccounts List<AccountsRdsAccount>
    The collection of RDS instance account query.
    TotalCount int
    The total count of database account query.
    AccountName string
    The name of the database account.
    NameRegex string
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    RdsAccounts []AccountsRdsAccount
    The collection of RDS instance account query.
    TotalCount int
    The total count of database account query.
    AccountName string
    The name of the database account.
    NameRegex string
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    rdsAccounts List<AccountsRdsAccount>
    The collection of RDS instance account query.
    totalCount Integer
    The total count of database account query.
    accountName String
    The name of the database account.
    nameRegex String
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    rdsAccounts AccountsRdsAccount[]
    The collection of RDS instance account query.
    totalCount number
    The total count of database account query.
    accountName string
    The name of the database account.
    nameRegex string
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id str
    rds_accounts Sequence[AccountsRdsAccount]
    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.
    instanceId String
    rdsAccounts List<Property Map>
    The collection of RDS instance account query.
    totalCount Number
    The total count of database account query.
    accountName String
    The name of the database account.
    nameRegex String
    outputFile String

    Supporting Types

    AccountsRdsAccount

    AccountName string
    The name of the database account.
    AccountStatus string
    The status of the database account.
    AccountType string
    The type of the database account.
    DbPrivileges List<AccountsRdsAccountDbPrivilege>
    The privilege detail list of RDS instance account.
    Id string
    The ID of the RDS instance account.
    AccountName string
    The name of the database account.
    AccountStatus string
    The status of the database account.
    AccountType string
    The type of the database account.
    DbPrivileges []AccountsRdsAccountDbPrivilege
    The privilege detail list of RDS instance account.
    Id string
    The ID of the RDS instance account.
    accountName String
    The name of the database account.
    accountStatus String
    The status of the database account.
    accountType String
    The type of the database account.
    dbPrivileges List<AccountsRdsAccountDbPrivilege>
    The privilege detail list of RDS instance account.
    id String
    The ID of the RDS instance account.
    accountName string
    The name of the database account.
    accountStatus string
    The status of the database account.
    accountType string
    The type of the database account.
    dbPrivileges AccountsRdsAccountDbPrivilege[]
    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[AccountsRdsAccountDbPrivilege]
    The privilege detail list of RDS instance account.
    id str
    The ID of the RDS instance account.
    accountName String
    The name of the database account.
    accountStatus String
    The status of the database account.
    accountType String
    The type of the database account.
    dbPrivileges List<Property Map>
    The privilege detail list of RDS instance account.
    id String
    The ID of the RDS instance account.

    AccountsRdsAccountDbPrivilege

    AccountPrivilege string
    The privilege type of the account.
    AccountPrivilegeStr string
    The privilege string of the account.
    DbName string
    The name of database.
    AccountPrivilege string
    The privilege type of the account.
    AccountPrivilegeStr string
    The privilege string of the account.
    DbName string
    The name of database.
    accountPrivilege String
    The privilege type of the account.
    accountPrivilegeStr String
    The privilege string of the account.
    dbName String
    The name of database.
    accountPrivilege string
    The privilege type of the account.
    accountPrivilegeStr string
    The privilege string of the account.
    dbName string
    The name of database.
    account_privilege str
    The privilege type of the account.
    account_privilege_str str
    The privilege string of the account.
    db_name str
    The name of database.
    accountPrivilege String
    The privilege type of the account.
    accountPrivilegeStr String
    The privilege string of the account.
    dbName String
    The name of database.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine