tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getCamGroups
Start a Neo task
Explain and create a tencentcloud.getCamGroups resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query detailed information of CAM groups
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
// query by group_id
const foo = tencentcloud.getCamGroups({
groupId: fooTencentcloudCamGroup.id,
});
// query by name
const bar = tencentcloud.getCamGroups({
name: "cam-group-test",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
# query by group_id
foo = tencentcloud.get_cam_groups(group_id=foo_tencentcloud_cam_group["id"])
# query by name
bar = tencentcloud.get_cam_groups(name="cam-group-test")
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 {
// query by group_id
_, err := tencentcloud.GetCamGroups(ctx, &tencentcloud.GetCamGroupsArgs{
GroupId: pulumi.StringRef(fooTencentcloudCamGroup.Id),
}, nil)
if err != nil {
return err
}
// query by name
_, err = tencentcloud.GetCamGroups(ctx, &tencentcloud.GetCamGroupsArgs{
Name: pulumi.StringRef("cam-group-test"),
}, 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(() =>
{
// query by group_id
var foo = Tencentcloud.GetCamGroups.Invoke(new()
{
GroupId = fooTencentcloudCamGroup.Id,
});
// query by name
var bar = Tencentcloud.GetCamGroups.Invoke(new()
{
Name = "cam-group-test",
});
});
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.GetCamGroupsArgs;
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) {
// query by group_id
final var foo = TencentcloudFunctions.getCamGroups(GetCamGroupsArgs.builder()
.groupId(fooTencentcloudCamGroup.id())
.build());
// query by name
final var bar = TencentcloudFunctions.getCamGroups(GetCamGroupsArgs.builder()
.name("cam-group-test")
.build());
}
}
variables:
# query by group_id
foo:
fn::invoke:
function: tencentcloud:getCamGroups
arguments:
groupId: ${fooTencentcloudCamGroup.id}
# query by name
bar:
fn::invoke:
function: tencentcloud:getCamGroups
arguments:
name: cam-group-test
Using getCamGroups
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 getCamGroups(args: GetCamGroupsArgs, opts?: InvokeOptions): Promise<GetCamGroupsResult>
function getCamGroupsOutput(args: GetCamGroupsOutputArgs, opts?: InvokeOptions): Output<GetCamGroupsResult>def get_cam_groups(group_id: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
remark: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCamGroupsResult
def get_cam_groups_output(group_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
remark: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCamGroupsResult]func GetCamGroups(ctx *Context, args *GetCamGroupsArgs, opts ...InvokeOption) (*GetCamGroupsResult, error)
func GetCamGroupsOutput(ctx *Context, args *GetCamGroupsOutputArgs, opts ...InvokeOption) GetCamGroupsResultOutput> Note: This function is named GetCamGroups in the Go SDK.
public static class GetCamGroups
{
public static Task<GetCamGroupsResult> InvokeAsync(GetCamGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetCamGroupsResult> Invoke(GetCamGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCamGroupsResult> getCamGroups(GetCamGroupsArgs args, InvokeOptions options)
public static Output<GetCamGroupsResult> getCamGroups(GetCamGroupsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getCamGroups:getCamGroups
arguments:
# arguments dictionaryThe following arguments are supported:
- Group
Id string - ID of CAM group to be queried.
- Id string
- Name string
- Name of the CAM group to be queried.
- Remark string
- Description of the cam group to be queried.
- Result
Output stringFile - Used to save results.
- Group
Id string - ID of CAM group to be queried.
- Id string
- Name string
- Name of the CAM group to be queried.
- Remark string
- Description of the cam group to be queried.
- Result
Output stringFile - Used to save results.
- group
Id String - ID of CAM group to be queried.
- id String
- name String
- Name of the CAM group to be queried.
- remark String
- Description of the cam group to be queried.
- result
Output StringFile - Used to save results.
- group
Id string - ID of CAM group to be queried.
- id string
- name string
- Name of the CAM group to be queried.
- remark string
- Description of the cam group to be queried.
- result
Output stringFile - Used to save results.
- group_
id str - ID of CAM group to be queried.
- id str
- name str
- Name of the CAM group to be queried.
- remark str
- Description of the cam group to be queried.
- result_
output_ strfile - Used to save results.
- group
Id String - ID of CAM group to be queried.
- id String
- name String
- Name of the CAM group to be queried.
- remark String
- Description of the cam group to be queried.
- result
Output StringFile - Used to save results.
getCamGroups Result
The following output properties are available:
- Group
Lists List<GetCam Groups Group List> - A list of CAM groups. Each element contains the following attributes:
- Id string
- Group
Id string - ID of the CAM group.
- Name string
- Name of CAM group.
- Remark string
- Description of CAM group.
- Result
Output stringFile
- Group
Lists []GetCam Groups Group List - A list of CAM groups. Each element contains the following attributes:
- Id string
- Group
Id string - ID of the CAM group.
- Name string
- Name of CAM group.
- Remark string
- Description of CAM group.
- Result
Output stringFile
- group
Lists List<GetCam Groups Group List> - A list of CAM groups. Each element contains the following attributes:
- id String
- group
Id String - ID of the CAM group.
- name String
- Name of CAM group.
- remark String
- Description of CAM group.
- result
Output StringFile
- group
Lists GetCam Groups Group List[] - A list of CAM groups. Each element contains the following attributes:
- id string
- group
Id string - ID of the CAM group.
- name string
- Name of CAM group.
- remark string
- Description of CAM group.
- result
Output stringFile
- group_
lists Sequence[GetCam Groups Group List] - A list of CAM groups. Each element contains the following attributes:
- id str
- group_
id str - ID of the CAM group.
- name str
- Name of CAM group.
- remark str
- Description of CAM group.
- result_
output_ strfile
- group
Lists List<Property Map> - A list of CAM groups. Each element contains the following attributes:
- id String
- group
Id String - ID of the CAM group.
- name String
- Name of CAM group.
- remark String
- Description of CAM group.
- result
Output StringFile
Supporting Types
GetCamGroupsGroupList
- Create
Time string - Create time of the CAM group.
- Group
Id string - ID of CAM group to be queried.
- Name string
- Name of the CAM group to be queried.
- Remark string
- Description of the cam group to be queried.
- Create
Time string - Create time of the CAM group.
- Group
Id string - ID of CAM group to be queried.
- Name string
- Name of the CAM group to be queried.
- Remark string
- Description of the cam group to be queried.
- create
Time String - Create time of the CAM group.
- group
Id String - ID of CAM group to be queried.
- name String
- Name of the CAM group to be queried.
- remark String
- Description of the cam group to be queried.
- create
Time string - Create time of the CAM group.
- group
Id string - ID of CAM group to be queried.
- name string
- Name of the CAM group to be queried.
- remark string
- Description of the cam group to be queried.
- create_
time str - Create time of the CAM group.
- group_
id str - ID of CAM group to be queried.
- name str
- Name of the CAM group to be queried.
- remark str
- Description of the cam group to be queried.
- create
Time String - Create time of the CAM group.
- group
Id String - ID of CAM group to be queried.
- name String
- Name of the CAM group to be queried.
- remark String
- Description of the cam group to be queried.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
