tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getCamListEntitiesForPolicy
Explore with Pulumi AI
tencentcloud 1.81.183 published on Wednesday, Apr 16, 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({
    entityFilter: "All",
    policyId: 1,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
list_entities_for_policy = tencentcloud.get_cam_list_entities_for_policy(entity_filter="All",
    policy_id=1)
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{
			EntityFilter: pulumi.StringRef("All"),
			PolicyId:     1,
		}, 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()
    {
        EntityFilter = "All",
        PolicyId = 1,
    });
});
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()
            .entityFilter("All")
            .policyId(1)
            .build());
    }
}
variables:
  listEntitiesForPolicy:
    fn::invoke:
      function: tencentcloud:getCamListEntitiesForPolicy
      arguments:
        entityFilter: All
        policyId: 1
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:
- PolicyId double
- Policy Id.
- EntityFilter 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.
- ResultOutput stringFile 
- Used to save results.
- Rp double
- Per page size, default value is 20.
- PolicyId float64
- Policy Id.
- EntityFilter 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.
- ResultOutput stringFile 
- Used to save results.
- Rp float64
- Per page size, default value is 20.
- policyId Double
- Policy Id.
- entityFilter 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.
- resultOutput StringFile 
- Used to save results.
- rp Double
- Per page size, default value is 20.
- policyId number
- Policy Id.
- entityFilter 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.
- resultOutput 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.
- policyId Number
- Policy Id.
- entityFilter 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.
- resultOutput 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<GetCam List Entities For Policy List> 
- Entity ListNote: This field may return null, indicating that a valid value cannot be obtained.
- PolicyId double
- EntityFilter string
- ResultOutput stringFile 
- Rp double
- Id string
- Entity ID.
- Lists
[]GetCam List Entities For Policy List 
- Entity ListNote: This field may return null, indicating that a valid value cannot be obtained.
- PolicyId float64
- EntityFilter string
- ResultOutput stringFile 
- Rp float64
- id String
- Entity ID.
- lists
List<GetCam List Entities For Policy List> 
- Entity ListNote: This field may return null, indicating that a valid value cannot be obtained.
- policyId Double
- entityFilter String
- resultOutput StringFile 
- rp Double
- id string
- Entity ID.
- lists
GetCam List Entities For Policy List[] 
- Entity ListNote: This field may return null, indicating that a valid value cannot be obtained.
- policyId number
- entityFilter string
- resultOutput stringFile 
- rp number
- id str
- Entity ID.
- lists
Sequence[GetCam 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.
- policyId Number
- entityFilter String
- resultOutput StringFile 
- rp Number
Supporting Types
GetCamListEntitiesForPolicyList      
- AttachmentTime 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.
- AttachmentTime 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.
- attachmentTime 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.
- attachmentTime 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.
- attachmentTime 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.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack