Mengontrol akses dengan IAM

Cloud Translation - Advanced API (v3) menggunakan Identity and Access Management (IAM) untuk mengontrol akses. Tetapkan satu atau beberapa peran IAM ke akun utama untuk memberikan izin. Untuk informasi selengkapnya, lihat Peran dasar dan standar IAM.

Peran Cloud Translation yang telah ditetapkan untuk v3

Tabel berikut mencantumkan peran yang telah ditetapkan yang memberi Anda akses ke resource Cloud Translation:

Role Permissions

(roles/cloudtranslate.admin)

Full access to all Cloud Translation resources

automl.models.get

automl.models.predict

cloudtranslate.*

  • cloudtranslate.adaptiveMtDatasets.create
  • cloudtranslate.adaptiveMtDatasets.delete
  • cloudtranslate.adaptiveMtDatasets.get
  • cloudtranslate.adaptiveMtDatasets.import
  • cloudtranslate.adaptiveMtDatasets.list
  • cloudtranslate.adaptiveMtDatasets.predict
  • cloudtranslate.adaptiveMtFiles.delete
  • cloudtranslate.adaptiveMtFiles.get
  • cloudtranslate.adaptiveMtFiles.list
  • cloudtranslate.adaptiveMtSentences.list
  • cloudtranslate.customModels.create
  • cloudtranslate.customModels.delete
  • cloudtranslate.customModels.get
  • cloudtranslate.customModels.list
  • cloudtranslate.customModels.predict
  • cloudtranslate.datasets.create
  • cloudtranslate.datasets.delete
  • cloudtranslate.datasets.export
  • cloudtranslate.datasets.get
  • cloudtranslate.datasets.import
  • cloudtranslate.datasets.list
  • cloudtranslate.generalModels.batchDocPredict
  • cloudtranslate.generalModels.batchPredict
  • cloudtranslate.generalModels.docPredict
  • cloudtranslate.generalModels.get
  • cloudtranslate.generalModels.predict
  • cloudtranslate.glossaries.batchDocPredict
  • cloudtranslate.glossaries.batchPredict
  • cloudtranslate.glossaries.create
  • cloudtranslate.glossaries.delete
  • cloudtranslate.glossaries.docPredict
  • cloudtranslate.glossaries.get
  • cloudtranslate.glossaries.list
  • cloudtranslate.glossaries.predict
  • cloudtranslate.glossaries.update
  • cloudtranslate.glossaryentries.create
  • cloudtranslate.glossaryentries.delete
  • cloudtranslate.glossaryentries.get
  • cloudtranslate.glossaryentries.list
  • cloudtranslate.glossaryentries.update
  • cloudtranslate.languageDetectionModels.predict
  • cloudtranslate.locations.get
  • cloudtranslate.locations.list
  • cloudtranslate.operations.cancel
  • cloudtranslate.operations.delete
  • cloudtranslate.operations.get
  • cloudtranslate.operations.list
  • cloudtranslate.operations.wait

resourcemanager.projects.get

resourcemanager.projects.list

(roles/cloudtranslate.editor)

Editor of all Cloud Translation resources

automl.models.get

automl.models.predict

cloudtranslate.*

  • cloudtranslate.adaptiveMtDatasets.create
  • cloudtranslate.adaptiveMtDatasets.delete
  • cloudtranslate.adaptiveMtDatasets.get
  • cloudtranslate.adaptiveMtDatasets.import
  • cloudtranslate.adaptiveMtDatasets.list
  • cloudtranslate.adaptiveMtDatasets.predict
  • cloudtranslate.adaptiveMtFiles.delete
  • cloudtranslate.adaptiveMtFiles.get
  • cloudtranslate.adaptiveMtFiles.list
  • cloudtranslate.adaptiveMtSentences.list
  • cloudtranslate.customModels.create
  • cloudtranslate.customModels.delete
  • cloudtranslate.customModels.get
  • cloudtranslate.customModels.list
  • cloudtranslate.customModels.predict
  • cloudtranslate.datasets.create
  • cloudtranslate.datasets.delete
  • cloudtranslate.datasets.export
  • cloudtranslate.datasets.get
  • cloudtranslate.datasets.import
  • cloudtranslate.datasets.list
  • cloudtranslate.generalModels.batchDocPredict
  • cloudtranslate.generalModels.batchPredict
  • cloudtranslate.generalModels.docPredict
  • cloudtranslate.generalModels.get
  • cloudtranslate.generalModels.predict
  • cloudtranslate.glossaries.batchDocPredict
  • cloudtranslate.glossaries.batchPredict
  • cloudtranslate.glossaries.create
  • cloudtranslate.glossaries.delete
  • cloudtranslate.glossaries.docPredict
  • cloudtranslate.glossaries.get
  • cloudtranslate.glossaries.list
  • cloudtranslate.glossaries.predict
  • cloudtranslate.glossaries.update
  • cloudtranslate.glossaryentries.create
  • cloudtranslate.glossaryentries.delete
  • cloudtranslate.glossaryentries.get
  • cloudtranslate.glossaryentries.list
  • cloudtranslate.glossaryentries.update
  • cloudtranslate.languageDetectionModels.predict
  • cloudtranslate.locations.get
  • cloudtranslate.locations.list
  • cloudtranslate.operations.cancel
  • cloudtranslate.operations.delete
  • cloudtranslate.operations.get
  • cloudtranslate.operations.list
  • cloudtranslate.operations.wait

