1. Packages
  2. Volcengine
  3. API Docs
  4. vke
  5. getPermissions
Volcengine v0.0.32 published on Sunday, Jun 8, 2025 by Volcengine

volcengine.vke.getPermissions

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.32 published on Sunday, Jun 8, 2025 by Volcengine

    Use this data source to query detailed information of vke permissions

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.vke.getPermissions({
        granteeType: "User",
        ids: ["apd10o9jhqqno0ba25****"],
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.vke.get_permissions(grantee_type="User",
        ids=["apd10o9jhqqno0ba25****"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vke"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vke.GetPermissions(ctx, &vke.GetPermissionsArgs{
    			GranteeType: pulumi.StringRef("User"),
    			Ids: []string{
    				"apd10o9jhqqno0ba25****",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Vke.GetPermissions.Invoke(new()
        {
            GranteeType = "User",
            Ids = new[]
            {
                "apd10o9jhqqno0ba25****",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.vke.VkeFunctions;
    import com.pulumi.volcengine.vke.inputs.GetPermissionsArgs;
    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 foo = VkeFunctions.getPermissions(GetPermissionsArgs.builder()
                .granteeType("User")
                .ids("apd10o9jhqqno0ba25****")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:vke:getPermissions
          Arguments:
            granteeType: User
            ids:
              - apd10o9jhqqno0ba25****
    

    Using getPermissions

    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 getPermissions(args: GetPermissionsArgs, opts?: InvokeOptions): Promise<GetPermissionsResult>
    function getPermissionsOutput(args: GetPermissionsOutputArgs, opts?: InvokeOptions): Output<GetPermissionsResult>
    def get_permissions(cluster_ids: Optional[Sequence[str]] = None,
                        grantee_ids: Optional[Sequence[int]] = None,
                        grantee_type: Optional[str] = None,
                        ids: Optional[Sequence[str]] = None,
                        namespaces: Optional[Sequence[str]] = None,
                        output_file: Optional[str] = None,
                        role_names: Optional[Sequence[str]] = None,
                        status: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetPermissionsResult
    def get_permissions_output(cluster_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                        grantee_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
                        grantee_type: Optional[pulumi.Input[str]] = None,
                        ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                        namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                        output_file: Optional[pulumi.Input[str]] = None,
                        role_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                        status: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetPermissionsResult]
    func GetPermissions(ctx *Context, args *GetPermissionsArgs, opts ...InvokeOption) (*GetPermissionsResult, error)
    func GetPermissionsOutput(ctx *Context, args *GetPermissionsOutputArgs, opts ...InvokeOption) GetPermissionsResultOutput

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

    public static class GetPermissions 
    {
        public static Task<GetPermissionsResult> InvokeAsync(GetPermissionsArgs args, InvokeOptions? opts = null)
        public static Output<GetPermissionsResult> Invoke(GetPermissionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPermissionsResult> getPermissions(GetPermissionsArgs args, InvokeOptions options)
    public static Output<GetPermissionsResult> getPermissions(GetPermissionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:vke/getPermissions:getPermissions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterIds List<string>
    A list of Cluster IDs.
    GranteeIds List<int>
    A list of Grantee IDs.
    GranteeType string
    The type of Grantee. Valid values: User, Role.
    Ids List<string>
    A list of RBAC Permission IDs.
    Namespaces List<string>
    A list of Namespaces.
    OutputFile string
    File name where to save data source results.
    RoleNames List<string>
    A list of RBAC Role Names.
    Status string
    The status of RBAC Permission.
    ClusterIds []string
    A list of Cluster IDs.
    GranteeIds []int
    A list of Grantee IDs.
    GranteeType string
    The type of Grantee. Valid values: User, Role.
    Ids []string
    A list of RBAC Permission IDs.
    Namespaces []string
    A list of Namespaces.
    OutputFile string
    File name where to save data source results.
    RoleNames []string
    A list of RBAC Role Names.
    Status string
    The status of RBAC Permission.
    clusterIds List<String>
    A list of Cluster IDs.
    granteeIds List<Integer>
    A list of Grantee IDs.
    granteeType String
    The type of Grantee. Valid values: User, Role.
    ids List<String>
    A list of RBAC Permission IDs.
    namespaces List<String>
    A list of Namespaces.
    outputFile String
    File name where to save data source results.
    roleNames List<String>
    A list of RBAC Role Names.
    status String
    The status of RBAC Permission.
    clusterIds string[]
    A list of Cluster IDs.
    granteeIds number[]
    A list of Grantee IDs.
    granteeType string
    The type of Grantee. Valid values: User, Role.
    ids string[]
    A list of RBAC Permission IDs.
    namespaces string[]
    A list of Namespaces.
    outputFile string
    File name where to save data source results.
    roleNames string[]
    A list of RBAC Role Names.
    status string
    The status of RBAC Permission.
    cluster_ids Sequence[str]
    A list of Cluster IDs.
    grantee_ids Sequence[int]
    A list of Grantee IDs.
    grantee_type str
    The type of Grantee. Valid values: User, Role.
    ids Sequence[str]
    A list of RBAC Permission IDs.
    namespaces Sequence[str]
    A list of Namespaces.
    output_file str
    File name where to save data source results.
    role_names Sequence[str]
    A list of RBAC Role Names.
    status str
    The status of RBAC Permission.
    clusterIds List<String>
    A list of Cluster IDs.
    granteeIds List<Number>
    A list of Grantee IDs.
    granteeType String
    The type of Grantee. Valid values: User, Role.
    ids List<String>
    A list of RBAC Permission IDs.
    namespaces List<String>
    A list of Namespaces.
    outputFile String
    File name where to save data source results.
    roleNames List<String>
    A list of RBAC Role Names.
    status String
    The status of RBAC Permission.

    getPermissions Result

    The following output properties are available:

    AccessPolicies List<GetPermissionsAccessPolicy>
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    ClusterIds List<string>
    GranteeIds List<int>
    GranteeType string
    The type of the Grantee.
    Ids List<string>
    Namespaces List<string>
    OutputFile string
    RoleNames List<string>
    Status string
    The status of the RBAC Permission.
    AccessPolicies []GetPermissionsAccessPolicy
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    ClusterIds []string
    GranteeIds []int
    GranteeType string
    The type of the Grantee.
    Ids []string
    Namespaces []string
    OutputFile string
    RoleNames []string
    Status string
    The status of the RBAC Permission.
    accessPolicies List<GetPermissionsAccessPolicy>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of query.
    clusterIds List<String>
    granteeIds List<Integer>
    granteeType String
    The type of the Grantee.
    ids List<String>
    namespaces List<String>
    outputFile String
    roleNames List<String>
    status String
    The status of the RBAC Permission.
    accessPolicies GetPermissionsAccessPolicy[]
    The collection of query.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of query.
    clusterIds string[]
    granteeIds number[]
    granteeType string
    The type of the Grantee.
    ids string[]
    namespaces string[]
    outputFile string
    roleNames string[]
    status string
    The status of the RBAC Permission.
    access_policies Sequence[GetPermissionsAccessPolicy]
    The collection of query.
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of query.
    cluster_ids Sequence[str]
    grantee_ids Sequence[int]
    grantee_type str
    The type of the Grantee.
    ids Sequence[str]
    namespaces Sequence[str]
    output_file str
    role_names Sequence[str]
    status str
    The status of the RBAC Permission.
    accessPolicies List<Property Map>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of query.
    clusterIds List<String>
    granteeIds List<Number>
    granteeType String
    The type of the Grantee.
    ids List<String>
    namespaces List<String>
    outputFile String
    roleNames List<String>
    status String
    The status of the RBAC Permission.

    Supporting Types

    GetPermissionsAccessPolicy

    AuthorizedAt string
    The authorized time of the RBAC Permission.
    AuthorizerId int
    The ID of the Authorizer.
    AuthorizerName string
    The name of the Authorizer.
    AuthorizerType string
    The type of the Authorizer.
    ClusterId string
    The ID of the Cluster.
    GrantedAt string
    The granted time of the RBAC Permission.
    GranteeId int
    The ID of the Grantee.
    GranteeType string
    The type of Grantee. Valid values: User, Role.
    Id string
    The id of the RBAC Permission.
    IsCustomRole bool
    Whether the RBAC Role is custom role.
    KubeRoleBindingName string
    The name of the Kube Role Binding.
    Message string
    The message of the RBAC Permission.
    Namespace string
    The Namespace of the RBAC Permission.
    RevokedAt string
    The revoked time of the RBAC Permission.
    RoleName string
    The name of the RBAC Role.
    Status string
    The status of RBAC Permission.
    AuthorizedAt string
    The authorized time of the RBAC Permission.
    AuthorizerId int
    The ID of the Authorizer.
    AuthorizerName string
    The name of the Authorizer.
    AuthorizerType string
    The type of the Authorizer.
    ClusterId string
    The ID of the Cluster.
    GrantedAt string
    The granted time of the RBAC Permission.
    GranteeId int
    The ID of the Grantee.
    GranteeType string
    The type of Grantee. Valid values: User, Role.
    Id string
    The id of the RBAC Permission.
    IsCustomRole bool
    Whether the RBAC Role is custom role.
    KubeRoleBindingName string
    The name of the Kube Role Binding.
    Message string
    The message of the RBAC Permission.
    Namespace string
    The Namespace of the RBAC Permission.
    RevokedAt string
    The revoked time of the RBAC Permission.
    RoleName string
    The name of the RBAC Role.
    Status string
    The status of RBAC Permission.
    authorizedAt String
    The authorized time of the RBAC Permission.
    authorizerId Integer
    The ID of the Authorizer.
    authorizerName String
    The name of the Authorizer.
    authorizerType String
    The type of the Authorizer.
    clusterId String
    The ID of the Cluster.
    grantedAt String
    The granted time of the RBAC Permission.
    granteeId Integer
    The ID of the Grantee.
    granteeType String
    The type of Grantee. Valid values: User, Role.
    id String
    The id of the RBAC Permission.
    isCustomRole Boolean
    Whether the RBAC Role is custom role.
    kubeRoleBindingName String
    The name of the Kube Role Binding.
    message String
    The message of the RBAC Permission.
    namespace String
    The Namespace of the RBAC Permission.
    revokedAt String
    The revoked time of the RBAC Permission.
    roleName String
    The name of the RBAC Role.
    status String
    The status of RBAC Permission.
    authorizedAt string
    The authorized time of the RBAC Permission.
    authorizerId number
    The ID of the Authorizer.
    authorizerName string
    The name of the Authorizer.
    authorizerType string
    The type of the Authorizer.
    clusterId string
    The ID of the Cluster.
    grantedAt string
    The granted time of the RBAC Permission.
    granteeId number
    The ID of the Grantee.
    granteeType string
    The type of Grantee. Valid values: User, Role.
    id string
    The id of the RBAC Permission.
    isCustomRole boolean
    Whether the RBAC Role is custom role.
    kubeRoleBindingName string
    The name of the Kube Role Binding.
    message string
    The message of the RBAC Permission.
    namespace string
    The Namespace of the RBAC Permission.
    revokedAt string
    The revoked time of the RBAC Permission.
    roleName string
    The name of the RBAC Role.
    status string
    The status of RBAC Permission.
    authorized_at str
    The authorized time of the RBAC Permission.
    authorizer_id int
    The ID of the Authorizer.
    authorizer_name str
    The name of the Authorizer.
    authorizer_type str
    The type of the Authorizer.
    cluster_id str
    The ID of the Cluster.
    granted_at str
    The granted time of the RBAC Permission.
    grantee_id int
    The ID of the Grantee.
    grantee_type str
    The type of Grantee. Valid values: User, Role.
    id str
    The id of the RBAC Permission.
    is_custom_role bool
    Whether the RBAC Role is custom role.
    kube_role_binding_name str
    The name of the Kube Role Binding.
    message str
    The message of the RBAC Permission.
    namespace str
    The Namespace of the RBAC Permission.
    revoked_at str
    The revoked time of the RBAC Permission.
    role_name str
    The name of the RBAC Role.
    status str
    The status of RBAC Permission.
    authorizedAt String
    The authorized time of the RBAC Permission.
    authorizerId Number
    The ID of the Authorizer.
    authorizerName String
    The name of the Authorizer.
    authorizerType String
    The type of the Authorizer.
    clusterId String
    The ID of the Cluster.
    grantedAt String
    The granted time of the RBAC Permission.
    granteeId Number
    The ID of the Grantee.
    granteeType String
    The type of Grantee. Valid values: User, Role.
    id String
    The id of the RBAC Permission.
    isCustomRole Boolean
    Whether the RBAC Role is custom role.
    kubeRoleBindingName String
    The name of the Kube Role Binding.
    message String
    The message of the RBAC Permission.
    namespace String
    The Namespace of the RBAC Permission.
    revokedAt String
    The revoked time of the RBAC Permission.
    roleName String
    The name of the RBAC Role.
    status String
    The status of RBAC Permission.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.32 published on Sunday, Jun 8, 2025 by Volcengine