Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 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 dictionaryThe following arguments are supported:
- Cluster
Ids List<string> - A list of Cluster IDs.
- Grantee
Ids List<int> - A list of Grantee IDs.
- Grantee
Type 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.
- Output
File string - File name where to save data source results.
- Role
Names List<string> - A list of RBAC Role Names.
- Status string
- The status of RBAC Permission.
- Cluster
Ids []string - A list of Cluster IDs.
- Grantee
Ids []int - A list of Grantee IDs.
- Grantee
Type string - The type of Grantee. Valid values:
User,Role. - Ids []string
- A list of RBAC Permission IDs.
- Namespaces []string
- A list of Namespaces.
- Output
File string - File name where to save data source results.
- Role
Names []string - A list of RBAC Role Names.
- Status string
- The status of RBAC Permission.
- cluster
Ids List<String> - A list of Cluster IDs.
- grantee
Ids List<Integer> - A list of Grantee IDs.
- grantee
Type 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.
- output
File String - File name where to save data source results.
- role
Names List<String> - A list of RBAC Role Names.
- status String
- The status of RBAC Permission.
- cluster
Ids string[] - A list of Cluster IDs.
- grantee
Ids number[] - A list of Grantee IDs.
- grantee
Type string - The type of Grantee. Valid values:
User,Role. - ids string[]
- A list of RBAC Permission IDs.
- namespaces string[]
- A list of Namespaces.
- output
File string - File name where to save data source results.
- role
Names 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.
- cluster
Ids List<String> - A list of Cluster IDs.
- grantee
Ids List<Number> - A list of Grantee IDs.
- grantee
Type 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.
- output
File String - File name where to save data source results.
- role
Names List<String> - A list of RBAC Role Names.
- status String
- The status of RBAC Permission.
getPermissions Result
The following output properties are available:
- Access
Policies List<GetPermissions Access Policy> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Cluster
Ids List<string> - Grantee
Ids List<int> - Grantee
Type string - The type of the Grantee.
- Ids List<string>
- Namespaces List<string>
- Output
File string - Role
Names List<string> - Status string
- The status of the RBAC Permission.
- Access
Policies []GetPermissions Access Policy - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Cluster
Ids []string - Grantee
Ids []int - Grantee
Type string - The type of the Grantee.
- Ids []string
- Namespaces []string
- Output
File string - Role
Names []string - Status string
- The status of the RBAC Permission.
- access
Policies List<GetPermissions Access Policy> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- cluster
Ids List<String> - grantee
Ids List<Integer> - grantee
Type String - The type of the Grantee.
- ids List<String>
- namespaces List<String>
- output
File String - role
Names List<String> - status String
- The status of the RBAC Permission.
- access
Policies GetPermissions Access Policy[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- cluster
Ids string[] - grantee
Ids number[] - grantee
Type string - The type of the Grantee.
- ids string[]
- namespaces string[]
- output
File string - role
Names string[] - status string
- The status of the RBAC Permission.
- access_
policies Sequence[GetPermissions Access Policy] - 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.
- access
Policies List<Property Map> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- cluster
Ids List<String> - grantee
Ids List<Number> - grantee
Type String - The type of the Grantee.
- ids List<String>
- namespaces List<String>
- output
File String - role
Names List<String> - status String
- The status of the RBAC Permission.
Supporting Types
GetPermissionsAccessPolicy
- string
- The authorized time of the RBAC Permission.
- int
- The ID of the Authorizer.
- string
- The name of the Authorizer.
- string
- The type of the Authorizer.
- Cluster
Id string - The ID of the Cluster.
- Granted
At string - The granted time of the RBAC Permission.
- Grantee
Id int - The ID of the Grantee.
- Grantee
Type string - The type of Grantee. Valid values:
User,Role. - Id string
- The id of the RBAC Permission.
- Is
Custom boolRole - Whether the RBAC Role is custom role.
- Kube
Role stringBinding Name - The name of the Kube Role Binding.
- Message string
- The message of the RBAC Permission.
- Namespace string
- The Namespace of the RBAC Permission.
- Revoked
At string - The revoked time of the RBAC Permission.
- Role
Name string - The name of the RBAC Role.
- Status string
- The status of RBAC Permission.
- string
- The authorized time of the RBAC Permission.
- int
- The ID of the Authorizer.
- string
- The name of the Authorizer.
- string
- The type of the Authorizer.
- Cluster
Id string - The ID of the Cluster.
- Granted
At string - The granted time of the RBAC Permission.
- Grantee
Id int - The ID of the Grantee.
- Grantee
Type string - The type of Grantee. Valid values:
User,Role. - Id string
- The id of the RBAC Permission.
- Is
Custom boolRole - Whether the RBAC Role is custom role.
- Kube
Role stringBinding Name - The name of the Kube Role Binding.
- Message string
- The message of the RBAC Permission.
- Namespace string
- The Namespace of the RBAC Permission.
- Revoked
At string - The revoked time of the RBAC Permission.
- Role
Name string - The name of the RBAC Role.
- Status string
- The status of RBAC Permission.
- String
- The authorized time of the RBAC Permission.
- Integer
- The ID of the Authorizer.
- String
- The name of the Authorizer.
- String
- The type of the Authorizer.
- cluster
Id String - The ID of the Cluster.
- granted
At String - The granted time of the RBAC Permission.
- grantee
Id Integer - The ID of the Grantee.
- grantee
Type String - The type of Grantee. Valid values:
User,Role. - id String
- The id of the RBAC Permission.
- is
Custom BooleanRole - Whether the RBAC Role is custom role.
- kube
Role StringBinding Name - The name of the Kube Role Binding.
- message String
- The message of the RBAC Permission.
- namespace String
- The Namespace of the RBAC Permission.
- revoked
At String - The revoked time of the RBAC Permission.
- role
Name String - The name of the RBAC Role.
- status String
- The status of RBAC Permission.
- string
- The authorized time of the RBAC Permission.
- number
- The ID of the Authorizer.
- string
- The name of the Authorizer.
- string
- The type of the Authorizer.
- cluster
Id string - The ID of the Cluster.
- granted
At string - The granted time of the RBAC Permission.
- grantee
Id number - The ID of the Grantee.
- grantee
Type string - The type of Grantee. Valid values:
User,Role. - id string
- The id of the RBAC Permission.
- is
Custom booleanRole - Whether the RBAC Role is custom role.
- kube
Role stringBinding Name - The name of the Kube Role Binding.
- message string
- The message of the RBAC Permission.
- namespace string
- The Namespace of the RBAC Permission.
- revoked
At string - The revoked time of the RBAC Permission.
- role
Name string - The name of the RBAC Role.
- status string
- The status of RBAC Permission.
- str
- The authorized time of the RBAC Permission.
- int
- The ID of the Authorizer.
- str
- The name of the Authorizer.
- 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_ boolrole - Whether the RBAC Role is custom role.
- kube_
role_ strbinding_ name - 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.
- String
- The authorized time of the RBAC Permission.
- Number
- The ID of the Authorizer.
- String
- The name of the Authorizer.
- String
- The type of the Authorizer.
- cluster
Id String - The ID of the Cluster.
- granted
At String - The granted time of the RBAC Permission.
- grantee
Id Number - The ID of the Grantee.
- grantee
Type String - The type of Grantee. Valid values:
User,Role. - id String
- The id of the RBAC Permission.
- is
Custom BooleanRole - Whether the RBAC Role is custom role.
- kube
Role StringBinding Name - The name of the Kube Role Binding.
- message String
- The message of the RBAC Permission.
- namespace String
- The Namespace of the RBAC Permission.
- revoked
At String - The revoked time of the RBAC Permission.
- role
Name 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
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
