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 ListFargateProfiles
dengan CLI
Contoh kode berikut menunjukkan cara menggunakanListFargateProfiles
.
- CLI
-
- AWS CLI
-
Untuk membuat daftar semua profil fargate di cluster Amazon EKS Anda bernama `` my-eks-cluster
list-fargate-profiles
Contoh berikut mencantumkan semua profil fargate di cluster Amazon EKS Anda bernama my-eks-cluster.aws eks list-fargate-profiles \ --cluster-name
my-eks-cluster
Output:
{ "fargateProfileNames": [ "my-fargate-profile" ] }
-
Untuk detail API, lihat ListFargateProfiles
di Referensi AWS CLI Perintah.
-
- PowerShell
-
- Alat untuk PowerShell V4
-
Contoh 1: Cmdlet ini mencantumkan profil AWS Fargate yang terkait dengan cluster tertentu di Region yang ditentukan. Akun AWS
Get-EKSFargateProfileList -ClusterName "TEST"
Output:
EKSFargate EKSFargateProfile
-
Untuk detail API, lihat ListFargateProfilesdi Referensi Alat AWS untuk PowerShell Cmdlet (V4).
-
- Alat untuk PowerShell V5
-
Contoh 1: Cmdlet ini mencantumkan profil AWS Fargate yang terkait dengan cluster tertentu di Region yang ditentukan. Akun AWS
Get-EKSFargateProfileList -ClusterName "TEST"
Output:
EKSFargate EKSFargateProfile
-
Untuk detail API, lihat ListFargateProfilesdi Referensi Alat AWS untuk PowerShell Cmdlet (V5).
-