Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of organization accounts
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.organization.getAccounts({
search: "210061****",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.organization.get_accounts(search="210061****")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/organization"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := organization.GetAccounts(ctx, &organization.GetAccountsArgs{
Search: pulumi.StringRef("210061****"),
}, 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 foo = Volcengine.Organization.GetAccounts.Invoke(new()
{
Search = "210061****",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.organization.OrganizationFunctions;
import com.pulumi.volcengine.organization.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 foo = OrganizationFunctions.getAccounts(GetAccountsArgs.builder()
.search("210061****")
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:organization:getAccounts
Arguments:
search: 210061****
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(name_regex: Optional[str] = None,
org_unit_id: Optional[str] = None,
output_file: Optional[str] = None,
search: Optional[str] = None,
verification_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAccountsResult
def get_accounts_output(name_regex: Optional[pulumi.Input[str]] = None,
org_unit_id: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
search: Optional[pulumi.Input[str]] = None,
verification_id: 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:organization/getAccounts:getAccounts
arguments:
# arguments dictionaryThe following arguments are supported:
- Name
Regex string - A Name Regex of Resource.
- Org
Unit stringId - The id of the organization unit.
- Output
File string - File name where to save data source results.
- Search string
- The id or the show name of the account. This field supports fuzzy query.
- Verification
Id string - The id of the verification.
- Name
Regex string - A Name Regex of Resource.
- Org
Unit stringId - The id of the organization unit.
- Output
File string - File name where to save data source results.
- Search string
- The id or the show name of the account. This field supports fuzzy query.
- Verification
Id string - The id of the verification.
- name
Regex String - A Name Regex of Resource.
- org
Unit StringId - The id of the organization unit.
- output
File String - File name where to save data source results.
- search String
- The id or the show name of the account. This field supports fuzzy query.
- verification
Id String - The id of the verification.
- name
Regex string - A Name Regex of Resource.
- org
Unit stringId - The id of the organization unit.
- output
File string - File name where to save data source results.
- search string
- The id or the show name of the account. This field supports fuzzy query.
- verification
Id string - The id of the verification.
- name_
regex str - A Name Regex of Resource.
- org_
unit_ strid - The id of the organization unit.
- output_
file str - File name where to save data source results.
- search str
- The id or the show name of the account. This field supports fuzzy query.
- verification_
id str - The id of the verification.
- name
Regex String - A Name Regex of Resource.
- org
Unit StringId - The id of the organization unit.
- output
File String - File name where to save data source results.
- search String
- The id or the show name of the account. This field supports fuzzy query.
- verification
Id String - The id of the verification.
getAccounts Result
The following output properties are available:
- Accounts
List<Get
Accounts Account> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Name
Regex string - Org
Unit stringId - The id of the organization unit.
- Output
File string - Search string
- Verification
Id string
- Accounts
[]Get
Accounts Account - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Name
Regex string - Org
Unit stringId - The id of the organization unit.
- Output
File string - Search string
- Verification
Id string
- accounts
List<Get
Accounts Account> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- name
Regex String - org
Unit StringId - The id of the organization unit.
- output
File String - search String
- verification
Id String
- accounts
Get
Accounts Account[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- name
Regex string - org
Unit stringId - The id of the organization unit.
- output
File string - search string
- verification
Id string
- accounts
Sequence[Get
Accounts Account] - The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- name_
regex str - org_
unit_ strid - The id of the organization unit.
- output_
file str - search str
- verification_
id str
- accounts List<Property Map>
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- name
Regex String - org
Unit StringId - The id of the organization unit.
- output
File String - search String
- verification
Id String
Supporting Types
GetAccountsAccount
- Account
Id string - The id of the account.
- Account
Name string - The name of the account.
- Allow
Console int - Whether to allow the account enable console.
0means allowed,1means not allowed. - Allow
Exit int - Whether to allow exit the organization.
0means allowed,1means not allowed. - Created
Time string - The created time of the account.
- Delete
Uk string - The delete uk of the account.
- Deleted
Time string - The deleted time of the account.
- Description string
- The description of the account.
- Iam
Role string - The name of the iam role.
- Id string
- The id of the account.
- Is
Owner int - Whether the account is owner.
0means not owner,1means owner. - Join
Type int - The join type of the account.
0means create,1means invitation. - Org
Id string - The id of the organization.
- Org
Type int - The type of the organization.
1means business organization. - Org
Unit stringId - The id of the organization unit.
- Org
Unit stringName - The name of the organization unit.
- Org
Verification stringId - The id of the organization verification.
- Owner string
- The owner id of the account.
- Show
Name string - The show name of the account.
-
List<Get
Accounts Account Tag> - Tags.
- Updated
Time string - The updated time of the account.
- Account
Id string - The id of the account.
- Account
Name string - The name of the account.
- Allow
Console int - Whether to allow the account enable console.
0means allowed,1means not allowed. - Allow
Exit int - Whether to allow exit the organization.
0means allowed,1means not allowed. - Created
Time string - The created time of the account.
- Delete
Uk string - The delete uk of the account.
- Deleted
Time string - The deleted time of the account.
- Description string
- The description of the account.
- Iam
Role string - The name of the iam role.
- Id string
- The id of the account.
- Is
Owner int - Whether the account is owner.
0means not owner,1means owner. - Join
Type int - The join type of the account.
0means create,1means invitation. - Org
Id string - The id of the organization.
- Org
Type int - The type of the organization.
1means business organization. - Org
Unit stringId - The id of the organization unit.
- Org
Unit stringName - The name of the organization unit.
- Org
Verification stringId - The id of the organization verification.
- Owner string
- The owner id of the account.
- Show
Name string - The show name of the account.
-
[]Get
Accounts Account Tag - Tags.
- Updated
Time string - The updated time of the account.
- account
Id String - The id of the account.
- account
Name String - The name of the account.
- allow
Console Integer - Whether to allow the account enable console.
0means allowed,1means not allowed. - allow
Exit Integer - Whether to allow exit the organization.
0means allowed,1means not allowed. - created
Time String - The created time of the account.
- delete
Uk String - The delete uk of the account.
- deleted
Time String - The deleted time of the account.
- description String
- The description of the account.
- iam
Role String - The name of the iam role.
- id String
- The id of the account.
- is
Owner Integer - Whether the account is owner.
0means not owner,1means owner. - join
Type Integer - The join type of the account.
0means create,1means invitation. - org
Id String - The id of the organization.
- org
Type Integer - The type of the organization.
1means business organization. - org
Unit StringId - The id of the organization unit.
- org
Unit StringName - The name of the organization unit.
- org
Verification StringId - The id of the organization verification.
- owner String
- The owner id of the account.
- show
Name String - The show name of the account.
-
List<Get
Accounts Account Tag> - Tags.
- updated
Time String - The updated time of the account.
- account
Id string - The id of the account.
- account
Name string - The name of the account.
- allow
Console number - Whether to allow the account enable console.
0means allowed,1means not allowed. - allow
Exit number - Whether to allow exit the organization.
0means allowed,1means not allowed. - created
Time string - The created time of the account.
- delete
Uk string - The delete uk of the account.
- deleted
Time string - The deleted time of the account.
- description string
- The description of the account.
- iam
Role string - The name of the iam role.
- id string
- The id of the account.
- is
Owner number - Whether the account is owner.
0means not owner,1means owner. - join
Type number - The join type of the account.
0means create,1means invitation. - org
Id string - The id of the organization.
- org
Type number - The type of the organization.
1means business organization. - org
Unit stringId - The id of the organization unit.
- org
Unit stringName - The name of the organization unit.
- org
Verification stringId - The id of the organization verification.
- owner string
- The owner id of the account.
- show
Name string - The show name of the account.
-
Get
Accounts Account Tag[] - Tags.
- updated
Time string - The updated time of the account.
- account_
id str - The id of the account.
- account_
name str - The name of the account.
- allow_
console int - Whether to allow the account enable console.
0means allowed,1means not allowed. - allow_
exit int - Whether to allow exit the organization.
0means allowed,1means not allowed. - created_
time str - The created time of the account.
- delete_
uk str - The delete uk of the account.
- deleted_
time str - The deleted time of the account.
- description str
- The description of the account.
- iam_
role str - The name of the iam role.
- id str
- The id of the account.
- is_
owner int - Whether the account is owner.
0means not owner,1means owner. - join_
type int - The join type of the account.
0means create,1means invitation. - org_
id str - The id of the organization.
- org_
type int - The type of the organization.
1means business organization. - org_
unit_ strid - The id of the organization unit.
- org_
unit_ strname - The name of the organization unit.
- org_
verification_ strid - The id of the organization verification.
- owner str
- The owner id of the account.
- show_
name str - The show name of the account.
-
Sequence[Get
Accounts Account Tag] - Tags.
- updated_
time str - The updated time of the account.
- account
Id String - The id of the account.
- account
Name String - The name of the account.
- allow
Console Number - Whether to allow the account enable console.
0means allowed,1means not allowed. - allow
Exit Number - Whether to allow exit the organization.
0means allowed,1means not allowed. - created
Time String - The created time of the account.
- delete
Uk String - The delete uk of the account.
- deleted
Time String - The deleted time of the account.
- description String
- The description of the account.
- iam
Role String - The name of the iam role.
- id String
- The id of the account.
- is
Owner Number - Whether the account is owner.
0means not owner,1means owner. - join
Type Number - The join type of the account.
0means create,1means invitation. - org
Id String - The id of the organization.
- org
Type Number - The type of the organization.
1means business organization. - org
Unit StringId - The id of the organization unit.
- org
Unit StringName - The name of the organization unit.
- org
Verification StringId - The id of the organization verification.
- owner String
- The owner id of the account.
- show
Name String - The show name of the account.
- List<Property Map>
- Tags.
- updated
Time String - The updated time of the account.
GetAccountsAccountTag
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
