# CLI命令参考（ IAM身份中心PortalAPI）
#### 账户管理
| API名称 | 命令                                          | 描述           | 操作                                                                                                        |
|:---|:---|:---|:---|
| 列出账号  | hcloud IdentityCenterPortalAPI ListAccounts | 列出分配给用户的所有账号 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/IdentityCenterPortalAPI/cli?api=ListAccounts) |
   
#### 委托管理
| API名称  | 命令                                                 | 描述                  | 操作                                                                                                               |
|:---|:---|:---|:---|
| 列出账号委托 | hcloud IdentityCenterPortalAPI ListAccountAgencies | 列出账号分配给用户的所有委托或信任委托 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/IdentityCenterPortalAPI/cli?api=ListAccountAgencies) |
   
#### 凭证管理
| API名称  | 命令                                                  | 描述                        | 操作                                                                                                                |
|:---|:---|:---|:---|
| 获取委托凭证 | hcloud IdentityCenterPortalAPI GetAgencyCredentials | 获取分配给用户的指定委托或信任委托的STS短期凭证 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/IdentityCenterPortalAPI/cli?api=GetAgencyCredentials) |
   
#### 令牌管理
| API名称 | 命令                                    | 描述                                      | 操作                                                                                                  |
|:---|:---|:---|:---|
| 登出用户  | hcloud IdentityCenterPortalAPI Logout | 向IAM身份中心服务发送API调用，使相应的服务端IAM身份中心登录会话失效。 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/IdentityCenterPortalAPI/cli?api=Logout) |
   
