Configurer, utiliser et auditer les comptes de service et les niveaux d'accès d'une VM avis
16088 avis
It doesn't work, I've done all the steps but it doesn't work, it gives me a score of 70. And I get this error: Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/google/auth/compute_engine/credentials.py", line 115, in refresh self._retrieve_info(request) File "/usr/local/lib/python3.7/dist-packages/google/auth/compute_engine/credentials.py", line 89, in _retrieve_info request, service_account=self._service_account_email File "/usr/local/lib/python3.7/dist-packages/google/auth/compute_engine/_metadata.py", line 287, in get_service_account_info return get(request, path, params={"recursive": "true"}) File "/usr/local/lib/python3.7/dist-packages/google/auth/compute_engine/_metadata.py", line 240, in get response, google.auth.exceptions.TransportError: ('Failed to retrieve http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/bigquery-qwiklab@qwiklabs-gcp-02-94b0daac9dea.iam.gserviceaccount.com/?recursive=true from the Google Compute Engine metadata service. Status: 404 Response:\nb\'<!DOCTYPE html>\\n<html lang=en>\\n <meta charset=utf-8>\\n <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">\\n <title>Error 404 (Not Found)!!1</title>\\n <style>\\n *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}\\n </style>\\n <a href=//www.google.com/><span id=logo aria-label=Google></span></a>\\n <p><b>404.</b> <ins>That\\xe2\\x80\\x99s an error.</ins>\\n <p>The requested URL <code>/computeMetadata/v1/instance/service-accounts/bigquery-qwiklab@qwiklabs-gcp-02-94b0daac9dea.iam.gserviceaccount.com/?recursive=true</code> was not found on this server. <ins>That\\xe2\\x80\\x99s all we know.</ins>\\n\'', <google.auth.transport.requests._Response object at 0x7ff7583805f8>) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "query.py", line 20, in <module> print(client.query(query).to_dataframe()) File "/usr/local/lib/python3.7/dist-packages/google/cloud/bigquery/client.py", line 3418, in query job_retry, File "/usr/local/lib/python3.7/dist-packages/google/cloud/bigquery/_job_helpers.py", line 114, in query_jobs_insert future = do_query() File "/usr/local/lib/python3.7/dist-packages/google/cloud/bigquery/_job_helpers.py", line 91, in do_query query_job._begin(retry=retry, timeout=timeout) File "/usr/local/lib/python3.7/dist-packages/google/cloud/bigquery/job/query.py", line 1310, in _begin super(QueryJob, self)._begin(client=client, retry=retry, timeout=timeout) File "/usr/local/lib/python3.7/dist-packages/google/cloud/bigquery/job/base.py", line 701, in _begin timeout=timeout, File "/usr/local/lib/python3.7/dist-packages/google/cloud/bigquery/client.py", line 816, in _call_api return call() File "/usr/local/lib/python3.7/dist-packages/google/api_core/retry.py", line 354, in retry_wrapped_func on_error=on_error, File "/usr/local/lib/python3.7/dist-packages/google/api_core/retry.py", line 191, in retry_target return target() File "/usr/local/lib/python3.7/dist-packages/google/cloud/_http/__init__.py", line 490, in api_request extra_api_info=extra_api_info, File "/usr/local/lib/python3.7/dist-packages/google/cloud/_http/__init__.py", line 342, in _make_request method, url, headers, data, target_object, timeout=timeout File "/usr/local/lib/python3.7/dist-packages/google/cloud/_http/__init__.py", line 380, in _do_request url=url, method=method, headers=headers, data=data, timeout=timeout File "/usr/local/lib/python3.7/dist-packages/google/auth/transport/requests.py", line 545, in request self.credentials.before_request(auth_request, method, url, request_headers) File "/usr/local/lib/python3.7/dist-packages/google/auth/credentials.py", line 156, in before_request self.refresh(request) File "/usr/local/lib/python3.7/dist-packages/google/auth/compute_engine/credentials.py", line 121, in refresh six.raise_from(new_exc, caught_exc) File "<string>", line 3, in raise_from google.auth.exceptions.RefreshError: ('Failed to retrieve http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/bigquery-qwiklab@qwiklabs-gcp-02-94b0daac9dea.iam.gserviceaccount.com/?recursive=true from the Google Compute Engine metadata service. Status: 404 Response:\nb\'<!DOCTYPE html>\\n<html lang=en>\\n <meta charset=utf-8>\\n <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">\\n <title>Error 404 (Not Found)!!1</title>\\n <style>\\n *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}\\n </style>\\n <a href=//www.google.com/><span id=logo aria-label=Google></span></a>\\n <p><b>404.</b> <ins>That\\xe2\\x80\\x99s an error.</ins>\\n <p>The requested URL <code>/computeMetadata/v1/instance/service-accounts/bigquery-qwiklab@qwiklabs-gcp-02-94b0daac9dea.iam.gserviceaccount.com/?recursive=true</code> was not found on this server. <ins>That\\xe2\\x80\\x99s all we know.</ins>\\n\'', <google.auth.transport.requests._Response object at 0x7ff7583805f8>)
VICTOR J. · Examiné il y a presque 3 ans
Jude C. · Examiné il y a presque 3 ans
VICTOR J. · Examiné il y a presque 3 ans
Jai G. · Examiné il y a presque 3 ans
Suman Kumar M. · Examiné il y a presque 3 ans
Ibrahim Y. · Examiné il y a presque 3 ans
Anubhav R. · Examiné il y a presque 3 ans
done
Sushanta D. · Examiné il y a presque 3 ans
Jyoti K. · Examiné il y a presque 3 ans
Daniel G. · Examiné il y a presque 3 ans
Abdul S. · Examiné il y a presque 3 ans
15 g. · Examiné il y a presque 3 ans
10 g. · Examiné il y a presque 3 ans
04 g. · Examiné il y a presque 3 ans
otis t. · Examiné il y a presque 3 ans
维 哲. · Examiné il y a presque 3 ans
Yaakov E. · Examiné il y a presque 3 ans
itshak d. · Examiné il y a presque 3 ans
avishai w. · Examiné il y a presque 3 ans
meir k. · Examiné il y a presque 3 ans
Leon R. · Examiné il y a presque 3 ans
Yakov O. · Examiné il y a presque 3 ans
Omer L. · Examiné il y a presque 3 ans
bar e. · Examiné il y a presque 3 ans
Ilan B. · Examiné il y a presque 3 ans
Nous ne pouvons pas certifier que les avis publiés proviennent de consommateurs qui ont acheté ou utilisé les produits. Les avis ne sont pas vérifiés par Google.