1. Packages
  2. Volcenginecc Provider
  3. API Docs
  4. iam
  5. getPolicy
volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine

volcenginecc.iam.getPolicy

Deploy with Pulumi
volcenginecc logo
volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine

    Data Source schema for Volcengine::IAM::Policy

    Using getPolicy

    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 getPolicy(args: GetPolicyArgs, opts?: InvokeOptions): Promise<GetPolicyResult>
    function getPolicyOutput(args: GetPolicyOutputArgs, opts?: InvokeOptions): Output<GetPolicyResult>
    def get_policy(id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetPolicyResult
    def get_policy_output(id: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetPolicyResult]
    func LookupPolicy(ctx *Context, args *LookupPolicyArgs, opts ...InvokeOption) (*LookupPolicyResult, error)
    func LookupPolicyOutput(ctx *Context, args *LookupPolicyOutputArgs, opts ...InvokeOption) LookupPolicyResultOutput

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

    public static class GetPolicy 
    {
        public static Task<GetPolicyResult> InvokeAsync(GetPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetPolicyResult> Invoke(GetPolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
    public static Output<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcenginecc:iam/getPolicy:getPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Uniquely identifies the resource.
    Id string
    Uniquely identifies the resource.
    id String
    Uniquely identifies the resource.
    id string
    Uniquely identifies the resource.
    id str
    Uniquely identifies the resource.
    id String
    Uniquely identifies the resource.

    getPolicy Result

    The following output properties are available:

    AttachmentCount int
    策略绑定的身份数量。
    Category string
    系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
    CreatedTime string
    策略创建时间。
    Description string
    策略描述,长度不超过128。
    Id string
    Uniquely identifies the resource.
    IsServiceRolePolicy int
    是否是服务关联角色的策略,0代表否,1代表是。
    PolicyDocument string
    策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
    PolicyName string
    策略名,长度1~64,支持英文、数字和+=,.@-_符号。
    PolicyRoles List<Volcengine.GetPolicyPolicyRole>
    策略绑定的角色列表。
    PolicyTrn string
    策略的TRN。
    PolicyType string
    策略类型。System代表系统预设策略,Custom代表自定义策略。
    PolicyUserGroups List<Volcengine.GetPolicyPolicyUserGroup>
    策略绑定的用户组列表。
    PolicyUsers List<Volcengine.GetPolicyPolicyUser>
    策略绑定的用户列表。
    UpdatedTime string
    策略更新时间。
    AttachmentCount int
    策略绑定的身份数量。
    Category string
    系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
    CreatedTime string
    策略创建时间。
    Description string
    策略描述,长度不超过128。
    Id string
    Uniquely identifies the resource.
    IsServiceRolePolicy int
    是否是服务关联角色的策略,0代表否,1代表是。
    PolicyDocument string
    策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
    PolicyName string
    策略名,长度1~64,支持英文、数字和+=,.@-_符号。
    PolicyRoles []GetPolicyPolicyRole
    策略绑定的角色列表。
    PolicyTrn string
    策略的TRN。
    PolicyType string
    策略类型。System代表系统预设策略,Custom代表自定义策略。
    PolicyUserGroups []GetPolicyPolicyUserGroup
    策略绑定的用户组列表。
    PolicyUsers []GetPolicyPolicyUser
    策略绑定的用户列表。
    UpdatedTime string
    策略更新时间。
    attachmentCount Integer
    策略绑定的身份数量。
    category String
    系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
    createdTime String
    策略创建时间。
    description String
    策略描述,长度不超过128。
    id String
    Uniquely identifies the resource.
    isServiceRolePolicy Integer
    是否是服务关联角色的策略,0代表否,1代表是。
    policyDocument String
    策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
    policyName String
    策略名,长度1~64,支持英文、数字和+=,.@-_符号。
    policyRoles List<GetPolicyPolicyRole>
    策略绑定的角色列表。
    policyTrn String
    策略的TRN。
    policyType String
    策略类型。System代表系统预设策略,Custom代表自定义策略。
    policyUserGroups List<GetPolicyPolicyUserGroup>
    策略绑定的用户组列表。
    policyUsers List<GetPolicyPolicyUser>
    策略绑定的用户列表。
    updatedTime String
    策略更新时间。
    attachmentCount number
    策略绑定的身份数量。
    category string
    系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
    createdTime string
    策略创建时间。
    description string
    策略描述,长度不超过128。
    id string
    Uniquely identifies the resource.
    isServiceRolePolicy number
    是否是服务关联角色的策略,0代表否,1代表是。
    policyDocument string
    策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
    policyName string
    策略名,长度1~64,支持英文、数字和+=,.@-_符号。
    policyRoles GetPolicyPolicyRole[]
    策略绑定的角色列表。
    policyTrn string
    策略的TRN。
    policyType string
    策略类型。System代表系统预设策略,Custom代表自定义策略。
    policyUserGroups GetPolicyPolicyUserGroup[]
    策略绑定的用户组列表。
    policyUsers GetPolicyPolicyUser[]
    策略绑定的用户列表。
    updatedTime string
    策略更新时间。
    attachment_count int
    策略绑定的身份数量。
    category str
    系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
    created_time str
    策略创建时间。
    description str
    策略描述,长度不超过128。
    id str
    Uniquely identifies the resource.
    is_service_role_policy int
    是否是服务关联角色的策略,0代表否,1代表是。
    policy_document str
    策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
    policy_name str
    策略名,长度1~64,支持英文、数字和+=,.@-_符号。
    policy_roles Sequence[GetPolicyPolicyRole]
    策略绑定的角色列表。
    policy_trn str
    策略的TRN。
    policy_type str
    策略类型。System代表系统预设策略,Custom代表自定义策略。
    policy_user_groups Sequence[GetPolicyPolicyUserGroup]
    策略绑定的用户组列表。
    policy_users Sequence[GetPolicyPolicyUser]
    策略绑定的用户列表。
    updated_time str
    策略更新时间。
    attachmentCount Number
    策略绑定的身份数量。
    category String
    系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
    createdTime String
    策略创建时间。
    description String
    策略描述,长度不超过128。
    id String
    Uniquely identifies the resource.
    isServiceRolePolicy Number
    是否是服务关联角色的策略,0代表否,1代表是。
    policyDocument String
    策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
    policyName String
    策略名,长度1~64,支持英文、数字和+=,.@-_符号。
    policyRoles List<Property Map>
    策略绑定的角色列表。
    policyTrn String
    策略的TRN。
    policyType String
    策略类型。System代表系统预设策略,Custom代表自定义策略。
    policyUserGroups List<Property Map>
    策略绑定的用户组列表。
    policyUsers List<Property Map>
    策略绑定的用户列表。
    updatedTime String
    策略更新时间。

    Supporting Types

    GetPolicyPolicyRole

    CreatedTime string
    策略绑定时间。
    Description string
    策略描述。
    DisplayName string
    显示名称。
    EntitiesId int
    唯一标识。
    Name string
    对应用户、角色、用户组的名称。
    PolicyScopes List<Volcengine.GetPolicyPolicyRolePolicyScope>
    策略绑定的项目列表。
    CreatedTime string
    策略绑定时间。
    Description string
    策略描述。
    DisplayName string
    显示名称。
    EntitiesId int
    唯一标识。
    Name string
    对应用户、角色、用户组的名称。
    PolicyScopes []GetPolicyPolicyRolePolicyScope
    策略绑定的项目列表。
    createdTime String
    策略绑定时间。
    description String
    策略描述。
    displayName String
    显示名称。
    entitiesId Integer
    唯一标识。
    name String
    对应用户、角色、用户组的名称。
    policyScopes List<GetPolicyPolicyRolePolicyScope>
    策略绑定的项目列表。
    createdTime string
    策略绑定时间。
    description string
    策略描述。
    displayName string
    显示名称。
    entitiesId number
    唯一标识。
    name string
    对应用户、角色、用户组的名称。
    policyScopes GetPolicyPolicyRolePolicyScope[]
    策略绑定的项目列表。
    created_time str
    策略绑定时间。
    description str
    策略描述。
    display_name str
    显示名称。
    entities_id int
    唯一标识。
    name str
    对应用户、角色、用户组的名称。
    policy_scopes Sequence[GetPolicyPolicyRolePolicyScope]
    策略绑定的项目列表。
    createdTime String
    策略绑定时间。
    description String
    策略描述。
    displayName String
    显示名称。
    entitiesId Number
    唯一标识。
    name String
    对应用户、角色、用户组的名称。
    policyScopes List<Property Map>
    策略绑定的项目列表。

    GetPolicyPolicyRolePolicyScope

    CreatedTime string
    项目授权时间。
    PolicyScopeType string
    授权类型。Global代表全局授权,Project代表按项目授权。
    ProjectDisplayName string
    项目显示名。
    ProjectName string
    项目名。
    CreatedTime string
    项目授权时间。
    PolicyScopeType string
    授权类型。Global代表全局授权,Project代表按项目授权。
    ProjectDisplayName string
    项目显示名。
    ProjectName string
    项目名。
    createdTime String
    项目授权时间。
    policyScopeType String
    授权类型。Global代表全局授权,Project代表按项目授权。
    projectDisplayName String
    项目显示名。
    projectName String
    项目名。
    createdTime string
    项目授权时间。
    policyScopeType string
    授权类型。Global代表全局授权,Project代表按项目授权。
    projectDisplayName string
    项目显示名。
    projectName string
    项目名。
    created_time str
    项目授权时间。
    policy_scope_type str
    授权类型。Global代表全局授权,Project代表按项目授权。
    project_display_name str
    项目显示名。
    project_name str
    项目名。
    createdTime String
    项目授权时间。
    policyScopeType String
    授权类型。Global代表全局授权,Project代表按项目授权。
    projectDisplayName String
    项目显示名。
    projectName String
    项目名。

    GetPolicyPolicyUser

    CreatedTime string
    策略绑定时间。
    Description string
    策略描述。
    DisplayName string
    显示名称。
    EntitiesId int
    唯一标识。
    Name string
    对应用户、角色、用户组的名称。
    PolicyScopes List<Volcengine.GetPolicyPolicyUserPolicyScope>
    策略绑定的项目列表。
    CreatedTime string
    策略绑定时间。
    Description string
    策略描述。
    DisplayName string
    显示名称。
    EntitiesId int
    唯一标识。
    Name string
    对应用户、角色、用户组的名称。
    PolicyScopes []GetPolicyPolicyUserPolicyScope
    策略绑定的项目列表。
    createdTime String
    策略绑定时间。
    description String
    策略描述。
    displayName String
    显示名称。
    entitiesId Integer
    唯一标识。
    name String
    对应用户、角色、用户组的名称。
    policyScopes List<GetPolicyPolicyUserPolicyScope>
    策略绑定的项目列表。
    createdTime string
    策略绑定时间。
    description string
    策略描述。
    displayName string
    显示名称。
    entitiesId number
    唯一标识。
    name string
    对应用户、角色、用户组的名称。
    policyScopes GetPolicyPolicyUserPolicyScope[]
    策略绑定的项目列表。
    created_time str
    策略绑定时间。
    description str
    策略描述。
    display_name str
    显示名称。
    entities_id int
    唯一标识。
    name str
    对应用户、角色、用户组的名称。
    policy_scopes Sequence[GetPolicyPolicyUserPolicyScope]
    策略绑定的项目列表。
    createdTime String
    策略绑定时间。
    description String
    策略描述。
    displayName String
    显示名称。
    entitiesId Number
    唯一标识。
    name String
    对应用户、角色、用户组的名称。
    policyScopes List<Property Map>
    策略绑定的项目列表。

    GetPolicyPolicyUserGroup

    CreatedTime string
    策略绑定时间。
    Description string
    策略描述。
    DisplayName string
    显示名称。
    EntitiesId int
    唯一标识。
    Name string
    对应用户、角色、用户组的名称。
    PolicyScopes List<Volcengine.GetPolicyPolicyUserGroupPolicyScope>
    策略绑定的项目列表。
    CreatedTime string
    策略绑定时间。
    Description string
    策略描述。
    DisplayName string
    显示名称。
    EntitiesId int
    唯一标识。
    Name string
    对应用户、角色、用户组的名称。
    PolicyScopes []GetPolicyPolicyUserGroupPolicyScope
    策略绑定的项目列表。
    createdTime String
    策略绑定时间。
    description String
    策略描述。
    displayName String
    显示名称。
    entitiesId Integer
    唯一标识。
    name String
    对应用户、角色、用户组的名称。
    policyScopes List<GetPolicyPolicyUserGroupPolicyScope>
    策略绑定的项目列表。
    createdTime string
    策略绑定时间。
    description string
    策略描述。
    displayName string
    显示名称。
    entitiesId number
    唯一标识。
    name string
    对应用户、角色、用户组的名称。
    policyScopes GetPolicyPolicyUserGroupPolicyScope[]
    策略绑定的项目列表。
    created_time str
    策略绑定时间。
    description str
    策略描述。
    display_name str
    显示名称。
    entities_id int
    唯一标识。
    name str
    对应用户、角色、用户组的名称。
    policy_scopes Sequence[GetPolicyPolicyUserGroupPolicyScope]
    策略绑定的项目列表。
    createdTime String
    策略绑定时间。
    description String
    策略描述。
    displayName String
    显示名称。
    entitiesId Number
    唯一标识。
    name String
    对应用户、角色、用户组的名称。
    policyScopes List<Property Map>
    策略绑定的项目列表。

    GetPolicyPolicyUserGroupPolicyScope

    CreatedTime string
    项目授权时间。
    PolicyScopeType string
    授权类型。Global代表全局授权,Project代表按项目授权。
    ProjectDisplayName string
    项目显示名。
    ProjectName string
    项目名。
    CreatedTime string
    项目授权时间。
    PolicyScopeType string
    授权类型。Global代表全局授权,Project代表按项目授权。
    ProjectDisplayName string
    项目显示名。
    ProjectName string
    项目名。
    createdTime String
    项目授权时间。
    policyScopeType String
    授权类型。Global代表全局授权,Project代表按项目授权。
    projectDisplayName String
    项目显示名。
    projectName String
    项目名。
    createdTime string
    项目授权时间。
    policyScopeType string
    授权类型。Global代表全局授权,Project代表按项目授权。
    projectDisplayName string
    项目显示名。
    projectName string
    项目名。
    created_time str
    项目授权时间。
    policy_scope_type str
    授权类型。Global代表全局授权,Project代表按项目授权。
    project_display_name str
    项目显示名。
    project_name str
    项目名。
    createdTime String
    项目授权时间。
    policyScopeType String
    授权类型。Global代表全局授权,Project代表按项目授权。
    projectDisplayName String
    项目显示名。
    projectName String
    项目名。

    GetPolicyPolicyUserPolicyScope

    CreatedTime string
    项目授权时间。
    PolicyScopeType string
    授权类型。Global代表全局授权,Project代表按项目授权。
    ProjectDisplayName string
    项目显示名。
    ProjectName string
    项目名。
    CreatedTime string
    项目授权时间。
    PolicyScopeType string
    授权类型。Global代表全局授权,Project代表按项目授权。
    ProjectDisplayName string
    项目显示名。
    ProjectName string
    项目名。
    createdTime String
    项目授权时间。
    policyScopeType String
    授权类型。Global代表全局授权,Project代表按项目授权。
    projectDisplayName String
    项目显示名。
    projectName String
    项目名。
    createdTime string
    项目授权时间。
    policyScopeType string
    授权类型。Global代表全局授权,Project代表按项目授权。
    projectDisplayName string
    项目显示名。
    projectName string
    项目名。
    created_time str
    项目授权时间。
    policy_scope_type str
    授权类型。Global代表全局授权,Project代表按项目授权。
    project_display_name str
    项目显示名。
    project_name str
    项目名。
    createdTime String
    项目授权时间。
    policyScopeType String
    授权类型。Global代表全局授权,Project代表按项目授权。
    projectDisplayName String
    项目显示名。
    projectName String
    项目名。

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine
      Meet Neo: Your AI Platform Teammate