API Keys API . keys

Instance Methods

close()

Close httplib2 connections.

lookupKey(keyString=None, x__xgafv=None)

Find the parent project and resource name of the API key that matches the key string in the request. If the API key has been purged, resource name will not be set. The service account must have the `apikeys.keys.lookup` permission on the parent project.

Method Details

close()
Close httplib2 connections.
lookupKey(keyString=None, x__xgafv=None)
Find the parent project and resource name of the API key that matches the key string in the request. If the API key has been purged, resource name will not be set. The service account must have the `apikeys.keys.lookup` permission on the parent project.

Args:
  keyString: string, Required. Finds the project that owns the key string value.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for `LookupKey` method.
  "name": "A String", # The resource name of the API key. If the API key has been purged, resource name is empty.
  "parent": "A String", # The project that owns the key with the value specified in the request.
}