全部文档
当前文档

暂无内容

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

文档中心

获取用户组基础信息

请求参数

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

用户组名称

MaxItems String

最大返回个数,默认值100

Marker String

当返回结果被截断时,使用本次返回的Marker值用于标示下次调用查询用户操作的起始点

返回参数

参数名称
类型
描述
GetGroupResult Object
Group Object
Group Object

用户组ID

GroupId String
示例值:9b5JV0eZSIC_tAEvntpCWA
Path String
示例值:/
GroupName String

用户组名称

示例值:test_group
Description String

用户组描述

CreateDate String

创建时间

示例值:2021-11-22T08:53:30Z
Krn String

用户组krn标识

示例值:krn:ksc:iam::200014391:group/test_group
RequestId String
示例值:c1023bd4-4afb-4b89-8091-3cf274ff2ae4

请求示例

curl -X GET|POST
'http://iam.api.ksyun.com/?Action=GetGroup&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 'GroupName=xxx&MaxItems=xxx&Marker=xxx'

返回示例

JSON格式

{
"GetGroupResult":{
"Group":{
"Group":{
"GroupId":"9b5JV0eZSIC_tAEvntpCWA",
"Path":"/",
"GroupName":"test_group",
"Description":"",
"CreateDate":"2021-11-22T08:53:30Z",
"Krn":"krn:ksc:iam::200014391:group/test_group"
}
}
},
"RequestId":"c1023bd4-4afb-4b89-8091-3cf274ff2ae4"
}

错误码

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

纯净模式常规模式

纯净模式

点击可全屏预览文档内容