获取群组列表

所属服务

sam

接口方法

GET

请求url

/sam?Action=ListGroups&Version=2018-03-22

url 参数

参数名称说明参数类型是否必填备注
ActionListGroupsstring
Version2018-03-22string

返回参数

参数名称说明参数类型是否必填备注
Groups群组列表array详细信息见下表
CodeCodestring
MessageMessagestring

Groups

参数名称说明参数类型是否必填备注
GroupName群组名称string
Description群组描述string
CreateDate创建时间string
JoinTime加入时间string

状态码

错误码(Code)错误提示(Message)http status code说明
ProductNotActive400null

请求示例

https://open.cn-east-1.163yun.com/sam?Action=ListGroups&Version=2018-03-22

返回示例

{
	"Message": "调用成功",
	"RequestId": "e13ce1b6-f482-4735-a253-82d0ab1a190a",
	"Groups": [{
		"GroupName": "grouptest2",
		"Description": "test",
		"CreateDate": "2020-01-17T08:16:01Z"
	}, {
		"GroupName": "grouptest",
		"Description": "test",
		"CreateDate": "2020-01-17T07:54:48Z"
	}, {
		"GroupName": "newgrouptest",
		"Description": "new_group_test",
		"CreateDate": "2020-01-17T07:05:44Z"
	}],
	"Code": "Success"
}