文档 AWS SDK 示例 GitHub 存储库中还有更多 S AWS DK 示例
本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
将 DescribeTrusts
与 CLI 配合使用
以下代码示例演示如何使用 DescribeTrusts
。
- AWS CLI
-
获取有关您信任关系的详细信息
以下
describe-trusts
示例显示指定目录的信任关系的详细信息。aws ds describe-trusts \ --directory-id
d-a1b2c3d4e5
输出:
{ "Trusts": [ { "DirectoryId": "d-a1b2c3d4e5", "TrustId": "t-9a8b7c6d5e", "RemoteDomainName": "other.example.com", "TrustType": "Forest", "TrustDirection": "Two-Way", "TrustState": "Verified", "CreatedDateTime": "2017-06-20T18:08:45.614000-07:00", "LastUpdatedDateTime": "2019-06-04T10:52:12.410000-07:00", "StateLastUpdatedDateTime": "2019-06-04T10:52:12.410000-07:00", "SelectiveAuth": "Disabled" } ] }
-
有关 API 的详细信息,请参阅AWS CLI 命令参考DescribeTrusts
中的。
-