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 cloud identity permission sets
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooPermissionSet: volcengine.cloud_identity.PermissionSet[] = [];
for (const range = {value: 0}; range.value < 2; range.value++) {
fooPermissionSet.push(new volcengine.cloud_identity.PermissionSet(`fooPermissionSet-${range.value}`, {
description: "tf",
sessionDuration: 5000,
permissionPolicies: [
{
permissionPolicyType: "System",
permissionPolicyName: "AdministratorAccess",
inlinePolicyDocument: "",
},
{
permissionPolicyType: "System",
permissionPolicyName: "ReadOnlyAccess",
inlinePolicyDocument: "",
},
{
permissionPolicyType: "Inline",
inlinePolicyDocument: "{\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"auto_scaling:DescribeScalingGroups\"],\"Resource\":[\"*\"]}]}",
},
],
}));
}
const fooPermissionSets = volcengine.cloud_identity.getPermissionSetsOutput({
ids: fooPermissionSet.map(__item => __item.id),
});
import pulumi
import pulumi_volcengine as volcengine
foo_permission_set = []
for range in [{"value": i} for i in range(0, 2)]:
foo_permission_set.append(volcengine.cloud_identity.PermissionSet(f"fooPermissionSet-{range['value']}",
description="tf",
session_duration=5000,
permission_policies=[
volcengine.cloud_identity.PermissionSetPermissionPolicyArgs(
permission_policy_type="System",
permission_policy_name="AdministratorAccess",
inline_policy_document="",
),
volcengine.cloud_identity.PermissionSetPermissionPolicyArgs(
permission_policy_type="System",
permission_policy_name="ReadOnlyAccess",
inline_policy_document="",
),
volcengine.cloud_identity.PermissionSetPermissionPolicyArgs(
permission_policy_type="Inline",
inline_policy_document="{\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"auto_scaling:DescribeScalingGroups\"],\"Resource\":[\"*\"]}]}",
),
]))
foo_permission_sets = volcengine.cloud_identity.get_permission_sets_output(ids=[__item.id for __item in foo_permission_set])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cloud_identity"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
var fooPermissionSet []*cloud_identity.PermissionSet
for index := 0; index < 2; index++ {
key0 := index
_ := index
__res, err := cloud_identity.NewPermissionSet(ctx, fmt.Sprintf("fooPermissionSet-%v", key0), &cloud_identity.PermissionSetArgs{
Description: pulumi.String("tf"),
SessionDuration: pulumi.Int(5000),
PermissionPolicies: cloud_identity.PermissionSetPermissionPolicyArray{
&cloud_identity.PermissionSetPermissionPolicyArgs{
PermissionPolicyType: pulumi.String("System"),
PermissionPolicyName: pulumi.String("AdministratorAccess"),
InlinePolicyDocument: pulumi.String(""),
},
&cloud_identity.PermissionSetPermissionPolicyArgs{
PermissionPolicyType: pulumi.String("System"),
PermissionPolicyName: pulumi.String("ReadOnlyAccess"),
InlinePolicyDocument: pulumi.String(""),
},
&cloud_identity.PermissionSetPermissionPolicyArgs{
PermissionPolicyType: pulumi.String("Inline"),
InlinePolicyDocument: pulumi.String("{\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"auto_scaling:DescribeScalingGroups\"],\"Resource\":[\"*\"]}]}"),
},
},
})
if err != nil {
return err
}
fooPermissionSet = append(fooPermissionSet, __res)
}
_ = cloud_identity.GetPermissionSetsOutput(ctx, cloud_identity.GetPermissionSetsOutputArgs{
Ids: %!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ #-functions-volcengine:cloud_identity-getPermissionSets:getPermissionSets.pp:23,9-31),
}, nil);
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooPermissionSet = new List<Volcengine.Cloud_identity.PermissionSet>();
for (var rangeIndex = 0; rangeIndex < 2; rangeIndex++)
{
var range = new { Value = rangeIndex };
fooPermissionSet.Add(new Volcengine.Cloud_identity.PermissionSet($"fooPermissionSet-{range.Value}", new()
{
Description = "tf",
SessionDuration = 5000,
PermissionPolicies = new[]
{
new Volcengine.Cloud_identity.Inputs.PermissionSetPermissionPolicyArgs
{
PermissionPolicyType = "System",
PermissionPolicyName = "AdministratorAccess",
InlinePolicyDocument = "",
},
new Volcengine.Cloud_identity.Inputs.PermissionSetPermissionPolicyArgs
{
PermissionPolicyType = "System",
PermissionPolicyName = "ReadOnlyAccess",
InlinePolicyDocument = "",
},
new Volcengine.Cloud_identity.Inputs.PermissionSetPermissionPolicyArgs
{
PermissionPolicyType = "Inline",
InlinePolicyDocument = "{\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"auto_scaling:DescribeScalingGroups\"],\"Resource\":[\"*\"]}]}",
},
},
}));
}
var fooPermissionSets = Volcengine.Cloud_identity.GetPermissionSets.Invoke(new()
{
Ids = fooPermissionSet.Select(__item => __item.Id).ToList(),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.cloud_identity.PermissionSet;
import com.pulumi.volcengine.cloud_identity.PermissionSetArgs;
import com.pulumi.volcengine.cloud_identity.inputs.PermissionSetPermissionPolicyArgs;
import com.pulumi.volcengine.cloud_identity.Cloud_identityFunctions;
import com.pulumi.volcengine.cloud_identity.inputs.GetPermissionSetsArgs;
import com.pulumi.codegen.internal.KeyedValue;
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) {
for (var i = 0; i < 2; i++) {
new PermissionSet("fooPermissionSet-" + i, PermissionSetArgs.builder()
.description("tf")
.sessionDuration(5000)
.permissionPolicies(
PermissionSetPermissionPolicyArgs.builder()
.permissionPolicyType("System")
.permissionPolicyName("AdministratorAccess")
.inlinePolicyDocument("")
.build(),
PermissionSetPermissionPolicyArgs.builder()
.permissionPolicyType("System")
.permissionPolicyName("ReadOnlyAccess")
.inlinePolicyDocument("")
.build(),
PermissionSetPermissionPolicyArgs.builder()
.permissionPolicyType("Inline")
.inlinePolicyDocument("{\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"auto_scaling:DescribeScalingGroups\"],\"Resource\":[\"*\"]}]}")
.build())
.build());
}
final var fooPermissionSets = Cloud_identityFunctions.getPermissionSets(GetPermissionSetsArgs.builder()
.ids(fooPermissionSet.stream().map(element -> element.id()).collect(toList()))
.build());
}
}
Example coming soon!
Using getPermissionSets
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 getPermissionSets(args: GetPermissionSetsArgs, opts?: InvokeOptions): Promise<GetPermissionSetsResult>
function getPermissionSetsOutput(args: GetPermissionSetsOutputArgs, opts?: InvokeOptions): Output<GetPermissionSetsResult>def get_permission_sets(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPermissionSetsResult
def get_permission_sets_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPermissionSetsResult]func GetPermissionSets(ctx *Context, args *GetPermissionSetsArgs, opts ...InvokeOption) (*GetPermissionSetsResult, error)
func GetPermissionSetsOutput(ctx *Context, args *GetPermissionSetsOutputArgs, opts ...InvokeOption) GetPermissionSetsResultOutput> Note: This function is named GetPermissionSets in the Go SDK.
public static class GetPermissionSets
{
public static Task<GetPermissionSetsResult> InvokeAsync(GetPermissionSetsArgs args, InvokeOptions? opts = null)
public static Output<GetPermissionSetsResult> Invoke(GetPermissionSetsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPermissionSetsResult> getPermissionSets(GetPermissionSetsArgs args, InvokeOptions options)
public static Output<GetPermissionSetsResult> getPermissionSets(GetPermissionSetsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:cloud_identity/getPermissionSets:getPermissionSets
arguments:
# arguments dictionaryThe following arguments are supported:
- Ids List<string>
- A list of cloud identity permission set IDs.
- Name
Regex string - A Name Regex of cloud identity permission set.
- Output
File string - File name where to save data source results.
- Ids []string
- A list of cloud identity permission set IDs.
- Name
Regex string - A Name Regex of cloud identity permission set.
- Output
File string - File name where to save data source results.
- ids List<String>
- A list of cloud identity permission set IDs.
- name
Regex String - A Name Regex of cloud identity permission set.
- output
File String - File name where to save data source results.
- ids string[]
- A list of cloud identity permission set IDs.
- name
Regex string - A Name Regex of cloud identity permission set.
- output
File string - File name where to save data source results.
- ids Sequence[str]
- A list of cloud identity permission set IDs.
- name_
regex str - A Name Regex of cloud identity permission set.
- output_
file str - File name where to save data source results.
- ids List<String>
- A list of cloud identity permission set IDs.
- name
Regex String - A Name Regex of cloud identity permission set.
- output
File String - File name where to save data source results.
getPermissionSets Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Permission
Sets List<GetPermission Sets Permission Set> - The collection of query.
- Total
Count int - The total count of query.
- Ids List<string>
- Name
Regex string - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Permission
Sets []GetPermission Sets Permission Set - The collection of query.
- Total
Count int - The total count of query.
- Ids []string
- Name
Regex string - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- permission
Sets List<GetPermission Sets Permission Set> - The collection of query.
- total
Count Integer - The total count of query.
- ids List<String>
- name
Regex String - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- permission
Sets GetPermission Sets Permission Set[] - The collection of query.
- total
Count number - The total count of query.
- ids string[]
- name
Regex string - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- permission_
sets Sequence[GetPermission Sets Permission Set] - The collection of query.
- total_
count int - The total count of query.
- ids Sequence[str]
- name_
regex str - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- permission
Sets List<Property Map> - The collection of query.
- total
Count Number - The total count of query.
- ids List<String>
- name
Regex String - output
File String
Supporting Types
GetPermissionSetsPermissionSet
- Created
Time string - The create time of the cloud identity permission set.
- Description string
- The description of the cloud identity permission set.
- Id string
- The id of the cloud identity permission set.
- Name string
- The name of the cloud identity permission set.
- Permission
Policies List<GetPermission Sets Permission Set Permission Policy> - The policies of the cloud identity permission set.
- Permission
Set stringId - The id of the cloud identity permission set.
- Relay
State string - The relay state of the cloud identity permission set.
- Session
Duration int - The session duration of the cloud identity permission set.
- Updated
Time string - The updated time of the cloud identity permission set.
- Created
Time string - The create time of the cloud identity permission set.
- Description string
- The description of the cloud identity permission set.
- Id string
- The id of the cloud identity permission set.
- Name string
- The name of the cloud identity permission set.
- Permission
Policies []GetPermission Sets Permission Set Permission Policy - The policies of the cloud identity permission set.
- Permission
Set stringId - The id of the cloud identity permission set.
- Relay
State string - The relay state of the cloud identity permission set.
- Session
Duration int - The session duration of the cloud identity permission set.
- Updated
Time string - The updated time of the cloud identity permission set.
- created
Time String - The create time of the cloud identity permission set.
- description String
- The description of the cloud identity permission set.
- id String
- The id of the cloud identity permission set.
- name String
- The name of the cloud identity permission set.
- permission
Policies List<GetPermission Sets Permission Set Permission Policy> - The policies of the cloud identity permission set.
- permission
Set StringId - The id of the cloud identity permission set.
- relay
State String - The relay state of the cloud identity permission set.
- session
Duration Integer - The session duration of the cloud identity permission set.
- updated
Time String - The updated time of the cloud identity permission set.
- created
Time string - The create time of the cloud identity permission set.
- description string
- The description of the cloud identity permission set.
- id string
- The id of the cloud identity permission set.
- name string
- The name of the cloud identity permission set.
- permission
Policies GetPermission Sets Permission Set Permission Policy[] - The policies of the cloud identity permission set.
- permission
Set stringId - The id of the cloud identity permission set.
- relay
State string - The relay state of the cloud identity permission set.
- session
Duration number - The session duration of the cloud identity permission set.
- updated
Time string - The updated time of the cloud identity permission set.
- created_
time str - The create time of the cloud identity permission set.
- description str
- The description of the cloud identity permission set.
- id str
- The id of the cloud identity permission set.
- name str
- The name of the cloud identity permission set.
- permission_
policies Sequence[GetPermission Sets Permission Set Permission Policy] - The policies of the cloud identity permission set.
- permission_
set_ strid - The id of the cloud identity permission set.
- relay_
state str - The relay state of the cloud identity permission set.
- session_
duration int - The session duration of the cloud identity permission set.
- updated_
time str - The updated time of the cloud identity permission set.
- created
Time String - The create time of the cloud identity permission set.
- description String
- The description of the cloud identity permission set.
- id String
- The id of the cloud identity permission set.
- name String
- The name of the cloud identity permission set.
- permission
Policies List<Property Map> - The policies of the cloud identity permission set.
- permission
Set StringId - The id of the cloud identity permission set.
- relay
State String - The relay state of the cloud identity permission set.
- session
Duration Number - The session duration of the cloud identity permission set.
- updated
Time String - The updated time of the cloud identity permission set.
GetPermissionSetsPermissionSetPermissionPolicy
- Create
Time string - The create time of the cloud identity permission set policy.
- Permission
Policy stringDocument - The document of the cloud identity permission set policy.
- Permission
Policy stringName - The name of the cloud identity permission set policy.
- Permission
Policy stringType - The type of the cloud identity permission set policy.
- Create
Time string - The create time of the cloud identity permission set policy.
- Permission
Policy stringDocument - The document of the cloud identity permission set policy.
- Permission
Policy stringName - The name of the cloud identity permission set policy.
- Permission
Policy stringType - The type of the cloud identity permission set policy.
- create
Time String - The create time of the cloud identity permission set policy.
- permission
Policy StringDocument - The document of the cloud identity permission set policy.
- permission
Policy StringName - The name of the cloud identity permission set policy.
- permission
Policy StringType - The type of the cloud identity permission set policy.
- create
Time string - The create time of the cloud identity permission set policy.
- permission
Policy stringDocument - The document of the cloud identity permission set policy.
- permission
Policy stringName - The name of the cloud identity permission set policy.
- permission
Policy stringType - The type of the cloud identity permission set policy.
- create_
time str - The create time of the cloud identity permission set policy.
- permission_
policy_ strdocument - The document of the cloud identity permission set policy.
- permission_
policy_ strname - The name of the cloud identity permission set policy.
- permission_
policy_ strtype - The type of the cloud identity permission set policy.
- create
Time String - The create time of the cloud identity permission set policy.
- permission
Policy StringDocument - The document of the cloud identity permission set policy.
- permission
Policy StringName - The name of the cloud identity permission set policy.
- permission
Policy StringType - The type of the cloud identity permission set policy.
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
