cloudstack: add api_region arg

* docs in module_docs_fragments/cloudstack.py
* implemented in module_utils/cloudstack.py -> https://github.com/ansible/ansible/pull/12083
pull/18777/head
Rene Moser 9 years ago committed by Matt Clay
parent e2481ff1e6
commit 297312546d

@ -366,6 +366,7 @@ def main():
api_url = dict(default=None), api_url = dict(default=None),
api_http_method = dict(choices=['get', 'post'], default='get'), api_http_method = dict(choices=['get', 'post'], default='get'),
api_timeout = dict(type='int', default=10), api_timeout = dict(type='int', default=10),
api_region = dict(default='cloudstack'),
), ),
required_together = ( required_together = (
['api_key', 'api_secret', 'api_url'], ['api_key', 'api_secret', 'api_url'],

@ -214,6 +214,7 @@ def main():
api_url = dict(default=None), api_url = dict(default=None),
api_http_method = dict(choices=['get', 'post'], default='get'), api_http_method = dict(choices=['get', 'post'], default='get'),
api_timeout = dict(type='int', default=10), api_timeout = dict(type='int', default=10),
api_region = dict(default='cloudstack'),
), ),
required_together = ( required_together = (
['api_key', 'api_secret', 'api_url'], ['api_key', 'api_secret', 'api_url'],

@ -251,6 +251,7 @@ def main():
api_url = dict(default=None), api_url = dict(default=None),
api_http_method = dict(choices=['get', 'post'], default='get'), api_http_method = dict(choices=['get', 'post'], default='get'),
api_timeout = dict(type='int', default=10), api_timeout = dict(type='int', default=10),
api_region = dict(default='cloudstack'),
), ),
required_together = ( required_together = (
['api_key', 'api_secret', 'api_url'], ['api_key', 'api_secret', 'api_url'],

@ -412,6 +412,7 @@ def main():
api_url = dict(default=None), api_url = dict(default=None),
api_http_method = dict(choices=['get', 'post'], default='get'), api_http_method = dict(choices=['get', 'post'], default='get'),
api_timeout = dict(type='int', default=10), api_timeout = dict(type='int', default=10),
api_region = dict(default='cloudstack'),
), ),
required_one_of = ( required_one_of = (
['ip_address', 'network'], ['ip_address', 'network'],

@ -825,6 +825,7 @@ def main():
api_url = dict(default=None), api_url = dict(default=None),
api_http_method = dict(choices=['get', 'post'], default='get'), api_http_method = dict(choices=['get', 'post'], default='get'),
api_timeout = dict(type='int', default=10), api_timeout = dict(type='int', default=10),
api_region = dict(default='cloudstack'),
), ),
mutually_exclusive = ( mutually_exclusive = (
['template', 'iso'], ['template', 'iso'],

@ -182,6 +182,7 @@ def main():
api_url = dict(default=None), api_url = dict(default=None),
api_http_method = dict(choices=['get', 'post'], default='get'), api_http_method = dict(choices=['get', 'post'], default='get'),
api_timeout = dict(type='int', default=10), api_timeout = dict(type='int', default=10),
api_region = dict(default='cloudstack'),
), ),
required_together = ( required_together = (
['api_key', 'api_secret', 'api_url'], ['api_key', 'api_secret', 'api_url'],

@ -239,6 +239,7 @@ def main():
api_url = dict(default=None), api_url = dict(default=None),
api_http_method = dict(choices=['get', 'post'], default='get'), api_http_method = dict(choices=['get', 'post'], default='get'),
api_timeout = dict(type='int', default=10), api_timeout = dict(type='int', default=10),
api_region = dict(default='cloudstack'),
), ),
required_together = ( required_together = (
['api_key', 'api_secret', 'api_url'], ['api_key', 'api_secret', 'api_url'],

@ -316,6 +316,7 @@ def main():
api_url = dict(default=None), api_url = dict(default=None),
api_http_method = dict(choices=['get', 'post'], default='get'), api_http_method = dict(choices=['get', 'post'], default='get'),
api_timeout = dict(type='int', default=10), api_timeout = dict(type='int', default=10),
api_region = dict(default='cloudstack'),
), ),
required_together = ( required_together = (
['api_key', 'api_secret', 'api_url'], ['api_key', 'api_secret', 'api_url'],

@ -552,6 +552,7 @@ def main():
api_url = dict(default=None), api_url = dict(default=None),
api_http_method = dict(choices=['get', 'post'], default='get'), api_http_method = dict(choices=['get', 'post'], default='get'),
api_timeout = dict(type='int', default=10), api_timeout = dict(type='int', default=10),
api_region = dict(default='cloudstack'),
), ),
required_together = ( required_together = (
['api_key', 'api_secret', 'api_url'], ['api_key', 'api_secret', 'api_url'],

@ -390,6 +390,7 @@ def main():
api_url = dict(default=None), api_url = dict(default=None),
api_http_method = dict(choices=['get', 'post'], default='get'), api_http_method = dict(choices=['get', 'post'], default='get'),
api_timeout = dict(type='int', default=10), api_timeout = dict(type='int', default=10),
api_region = dict(default='cloudstack'),
), ),
required_together = ( required_together = (
['api_key', 'api_secret', 'api_url'], ['api_key', 'api_secret', 'api_url'],

@ -272,6 +272,7 @@ def main():
api_url = dict(default=None), api_url = dict(default=None),
api_http_method = dict(choices=['get', 'post'], default='get'), api_http_method = dict(choices=['get', 'post'], default='get'),
api_timeout = dict(type='int', default=10), api_timeout = dict(type='int', default=10),
api_region = dict(default='cloudstack'),
), ),
required_together = ( required_together = (
['api_key', 'api_secret', 'api_url'], ['api_key', 'api_secret', 'api_url'],

@ -161,6 +161,7 @@ def main():
api_url = dict(default=None), api_url = dict(default=None),
api_http_method = dict(choices=['get', 'post'], default='get'), api_http_method = dict(choices=['get', 'post'], default='get'),
api_timeout = dict(type='int', default=10), api_timeout = dict(type='int', default=10),
api_region = dict(default='cloudstack'),
), ),
required_together = ( required_together = (
['api_key', 'api_secret', 'api_url'], ['api_key', 'api_secret', 'api_url'],

@ -389,6 +389,7 @@ def main():
api_url = dict(default=None), api_url = dict(default=None),
api_http_method = dict(choices=['get', 'post'], default='get'), api_http_method = dict(choices=['get', 'post'], default='get'),
api_timeout = dict(type='int', default=10), api_timeout = dict(type='int', default=10),
api_region = dict(default='cloudstack'),
), ),
required_together = ( required_together = (
['icmp_type', 'icmp_code'], ['icmp_type', 'icmp_code'],

@ -218,6 +218,7 @@ def main():
api_url = dict(default=None), api_url = dict(default=None),
api_http_method = dict(choices=['get', 'post'], default='get'), api_http_method = dict(choices=['get', 'post'], default='get'),
api_timeout = dict(type='int', default=10), api_timeout = dict(type='int', default=10),
api_region = dict(default='cloudstack'),
), ),
required_together = ( required_together = (
['api_key', 'api_secret', 'api_url'], ['api_key', 'api_secret', 'api_url'],

@ -275,6 +275,7 @@ def main():
api_url = dict(default=None), api_url = dict(default=None),
api_http_method = dict(choices=['get', 'post'], default='get'), api_http_method = dict(choices=['get', 'post'], default='get'),
api_timeout = dict(type='int', default=10), api_timeout = dict(type='int', default=10),
api_region = dict(default='cloudstack'),
), ),
required_together = ( required_together = (
['api_key', 'api_secret', 'api_url'], ['api_key', 'api_secret', 'api_url'],

@ -565,6 +565,7 @@ def main():
api_url = dict(default=None), api_url = dict(default=None),
api_http_method = dict(choices=['get', 'post'], default='get'), api_http_method = dict(choices=['get', 'post'], default='get'),
api_timeout = dict(type='int', default=10), api_timeout = dict(type='int', default=10),
api_region = dict(default='cloudstack'),
), ),
mutually_exclusive = ( mutually_exclusive = (
['url', 'vm'], ['url', 'vm'],

@ -273,6 +273,7 @@ def main():
api_url = dict(default=None), api_url = dict(default=None),
api_http_method = dict(choices=['get', 'post'], default='get'), api_http_method = dict(choices=['get', 'post'], default='get'),
api_timeout = dict(type='int', default=10), api_timeout = dict(type='int', default=10),
api_region = dict(default='cloudstack'),
), ),
required_together = ( required_together = (
['icmp_type', 'icmp_code'], ['icmp_type', 'icmp_code'],

Loading…
Cancel
Save