tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getCamPolicyGrantingServiceAccess
Start a Neo task
Explain and create a tencentcloud.getCamPolicyGrantingServiceAccess resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 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: 4611686018436805021,
serviceType: "cam",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
policy_granting_service_access = tencentcloud.get_cam_policy_granting_service_access(role_id=4611686018436805021,
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(4611686018436805021),
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 = 4611686018436805021,
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(4611686018436805021)
.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 dictionaryThe following arguments are supported:
- Group
Id double - Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- Id string
- Result
Output stringFile - Used to save results.
- Role
Id double - Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- Service
Type string - Service type, this field needs to be passed when viewing the details of the service authorization interface.
- Target
Uin double - Sub-account uin, one of the three (TargetUin, RoleId, GroupId) must be passed.
- Group
Id float64 - Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- Id string
- Result
Output stringFile - Used to save results.
- Role
Id float64 - Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- Service
Type string - Service type, this field needs to be passed when viewing the details of the service authorization interface.
- Target
Uin float64 - Sub-account uin, one of the three (TargetUin, RoleId, GroupId) must be passed.
- group
Id Double - Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- id String
- result
Output StringFile - Used to save results.
- role
Id Double - Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- service
Type String - Service type, this field needs to be passed when viewing the details of the service authorization interface.
- target
Uin Double - Sub-account uin, one of the three (TargetUin, RoleId, GroupId) must be passed.
- group
Id number - Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- id string
- result
Output stringFile - Used to save results.
- role
Id number - Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- service
Type string - Service type, this field needs to be passed when viewing the details of the service authorization interface.
- target
Uin 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_ strfile - 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.
- group
Id Number - Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- id String
- result
Output StringFile - Used to save results.
- role
Id Number - Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- service
Type String - Service type, this field needs to be passed when viewing the details of the service authorization interface.
- target
Uin 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
List<Get
Cam Policy Granting Service Access List> - List.
- Group
Id double - Result
Output stringFile - Role
Id double - Service
Type string - Service type.
- Target
Uin double
- Id string
- Lists
[]Get
Cam Policy Granting Service Access List - List.
- Group
Id float64 - Result
Output stringFile - Role
Id float64 - Service
Type string - Service type.
- Target
Uin float64
- id String
- lists
List<Get
Cam Policy Granting Service Access List> - List.
- group
Id Double - result
Output StringFile - role
Id Double - service
Type String - Service type.
- target
Uin Double
- id string
- lists
Get
Cam Policy Granting Service Access List[] - List.
- group
Id number - result
Output stringFile - role
Id number - service
Type string - Service type.
- target
Uin number
- id str
- lists
Sequence[Get
Cam Policy Granting Service Access List] - List.
- group_
id float - result_
output_ strfile - role_
id float - service_
type str - Service type.
- target_
uin float
- id String
- lists List<Property Map>
- List.
- group
Id Number - result
Output StringFile - role
Id Number - service
Type String - Service type.
- target
Uin Number
Supporting Types
GetCamPolicyGrantingServiceAccessList
- Actions
[]Get
Cam Policy Granting Service Access List Action - Action list.
- Policies
[]Get
Cam Policy Granting Service Access List Policy - Policy list.
- Services
[]Get
Cam Policy Granting Service Access List Service - Service info.
- actions
Get
Cam Policy Granting Service Access List Action[] - Action list.
- policies
Get
Cam Policy Granting Service Access List Policy[] - Policy list.
- services
Get
Cam Policy Granting Service Access List Service[] - Service info.
- actions List<Property Map>
- Action list.
- policies List<Property Map>
- Policy list.
- services List<Property Map>
- Service info.
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
- Policy
Description string - Policy description.
- Policy
Id string - Policy Id.
- Policy
Name string - Policy name.
- Policy
Type string - Polic type.
- Policy
Description string - Policy description.
- Policy
Id string - Policy Id.
- Policy
Name string - Policy name.
- Policy
Type string - Polic type.
- policy
Description String - Policy description.
- policy
Id String - Policy Id.
- policy
Name String - Policy name.
- policy
Type String - Polic type.
- policy
Description string - Policy description.
- policy
Id string - Policy Id.
- policy
Name string - Policy name.
- policy
Type string - Polic type.
- policy_
description str - Policy description.
- policy_
id str - Policy Id.
- policy_
name str - Policy name.
- policy_
type str - Polic type.
- policy
Description String - Policy description.
- policy
Id String - Policy Id.
- policy
Name String - Policy name.
- policy
Type String - Polic type.
GetCamPolicyGrantingServiceAccessListService
- Service
Name string - Service name.
- Service
Type string - Service type, this field needs to be passed when viewing the details of the service authorization interface.
- Service
Name string - Service name.
- Service
Type string - Service type, this field needs to be passed when viewing the details of the service authorization interface.
- service
Name String - Service name.
- service
Type String - Service type, this field needs to be passed when viewing the details of the service authorization interface.
- service
Name string - Service name.
- service
Type 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.
- service
Name String - Service name.
- service
Type 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
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
