Skip to content

Whitelisting our projects for the Search API #1181

Closed

Description

@tseaver

@jgeewax When beginning work on gcloud.search (2015-10-01), I requested that my project be whitelisted for the Search API via the form. Today, working on a system test for the API, I see the following:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "gcloud/search/document.py", line 321, in exists
    client.connection.api_request(method='GET', path=self.path)
  File "gcloud/connection.py", line 337, in api_request
    error_info=method + ' ' + url)
gcloud.exceptions.Forbidden: 403 The caller does not have permission (GET https://cloudsearch.googleapis.com/v1/projects/citric-celerity-697/indexes/system-tests/documents/aaa)

I do not see "Cloud Search" as an available API from my developer console. We need to get expedited access: I just re-submitted the form with @jgeewax as the "project owner".

Activity

  1. jgeewax commented on Oct 14, 2015

    @jgeewax
    Contributor

    Which project IDs do you need ? Just precise-truck-742 ? @tseaver

  2. tseaver commented on Oct 14, 2015

    @tseaver
    ContributorAuthor

    @jgeewax Mine is citric-celerity-697. I'm sure @dhermes will need his, along with the project used when running system tests on Travis.

  3. dhermes commented on Oct 14, 2015

    @dhermes
    Contributor

    omega-moonlight-697

  4. jgeewax commented on Oct 14, 2015

    @jgeewax
    Contributor

    OK, requesting whitelisting for all 3 projects. Will update this ticket once it's done.

  5. dhermes commented on Oct 26, 2015

    @dhermes
    Contributor

    FYI @tseaver to access using your personal account follow http://gcloud-python.readthedocs.org/en/latest/gcloud-auth.html#user-accounts-3-legged-oauth-2-0-with-a-refresh-token

    Most importantly, download the gcloud CLI tool and run

    $ gcloud auth login

    then we'll grab the user credentials.

    You probably have GOOGLE_APPLICATION_CREDENTIALS set. I did. So I ran

    import os
    os.environ.pop('GOOGLE_APPLICATION_CREDENTIALS')
    from gcloud.search import client
    c = client.Client(project='foo')
    print c.connection.credentials.to_json()  # To verify it is a user account
    print c.list_indexes()

    This actually caused a KeyError. I got {} as the response but the code assumes the indexes key is present.

  6. dhermes commented on Dec 31, 2015

    @dhermes
    Contributor

    Closing because I am assuming we are whitelisted. @tseaver or @jgeewax re-open if this is false.

  7. tseaver commented on Jan 7, 2016

    @tseaver
    ContributorAuthor

    Project-based access is still not working.

  8. reopened this on Jan 7, 2016
  9. dhermes commented on Aug 11, 2016

    @dhermes
    Contributor

    @jgeewax we can close this out right? API removed in #1750

  10. jgeewax commented on Aug 13, 2016

    @jgeewax
    Contributor

    Yep. This is fine.

  11. added a commit that references this issue on Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions