Controla el acceso con IAM

La API de Cloud Translation Advanced (v3) usa la administración de identidades y accesos (IAM) para controlar el acceso. Asigna uno o más roles de IAM a una principal para otorgar permisos. Para obtener más información, consulta roles básicos y predefinidos de IAM.

Funciones predefinidas de Cloud Translation v3

En la siguiente tabla, se enumeran las funciones predefinidas que te brindan acceso a los recursos de 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

Funciones personalizadas

Si una función predefinida no ofrece el conjunto adecuado de permisos para tu caso de uso, crea un rol personalizado. Los roles personalizados pueden incluir cualquier permiso que especifiques. Por ejemplo, puedes crear un rol personalizado con operaciones administrativas específicas, como crear glosarios o administrar modelos personalizados. Para crear roles personalizados, consulta Crea y administra roles personalizados.

¿Qué sigue?

  • Para obtener más información sobre cómo otorgar un rol en un proyecto, consulta Otorga un rol. Puedes otorgar roles predefinidos o personalizados de esta manera.
  • Para obtener más información sobre IAM, consulta Descripción general de IAM.