resourcemanager.projects.get

resourcemanager.projects.list

(roles/cloudtranslate.user)

User of Cloud Translation and AutoML models

automl.models.get

automl.models.predict

cloudtranslate.adaptiveMtDatasets.get

cloudtranslate.adaptiveMtDatasets.list

cloudtranslate.adaptiveMtDatasets.predict

cloudtranslate.adaptiveMtFiles.get

cloudtranslate.adaptiveMtFiles.list

cloudtranslate.adaptiveMtSentences.list

cloudtranslate.customModels.get

cloudtranslate.customModels.list

cloudtranslate.customModels.predict

cloudtranslate.datasets.get

cloudtranslate.datasets.list

cloudtranslate.generalModels.*

  • cloudtranslate.generalModels.batchDocPredict
  • cloudtranslate.generalModels.batchPredict
  • cloudtranslate.generalModels.docPredict
  • cloudtranslate.generalModels.get
  • cloudtranslate.generalModels.predict

cloudtranslate.glossaries.batchDocPredict

cloudtranslate.glossaries.batchPredict

cloudtranslate.glossaries.docPredict

cloudtranslate.glossaries.get

cloudtranslate.glossaries.list

cloudtranslate.glossaries.predict

cloudtranslate.glossaryentries.get

cloudtranslate.glossaryentries.list

cloudtranslate.languageDetectionModels.predict

cloudtranslate.locations.*

  • cloudtranslate.locations.get
  • cloudtranslate.locations.list

cloudtranslate.operations.get

cloudtranslate.operations.list

cloudtranslate.operations.wait

resourcemanager.projects.get

resourcemanager.projects.list

(roles/cloudtranslate.viewer)

Viewer of all Translation resources

automl.models.get

cloudtranslate.adaptiveMtDatasets.get

cloudtranslate.adaptiveMtDatasets.list

cloudtranslate.adaptiveMtFiles.get

cloudtranslate.adaptiveMtFiles.list

cloudtranslate.adaptiveMtSentences.list

cloudtranslate.customModels.get

cloudtranslate.customModels.list

cloudtranslate.datasets.get

cloudtranslate.datasets.list

cloudtranslate.generalModels.get

cloudtranslate.glossaries.get

cloudtranslate.glossaries.list

cloudtranslate.glossaryentries.get

cloudtranslate.glossaryentries.list

cloudtranslate.locations.*

  • cloudtranslate.locations.get
  • cloudtranslate.locations.list

cloudtranslate.operations.get

cloudtranslate.operations.list

cloudtranslate.operations.wait

resourcemanager.projects.get

resourcemanager.projects.list

Peran khusus

Jika peran yang telah ditetapkan tidak menawarkan kumpulan izin yang tepat untuk kasus penggunaan Anda, buat peran khusus. Peran khusus dapat mencakup izin apa pun yang Anda tentukan. Misalnya, Anda dapat membuat peran khusus dengan operasi administratif tertentu, seperti membuat glosarium atau mengelola model kustom. Untuk membuat peran khusus, lihat Membuat dan mengelola peran khusus.

Langkah berikutnya

  • Untuk mengetahui informasi selengkapnya tentang cara memberikan peran pada project, lihat Memberikan peran. Anda dapat memberikan peran standar atau khusus dengan cara ini.
  • Untuk mempelajari IAM lebih lanjut, lihat Ringkasan IAM.