7c9cc14441f5df518e647233e3d67dc3468d083b
[sfa.git] / sfa / methods / ResolveGENI.py
1 from sfa.util.method import Method
2 from sfa.util.parameter import Parameter
3
4 class ResolveGENI(Method):
5     """
6     Lookup a URN and return information about the corresponding object.
7     @param urn
8     """
9
10     interfaces = ['registry']
11     accepts = [
12         Parameter(str, "URN"),
13         Parameter(type([str]), "List of credentials"),
14         ]
15     returns = Parameter(bool, "Success or Failure")
16
17     def call(self, xrn):
18         return self.api.manager.Resolve(self.api, xrn, '')