tencentcloud 1.82.50 published on Tuesday, Dec 30, 2025 by tencentcloudstack
tencentcloud 1.82.50 published on Tuesday, Dec 30, 2025 by tencentcloudstack
Use this data source to query detailed information of BH account groups
Example Usage
Query all bh account groups
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getBhAccountGroups({});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_bh_account_groups()
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetBhAccountGroups(ctx, &tencentcloud.GetBhAccountGroupsArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = Tencentcloud.GetBhAccountGroups.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetBhAccountGroupsArgs;
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 example = TencentcloudFunctions.getBhAccountGroups(GetBhAccountGroupsArgs.builder()
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getBhAccountGroups
arguments: {}
Query bh account groups by filter
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getBhAccountGroups({
deepIn: 1,
parentId: 819729,
groupName: "tf-example",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_bh_account_groups(deep_in=1,
parent_id=819729,
group_name="tf-example")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetBhAccountGroups(ctx, &tencentcloud.GetBhAccountGroupsArgs{
DeepIn: pulumi.Float64Ref(1),
ParentId: pulumi.Float64Ref(819729),
GroupName: pulumi.StringRef("tf-example"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = Tencentcloud.GetBhAccountGroups.Invoke(new()
{
DeepIn = 1,
ParentId = 819729,
GroupName = "tf-example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetBhAccountGroupsArgs;
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 example = TencentcloudFunctions.getBhAccountGroups(GetBhAccountGroupsArgs.builder()
.deepIn(1)
.parentId(819729)
.groupName("tf-example")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getBhAccountGroups
arguments:
deepIn: 1
parentId: 819729
groupName: tf-example
Using getBhAccountGroups
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 getBhAccountGroups(args: GetBhAccountGroupsArgs, opts?: InvokeOptions): Promise<GetBhAccountGroupsResult>
function getBhAccountGroupsOutput(args: GetBhAccountGroupsOutputArgs, opts?: InvokeOptions): Output<GetBhAccountGroupsResult>def get_bh_account_groups(deep_in: Optional[float] = None,
group_name: Optional[str] = None,
id: Optional[str] = None,
page_num: Optional[float] = None,
parent_id: Optional[float] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBhAccountGroupsResult
def get_bh_account_groups_output(deep_in: Optional[pulumi.Input[float]] = None,
group_name: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
page_num: Optional[pulumi.Input[float]] = None,
parent_id: Optional[pulumi.Input[float]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBhAccountGroupsResult]func GetBhAccountGroups(ctx *Context, args *GetBhAccountGroupsArgs, opts ...InvokeOption) (*GetBhAccountGroupsResult, error)
func GetBhAccountGroupsOutput(ctx *Context, args *GetBhAccountGroupsOutputArgs, opts ...InvokeOption) GetBhAccountGroupsResultOutput> Note: This function is named GetBhAccountGroups in the Go SDK.
public static class GetBhAccountGroups
{
public static Task<GetBhAccountGroupsResult> InvokeAsync(GetBhAccountGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetBhAccountGroupsResult> Invoke(GetBhAccountGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBhAccountGroupsResult> getBhAccountGroups(GetBhAccountGroupsArgs args, InvokeOptions options)
public static Output<GetBhAccountGroupsResult> getBhAccountGroups(GetBhAccountGroupsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getBhAccountGroups:getBhAccountGroups
arguments:
# arguments dictionaryThe following arguments are supported:
- Deep
In double - Whether to recursively query, 0 for non-recursive, 1 for recursive.
- Group
Name string - Account group name, fuzzy query.
- Id string
- Account group ID.
- Page
Num double - Get data from which page.
- Parent
Id double - Parent account group ID, default 0, query all groups under the root account group.
- Result
Output stringFile - Used to save results.
- Deep
In float64 - Whether to recursively query, 0 for non-recursive, 1 for recursive.
- Group
Name string - Account group name, fuzzy query.
- Id string
- Account group ID.
- Page
Num float64 - Get data from which page.
- Parent
Id float64 - Parent account group ID, default 0, query all groups under the root account group.
- Result
Output stringFile - Used to save results.
- deep
In Double - Whether to recursively query, 0 for non-recursive, 1 for recursive.
- group
Name String - Account group name, fuzzy query.
- id String
- Account group ID.
- page
Num Double - Get data from which page.
- parent
Id Double - Parent account group ID, default 0, query all groups under the root account group.
- result
Output StringFile - Used to save results.
- deep
In number - Whether to recursively query, 0 for non-recursive, 1 for recursive.
- group
Name string - Account group name, fuzzy query.
- id string
- Account group ID.
- page
Num number - Get data from which page.
- parent
Id number - Parent account group ID, default 0, query all groups under the root account group.
- result
Output stringFile - Used to save results.
- deep_
in float - Whether to recursively query, 0 for non-recursive, 1 for recursive.
- group_
name str - Account group name, fuzzy query.
- id str
- Account group ID.
- page_
num float - Get data from which page.
- parent_
id float - Parent account group ID, default 0, query all groups under the root account group.
- result_
output_ strfile - Used to save results.
- deep
In Number - Whether to recursively query, 0 for non-recursive, 1 for recursive.
- group
Name String - Account group name, fuzzy query.
- id String
- Account group ID.
- page
Num Number - Get data from which page.
- parent
Id Number - Parent account group ID, default 0, query all groups under the root account group.
- result
Output StringFile - Used to save results.
getBhAccountGroups Result
The following output properties are available:
- Account
Group List<GetSets Bh Account Groups Account Group Set> - Account group information.
- Id string
- Account group ID.
- Deep
In double - Group
Name string - Page
Num double - Parent
Id double - Parent account group ID.
- Result
Output stringFile
- Account
Group []GetSets Bh Account Groups Account Group Set - Account group information.
- Id string
- Account group ID.
- Deep
In float64 - Group
Name string - Page
Num float64 - Parent
Id float64 - Parent account group ID.
- Result
Output stringFile
- account
Group List<GetSets Bh Account Groups Account Group Set> - Account group information.
- id String
- Account group ID.
- deep
In Double - group
Name String - page
Num Double - parent
Id Double - Parent account group ID.
- result
Output StringFile
- account
Group GetSets Bh Account Groups Account Group Set[] - Account group information.
- id string
- Account group ID.
- deep
In number - group
Name string - page
Num number - parent
Id number - Parent account group ID.
- result
Output stringFile
- account_
group_ Sequence[Getsets Bh Account Groups Account Group Set] - Account group information.
- id str
- Account group ID.
- deep_
in float - group_
name str - page_
num float - parent_
id float - Parent account group ID.
- result_
output_ strfile
- account
Group List<Property Map>Sets - Account group information.
- id String
- Account group ID.
- deep
In Number - group
Name String - page
Num Number - parent
Id Number - Parent account group ID.
- result
Output StringFile
Supporting Types
GetBhAccountGroupsAccountGroupSet
- Description string
- Account group description.
- Id double
- Account group ID.
- Id
Path string - Account group ID path.
- Import
Type string - Account group import type.
- Is
Leaf bool - Whether it is a leaf node.
- Name string
- Account group name.
- Name
Path string - Account group name path.
- Org
Id string - Source account organization ID. When using third-party import user sources, record the group ID of this group in the source organization structure.
- Parent
Id double - Parent account group ID, default 0, query all groups under the root account group.
- Parent
Org stringId - Parent source account organization ID. When using third-party import user sources, record the group ID of this group in the source organization structure.
- Source double
- Account group source.
- Status double
- Whether the account group has been connected, 0 means not connected, 1 means connected.
- User
Total double - Total number of users under the account group.
- Description string
- Account group description.
- Id float64
- Account group ID.
- Id
Path string - Account group ID path.
- Import
Type string - Account group import type.
- Is
Leaf bool - Whether it is a leaf node.
- Name string
- Account group name.
- Name
Path string - Account group name path.
- Org
Id string - Source account organization ID. When using third-party import user sources, record the group ID of this group in the source organization structure.
- Parent
Id float64 - Parent account group ID, default 0, query all groups under the root account group.
- Parent
Org stringId - Parent source account organization ID. When using third-party import user sources, record the group ID of this group in the source organization structure.
- Source float64
- Account group source.
- Status float64
- Whether the account group has been connected, 0 means not connected, 1 means connected.
- User
Total float64 - Total number of users under the account group.
- description String
- Account group description.
- id Double
- Account group ID.
- id
Path String - Account group ID path.
- import
Type String - Account group import type.
- is
Leaf Boolean - Whether it is a leaf node.
- name String
- Account group name.
- name
Path String - Account group name path.
- org
Id String - Source account organization ID. When using third-party import user sources, record the group ID of this group in the source organization structure.
- parent
Id Double - Parent account group ID, default 0, query all groups under the root account group.
- parent
Org StringId - Parent source account organization ID. When using third-party import user sources, record the group ID of this group in the source organization structure.
- source Double
- Account group source.
- status Double
- Whether the account group has been connected, 0 means not connected, 1 means connected.
- user
Total Double - Total number of users under the account group.
- description string
- Account group description.
- id number
- Account group ID.
- id
Path string - Account group ID path.
- import
Type string - Account group import type.
- is
Leaf boolean - Whether it is a leaf node.
- name string
- Account group name.
- name
Path string - Account group name path.
- org
Id string - Source account organization ID. When using third-party import user sources, record the group ID of this group in the source organization structure.
- parent
Id number - Parent account group ID, default 0, query all groups under the root account group.
- parent
Org stringId - Parent source account organization ID. When using third-party import user sources, record the group ID of this group in the source organization structure.
- source number
- Account group source.
- status number
- Whether the account group has been connected, 0 means not connected, 1 means connected.
- user
Total number - Total number of users under the account group.
- description str
- Account group description.
- id float
- Account group ID.
- id_
path str - Account group ID path.
- import_
type str - Account group import type.
- is_
leaf bool - Whether it is a leaf node.
- name str
- Account group name.
- name_
path str - Account group name path.
- org_
id str - Source account organization ID. When using third-party import user sources, record the group ID of this group in the source organization structure.
- parent_
id float - Parent account group ID, default 0, query all groups under the root account group.
- parent_
org_ strid - Parent source account organization ID. When using third-party import user sources, record the group ID of this group in the source organization structure.
- source float
- Account group source.
- status float
- Whether the account group has been connected, 0 means not connected, 1 means connected.
- user_
total float - Total number of users under the account group.
- description String
- Account group description.
- id Number
- Account group ID.
- id
Path String - Account group ID path.
- import
Type String - Account group import type.
- is
Leaf Boolean - Whether it is a leaf node.
- name String
- Account group name.
- name
Path String - Account group name path.
- org
Id String - Source account organization ID. When using third-party import user sources, record the group ID of this group in the source organization structure.
- parent
Id Number - Parent account group ID, default 0, query all groups under the root account group.
- parent
Org StringId - Parent source account organization ID. When using third-party import user sources, record the group ID of this group in the source organization structure.
- source Number
- Account group source.
- status Number
- Whether the account group has been connected, 0 means not connected, 1 means connected.
- user
Total Number - Total number of users under the account group.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.50 published on Tuesday, Dec 30, 2025 by tencentcloudstack
