1. Packages
  2. Volcengine
  3. API Docs
  4. mongodb
  5. Accounts
Volcengine v0.0.18 published on Wednesday, Sep 13, 2023 by Volcengine

volcengine.mongodb.Accounts

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.18 published on Wednesday, Sep 13, 2023 by Volcengine

    Use this data source to query detailed information of mongodb accounts

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Volcengine.Mongodb.Accounts.Invoke(new()
        {
            InstanceId = "mongo-replica-xxx",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/mongodb"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := mongodb.Accounts(ctx, &mongodb.AccountsArgs{
    			InstanceId: "mongo-replica-xxx",
    		}, 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.mongodb.MongodbFunctions;
    import com.pulumi.volcengine.mongodb.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 = MongodbFunctions.Accounts(AccountsArgs.builder()
                .instanceId("mongo-replica-xxx")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.mongodb.accounts(instance_id="mongo-replica-xxx")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.mongodb.Accounts({
        instanceId: "mongo-replica-xxx",
    });
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:mongodb:Accounts
          Arguments:
            instanceId: mongo-replica-xxx
    

    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,
                 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]
    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:mongodb:Accounts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string

    Target query mongo instance id.

    AccountName string

    The name of account, current support only root.

    OutputFile string

    File name where to save data source results.

    InstanceId string

    Target query mongo instance id.

    AccountName string

    The name of account, current support only root.

    OutputFile string

    File name where to save data source results.

    instanceId String

    Target query mongo instance id.

    accountName String

    The name of account, current support only root.

    outputFile String

    File name where to save data source results.

    instanceId string

    Target query mongo instance id.

    accountName string

    The name of account, current support only root.

    outputFile string

    File name where to save data source results.

    instance_id str

    Target query mongo instance id.

    account_name str

    The name of account, current support only root.

    output_file str

    File name where to save data source results.

    instanceId String

    Target query mongo instance id.

    accountName String

    The name of account, current support only root.

    outputFile String

    File name where to save data source results.

    Accounts Result

    The following output properties are available:

    Accounts List<Volcengine.Pulumi.Volcengine.Mongodb.Outputs.AccountsAccount>

    The collection of accounts query.

    Id string

    The provider-assigned unique ID for this managed resource.

    InstanceId string
    TotalCount int

    The total count of accounts query.

    AccountName string

    The name of account.

    OutputFile string
    Accounts []AccountsAccount

    The collection of accounts query.

    Id string

    The provider-assigned unique ID for this managed resource.

    InstanceId string
    TotalCount int

    The total count of accounts query.

    AccountName string

    The name of account.

    OutputFile string
    accounts List<AccountsAccount>

    The collection of accounts query.

    id String

    The provider-assigned unique ID for this managed resource.

    instanceId String
    totalCount Integer

    The total count of accounts query.

    accountName String

    The name of account.

    outputFile String
    accounts AccountsAccount[]

    The collection of accounts query.

    id string

    The provider-assigned unique ID for this managed resource.

    instanceId string
    totalCount number

    The total count of accounts query.

    accountName string

    The name of account.

    outputFile string
    accounts Sequence[AccountsAccount]

    The collection of accounts query.

    id str

    The provider-assigned unique ID for this managed resource.

    instance_id str
    total_count int

    The total count of accounts query.

    account_name str

    The name of account.

    output_file str
    accounts List<Property Map>

    The collection of accounts query.

    id String

    The provider-assigned unique ID for this managed resource.

    instanceId String
    totalCount Number

    The total count of accounts query.

    accountName String

    The name of account.

    outputFile String

    Supporting Types

    AccountsAccount

    AccountName string

    The name of account, current support only root.

    AccountPrivileges List<Volcengine.Pulumi.Volcengine.Mongodb.Inputs.AccountsAccountAccountPrivilege>

    The privilege info of mongo instance.

    AccountType string

    The type of account.

    AccountName string

    The name of account, current support only root.

    AccountPrivileges []AccountsAccountAccountPrivilege

    The privilege info of mongo instance.

    AccountType string

    The type of account.

    accountName String

    The name of account, current support only root.

    accountPrivileges List<AccountsAccountAccountPrivilege>

    The privilege info of mongo instance.

    accountType String

    The type of account.

    accountName string

    The name of account, current support only root.

    accountPrivileges AccountsAccountAccountPrivilege[]

    The privilege info of mongo instance.

    accountType string

    The type of account.

    account_name str

    The name of account, current support only root.

    account_privileges Sequence[AccountsAccountAccountPrivilege]

    The privilege info of mongo instance.

    account_type str

    The type of account.

    accountName String

    The name of account, current support only root.

    accountPrivileges List<Property Map>

    The privilege info of mongo instance.

    accountType String

    The type of account.

    AccountsAccountAccountPrivilege

    DbName string

    The Name of DB.

    RoleName string

    The Name of role.

    DbName string

    The Name of DB.

    RoleName string

    The Name of role.

    dbName String

    The Name of DB.

    roleName String

    The Name of role.

    dbName string

    The Name of DB.

    roleName string

    The Name of role.

    db_name str

    The Name of DB.

    role_name str

    The Name of role.

    dbName String

    The Name of DB.

    roleName String

    The Name of role.

    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.18 published on Wednesday, Sep 13, 2023 by Volcengine