Viewing docs for bytepluscc v0.0.16
published on Monday, Mar 9, 2026 by Byteplus
published on Monday, Mar 9, 2026 by Byteplus
Viewing docs for bytepluscc v0.0.16
published on Monday, Mar 9, 2026 by Byteplus
published on Monday, Mar 9, 2026 by Byteplus
Data Source schema for Byteplus::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: bytepluscc:iam/getPolicy:getPolicy
arguments:
# arguments dictionaryThe 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:
- Attachment
Count int - 策略绑定的身份数量。
- Category string
- 系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
- Created
Time string - 策略创建时间。
- Description string
- 策略描述,长度不超过128。
- Id string
- Uniquely identifies the resource.
- Is
Service intRole Policy - 是否是服务关联角色的策略,0代表否,1代表是。
- Policy
Document string - 策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
- Policy
Name string - 策略名,长度1~64,支持英文、数字和+=,.@-_符号。
- Policy
Roles List<Byteplus.Get Policy Policy Role> - 策略绑定的角色列表。
- Policy
Trn string - 策略的TRN。
- Policy
Type string - 策略类型。System代表系统预设策略,Custom代表自定义策略。
- Policy
User List<Byteplus.Groups Get Policy Policy User Group> - 策略绑定的用户组列表。
- Policy
Users List<Byteplus.Get Policy Policy User> - 策略绑定的用户列表。
- Updated
Time string - 策略更新时间。
- Attachment
Count int - 策略绑定的身份数量。
- Category string
- 系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
- Created
Time string - 策略创建时间。
- Description string
- 策略描述,长度不超过128。
- Id string
- Uniquely identifies the resource.
- Is
Service intRole Policy - 是否是服务关联角色的策略,0代表否,1代表是。
- Policy
Document string - 策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
- Policy
Name string - 策略名,长度1~64,支持英文、数字和+=,.@-_符号。
- Policy
Roles []GetPolicy Policy Role - 策略绑定的角色列表。
- Policy
Trn string - 策略的TRN。
- Policy
Type string - 策略类型。System代表系统预设策略,Custom代表自定义策略。
- Policy
User []GetGroups Policy Policy User Group - 策略绑定的用户组列表。
- Policy
Users []GetPolicy Policy User - 策略绑定的用户列表。
- Updated
Time string - 策略更新时间。
- attachment
Count Integer - 策略绑定的身份数量。
- category String
- 系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
- created
Time String - 策略创建时间。
- description String
- 策略描述,长度不超过128。
- id String
- Uniquely identifies the resource.
- is
Service IntegerRole Policy - 是否是服务关联角色的策略,0代表否,1代表是。
- policy
Document String - 策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
- policy
Name String - 策略名,长度1~64,支持英文、数字和+=,.@-_符号。
- policy
Roles List<GetPolicy Policy Role> - 策略绑定的角色列表。
- policy
Trn String - 策略的TRN。
- policy
Type String - 策略类型。System代表系统预设策略,Custom代表自定义策略。
- policy
User List<GetGroups Policy Policy User Group> - 策略绑定的用户组列表。
- policy
Users List<GetPolicy Policy User> - 策略绑定的用户列表。
- updated
Time String - 策略更新时间。
- attachment
Count number - 策略绑定的身份数量。
- category string
- 系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
- created
Time string - 策略创建时间。
- description string
- 策略描述,长度不超过128。
- id string
- Uniquely identifies the resource.
- is
Service numberRole Policy - 是否是服务关联角色的策略,0代表否,1代表是。
- policy
Document string - 策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
- policy
Name string - 策略名,长度1~64,支持英文、数字和+=,.@-_符号。
- policy
Roles GetPolicy Policy Role[] - 策略绑定的角色列表。
- policy
Trn string - 策略的TRN。
- policy
Type string - 策略类型。System代表系统预设策略,Custom代表自定义策略。
- policy
User GetGroups Policy Policy User Group[] - 策略绑定的用户组列表。
- policy
Users GetPolicy Policy User[] - 策略绑定的用户列表。
- updated
Time string - 策略更新时间。
- attachment_
count int - 策略绑定的身份数量。
- category str
- 系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
- created_
time str - 策略创建时间。
- description str
- 策略描述,长度不超过128。
- id str
- Uniquely identifies the resource.
- is_
service_ introle_ policy - 是否是服务关联角色的策略,0代表否,1代表是。
- policy_
document str - 策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
- policy_
name str - 策略名,长度1~64,支持英文、数字和+=,.@-_符号。
- policy_
roles Sequence[GetPolicy Policy Role] - 策略绑定的角色列表。
- policy_
trn str - 策略的TRN。
- policy_
type str - 策略类型。System代表系统预设策略,Custom代表自定义策略。
- policy_
user_ Sequence[Getgroups Policy Policy User Group] - 策略绑定的用户组列表。
- policy_
users Sequence[GetPolicy Policy User] - 策略绑定的用户列表。
- updated_
time str - 策略更新时间。
- attachment
Count Number - 策略绑定的身份数量。
- category String
- 系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
- created
Time String - 策略创建时间。
- description String
- 策略描述,长度不超过128。
- id String
- Uniquely identifies the resource.
- is
Service NumberRole Policy - 是否是服务关联角色的策略,0代表否,1代表是。
- policy
Document String - 策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
- policy
Name String - 策略名,长度1~64,支持英文、数字和+=,.@-_符号。
- policy
Roles List<Property Map> - 策略绑定的角色列表。
- policy
Trn String - 策略的TRN。
- policy
Type String - 策略类型。System代表系统预设策略,Custom代表自定义策略。
- policy
User List<Property Map>Groups - 策略绑定的用户组列表。
- policy
Users List<Property Map> - 策略绑定的用户列表。
- updated
Time String - 策略更新时间。
Supporting Types
GetPolicyPolicyRole
- Created
Time string - 策略绑定时间。
- Description string
- 策略描述。
- Display
Name string - 显示名称。
- Entities
Id int - 唯一标识。
- Name string
- 对应用户、角色、用户组的名称。
- Policy
Scopes List<Byteplus.Get Policy Policy Role Policy Scope> - 策略绑定的项目列表。
- Created
Time string - 策略绑定时间。
- Description string
- 策略描述。
- Display
Name string - 显示名称。
- Entities
Id int - 唯一标识。
- Name string
- 对应用户、角色、用户组的名称。
- Policy
Scopes []GetPolicy Policy Role Policy Scope - 策略绑定的项目列表。
- created
Time String - 策略绑定时间。
- description String
- 策略描述。
- display
Name String - 显示名称。
- entities
Id Integer - 唯一标识。
- name String
- 对应用户、角色、用户组的名称。
- policy
Scopes List<GetPolicy Policy Role Policy Scope> - 策略绑定的项目列表。
- created
Time string - 策略绑定时间。
- description string
- 策略描述。
- display
Name string - 显示名称。
- entities
Id number - 唯一标识。
- name string
- 对应用户、角色、用户组的名称。
- policy
Scopes GetPolicy Policy Role Policy Scope[] - 策略绑定的项目列表。
- created_
time str - 策略绑定时间。
- description str
- 策略描述。
- display_
name str - 显示名称。
- entities_
id int - 唯一标识。
- name str
- 对应用户、角色、用户组的名称。
- policy_
scopes Sequence[GetPolicy Policy Role Policy Scope] - 策略绑定的项目列表。
- created
Time String - 策略绑定时间。
- description String
- 策略描述。
- display
Name String - 显示名称。
- entities
Id Number - 唯一标识。
- name String
- 对应用户、角色、用户组的名称。
- policy
Scopes List<Property Map> - 策略绑定的项目列表。
GetPolicyPolicyRolePolicyScope
- Created
Time string - 项目授权时间。
- Policy
Scope stringType - 授权类型。Global代表全局授权,Project代表按项目授权。
- Project
Display stringName - 项目显示名。
- Project
Name string - 项目名。
- Created
Time string - 项目授权时间。
- Policy
Scope stringType - 授权类型。Global代表全局授权,Project代表按项目授权。
- Project
Display stringName - 项目显示名。
- Project
Name string - 项目名。
- created
Time String - 项目授权时间。
- policy
Scope StringType - 授权类型。Global代表全局授权,Project代表按项目授权。
- project
Display StringName - 项目显示名。
- project
Name String - 项目名。
- created
Time string - 项目授权时间。
- policy
Scope stringType - 授权类型。Global代表全局授权,Project代表按项目授权。
- project
Display stringName - 项目显示名。
- project
Name string - 项目名。
- created_
time str - 项目授权时间。
- policy_
scope_ strtype - 授权类型。Global代表全局授权,Project代表按项目授权。
- project_
display_ strname - 项目显示名。
- project_
name str - 项目名。
- created
Time String - 项目授权时间。
- policy
Scope StringType - 授权类型。Global代表全局授权,Project代表按项目授权。
- project
Display StringName - 项目显示名。
- project
Name String - 项目名。
GetPolicyPolicyUser
- Created
Time string - 策略绑定时间。
- Description string
- 策略描述。
- Display
Name string - 显示名称。
- Entities
Id int - 唯一标识。
- Name string
- 对应用户、角色、用户组的名称。
- Policy
Scopes List<Byteplus.Get Policy Policy User Policy Scope> - 策略绑定的项目列表。
- Created
Time string - 策略绑定时间。
- Description string
- 策略描述。
- Display
Name string - 显示名称。
- Entities
Id int - 唯一标识。
- Name string
- 对应用户、角色、用户组的名称。
- Policy
Scopes []GetPolicy Policy User Policy Scope - 策略绑定的项目列表。
- created
Time String - 策略绑定时间。
- description String
- 策略描述。
- display
Name String - 显示名称。
- entities
Id Integer - 唯一标识。
- name String
- 对应用户、角色、用户组的名称。
- policy
Scopes List<GetPolicy Policy User Policy Scope> - 策略绑定的项目列表。
- created
Time string - 策略绑定时间。
- description string
- 策略描述。
- display
Name string - 显示名称。
- entities
Id number - 唯一标识。
- name string
- 对应用户、角色、用户组的名称。
- policy
Scopes GetPolicy Policy User Policy Scope[] - 策略绑定的项目列表。
- created_
time str - 策略绑定时间。
- description str
- 策略描述。
- display_
name str - 显示名称。
- entities_
id int - 唯一标识。
- name str
- 对应用户、角色、用户组的名称。
- policy_
scopes Sequence[GetPolicy Policy User Policy Scope] - 策略绑定的项目列表。
- created
Time String - 策略绑定时间。
- description String
- 策略描述。
- display
Name String - 显示名称。
- entities
Id Number - 唯一标识。
- name String
- 对应用户、角色、用户组的名称。
- policy
Scopes List<Property Map> - 策略绑定的项目列表。
GetPolicyPolicyUserGroup
- Created
Time string - 策略绑定时间。
- Description string
- 策略描述。
- Display
Name string - 显示名称。
- Entities
Id int - 唯一标识。
- Name string
- 对应用户、角色、用户组的名称。
- Policy
Scopes List<Byteplus.Get Policy Policy User Group Policy Scope> - 策略绑定的项目列表。
- Created
Time string - 策略绑定时间。
- Description string
- 策略描述。
- Display
Name string - 显示名称。
- Entities
Id int - 唯一标识。
- Name string
- 对应用户、角色、用户组的名称。
- Policy
Scopes []GetPolicy Policy User Group Policy Scope - 策略绑定的项目列表。
- created
Time String - 策略绑定时间。
- description String
- 策略描述。
- display
Name String - 显示名称。
- entities
Id Integer - 唯一标识。
- name String
- 对应用户、角色、用户组的名称。
- policy
Scopes List<GetPolicy Policy User Group Policy Scope> - 策略绑定的项目列表。
- created
Time string - 策略绑定时间。
- description string
- 策略描述。
- display
Name string - 显示名称。
- entities
Id number - 唯一标识。
- name string
- 对应用户、角色、用户组的名称。
- policy
Scopes GetPolicy Policy User Group Policy Scope[] - 策略绑定的项目列表。
- created_
time str - 策略绑定时间。
- description str
- 策略描述。
- display_
name str - 显示名称。
- entities_
id int - 唯一标识。
- name str
- 对应用户、角色、用户组的名称。
- policy_
scopes Sequence[GetPolicy Policy User Group Policy Scope] - 策略绑定的项目列表。
- created
Time String - 策略绑定时间。
- description String
- 策略描述。
- display
Name String - 显示名称。
- entities
Id Number - 唯一标识。
- name String
- 对应用户、角色、用户组的名称。
- policy
Scopes List<Property Map> - 策略绑定的项目列表。
GetPolicyPolicyUserGroupPolicyScope
- Created
Time string - 项目授权时间。
- Policy
Scope stringType - 授权类型。Global代表全局授权,Project代表按项目授权。
- Project
Display stringName - 项目显示名。
- Project
Name string - 项目名。
- Created
Time string - 项目授权时间。
- Policy
Scope stringType - 授权类型。Global代表全局授权,Project代表按项目授权。
- Project
Display stringName - 项目显示名。
- Project
Name string - 项目名。
- created
Time String - 项目授权时间。
- policy
Scope StringType - 授权类型。Global代表全局授权,Project代表按项目授权。
- project
Display StringName - 项目显示名。
- project
Name String - 项目名。
- created
Time string - 项目授权时间。
- policy
Scope stringType - 授权类型。Global代表全局授权,Project代表按项目授权。
- project
Display stringName - 项目显示名。
- project
Name string - 项目名。
- created_
time str - 项目授权时间。
- policy_
scope_ strtype - 授权类型。Global代表全局授权,Project代表按项目授权。
- project_
display_ strname - 项目显示名。
- project_
name str - 项目名。
- created
Time String - 项目授权时间。
- policy
Scope StringType - 授权类型。Global代表全局授权,Project代表按项目授权。
- project
Display StringName - 项目显示名。
- project
Name String - 项目名。
GetPolicyPolicyUserPolicyScope
- Created
Time string - 项目授权时间。
- Policy
Scope stringType - 授权类型。Global代表全局授权,Project代表按项目授权。
- Project
Display stringName - 项目显示名。
- Project
Name string - 项目名。
- Created
Time string - 项目授权时间。
- Policy
Scope stringType - 授权类型。Global代表全局授权,Project代表按项目授权。
- Project
Display stringName - 项目显示名。
- Project
Name string - 项目名。
- created
Time String - 项目授权时间。
- policy
Scope StringType - 授权类型。Global代表全局授权,Project代表按项目授权。
- project
Display StringName - 项目显示名。
- project
Name String - 项目名。
- created
Time string - 项目授权时间。
- policy
Scope stringType - 授权类型。Global代表全局授权,Project代表按项目授权。
- project
Display stringName - 项目显示名。
- project
Name string - 项目名。
- created_
time str - 项目授权时间。
- policy_
scope_ strtype - 授权类型。Global代表全局授权,Project代表按项目授权。
- project_
display_ strname - 项目显示名。
- project_
name str - 项目名。
- created
Time String - 项目授权时间。
- policy
Scope StringType - 授权类型。Global代表全局授权,Project代表按项目授权。
- project
Display StringName - 项目显示名。
- project
Name String - 项目名。
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
Viewing docs for bytepluscc v0.0.16
published on Monday, Mar 9, 2026 by Byteplus
published on Monday, Mar 9, 2026 by Byteplus
