1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getCamPolicyGrantingServiceAccess
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getCamPolicyGrantingServiceAccess

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of cam policy_granting_service_access

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const policyGrantingServiceAccess = tencentcloud.getCamPolicyGrantingServiceAccess({
        roleId: 4611686018436804608,
        serviceType: "cam",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    policy_granting_service_access = tencentcloud.get_cam_policy_granting_service_access(role_id=4611686018436804608,
        service_type="cam")
    
    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.GetCamPolicyGrantingServiceAccess(ctx, &tencentcloud.GetCamPolicyGrantingServiceAccessArgs{
    			RoleId:      pulumi.Float64Ref(4611686018436804608),
    			ServiceType: pulumi.StringRef("cam"),
    		}, 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 policyGrantingServiceAccess = Tencentcloud.GetCamPolicyGrantingServiceAccess.Invoke(new()
        {
            RoleId = 4611686018436804608,
            ServiceType = "cam",
        });
    
    });
    
    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.GetCamPolicyGrantingServiceAccessArgs;
    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 policyGrantingServiceAccess = TencentcloudFunctions.getCamPolicyGrantingServiceAccess(GetCamPolicyGrantingServiceAccessArgs.builder()
                .roleId(4611686018436804608)
                .serviceType("cam")
                .build());
    
        }
    }
    
    variables:
      policyGrantingServiceAccess:
        fn::invoke:
          function: tencentcloud:getCamPolicyGrantingServiceAccess
          arguments:
            roleId: 4.611686018436805e+18
            serviceType: cam
    

    Using getCamPolicyGrantingServiceAccess

    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 getCamPolicyGrantingServiceAccess(args: GetCamPolicyGrantingServiceAccessArgs, opts?: InvokeOptions): Promise<GetCamPolicyGrantingServiceAccessResult>
    function getCamPolicyGrantingServiceAccessOutput(args: GetCamPolicyGrantingServiceAccessOutputArgs, opts?: InvokeOptions): Output<GetCamPolicyGrantingServiceAccessResult>
    def get_cam_policy_granting_service_access(group_id: Optional[float] = None,
                                               id: Optional[str] = None,
                                               result_output_file: Optional[str] = None,
                                               role_id: Optional[float] = None,
                                               service_type: Optional[str] = None,
                                               target_uin: Optional[float] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetCamPolicyGrantingServiceAccessResult
    def get_cam_policy_granting_service_access_output(group_id: Optional[pulumi.Input[float]] = None,
                                               id: Optional[pulumi.Input[str]] = None,
                                               result_output_file: Optional[pulumi.Input[str]] = None,
                                               role_id: Optional[pulumi.Input[float]] = None,
                                               service_type: Optional[pulumi.Input[str]] = None,
                                               target_uin: Optional[pulumi.Input[float]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetCamPolicyGrantingServiceAccessResult]
    func GetCamPolicyGrantingServiceAccess(ctx *Context, args *GetCamPolicyGrantingServiceAccessArgs, opts ...InvokeOption) (*GetCamPolicyGrantingServiceAccessResult, error)
    func GetCamPolicyGrantingServiceAccessOutput(ctx *Context, args *GetCamPolicyGrantingServiceAccessOutputArgs, opts ...InvokeOption) GetCamPolicyGrantingServiceAccessResultOutput

    > Note: This function is named GetCamPolicyGrantingServiceAccess in the Go SDK.

    public static class GetCamPolicyGrantingServiceAccess 
    {
        public static Task<GetCamPolicyGrantingServiceAccessResult> InvokeAsync(GetCamPolicyGrantingServiceAccessArgs args, InvokeOptions? opts = null)
        public static Output<GetCamPolicyGrantingServiceAccessResult> Invoke(GetCamPolicyGrantingServiceAccessInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCamPolicyGrantingServiceAccessResult> getCamPolicyGrantingServiceAccess(GetCamPolicyGrantingServiceAccessArgs args, InvokeOptions options)
    public static Output<GetCamPolicyGrantingServiceAccessResult> getCamPolicyGrantingServiceAccess(GetCamPolicyGrantingServiceAccessArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCamPolicyGrantingServiceAccess:getCamPolicyGrantingServiceAccess
      arguments:
        # arguments dictionary

    The following arguments are supported:

    GroupId double
    Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
    Id string
    ResultOutputFile string
    Used to save results.
    RoleId double
    Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
    ServiceType string
    Service type, this field needs to be passed when viewing the details of the service authorization interface.
    TargetUin double
    Sub-account uin, one of the three (TargetUin, RoleId, GroupId) must be passed.
    GroupId float64
    Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
    Id string
    ResultOutputFile string
    Used to save results.
    RoleId float64
    Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
    ServiceType string
    Service type, this field needs to be passed when viewing the details of the service authorization interface.
    TargetUin float64
    Sub-account uin, one of the three (TargetUin, RoleId, GroupId) must be passed.
    groupId Double
    Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
    id String
    resultOutputFile String
    Used to save results.
    roleId Double
    Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
    serviceType String
    Service type, this field needs to be passed when viewing the details of the service authorization interface.
    targetUin Double
    Sub-account uin, one of the three (TargetUin, RoleId, GroupId) must be passed.
    groupId number
    Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
    id string
    resultOutputFile string
    Used to save results.
    roleId number
    Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
    serviceType string
    Service type, this field needs to be passed when viewing the details of the service authorization interface.
    targetUin number
    Sub-account uin, one of the three (TargetUin, RoleId, GroupId) must be passed.
    group_id float
    Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
    id str
    result_output_file str
    Used to save results.
    role_id float
    Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
    service_type str
    Service type, this field needs to be passed when viewing the details of the service authorization interface.
    target_uin float
    Sub-account uin, one of the three (TargetUin, RoleId, GroupId) must be passed.
    groupId Number
    Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
    id String
    resultOutputFile String
    Used to save results.
    roleId Number
    Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
    serviceType String
    Service type, this field needs to be passed when viewing the details of the service authorization interface.
    targetUin Number
    Sub-account uin, one of the three (TargetUin, RoleId, GroupId) must be passed.

    getCamPolicyGrantingServiceAccess Result

    The following output properties are available:

    Id string
    Lists []GetCamPolicyGrantingServiceAccessList
    List.
    GroupId float64
    ResultOutputFile string
    RoleId float64
    ServiceType string
    Service type.
    TargetUin float64
    id String
    lists List<Property Map>
    List.
    groupId Number
    resultOutputFile String
    roleId Number
    serviceType String
    Service type.
    targetUin Number

    Supporting Types

    GetCamPolicyGrantingServiceAccessList

    GetCamPolicyGrantingServiceAccessListAction

    Description string
    Action description.
    Name string
    Action name.
    Description string
    Action description.
    Name string
    Action name.
    description String
    Action description.
    name String
    Action name.
    description string
    Action description.
    name string
    Action name.
    description str
    Action description.
    name str
    Action name.
    description String
    Action description.
    name String
    Action name.

    GetCamPolicyGrantingServiceAccessListPolicy

    PolicyDescription string
    Policy description.
    PolicyId string
    Policy Id.
    PolicyName string
    Policy name.
    PolicyType string
    Polic type.
    PolicyDescription string
    Policy description.
    PolicyId string
    Policy Id.
    PolicyName string
    Policy name.
    PolicyType string
    Polic type.
    policyDescription String
    Policy description.
    policyId String
    Policy Id.
    policyName String
    Policy name.
    policyType String
    Polic type.
    policyDescription string
    Policy description.
    policyId string
    Policy Id.
    policyName string
    Policy name.
    policyType string
    Polic type.
    policy_description str
    Policy description.
    policy_id str
    Policy Id.
    policy_name str
    Policy name.
    policy_type str
    Polic type.
    policyDescription String
    Policy description.
    policyId String
    Policy Id.
    policyName String
    Policy name.
    policyType String
    Polic type.

    GetCamPolicyGrantingServiceAccessListService

    ServiceName string
    Service name.
    ServiceType string
    Service type, this field needs to be passed when viewing the details of the service authorization interface.
    ServiceName string
    Service name.
    ServiceType string
    Service type, this field needs to be passed when viewing the details of the service authorization interface.
    serviceName String
    Service name.
    serviceType String
    Service type, this field needs to be passed when viewing the details of the service authorization interface.
    serviceName string
    Service name.
    serviceType string
    Service type, this field needs to be passed when viewing the details of the service authorization interface.
    service_name str
    Service name.
    service_type str
    Service type, this field needs to be passed when viewing the details of the service authorization interface.
    serviceName String
    Service name.
    serviceType String
    Service type, this field needs to be passed when viewing the details of the service authorization interface.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack