tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getCamListEntitiesForPolicy
Start a Neo task
Explain and create a tencentcloud.getCamListEntitiesForPolicy resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query detailed information of cam list_entities_for_policy
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const listEntitiesForPolicy = tencentcloud.getCamListEntitiesForPolicy({
policyId: 1,
entityFilter: "All",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
list_entities_for_policy = tencentcloud.get_cam_list_entities_for_policy(policy_id=1,
entity_filter="All")
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.GetCamListEntitiesForPolicy(ctx, &tencentcloud.GetCamListEntitiesForPolicyArgs{
PolicyId: 1,
EntityFilter: pulumi.StringRef("All"),
}, 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 listEntitiesForPolicy = Tencentcloud.GetCamListEntitiesForPolicy.Invoke(new()
{
PolicyId = 1,
EntityFilter = "All",
});
});
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.GetCamListEntitiesForPolicyArgs;
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 listEntitiesForPolicy = TencentcloudFunctions.getCamListEntitiesForPolicy(GetCamListEntitiesForPolicyArgs.builder()
.policyId(1)
.entityFilter("All")
.build());
}
}
variables:
listEntitiesForPolicy:
fn::invoke:
function: tencentcloud:getCamListEntitiesForPolicy
arguments:
policyId: 1
entityFilter: All
Using getCamListEntitiesForPolicy
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 getCamListEntitiesForPolicy(args: GetCamListEntitiesForPolicyArgs, opts?: InvokeOptions): Promise<GetCamListEntitiesForPolicyResult>
function getCamListEntitiesForPolicyOutput(args: GetCamListEntitiesForPolicyOutputArgs, opts?: InvokeOptions): Output<GetCamListEntitiesForPolicyResult>def get_cam_list_entities_for_policy(entity_filter: Optional[str] = None,
id: Optional[str] = None,
policy_id: Optional[float] = None,
result_output_file: Optional[str] = None,
rp: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetCamListEntitiesForPolicyResult
def get_cam_list_entities_for_policy_output(entity_filter: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
policy_id: Optional[pulumi.Input[float]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
rp: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCamListEntitiesForPolicyResult]func GetCamListEntitiesForPolicy(ctx *Context, args *GetCamListEntitiesForPolicyArgs, opts ...InvokeOption) (*GetCamListEntitiesForPolicyResult, error)
func GetCamListEntitiesForPolicyOutput(ctx *Context, args *GetCamListEntitiesForPolicyOutputArgs, opts ...InvokeOption) GetCamListEntitiesForPolicyResultOutput> Note: This function is named GetCamListEntitiesForPolicy in the Go SDK.
public static class GetCamListEntitiesForPolicy
{
public static Task<GetCamListEntitiesForPolicyResult> InvokeAsync(GetCamListEntitiesForPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetCamListEntitiesForPolicyResult> Invoke(GetCamListEntitiesForPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCamListEntitiesForPolicyResult> getCamListEntitiesForPolicy(GetCamListEntitiesForPolicyArgs args, InvokeOptions options)
public static Output<GetCamListEntitiesForPolicyResult> getCamListEntitiesForPolicy(GetCamListEntitiesForPolicyArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getCamListEntitiesForPolicy:getCamListEntitiesForPolicy
arguments:
# arguments dictionaryThe following arguments are supported:
- Policy
Id double - Policy Id.
- Entity
Filter string - Can take values of &#39;All&#39;, &#39;User&#39;, &#39;Group&#39;, and &#39;Role&#39;. &#39;All&#39; represents obtaining all entity types, &#39;User&#39; represents only obtaining sub accounts, &#39;Group&#39; represents only obtaining user groups, and &#39;Role&#39; represents only obtaining roles. The default value is&#39; All &#39;.
- Id string
- Entity ID.
- Result
Output stringFile - Used to save results.
- Rp double
- Per page size, default value is 20.
- Policy
Id float64 - Policy Id.
- Entity
Filter string - Can take values of &#39;All&#39;, &#39;User&#39;, &#39;Group&#39;, and &#39;Role&#39;. &#39;All&#39; represents obtaining all entity types, &#39;User&#39; represents only obtaining sub accounts, &#39;Group&#39; represents only obtaining user groups, and &#39;Role&#39; represents only obtaining roles. The default value is&#39; All &#39;.
- Id string
- Entity ID.
- Result
Output stringFile - Used to save results.
- Rp float64
- Per page size, default value is 20.
- policy
Id Double - Policy Id.
- entity
Filter String - Can take values of &#39;All&#39;, &#39;User&#39;, &#39;Group&#39;, and &#39;Role&#39;. &#39;All&#39; represents obtaining all entity types, &#39;User&#39; represents only obtaining sub accounts, &#39;Group&#39; represents only obtaining user groups, and &#39;Role&#39; represents only obtaining roles. The default value is&#39; All &#39;.
- id String
- Entity ID.
- result
Output StringFile - Used to save results.
- rp Double
- Per page size, default value is 20.
- policy
Id number - Policy Id.
- entity
Filter string - Can take values of &#39;All&#39;, &#39;User&#39;, &#39;Group&#39;, and &#39;Role&#39;. &#39;All&#39; represents obtaining all entity types, &#39;User&#39; represents only obtaining sub accounts, &#39;Group&#39; represents only obtaining user groups, and &#39;Role&#39; represents only obtaining roles. The default value is&#39; All &#39;.
- id string
- Entity ID.
- result
Output stringFile - Used to save results.
- rp number
- Per page size, default value is 20.
- policy_
id float - Policy Id.
- entity_
filter str - Can take values of &#39;All&#39;, &#39;User&#39;, &#39;Group&#39;, and &#39;Role&#39;. &#39;All&#39; represents obtaining all entity types, &#39;User&#39; represents only obtaining sub accounts, &#39;Group&#39; represents only obtaining user groups, and &#39;Role&#39; represents only obtaining roles. The default value is&#39; All &#39;.
- id str
- Entity ID.
- result_
output_ strfile - Used to save results.
- rp float
- Per page size, default value is 20.
- policy
Id Number - Policy Id.
- entity
Filter String - Can take values of &#39;All&#39;, &#39;User&#39;, &#39;Group&#39;, and &#39;Role&#39;. &#39;All&#39; represents obtaining all entity types, &#39;User&#39; represents only obtaining sub accounts, &#39;Group&#39; represents only obtaining user groups, and &#39;Role&#39; represents only obtaining roles. The default value is&#39; All &#39;.
- id String
- Entity ID.
- result
Output StringFile - Used to save results.
- rp Number
- Per page size, default value is 20.
getCamListEntitiesForPolicy Result
The following output properties are available:
- Id string
- Entity ID.
- Lists
List<Get
Cam List Entities For Policy List> - Entity ListNote: This field may return null, indicating that a valid value cannot be obtained.
- Policy
Id double - Entity
Filter string - Result
Output stringFile - Rp double
- Id string
- Entity ID.
- Lists
[]Get
Cam List Entities For Policy List - Entity ListNote: This field may return null, indicating that a valid value cannot be obtained.
- Policy
Id float64 - Entity
Filter string - Result
Output stringFile - Rp float64
- id String
- Entity ID.
- lists
List<Get
Cam List Entities For Policy List> - Entity ListNote: This field may return null, indicating that a valid value cannot be obtained.
- policy
Id Double - entity
Filter String - result
Output StringFile - rp Double
- id string
- Entity ID.
- lists
Get
Cam List Entities For Policy List[] - Entity ListNote: This field may return null, indicating that a valid value cannot be obtained.
- policy
Id number - entity
Filter string - result
Output stringFile - rp number
- id str
- Entity ID.
- lists
Sequence[Get
Cam List Entities For Policy List] - Entity ListNote: This field may return null, indicating that a valid value cannot be obtained.
- policy_
id float - entity_
filter str - result_
output_ strfile - rp float
- id String
- Entity ID.
- lists List<Property Map>
- Entity ListNote: This field may return null, indicating that a valid value cannot be obtained.
- policy
Id Number - entity
Filter String - result
Output StringFile - rp Number
Supporting Types
GetCamListEntitiesForPolicyList
- Attachment
Time string - Policy association timeNote: This field may return null, indicating that a valid value cannot be obtained.
- Id string
- Entity ID.
- Name string
- Entity NameNote: This field may return null, indicating that a valid value cannot be obtained.
- double
- Association type. 1. User association; 2 User Group Association.
- Uin double
- Entity UinNote: This field may return null, indicating that a valid value cannot be obtained.
- Attachment
Time string - Policy association timeNote: This field may return null, indicating that a valid value cannot be obtained.
- Id string
- Entity ID.
- Name string
- Entity NameNote: This field may return null, indicating that a valid value cannot be obtained.
- float64
- Association type. 1. User association; 2 User Group Association.
- Uin float64
- Entity UinNote: This field may return null, indicating that a valid value cannot be obtained.
- attachment
Time String - Policy association timeNote: This field may return null, indicating that a valid value cannot be obtained.
- id String
- Entity ID.
- name String
- Entity NameNote: This field may return null, indicating that a valid value cannot be obtained.
- Double
- Association type. 1. User association; 2 User Group Association.
- uin Double
- Entity UinNote: This field may return null, indicating that a valid value cannot be obtained.
- attachment
Time string - Policy association timeNote: This field may return null, indicating that a valid value cannot be obtained.
- id string
- Entity ID.
- name string
- Entity NameNote: This field may return null, indicating that a valid value cannot be obtained.
- number
- Association type. 1. User association; 2 User Group Association.
- uin number
- Entity UinNote: This field may return null, indicating that a valid value cannot be obtained.
- attachment_
time str - Policy association timeNote: This field may return null, indicating that a valid value cannot be obtained.
- id str
- Entity ID.
- name str
- Entity NameNote: This field may return null, indicating that a valid value cannot be obtained.
- float
- Association type. 1. User association; 2 User Group Association.
- uin float
- Entity UinNote: This field may return null, indicating that a valid value cannot be obtained.
- attachment
Time String - Policy association timeNote: This field may return null, indicating that a valid value cannot be obtained.
- id String
- Entity ID.
- name String
- Entity NameNote: This field may return null, indicating that a valid value cannot be obtained.
- Number
- Association type. 1. User association; 2 User Group Association.
- uin Number
- Entity UinNote: This field may return null, indicating that a valid value cannot be obtained.
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
