Ada lebih banyak contoh AWS SDK yang tersedia di repo Contoh SDK AWS Doc
Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.
Gunakan DescribeTrusts
dengan CLI
Contoh kode berikut menunjukkan cara menggunakanDescribeTrusts
.
- CLI
-
- AWS CLI
-
Untuk mendapatkan detail tentang hubungan kepercayaan Anda
describe-trusts
Contoh berikut menampilkan rincian tentang hubungan kepercayaan untuk direktori tertentu.aws ds describe-trusts \ --directory-id
d-a1b2c3d4e5
Output:
{ "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" } ] }
-
Untuk detail API, lihat DescribeTrusts
di Referensi AWS CLI Perintah.
-
- PowerShell
-
- Alat untuk PowerShell
-
Contoh 1: Perintah ini mendapatkan informasi hubungan kepercayaan yang dibuat untuk direktori-id tertentu.
Get-DSTrust -DirectoryId d-123456abcd
Output:
CreatedDateTime : 7/5/2019 4:55:42 AM DirectoryId : d-123456abcd LastUpdatedDateTime : 7/5/2019 4:56:04 AM RemoteDomainName : contoso.com SelectiveAuth : Disabled StateLastUpdatedDateTime : 7/5/2019 4:56:04 AM TrustDirection : One-Way: Incoming TrustId : t-9067157123 TrustState : Created TrustStateReason : TrustType : Forest
-
Untuk detail API, lihat DescribeTrustsdi Referensi Alat AWS untuk PowerShell Cmdlet.
-
DescribeDirectories
AWS DMS