Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 6
Next »
Log in to https://console.cloud.google.com/home/dashboard.
Go to project settings:
Go to Service Accounts:
Create an account by clicking +CREATE SERVICE ACCOUNT or use an existing one.
Provide Service account details:
Select Service account permissions:
Create key:
A dialog window should be displayed on the right-hand side:
Download a JSON file:
EXAMPLE: {
"type": "service_account",
"project_id": "auto-ml-project-2",
"private_key_id": "private_key_id",
"private_key": "KEY_STRING",
"client_email": "piter-213@auto-ml-project-2.iam.gserviceaccount.com",
"client_id": "1234567890",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/piter-213%40auto-ml-project-2.iam.gserviceaccount.com"
}
|
The private_key value contains often unnecessary \n characters. To use a valid key, remove \n:
EXAMPLE BEFORE THE CHANGE | EXAMPLE AFTER THE CHANGE |
"private_key": "-----BEGIN PRIVATE KEY-----\nMYKEYEXAMPLEgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDijWmME7LKHXmY\nKFbu8o0BtObaZ7nlx7fxyuBepQjNEEOHCN4Wv4G36Z9ZZ3cPtwOe8X2gxkAmOX/E\nNLIPkbOukshZkeiByRE+eGfuiDKr/pt9PmuDGN+rx7q0mGAfmbaB/BnDVHsVVjYw\nQKmulyZs8K4t3YgK9dLZ0aCzC231fkZINCGzisJRA/1xD5a871mlQgKWkZg1soez\n0Cilg4zs4kKDIrA6+YgGMdcYBuTByCZJ99BtODdmiVRgJgS9lT1p6ZQUmXJqORKP\nZlhIh16QAzo4XS2GvVW1s2gG6TDEWziJPpM/7nHyqd9UBxY3L0wuQvaYvuzkS4UA\nXcIJWI6lAgMBAAECggEAB7MzdG/mOzOk5XBMdwRvDV+dj5T2k0IDZqspSRQJERZ2\nbF3I+Mpp3yy22IKDjrYW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Dk3YjN5+JBxEG0AzRpcT2QT7zCwclxTyAg7Ddnv7V+TL2WN2hwTA7f04FlCZwgJEZwefkuixtfR4tK9U9zuvxDyXnCqk49HATokyfviTr6K1TZar5Z1t/M6GDEWGepcxleWwKhcS5V5DExF2PWB02xC7C7ZruA2thndZblrhvAXwKBgQCiB9+k/tQAe8LLOTIx03vHV7bpu201SYFjvusKTrEGMcgVxZNZzvAMsFlgBWCWS616vRRVXq/O3hN1n505nR5kV6pFz05QRt+Tjy/QY+xq+iXrYig/eqPabKWQjQPe+gnYmGKwhDyttosx6Mcur1cEbHWHIzwBojNlaWhHxeFR4QKBgQDPdV2AQLVhJlTkp48IEcVbnlweMum2k6ItFdL3cdlEPq4Qj/NU8Cz/icseWoKyxA8x/+732NMcIE9MyGeYIaRwkh6UbipzzIVKibJGuR/EDCli2BbqexPtu6uT8AsvmA0j8d3FmEIHS82nkWtHZOFxHoa6qVpIaJiH2BjL5HJ1gwKBgQDRSXUc4VkiyyF/3KUienl5WZC2gT4pnTlx09UkP5ydC21guGRNyJlfXtZlcq/tPTXc6ZBG0k7p6WUfAK6egBXo5woRrwT4otgblwVv/ZsyQnuRNQ8InUggv7MkSIcpYBhq6uwzB8Cl3xuxtnyHjutJa1zXWdJER3L5lPkXLvXzhw==-----END PRIVATE KEY-----"
|
The new service account should be available in the accounts list:
Configure Google AutoML in the XTM Cloud UI (administrative privileges required!) in Configuration → Settings → Translation → Machine translation → Google machine translation.