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

tencentcloud.getCamPolicyGrantingServiceAccess

Explore with Pulumi AI

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",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

policy_granting_service_access = tencentcloud.get_cam_policy_granting_service_access(role_id=4611686018436804608,
    service_type="cam")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  policyGrantingServiceAccess:
    fn::invoke:
      function: tencentcloud:getCamPolicyGrantingServiceAccess
      arguments:
        roleId: 4.611686018436805e+18
        serviceType: cam
Copy

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>
Copy
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]
Copy
func GetCamPolicyGrantingServiceAccess(ctx *Context, args *GetCamPolicyGrantingServiceAccessArgs, opts ...InvokeOption) (*GetCamPolicyGrantingServiceAccessResult, error)
func GetCamPolicyGrantingServiceAccessOutput(ctx *Context, args *GetCamPolicyGrantingServiceAccessOutputArgs, opts ...InvokeOption) GetCamPolicyGrantingServiceAccessResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetCamPolicyGrantingServiceAccessResult> getCamPolicyGrantingServiceAccess(GetCamPolicyGrantingServiceAccessArgs args, InvokeOptions options)
public static Output<GetCamPolicyGrantingServiceAccessResult> getCamPolicyGrantingServiceAccess(GetCamPolicyGrantingServiceAccessArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getCamPolicyGrantingServiceAccess:getCamPolicyGrantingServiceAccess
  arguments:
    # arguments dictionary
Copy

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

Actions This property is required. List<GetCamPolicyGrantingServiceAccessListAction>
Action list.
Policies This property is required. List<GetCamPolicyGrantingServiceAccessListPolicy>
Policy list.
Services This property is required. List<GetCamPolicyGrantingServiceAccessListService>
Service info.
Actions This property is required. []GetCamPolicyGrantingServiceAccessListAction
Action list.
Policies This property is required. []GetCamPolicyGrantingServiceAccessListPolicy
Policy list.
Services This property is required. []GetCamPolicyGrantingServiceAccessListService
Service info.
actions This property is required. List<GetCamPolicyGrantingServiceAccessListAction>
Action list.
policies This property is required. List<GetCamPolicyGrantingServiceAccessListPolicy>
Policy list.
services This property is required. List<GetCamPolicyGrantingServiceAccessListService>
Service info.
actions This property is required. GetCamPolicyGrantingServiceAccessListAction[]
Action list.
policies This property is required. GetCamPolicyGrantingServiceAccessListPolicy[]
Policy list.
services This property is required. GetCamPolicyGrantingServiceAccessListService[]
Service info.
actions This property is required. List<Property Map>
Action list.
policies This property is required. List<Property Map>
Policy list.
services This property is required. List<Property Map>
Service info.

GetCamPolicyGrantingServiceAccessListAction

Description This property is required. string
Action description.
Name This property is required. string
Action name.
Description This property is required. string
Action description.
Name This property is required. string
Action name.
description This property is required. String
Action description.
name This property is required. String
Action name.
description This property is required. string
Action description.
name This property is required. string
Action name.
description This property is required. str
Action description.
name This property is required. str
Action name.
description This property is required. String
Action description.
name This property is required. String
Action name.

GetCamPolicyGrantingServiceAccessListPolicy

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

GetCamPolicyGrantingServiceAccessListService

ServiceName This property is required. string
Service name.
ServiceType This property is required. string
Service type, this field needs to be passed when viewing the details of the service authorization interface.
ServiceName This property is required. string
Service name.
ServiceType This property is required. string
Service type, this field needs to be passed when viewing the details of the service authorization interface.
serviceName This property is required. String
Service name.
serviceType This property is required. String
Service type, this field needs to be passed when viewing the details of the service authorization interface.
serviceName This property is required. string
Service name.
serviceType This property is required. string
Service type, this field needs to be passed when viewing the details of the service authorization interface.
service_name This property is required. str
Service name.
service_type This property is required. str
Service type, this field needs to be passed when viewing the details of the service authorization interface.
serviceName This property is required. String
Service name.
serviceType This property is required. 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.