Skip to content

Commit 35d6971

Browse files
committed
add
1 parent c51f714 commit 35d6971

6 files changed

+109
-18
lines changed

tencentcloud/provider.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ Cloud Access Management(CAM)
253253
tencentcloud_cam_policy_granting_service_access
254254
tencentcloud_cam_oidc_config
255255
tencentcloud_cam_group_user_account
256+
tencentcloud_cam_sub_accounts
257+
tencentcloud_cam_role_detail
256258

257259
Resource
258260
tencentcloud_cam_role

tencentcloud/services/cam/data_source_tc_cam_role_detail.go

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tencentcloud/services/cam/data_source_tc_cam_sub_accounts.go

Lines changed: 10 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
subcategory: "Cloud Access Management(CAM)"
3+
layout: "tencentcloud"
4+
page_title: "TencentCloud: tencentcloud_cam_role_detail"
5+
sidebar_current: "docs-tencentcloud-datasource-cam_role_detail"
6+
description: |-
7+
Use this data source to query detailed information of cam role detail
8+
---
9+
10+
# tencentcloud_cam_role_detail
11+
12+
Use this data source to query detailed information of cam role detail
13+
14+
## Example Usage
15+
16+
### Query cam role detail by role ID
17+
18+
```hcl
19+
data "tencentcloud_cam_role_detail" "example" {
20+
role_id = "4611686018441060141"
21+
}
22+
```
23+
24+
### Query cam role detail by role name
25+
26+
```hcl
27+
data "tencentcloud_cam_role_detail" "example" {
28+
role_name = "tf-example"
29+
}
30+
```
31+
32+
## Argument Reference
33+
34+
The following arguments are supported:
35+
36+
* `result_output_file` - (Optional, String) Used to save results.
37+
* `role_id` - (Optional, String) Role ID, used to specify role. Input either `RoleId` or `RoleName`.
38+
* `role_name` - (Optional, String) Role name, used to specify role. Input either `RoleId` or `RoleName`.
39+
40+
## Attributes Reference
41+
42+
In addition to all arguments above, the following attributes are exported:
43+
44+
* `role_info` - Role details.
45+
46+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
subcategory: "Cloud Access Management(CAM)"
3+
layout: "tencentcloud"
4+
page_title: "TencentCloud: tencentcloud_cam_sub_accounts"
5+
sidebar_current: "docs-tencentcloud-datasource-cam_sub_accounts"
6+
description: |-
7+
Use this data source to query detailed information of cam sub accounts
8+
---
9+
10+
# tencentcloud_cam_sub_accounts
11+
12+
Use this data source to query detailed information of cam sub accounts
13+
14+
## Example Usage
15+
16+
```hcl
17+
data "tencentcloud_cam_sub_accounts" "example" {
18+
filter_sub_account_uin = ["100037718139"]
19+
}
20+
```
21+
22+
## Argument Reference
23+
24+
The following arguments are supported:
25+
26+
* `filter_sub_account_uin` - (Required, Set: [`Int`]) List of sub-user UINs. Up to 50 UINs are supported.
27+
* `result_output_file` - (Optional, String) Used to save results.
28+
29+
## Attributes Reference
30+
31+
In addition to all arguments above, the following attributes are exported:
32+
33+
* `sub_accounts` - Sub-user list.
34+
35+

website/tencentcloud.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,9 @@
719719
<li>
720720
<a href="/docs/providers/tencentcloud/d/cam_policy_granting_service_access.html">tencentcloud_cam_policy_granting_service_access</a>
721721
</li>
722+
<li>
723+
<a href="/docs/providers/tencentcloud/d/cam_role_detail.html">tencentcloud_cam_role_detail</a>
724+
</li>
722725
<li>
723726
<a href="/docs/providers/tencentcloud/d/cam_role_policy_attachments.html">tencentcloud_cam_role_policy_attachments</a>
724727
</li>
@@ -731,6 +734,9 @@
731734
<li>
732735
<a href="/docs/providers/tencentcloud/d/cam_secret_last_used_time.html">tencentcloud_cam_secret_last_used_time</a>
733736
</li>
737+
<li>
738+
<a href="/docs/providers/tencentcloud/d/cam_sub_accounts.html">tencentcloud_cam_sub_accounts</a>
739+
</li>
734740
<li>
735741
<a href="/docs/providers/tencentcloud/d/cam_user_policy_attachments.html">tencentcloud_cam_user_policy_attachments</a>
736742
</li>

0 commit comments

Comments
 (0)