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

volcengine.rds_postgresql.Accounts

Explore with Pulumi AI

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

Use this data source to query detailed information of rds postgresql accounts

Example Usage

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

const foo = volcengine.rds_postgresql.Accounts({
    instanceId: "postgres-954****f7233",
});
Copy
import pulumi
import pulumi_volcengine as volcengine

foo = volcengine.rds_postgresql.accounts(instance_id="postgres-954****f7233")
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := rds_postgresql.Accounts(ctx, &rds_postgresql.AccountsArgs{
			InstanceId: "postgres-954****f7233",
		}, 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 foo = Volcengine.Rds_postgresql.Accounts.Invoke(new()
    {
        InstanceId = "postgres-954****f7233",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.rds_postgresql.Rds_postgresqlFunctions;
import com.pulumi.volcengine.rds_postgresql.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 foo = Rds_postgresqlFunctions.Accounts(AccountsArgs.builder()
            .instanceId("postgres-954****f7233")
            .build());

    }
}
Copy
variables:
  foo:
    fn::invoke:
      Function: volcengine:rds_postgresql:Accounts
      Arguments:
        instanceId: postgres-954****f7233
Copy

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>
Copy
def accounts(account_name: Optional[str] = None,
             instance_id: 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,
             output_file: Optional[pulumi.Input[str]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[AccountsResult]
Copy
func Accounts(ctx *Context, args *AccountsArgs, opts ...InvokeOption) (*AccountsResult, error)
func AccountsOutput(ctx *Context, args *AccountsOutputArgs, opts ...InvokeOption) AccountsResultOutput
Copy
public static class Accounts 
{
    public static Task<AccountsResult> InvokeAsync(AccountsArgs args, InvokeOptions? opts = null)
    public static Output<AccountsResult> Invoke(AccountsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<AccountsResult> accounts(AccountsArgs args, InvokeOptions options)
public static Output<AccountsResult> accounts(AccountsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: volcengine:rds_postgresql:Accounts
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceId This property is required. string
The id of the RDS instance.
AccountName string
The name of the database account. This field supports fuzzy query.
OutputFile string
File name where to save data source results.
InstanceId This property is required. string
The id of the RDS instance.
AccountName string
The name of the database account. This field supports fuzzy query.
OutputFile string
File name where to save data source results.
instanceId This property is required. String
The id of the RDS instance.
accountName String
The name of the database account. This field supports fuzzy query.
outputFile String
File name where to save data source results.
instanceId This property is required. string
The id of the RDS instance.
accountName string
The name of the database account. This field supports fuzzy query.
outputFile string
File name where to save data source results.
instance_id This property is required. str
The id of the RDS instance.
account_name str
The name of the database account. This field supports fuzzy query.
output_file str
File name where to save data source results.
instanceId This property is required. String
The id of the RDS instance.
accountName String
The name of the database account. This field supports fuzzy query.
outputFile String
File name where to save data source results.

Accounts Result

The following output properties are available:

Accounts List<AccountsAccount>
The collection of RDS instance account query.
Id string
The provider-assigned unique ID for this managed resource.
InstanceId string
TotalCount int
The total count of database account query.
AccountName string
The name of the database account.
OutputFile string
Accounts []AccountsAccount
The collection of RDS instance account query.
Id string
The provider-assigned unique ID for this managed resource.
InstanceId string
TotalCount int
The total count of database account query.
AccountName string
The name of the database account.
OutputFile string
accounts List<AccountsAccount>
The collection of RDS instance account query.
id String
The provider-assigned unique ID for this managed resource.
instanceId String
totalCount Integer
The total count of database account query.
accountName String
The name of the database account.
outputFile String
accounts AccountsAccount[]
The collection of RDS instance account query.
id string
The provider-assigned unique ID for this managed resource.
instanceId string
totalCount number
The total count of database account query.
accountName string
The name of the database account.
outputFile string
accounts Sequence[AccountsAccount]
The collection of RDS instance account query.
id str
The provider-assigned unique ID for this managed resource.
instance_id str
total_count int
The total count of database account query.
account_name str
The name of the database account.
output_file str
accounts List<Property Map>
The collection of RDS instance account query.
id String
The provider-assigned unique ID for this managed resource.
instanceId String
totalCount Number
The total count of database account query.
accountName String
The name of the database account.
outputFile String

Supporting Types

AccountsAccount

AccountName This property is required. string
The name of the database account. This field supports fuzzy query.
AccountPrivileges This property is required. string
The privileges of the database account.
AccountStatus This property is required. string
The status of the database account.
AccountType This property is required. string
The type of the database account.
AccountName This property is required. string
The name of the database account. This field supports fuzzy query.
AccountPrivileges This property is required. string
The privileges of the database account.
AccountStatus This property is required. string
The status of the database account.
AccountType This property is required. string
The type of the database account.
accountName This property is required. String
The name of the database account. This field supports fuzzy query.
accountPrivileges This property is required. String
The privileges of the database account.
accountStatus This property is required. String
The status of the database account.
accountType This property is required. String
The type of the database account.
accountName This property is required. string
The name of the database account. This field supports fuzzy query.
accountPrivileges This property is required. string
The privileges of the database account.
accountStatus This property is required. string
The status of the database account.
accountType This property is required. string
The type of the database account.
account_name This property is required. str
The name of the database account. This field supports fuzzy query.
account_privileges This property is required. str
The privileges of the database account.
account_status This property is required. str
The status of the database account.
account_type This property is required. str
The type of the database account.
accountName This property is required. String
The name of the database account. This field supports fuzzy query.
accountPrivileges This property is required. String
The privileges of the database account.
accountStatus This property is required. String
The status of the database account.
accountType This property is required. String
The type of the database account.

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