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 ListDeploymentGroups dengan CLI
Contoh kode berikut menunjukkan cara menggunakanListDeploymentGroups.
- CLI
-
- AWS CLI
-
Untuk mendapatkan informasi tentang grup penyebaran
list-deployment-groupsContoh berikut menampilkan informasi tentang semua kelompok penyebaran yang terkait dengan aplikasi yang ditentukan.aws deploy list-deployment-groups --application-nameWordPress_AppOutput:
{ "applicationName": "WordPress_App", "deploymentGroups": [ "WordPress_DG", "WordPress_Beta_DG" ] }-
Untuk detail API, lihat ListDeploymentGroups
di Referensi AWS CLI Perintah.
-
- PowerShell
-
- Alat untuk PowerShell V4
-
Contoh 1: Contoh ini mendapatkan daftar grup penyebaran untuk aplikasi yang ditentukan.
Get-CDDeploymentGroupList -ApplicationName CodeDeployDemoApplicationOutput:
ApplicationName DeploymentGroups NextToken --------------- ---------------- --------- CodeDeployDemoApplication {CodeDeployDemoFleet, CodeDeployProductionFleet}-
Untuk detail API, lihat ListDeploymentGroupsdi Referensi Alat AWS untuk PowerShell Cmdlet (V4).
-
- Alat untuk PowerShell V5
-
Contoh 1: Contoh ini mendapatkan daftar grup penyebaran untuk aplikasi yang ditentukan.
Get-CDDeploymentGroupList -ApplicationName CodeDeployDemoApplicationOutput:
ApplicationName DeploymentGroups NextToken --------------- ---------------- --------- CodeDeployDemoApplication {CodeDeployDemoFleet, CodeDeployProductionFleet}-
Untuk detail API, lihat ListDeploymentGroupsdi Referensi Alat AWS untuk PowerShell Cmdlet (V5).
-