

# 查看您的 AWS 账户 ID
<a name="console-account-id"></a>

如果您已登录控制台，则可以使用以下方法查看您的 AWS 账户 的账户 ID。

## 查看您的 AWS 账户 ID
<a name="console-account-id-section-1"></a>

------
#### [ Console ]

当您转到 IAM **控制面板**的 AWS 账户 部分时，将显示 AWS 账户 ID。您也可以在右上角的导航栏中查看您的账户 ID。选择您的用户名，账户 ID 会显示在您的用户名上方。

![账户信息下拉框（带突出显示的账户 ID）](http://docs.aws.amazon.com/zh_cn/IAM/latest/UserGuide/images/find-account-id.png)


------
#### [ AWS CLI ]

使用以下命令查看您的用户 ID、账户 ID 和用户 ARN：
+ [aws sts get-caller-identity](https://docs.aws.amazon.com/cli/latest/reference/sts/get-caller-identity.html)

------
#### [ API ]

使用以下 API 查看您的用户 ID、账户 ID 和用户 ARN：
+ [GetCallerIdentity](https://docs.aws.amazon.com/STS/latest/APIReference/API_GetCallerIdentity.html) 

------