title: Google Cloud Shell and Cloud Storage - Permission to access the GCS address is denied
body: <p>I'm trying to set up Google's Natural Language Processing API using Google Cloud Shell and Cloud Storage.</p>
  
  <p>My issue is, I keep getting this error when I point the code at the particular bucket object:</p>
  
  <pre><code>{
    "error": {
      "code": 401,
      "message": "Permission to access the GCS address is denied.",
      "status": "UNAUTHENTICATED",
      "details": [
        {
          "@type": "type.googleapis.com/google.rpc.BadRequest",
          "fieldViolations": [
            {
              "field": "document.gcs_content_uri",
              "description": "Permission to access the GCS address is denied."
  </code></pre>
  
  <p>This is the code I'm using:</p>
  
  <pre><code>curl -s -X POST -H "Content-Type: application/json" --data-binary @requestb.json https://language.googleapis.com/v1beta1/documents:analyzeEntities?key=${NL_
  API_KEY}
  </code></pre>
  
  <p>I'm the owner of the Cloud account and have access to all projects. Is there something I'm missing here?</p>
  
  <p>The API call works fine with Cloud Shell if I set the object to 'Public'. </p>
  
  <p>Any help on this would be really appreciated!</p>
  
  <p>Thanks</p>