Documentation
¶
Overview ¶
查询子账号下的授权策略
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct {
Count int64 // IAM 子账号的授权策略数量
List GetIamUserPolicies // IAM 子账号的授权策略列表
}
IAM 子账号的授权策略信息
func (*Data) MarshalJSON ¶
func (*Data) UnmarshalJSON ¶
type GetIamUserPolicy ¶
type GetIamUserPolicy struct {
Id string // 记录 ID
RootUid int64 // 根用户 uid
Alias string // 授权策略别名
Description string // 授权策略描述
Enabled bool // 授权策略是否启用
CreatedAt string // 授权策略创建时间
UpdatedAt string // 授权策略上次更新时间
Statement Statements // 授权策略规则集合
}
返回的 IAM 子账号的授权策略
func (*GetIamUserPolicy) MarshalJSON ¶
func (j *GetIamUserPolicy) MarshalJSON() ([]byte, error)
func (*GetIamUserPolicy) UnmarshalJSON ¶
func (j *GetIamUserPolicy) UnmarshalJSON(data []byte) error
type Request ¶
type Request struct {
Alias string // 子账号别名
Page int64 // 分页页号,从 1 开始,默认 1
PageSize int64 // 分页大小,默认 20,最大 2000
Credentials credentials.CredentialsProvider // 鉴权参数,用于生成鉴权凭证,如果为空,则使用 HTTPClientOptions 中的 CredentialsProvider
}
调用 API 所用的请求
type Response ¶
type Response struct {
Data GetIamUserPoliciesData // IAM 子账号的授权策略信息
}
获取 API 所用的响应
func (*Response) MarshalJSON ¶
func (*Response) UnmarshalJSON ¶
type Statement ¶
type Statement struct {
Actions Actions // 授权策略规则的操作集合
Resources Resources // 授权策略规则的资源集合
Effect string // 授权策略规则的生效类型,允许访问或拒绝访问
}
授权策略规则
func (*Statement) MarshalJSON ¶
func (*Statement) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.