Whatever you specify as part of the GcsFileOptions will be passed directly
to GCS. So you can refer to the GCS access control documentation for how to
set things and how varrious ACLs will be interpreted:
https://developers.google.com/storage/docs/accesscontrol#About-Access-Control-Lists
If you go to the cloud console, you should be able to see the email
addresses associated with your account including the one that is used for
the App Engine Application's identity.


On Wed, Jun 12, 2013 at 4:17 AM, dragan <[email protected]> wrote:

> I'm trying to convert my current code from the File API to the Cloud
> Storage API (using the 
> appengine-gcs-client<https://code.google.com/p/appengine-gcs-client/>library).
>  I want to ensure that only the GAE application has access to the
> newly created files on the Cloud Storage. How can I do that? Te examples i
> have seen all use the following code or something similar:
>
> GcsFileOptions options = new GcsFileOptions.Builder().mimeType("text/xml"
> ).acl("public-read").build();
>
>
> This makes the file accessible to everybody for reading. What should I put
> in the acl call to make the file accessible only to the GAE application. I
> figured that I can add the application to the team as the editor but I can
> not figure out the next step. A code snippet would be nice.
> Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-appengine?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to