全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

查询用户附加策略列表

请求参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数
参数名称
类型
必填
描述
Action String
公共参数,本接口取值:ListAttachedUserPolicies。
Version String
公共参数,本接口取值:2015-11-01。
UserName String

待查询策略列表的目标用户名

Marker String

当返回结果被截断时,使用本次返回的Marker值用于标示下次调用查询策略信息列表操作的起始点
最短1,最长320

MaxItems String

用于限制本次查询结果返回的策略数量,如果仍有额外策略未显示,则返回元素中的IsTruncated的值会被设置为true,同时返回下次查询的起始点Marker值
最小值1,最大值1000,默认100

返回参数

参数名称
类型
描述
ListAttachedUserPoliciesResult Object
AttachedPolicies Object
member Object[]
PolicyKrn String
示例值:krn:ksc:iam::2000143391:policy\/kspolicy-20211012211152
PolicyName String
示例值:kspolicy-20211012211152
CreateTime String
示例值:2021-10-12 21:13:49
Description String
Description_en String
Type Int
示例值:2
IsTruncated Boolean
示例值:true
Marker String
示例值:xxx
RequestId String
示例值:260f7d56-3c3a-4f06-922c-a987c4019be2

请求示例

curl -X GET|POST
'http://iam.api.ksyun.com/?Action=ListAttachedUserPolicies&Version=2015-11-01'
-H 'authorization: xxx, SignedHeaders=content-type;host;x-amz-date, Signature=xxx'
-H 'cache-control: no-cache'
-H 'content-type: application/x-www-form-urlencoded'
-H 'host: iam.api.ksyun.com'
-H 'x-amz-date: 20170720T022802Z'
-d 'UserName=xxx&Marker=xxx&MaxItems=xxx'

返回示例

JSON格式

{
"ListAttachedUserPoliciesResult":{
"AttachedPolicies":{
"member":[
{
"PolicyKrn":"krn:ksc:iam::2000143391:policy\/kspolicy-20211012211152",
"PolicyName":"kspolicy-20211012211152",
"CreateTime":"2021-10-12 21:13:49",
"Description":"",
"Description_en":"",
"Type":2
}
]
},
"IsTruncated":true,
"Marker":"xxx"
},
"RequestId":"260f7d56-3c3a-4f06-922c-a987c4019be2"
}

XML格式

{"errno":-2,"errmsg":"Empty parameter: api_id","data":[],"request_id":"8ea45be3-5ef5-4030-9c3d-8f5eff20184e"}

错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码

错误码
错误信息
Http状态码
描述
InvalidParameterValueAn value must be supplied for the input parameter %s.400输入参数%s的值不能为空,具体参数名在%s说明
InvalidParameterValueAn invalid or out-of-range value was supplied for the input parameter %s.400输入参数 %s的值无效、不合法或者超出范围,具体参数名在%s说明
UserNoSuchEntityThe request was rejected because it referenced ‘User’ that does not exist.404请求被拒绝,因其引用的“用户”不存在
纯净模式常规模式

纯净模式

点击可全屏预览文档内容