You need to enable JavaScript to run this app.
导航
ListProjectIdentities - 获取项目身份实体列表
最近更新时间:2023.11.03 11:34:29首次发布时间:2023.08.24 21:41:32

获取项目身份实体列表

请求参数

名称
类型
是否必填
示例值
描述
Action
String

ListProjectIdentities

要执行的操作,取值:ListProjectIdentities

Version
String

2021-08-01

API的版本,取值:2021-08-01

Limit
Integer

10

页面大小

Offset
Integer

0

页面偏移

IdentityType
String

User

身份类型

Query
String

username

可对用户/角色/用户组的展示名称进行模糊查询

ProjectName
String

project

项目名称

响应数据

名称
类型
示例值
描述
Limit
Integer

10

页面大小

Offset
Integer

0

页码偏移

Total
Integer

100

总数

ProjectUserGroups
Array of ProjectUserGroup

{
"UserGroupName": "ServiceRoleForECS",
"DisplayName": "ECS服务关联角色",
"Description": "ECS服务关联角色",
"Policy": [
{
"PolicyTrn": "trn:iam::0:policy/BillFullAccess",
"PolicyName": "BillFullAccess",
"PolicyType": "System",
"Description": "账户内财务相关的内容管理权限(例如账单、订单等)\t",
"AttachDate": "20230810T073620Z",
"IsServiceRolePolicy": 0
}
],
"UpdateDate": "20230810T073620Z"
}

项目相关的用户组

ProjectUsers
Array of ProjectUsers

{
"UserName": "test",
"DisplayName": "",
"Description": "",
"Policy": [
{
"PolicyTrn": "trn:iam::0:policy/BillFullAccess",
"PolicyName": "BillFullAccess",
"PolicyType": "System",
"Description": "账户内财务相关的内容管理权限(例如账单、订单等)",
"AttachDate": "20230810T073747Z",
"IsServiceRolePolicy": 0
},
"UpdateDate": "20230810T073747Z"
}

项目用户信息

ProjectRoles
Array of ProjectRoles

{
"RoleName": "adminrole",
"DisplayName": "pln",
"Description": "",
"Policy": [
{
"PolicyTrn": "trn:iam::0:policy/AdministratorAccess",
"PolicyName": "AdministratorAccess",
"PolicyType": "System",
"Description": "帐户服务和资源的管理权限",
"AttachDate": "20230707T040408Z",
"IsServiceRolePolicy": 0
}
],
"UpdateDate": "20230707T040408Z"
}

项目角色

示例

请求

http://iam.volcengineapi.com/?Action=ListProjectIdentities
&Version=2021-08-01
&IdentityType=UserGroup
&ProjectName=project-name

响应

{
    "ResponseMetadata": {
        "RequestId": "2023013119142188D662C7C9EBB410A9E6",
        "Action": "ListProjectIdentities",
        "Version": "2021-08-01",
        "Service": "iam",
        "Region": "cn-north-1"
    },
    "Result": {
        "ProjectUserGroups": [
            {
                "UserGroupName": "user-group",
                "DisplayName": "",
                "Description": "",
                "Policy": [
                    {
                        "PolicyTrn": "trn:iam::0:policy/TagFullAcess",
                        "PolicyName": "TagFullAcess",
                        "PolicyType": "System",
                        "Description": "该策略允许您管理账户内标签服务相关的内容,例如按标签查询等相关内容\t",
                        "AttachDate": "20230131T083501Z",
                        "IsServiceRolePolicy": 0
                    }
                ],
                "UpdateDate": "20230131T083501Z"
            }
        ],
        "Limit": 10,
        "Offset": 0,
        "Total": 1
    }
}

错误码

您可访问公共错误码,获取详细信息。