1. Packages
  2. Volcengine
  3. API Docs
  4. iam
  5. getEntitiesPolicies
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
volcengine logo
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine

    Use this data source to query detailed information of iam entities policies

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.iam.getEntitiesPolicies({
        policyName: "AdministratorAccess",
        policyType: "System",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.iam.get_entities_policies(policy_name="AdministratorAccess",
        policy_type="System")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/iam"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := iam.GetEntitiesPolicies(ctx, &iam.GetEntitiesPoliciesArgs{
    			PolicyName: "AdministratorAccess",
    			PolicyType: "System",
    		}, 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 @default = Volcengine.Iam.GetEntitiesPolicies.Invoke(new()
        {
            PolicyName = "AdministratorAccess",
            PolicyType = "System",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.iam.IamFunctions;
    import com.pulumi.volcengine.iam.inputs.GetEntitiesPoliciesArgs;
    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 default = IamFunctions.getEntitiesPolicies(GetEntitiesPoliciesArgs.builder()
                .policyName("AdministratorAccess")
                .policyType("System")
                .build());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:iam:getEntitiesPolicies
          Arguments:
            policyName: AdministratorAccess
            policyType: System
    

    Using getEntitiesPolicies

    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 getEntitiesPolicies(args: GetEntitiesPoliciesArgs, opts?: InvokeOptions): Promise<GetEntitiesPoliciesResult>
    function getEntitiesPoliciesOutput(args: GetEntitiesPoliciesOutputArgs, opts?: InvokeOptions): Output<GetEntitiesPoliciesResult>
    def get_entities_policies(entity_filter: Optional[str] = None,
                              output_file: Optional[str] = None,
                              policy_name: Optional[str] = None,
                              policy_type: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetEntitiesPoliciesResult
    def get_entities_policies_output(entity_filter: Optional[pulumi.Input[str]] = None,
                              output_file: Optional[pulumi.Input[str]] = None,
                              policy_name: Optional[pulumi.Input[str]] = None,
                              policy_type: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetEntitiesPoliciesResult]
    func GetEntitiesPolicies(ctx *Context, args *GetEntitiesPoliciesArgs, opts ...InvokeOption) (*GetEntitiesPoliciesResult, error)
    func GetEntitiesPoliciesOutput(ctx *Context, args *GetEntitiesPoliciesOutputArgs, opts ...InvokeOption) GetEntitiesPoliciesResultOutput

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

    public static class GetEntitiesPolicies 
    {
        public static Task<GetEntitiesPoliciesResult> InvokeAsync(GetEntitiesPoliciesArgs args, InvokeOptions? opts = null)
        public static Output<GetEntitiesPoliciesResult> Invoke(GetEntitiesPoliciesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEntitiesPoliciesResult> getEntitiesPolicies(GetEntitiesPoliciesArgs args, InvokeOptions options)
    public static Output<GetEntitiesPoliciesResult> getEntitiesPolicies(GetEntitiesPoliciesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:iam/getEntitiesPolicies:getEntitiesPolicies
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PolicyName string
    The name of the policy.
    PolicyType string
    The type of the policy.
    EntityFilter string
    The entity filter.
    OutputFile string
    File name where to save data source results.
    PolicyName string
    The name of the policy.
    PolicyType string
    The type of the policy.
    EntityFilter string
    The entity filter.
    OutputFile string
    File name where to save data source results.
    policyName String
    The name of the policy.
    policyType String
    The type of the policy.
    entityFilter String
    The entity filter.
    outputFile String
    File name where to save data source results.
    policyName string
    The name of the policy.
    policyType string
    The type of the policy.
    entityFilter string
    The entity filter.
    outputFile string
    File name where to save data source results.
    policy_name str
    The name of the policy.
    policy_type str
    The type of the policy.
    entity_filter str
    The entity filter.
    output_file str
    File name where to save data source results.
    policyName String
    The name of the policy.
    policyType String
    The type of the policy.
    entityFilter String
    The entity filter.
    outputFile String
    File name where to save data source results.

    getEntitiesPolicies Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyName string
    PolicyType string
    Roles List<GetEntitiesPoliciesRole>
    The collection of roles.
    TotalCount int
    The total count of query.
    UserGroups List<GetEntitiesPoliciesUserGroup>
    The collection of user groups.
    Users List<GetEntitiesPoliciesUser>
    The collection of users.
    EntityFilter string
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyName string
    PolicyType string
    Roles []GetEntitiesPoliciesRole
    The collection of roles.
    TotalCount int
    The total count of query.
    UserGroups []GetEntitiesPoliciesUserGroup
    The collection of user groups.
    Users []GetEntitiesPoliciesUser
    The collection of users.
    EntityFilter string
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    policyName String
    policyType String
    roles List<GetEntitiesPoliciesRole>
    The collection of roles.
    totalCount Integer
    The total count of query.
    userGroups List<GetEntitiesPoliciesUserGroup>
    The collection of user groups.
    users List<GetEntitiesPoliciesUser>
    The collection of users.
    entityFilter String
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    policyName string
    policyType string
    roles GetEntitiesPoliciesRole[]
    The collection of roles.
    totalCount number
    The total count of query.
    userGroups GetEntitiesPoliciesUserGroup[]
    The collection of user groups.
    users GetEntitiesPoliciesUser[]
    The collection of users.
    entityFilter string
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    policy_name str
    policy_type str
    roles Sequence[GetEntitiesPoliciesRole]
    The collection of roles.
    total_count int
    The total count of query.
    user_groups Sequence[GetEntitiesPoliciesUserGroup]
    The collection of user groups.
    users Sequence[GetEntitiesPoliciesUser]
    The collection of users.
    entity_filter str
    output_file str
    id String
    The provider-assigned unique ID for this managed resource.
    policyName String
    policyType String
    roles List<Property Map>
    The collection of roles.
    totalCount Number
    The total count of query.
    userGroups List<Property Map>
    The collection of user groups.
    users List<Property Map>
    The collection of users.
    entityFilter String
    outputFile String

    Supporting Types

    GetEntitiesPoliciesRole

    AttachDate string
    The attach date of the policy scope.
    Description string
    The description of the user.
    DisplayName string
    The display name of the user.
    Id int
    The id of the user.
    PolicyScopes List<GetEntitiesPoliciesRolePolicyScope>
    The scope of the policy.
    RoleName string
    The name of the role.
    AttachDate string
    The attach date of the policy scope.
    Description string
    The description of the user.
    DisplayName string
    The display name of the user.
    Id int
    The id of the user.
    PolicyScopes []GetEntitiesPoliciesRolePolicyScope
    The scope of the policy.
    RoleName string
    The name of the role.
    attachDate String
    The attach date of the policy scope.
    description String
    The description of the user.
    displayName String
    The display name of the user.
    id Integer
    The id of the user.
    policyScopes List<GetEntitiesPoliciesRolePolicyScope>
    The scope of the policy.
    roleName String
    The name of the role.
    attachDate string
    The attach date of the policy scope.
    description string
    The description of the user.
    displayName string
    The display name of the user.
    id number
    The id of the user.
    policyScopes GetEntitiesPoliciesRolePolicyScope[]
    The scope of the policy.
    roleName string
    The name of the role.
    attach_date str
    The attach date of the policy scope.
    description str
    The description of the user.
    display_name str
    The display name of the user.
    id int
    The id of the user.
    policy_scopes Sequence[GetEntitiesPoliciesRolePolicyScope]
    The scope of the policy.
    role_name str
    The name of the role.
    attachDate String
    The attach date of the policy scope.
    description String
    The description of the user.
    displayName String
    The display name of the user.
    id Number
    The id of the user.
    policyScopes List<Property Map>
    The scope of the policy.
    roleName String
    The name of the role.

    GetEntitiesPoliciesRolePolicyScope

    AttachDate string
    The attach date of the policy scope.
    PolicyScopeType string
    The type of the policy scope.
    ProjectDisplayName string
    The display name of the project.
    ProjectName string
    The name of the project.
    AttachDate string
    The attach date of the policy scope.
    PolicyScopeType string
    The type of the policy scope.
    ProjectDisplayName string
    The display name of the project.
    ProjectName string
    The name of the project.
    attachDate String
    The attach date of the policy scope.
    policyScopeType String
    The type of the policy scope.
    projectDisplayName String
    The display name of the project.
    projectName String
    The name of the project.
    attachDate string
    The attach date of the policy scope.
    policyScopeType string
    The type of the policy scope.
    projectDisplayName string
    The display name of the project.
    projectName string
    The name of the project.
    attach_date str
    The attach date of the policy scope.
    policy_scope_type str
    The type of the policy scope.
    project_display_name str
    The display name of the project.
    project_name str
    The name of the project.
    attachDate String
    The attach date of the policy scope.
    policyScopeType String
    The type of the policy scope.
    projectDisplayName String
    The display name of the project.
    projectName String
    The name of the project.

    GetEntitiesPoliciesUser

    AttachDate string
    The attach date of the policy scope.
    Description string
    The description of the user.
    DisplayName string
    The display name of the user.
    Id int
    The id of the user.
    PolicyScopes List<GetEntitiesPoliciesUserPolicyScope>
    The scope of the policy.
    UserName string
    The name of the user.
    AttachDate string
    The attach date of the policy scope.
    Description string
    The description of the user.
    DisplayName string
    The display name of the user.
    Id int
    The id of the user.
    PolicyScopes []GetEntitiesPoliciesUserPolicyScope
    The scope of the policy.
    UserName string
    The name of the user.
    attachDate String
    The attach date of the policy scope.
    description String
    The description of the user.
    displayName String
    The display name of the user.
    id Integer
    The id of the user.
    policyScopes List<GetEntitiesPoliciesUserPolicyScope>
    The scope of the policy.
    userName String
    The name of the user.
    attachDate string
    The attach date of the policy scope.
    description string
    The description of the user.
    displayName string
    The display name of the user.
    id number
    The id of the user.
    policyScopes GetEntitiesPoliciesUserPolicyScope[]
    The scope of the policy.
    userName string
    The name of the user.
    attach_date str
    The attach date of the policy scope.
    description str
    The description of the user.
    display_name str
    The display name of the user.
    id int
    The id of the user.
    policy_scopes Sequence[GetEntitiesPoliciesUserPolicyScope]
    The scope of the policy.
    user_name str
    The name of the user.
    attachDate String
    The attach date of the policy scope.
    description String
    The description of the user.
    displayName String
    The display name of the user.
    id Number
    The id of the user.
    policyScopes List<Property Map>
    The scope of the policy.
    userName String
    The name of the user.

    GetEntitiesPoliciesUserGroup

    AttachDate string
    The attach date of the policy scope.
    Description string
    The description of the user.
    DisplayName string
    The display name of the user.
    Id int
    The id of the user.
    PolicyScopes List<GetEntitiesPoliciesUserGroupPolicyScope>
    The scope of the policy.
    UserGroupName string
    The name of the user group.
    AttachDate string
    The attach date of the policy scope.
    Description string
    The description of the user.
    DisplayName string
    The display name of the user.
    Id int
    The id of the user.
    PolicyScopes []GetEntitiesPoliciesUserGroupPolicyScope
    The scope of the policy.
    UserGroupName string
    The name of the user group.
    attachDate String
    The attach date of the policy scope.
    description String
    The description of the user.
    displayName String
    The display name of the user.
    id Integer
    The id of the user.
    policyScopes List<GetEntitiesPoliciesUserGroupPolicyScope>
    The scope of the policy.
    userGroupName String
    The name of the user group.
    attachDate string
    The attach date of the policy scope.
    description string
    The description of the user.
    displayName string
    The display name of the user.
    id number
    The id of the user.
    policyScopes GetEntitiesPoliciesUserGroupPolicyScope[]
    The scope of the policy.
    userGroupName string
    The name of the user group.
    attach_date str
    The attach date of the policy scope.
    description str
    The description of the user.
    display_name str
    The display name of the user.
    id int
    The id of the user.
    policy_scopes Sequence[GetEntitiesPoliciesUserGroupPolicyScope]
    The scope of the policy.
    user_group_name str
    The name of the user group.
    attachDate String
    The attach date of the policy scope.
    description String
    The description of the user.
    displayName String
    The display name of the user.
    id Number
    The id of the user.
    policyScopes List<Property Map>
    The scope of the policy.
    userGroupName String
    The name of the user group.

    GetEntitiesPoliciesUserGroupPolicyScope

    AttachDate string
    The attach date of the policy scope.
    PolicyScopeType string
    The type of the policy scope.
    ProjectDisplayName string
    The display name of the project.
    ProjectName string
    The name of the project.
    AttachDate string
    The attach date of the policy scope.
    PolicyScopeType string
    The type of the policy scope.
    ProjectDisplayName string
    The display name of the project.
    ProjectName string
    The name of the project.
    attachDate String
    The attach date of the policy scope.
    policyScopeType String
    The type of the policy scope.
    projectDisplayName String
    The display name of the project.
    projectName String
    The name of the project.
    attachDate string
    The attach date of the policy scope.
    policyScopeType string
    The type of the policy scope.
    projectDisplayName string
    The display name of the project.
    projectName string
    The name of the project.
    attach_date str
    The attach date of the policy scope.
    policy_scope_type str
    The type of the policy scope.
    project_display_name str
    The display name of the project.
    project_name str
    The name of the project.
    attachDate String
    The attach date of the policy scope.
    policyScopeType String
    The type of the policy scope.
    projectDisplayName String
    The display name of the project.
    projectName String
    The name of the project.

    GetEntitiesPoliciesUserPolicyScope

    AttachDate string
    The attach date of the policy scope.
    PolicyScopeType string
    The type of the policy scope.
    ProjectDisplayName string
    The display name of the project.
    ProjectName string
    The name of the project.
    AttachDate string
    The attach date of the policy scope.
    PolicyScopeType string
    The type of the policy scope.
    ProjectDisplayName string
    The display name of the project.
    ProjectName string
    The name of the project.
    attachDate String
    The attach date of the policy scope.
    policyScopeType String
    The type of the policy scope.
    projectDisplayName String
    The display name of the project.
    projectName String
    The name of the project.
    attachDate string
    The attach date of the policy scope.
    policyScopeType string
    The type of the policy scope.
    projectDisplayName string
    The display name of the project.
    projectName string
    The name of the project.
    attach_date str
    The attach date of the policy scope.
    policy_scope_type str
    The type of the policy scope.
    project_display_name str
    The display name of the project.
    project_name str
    The name of the project.
    attachDate String
    The attach date of the policy scope.
    policyScopeType String
    The type of the policy scope.
    projectDisplayName String
    The display name of the project.
    projectName String
    The name of the project.

    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.45 published on Tuesday, Feb 10, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate