Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Deprecated: volcengine.mongodb.Accounts has been deprecated in favor of volcengine.mongodb.getAccounts
Use this data source to query detailed information of mongodb accounts
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.mongodb.getAccounts({
instanceId: "mongo-replica-xxx",
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.mongodb.get_accounts(instance_id="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.GetAccounts(ctx, &mongodb.GetAccountsArgs{
InstanceId: "mongo-replica-xxx",
}, 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.Mongodb.GetAccounts.Invoke(new()
{
InstanceId = "mongo-replica-xxx",
});
});
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.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 = MongodbFunctions.getAccounts(GetAccountsArgs.builder()
.instanceId("mongo-replica-xxx")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:mongodb:getAccounts
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,
auth_db: 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,
auth_db: 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) AccountsResultOutputpublic 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)
public static Output<AccountsResult> accounts(AccountsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:mongodb:Accounts
arguments:
# arguments dictionaryThe following arguments are supported:
- Instance
Id string - Target query mongodb instance id.
- Account
Name string - The name of account. This field support fuzzy query.
- Auth
Db string - The database of account. This field support fuzzy query.
- Output
File string - File name where to save data source results.
- Instance
Id string - Target query mongodb instance id.
- Account
Name string - The name of account. This field support fuzzy query.
- Auth
Db string - The database of account. This field support fuzzy query.
- Output
File string - File name where to save data source results.
- instance
Id String - Target query mongodb instance id.
- account
Name String - The name of account. This field support fuzzy query.
- auth
Db String - The database of account. This field support fuzzy query.
- output
File String - File name where to save data source results.
- instance
Id string - Target query mongodb instance id.
- account
Name string - The name of account. This field support fuzzy query.
- auth
Db string - The database of account. This field support fuzzy query.
- output
File string - File name where to save data source results.
- instance_
id str - Target query mongodb instance id.
- account_
name str - The name of account. This field support fuzzy query.
- auth_
db str - The database of account. This field support fuzzy query.
- output_
file str - File name where to save data source results.
- instance
Id String - Target query mongodb instance id.
- account
Name String - The name of account. This field support fuzzy query.
- auth
Db String - The database of account. This field support fuzzy query.
- output
File String - File name where to save data source results.
Accounts Result
The following output properties are available:
- Accounts
List<Accounts
Account> - The collection of accounts query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Total
Count int - The total count of accounts query.
- Account
Name string - The name of account.
- Auth
Db string - The database of account.
- Output
File string
- Accounts
[]Accounts
Account - The collection of accounts query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Total
Count int - The total count of accounts query.
- Account
Name string - The name of account.
- Auth
Db string - The database of account.
- Output
File string
- accounts
List<Accounts
Account> - The collection of accounts query.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - total
Count Integer - The total count of accounts query.
- account
Name String - The name of account.
- auth
Db String - The database of account.
- output
File String
- accounts
Accounts
Account[] - The collection of accounts query.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - total
Count number - The total count of accounts query.
- account
Name string - The name of account.
- auth
Db string - The database of account.
- output
File string
- accounts
Sequence[Accounts
Account] - 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.
- auth_
db str - The database 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.
- instance
Id String - total
Count Number - The total count of accounts query.
- account
Name String - The name of account.
- auth
Db String - The database of account.
- output
File String
Supporting Types
AccountsAccount
- Account
Desc string - The description of account.
- Account
Name string - The name of account. This field support fuzzy query.
- Account
Privileges List<AccountsAccount Account Privilege> - The privilege info of mongo instance.
- Account
Type string - The type of account.
- Auth
Db string - The database of account. This field support fuzzy query.
- Create
Time string - The create time of account.
- Modify
Time string - The modify time of account.
- Account
Desc string - The description of account.
- Account
Name string - The name of account. This field support fuzzy query.
- Account
Privileges []AccountsAccount Account Privilege - The privilege info of mongo instance.
- Account
Type string - The type of account.
- Auth
Db string - The database of account. This field support fuzzy query.
- Create
Time string - The create time of account.
- Modify
Time string - The modify time of account.
- account
Desc String - The description of account.
- account
Name String - The name of account. This field support fuzzy query.
- account
Privileges List<AccountsAccount Account Privilege> - The privilege info of mongo instance.
- account
Type String - The type of account.
- auth
Db String - The database of account. This field support fuzzy query.
- create
Time String - The create time of account.
- modify
Time String - The modify time of account.
- account
Desc string - The description of account.
- account
Name string - The name of account. This field support fuzzy query.
- account
Privileges AccountsAccount Account Privilege[] - The privilege info of mongo instance.
- account
Type string - The type of account.
- auth
Db string - The database of account. This field support fuzzy query.
- create
Time string - The create time of account.
- modify
Time string - The modify time of account.
- account_
desc str - The description of account.
- account_
name str - The name of account. This field support fuzzy query.
- account_
privileges Sequence[AccountsAccount Account Privilege] - The privilege info of mongo instance.
- account_
type str - The type of account.
- auth_
db str - The database of account. This field support fuzzy query.
- create_
time str - The create time of account.
- modify_
time str - The modify time of account.
- account
Desc String - The description of account.
- account
Name String - The name of account. This field support fuzzy query.
- account
Privileges List<Property Map> - The privilege info of mongo instance.
- account
Type String - The type of account.
- auth
Db String - The database of account. This field support fuzzy query.
- create
Time String - The create time of account.
- modify
Time String - The modify time of account.
AccountsAccountAccountPrivilege
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.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
