published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
After you create a Cloud Identity Center user, you need to grant the user login access to each account. When users require access to Volcano Engine cloud resources with permissions that share abstractable characteristics, such as network operations permissions or security management permissions, you can predefine permission sets in the Cloud Identity Center as templates. You can achieve centralized authorization based on these permission sets. The Cloud Identity Center will synchronize and distribute permission sets to each account, reducing enterprise permission management costs.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const cloudIdentityPermissionSetAssignmentDemo = new volcenginecc.cloudidentity.PermissionSetAssignment("CloudIdentityPermissionSetAssignmentDemo", {
permissionSetId: "897569*****",
principalId: "899471*****",
principalType: "User",
targetId: "21036*****",
});
import pulumi
import pulumi_volcenginecc as volcenginecc
cloud_identity_permission_set_assignment_demo = volcenginecc.cloudidentity.PermissionSetAssignment("CloudIdentityPermissionSetAssignmentDemo",
permission_set_id="897569*****",
principal_id="899471*****",
principal_type="User",
target_id="21036*****")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/cloudidentity"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudidentity.NewPermissionSetAssignment(ctx, "CloudIdentityPermissionSetAssignmentDemo", &cloudidentity.PermissionSetAssignmentArgs{
PermissionSetId: pulumi.String("897569*****"),
PrincipalId: pulumi.String("899471*****"),
PrincipalType: pulumi.String("User"),
TargetId: pulumi.String("21036*****"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var cloudIdentityPermissionSetAssignmentDemo = new Volcenginecc.Cloudidentity.PermissionSetAssignment("CloudIdentityPermissionSetAssignmentDemo", new()
{
PermissionSetId = "897569*****",
PrincipalId = "899471*****",
PrincipalType = "User",
TargetId = "21036*****",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.cloudidentity.PermissionSetAssignment;
import com.volcengine.volcenginecc.cloudidentity.PermissionSetAssignmentArgs;
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) {
var cloudIdentityPermissionSetAssignmentDemo = new PermissionSetAssignment("cloudIdentityPermissionSetAssignmentDemo", PermissionSetAssignmentArgs.builder()
.permissionSetId("897569*****")
.principalId("899471*****")
.principalType("User")
.targetId("21036*****")
.build());
}
}
resources:
cloudIdentityPermissionSetAssignmentDemo:
type: volcenginecc:cloudidentity:PermissionSetAssignment
name: CloudIdentityPermissionSetAssignmentDemo
properties:
permissionSetId: 897569*****
principalId: 899471*****
principalType: User
targetId: 21036*****
Create PermissionSetAssignment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PermissionSetAssignment(name: string, args: PermissionSetAssignmentArgs, opts?: CustomResourceOptions);@overload
def PermissionSetAssignment(resource_name: str,
args: PermissionSetAssignmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PermissionSetAssignment(resource_name: str,
opts: Optional[ResourceOptions] = None,
permission_set_id: Optional[str] = None,
principal_id: Optional[str] = None,
principal_type: Optional[str] = None,
target_id: Optional[str] = None)func NewPermissionSetAssignment(ctx *Context, name string, args PermissionSetAssignmentArgs, opts ...ResourceOption) (*PermissionSetAssignment, error)public PermissionSetAssignment(string name, PermissionSetAssignmentArgs args, CustomResourceOptions? opts = null)
public PermissionSetAssignment(String name, PermissionSetAssignmentArgs args)
public PermissionSetAssignment(String name, PermissionSetAssignmentArgs args, CustomResourceOptions options)
type: volcenginecc:cloudidentity:PermissionSetAssignment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PermissionSetAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PermissionSetAssignmentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PermissionSetAssignmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PermissionSetAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PermissionSetAssignmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var permissionSetAssignmentResource = new Volcenginecc.Cloudidentity.PermissionSetAssignment("permissionSetAssignmentResource", new()
{
PermissionSetId = "string",
PrincipalId = "string",
PrincipalType = "string",
TargetId = "string",
});
example, err := cloudidentity.NewPermissionSetAssignment(ctx, "permissionSetAssignmentResource", &cloudidentity.PermissionSetAssignmentArgs{
PermissionSetId: pulumi.String("string"),
PrincipalId: pulumi.String("string"),
PrincipalType: pulumi.String("string"),
TargetId: pulumi.String("string"),
})
var permissionSetAssignmentResource = new PermissionSetAssignment("permissionSetAssignmentResource", PermissionSetAssignmentArgs.builder()
.permissionSetId("string")
.principalId("string")
.principalType("string")
.targetId("string")
.build());
permission_set_assignment_resource = volcenginecc.cloudidentity.PermissionSetAssignment("permissionSetAssignmentResource",
permission_set_id="string",
principal_id="string",
principal_type="string",
target_id="string")
const permissionSetAssignmentResource = new volcenginecc.cloudidentity.PermissionSetAssignment("permissionSetAssignmentResource", {
permissionSetId: "string",
principalId: "string",
principalType: "string",
targetId: "string",
});
type: volcenginecc:cloudidentity:PermissionSetAssignment
properties:
permissionSetId: string
principalId: string
principalType: string
targetId: string
PermissionSetAssignment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PermissionSetAssignment resource accepts the following input properties:
- Permission
Set stringId - Permission set ID
- Principal
Id string - Cloud Identity Center object ID
- Principal
Type string - Cloud Identity Center object type: User or Group
- Target
Id string - Authorized account ID
- Permission
Set stringId - Permission set ID
- Principal
Id string - Cloud Identity Center object ID
- Principal
Type string - Cloud Identity Center object type: User or Group
- Target
Id string - Authorized account ID
- permission
Set StringId - Permission set ID
- principal
Id String - Cloud Identity Center object ID
- principal
Type String - Cloud Identity Center object type: User or Group
- target
Id String - Authorized account ID
- permission
Set stringId - Permission set ID
- principal
Id string - Cloud Identity Center object ID
- principal
Type string - Cloud Identity Center object type: User or Group
- target
Id string - Authorized account ID
- permission_
set_ strid - Permission set ID
- principal_
id str - Cloud Identity Center object ID
- principal_
type str - Cloud Identity Center object type: User or Group
- target_
id str - Authorized account ID
- permission
Set StringId - Permission set ID
- principal
Id String - Cloud Identity Center object ID
- principal
Type String - Cloud Identity Center object type: User or Group
- target
Id String - Authorized account ID
Outputs
All input properties are implicitly available as output properties. Additionally, the PermissionSetAssignment resource produces the following output properties:
- Created
Time string - Authorization creation time
- Id string
- The provider-assigned unique ID for this managed resource.
- Permission
Set stringName - Permission set name
- Principal
Name string - Cloud Identity Center object name
- Target
Name string - Authorized account name
- Created
Time string - Authorization creation time
- Id string
- The provider-assigned unique ID for this managed resource.
- Permission
Set stringName - Permission set name
- Principal
Name string - Cloud Identity Center object name
- Target
Name string - Authorized account name
- created
Time String - Authorization creation time
- id String
- The provider-assigned unique ID for this managed resource.
- permission
Set StringName - Permission set name
- principal
Name String - Cloud Identity Center object name
- target
Name String - Authorized account name
- created
Time string - Authorization creation time
- id string
- The provider-assigned unique ID for this managed resource.
- permission
Set stringName - Permission set name
- principal
Name string - Cloud Identity Center object name
- target
Name string - Authorized account name
- created_
time str - Authorization creation time
- id str
- The provider-assigned unique ID for this managed resource.
- permission_
set_ strname - Permission set name
- principal_
name str - Cloud Identity Center object name
- target_
name str - Authorized account name
- created
Time String - Authorization creation time
- id String
- The provider-assigned unique ID for this managed resource.
- permission
Set StringName - Permission set name
- principal
Name String - Cloud Identity Center object name
- target
Name String - Authorized account name
Look up Existing PermissionSetAssignment Resource
Get an existing PermissionSetAssignment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PermissionSetAssignmentState, opts?: CustomResourceOptions): PermissionSetAssignment@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_time: Optional[str] = None,
permission_set_id: Optional[str] = None,
permission_set_name: Optional[str] = None,
principal_id: Optional[str] = None,
principal_name: Optional[str] = None,
principal_type: Optional[str] = None,
target_id: Optional[str] = None,
target_name: Optional[str] = None) -> PermissionSetAssignmentfunc GetPermissionSetAssignment(ctx *Context, name string, id IDInput, state *PermissionSetAssignmentState, opts ...ResourceOption) (*PermissionSetAssignment, error)public static PermissionSetAssignment Get(string name, Input<string> id, PermissionSetAssignmentState? state, CustomResourceOptions? opts = null)public static PermissionSetAssignment get(String name, Output<String> id, PermissionSetAssignmentState state, CustomResourceOptions options)resources: _: type: volcenginecc:cloudidentity:PermissionSetAssignment get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Created
Time string - Authorization creation time
- Permission
Set stringId - Permission set ID
- Permission
Set stringName - Permission set name
- Principal
Id string - Cloud Identity Center object ID
- Principal
Name string - Cloud Identity Center object name
- Principal
Type string - Cloud Identity Center object type: User or Group
- Target
Id string - Authorized account ID
- Target
Name string - Authorized account name
- Created
Time string - Authorization creation time
- Permission
Set stringId - Permission set ID
- Permission
Set stringName - Permission set name
- Principal
Id string - Cloud Identity Center object ID
- Principal
Name string - Cloud Identity Center object name
- Principal
Type string - Cloud Identity Center object type: User or Group
- Target
Id string - Authorized account ID
- Target
Name string - Authorized account name
- created
Time String - Authorization creation time
- permission
Set StringId - Permission set ID
- permission
Set StringName - Permission set name
- principal
Id String - Cloud Identity Center object ID
- principal
Name String - Cloud Identity Center object name
- principal
Type String - Cloud Identity Center object type: User or Group
- target
Id String - Authorized account ID
- target
Name String - Authorized account name
- created
Time string - Authorization creation time
- permission
Set stringId - Permission set ID
- permission
Set stringName - Permission set name
- principal
Id string - Cloud Identity Center object ID
- principal
Name string - Cloud Identity Center object name
- principal
Type string - Cloud Identity Center object type: User or Group
- target
Id string - Authorized account ID
- target
Name string - Authorized account name
- created_
time str - Authorization creation time
- permission_
set_ strid - Permission set ID
- permission_
set_ strname - Permission set name
- principal_
id str - Cloud Identity Center object ID
- principal_
name str - Cloud Identity Center object name
- principal_
type str - Cloud Identity Center object type: User or Group
- target_
id str - Authorized account ID
- target_
name str - Authorized account name
- created
Time String - Authorization creation time
- permission
Set StringId - Permission set ID
- permission
Set StringName - Permission set name
- principal
Id String - Cloud Identity Center object ID
- principal
Name String - Cloud Identity Center object name
- principal
Type String - Cloud Identity Center object type: User or Group
- target
Id String - Authorized account ID
- target
Name String - Authorized account name
Import
$ pulumi import volcenginecc:cloudidentity/permissionSetAssignment:PermissionSetAssignment example "target_id|principal_id|permission_set_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
