获取群组绑定的策略

所属服务

sam

接口方法

GET

请求url

/sam?Action=GetGroupPolicy&Version=2018-03-22&GroupName=

url 参数

参数名称说明参数类型是否必填备注
ActionGetGroupPolicystring
Version2018-03-22string
GroupName组名(1-64位小写字母、数字、中划线组成,以字母开头,字母或数字结尾)string

返回参数

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

Policies

参数名称说明参数类型是否必填备注
PolicyName策略名称string
Description策略描述string
CurrentVersionId当前使用版本string
AttachmentCount引用次数string
PolicyType策略类型string
PolicyDocument策略授权语言string
CreateTime创建时间string

状态码

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

请求示例

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

返回示例

{
	"Policies": [{
		"PolicyName": "Policytest",
		"Description": "test",
		"CurrentVersionId": 1.0,
		"AttachmentCount": 1.0,
		"PolicyType": "Custom",
		"PolicyDocument": "{\"version\": 1, \"statement\": [{\"action\": [\"comb:nvm:*\"], \"effect\": \"allow\", \"resource\": [\"comb:nvm:*:*:*\"]}]}",
		"CreateTime": "2020-01-17T07:44:41Z"
	}],
	"Message": "调用成功",
	"RequestId": "f494077c-d87d-49ce-880e-38530f80008a",
	"Code": "Success"
}