blob: f2d834432fcc03882c176c8e4f12bf4a1c2329b5 [file] [log] [blame]
Oleksiy Petrenkoe03e2c72018-08-10 13:24:32 +03001from keystonev3.common import send
2
3try:
4 from urllib.parse import urlencode
5except ImportError:
6 from urllib import urlencode
7
8
9@send('get')
10def project_list(**kwargs):
11 url = '/projects?{}'.format(urlencode(kwargs))
12 return url, None
13
14
15@send('get')
16def domain_list(**kwargs):
17 url = '/domains?{}'.format(urlencode(kwargs))
18 return url, None
19
20
21@send('get')
22def endpoint_list(**kwargs):
23 url = '/endpoints?{}'.format(urlencode(kwargs))
24 return url, None
25
26
27@send('get')
28def service_list(**kwargs):
29 url = '/services?{}'.format(urlencode(kwargs))
30 return url, None
31
32
33@send('get')
34def user_list(**kwargs):
35 url = '/users?{}'.format(urlencode(kwargs))
36 return url, None
37
38
39@send('get')
40def role_list(**kwargs):
41 url = '/roles?{}'.format(urlencode(kwargs))
42 return url, None
43
44
45@send('get')
46def role_assignment_list(**kwargs):
47 url = '/role_assignments?{}'.format(urlencode(kwargs))
48 return url, None
49
50
51@send('get')
52def role_inference_rule_list(**kwargs):
53 url = '/role_inferences'
54 return url, None
55
56
57@send('get')
58def region_list(**kwargs):
59 url = '/regions?{}'.format(urlencode(kwargs))
60 return url, None
61
62
63@send('get')
64def group_list(**kwargs):
65 url = '/groups?{}'.format(urlencode(kwargs))
66 return url, None