Home >Operation and Maintenance >Linux Operation and Maintenance >How to query all users who have shared a custom image
The content of this article is about how to query all users who have shared a custom image. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
DescribeImageSharePermission
Request Parameters
##Return Parameters
Example
Request Example
https://ecs.aliyuncs.com/?Action=DescribeImageSharePermission &RegionId=cn-qingdao &ImageId=m-282dzntc7 &<公共请求参数>
Return example
XML format
<DescribeImageSharePermissionResponse> <ImageId>m-282dzntc7</ImageId> <PageNumber>1</PageNumber> <PageSize>10</PageSize> <RegionId>cn-qingdao</RegionId> <TotalCount>1</TotalCount> <RequestId>441CF898-42FF-47CF-9348-3C3BFF557278</RequestId> <ShareGroups> <ShareGroup> <Group>all</Group> </ShareGroup> </ShareGroups> <Accounts> <Account> <AliyunId>1886508529898586</AliyunId> </Account> </Accounts> </DescribeImageSharePermissionResponse>
JSON format
{ "ShareGroups": { "ShareGroup": [ { "Group": "all" } ] }, "Accounts": { "Account": [ { "AliyunId": "1886508529898586" } ] }, "ImageId": "m-282dzntc7", "PageNumber": 1, "PageSize": 10, "RegionId": "cn-qingdao", "TotalCount": 1, "RequestId": "9AD96F49-0BE5-4868-A66A-224352549CEC" }
Error codes
The following are the error codes unique to this interface. For more error codes, please visit the API Error Center.The above is the detailed content of How to query all users who have shared a custom image. For more information, please follow other related articles on the PHP Chinese website!