mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
cloudstack: add choices for api_http_method
This commit is contained in:
parent
2ca6d151b2
commit
b30fda4906
11 changed files with 11 additions and 31 deletions
|
@ -101,7 +101,6 @@ EXAMPLES = '''
|
|||
port: 80
|
||||
cidr: 1.2.3.4/32
|
||||
|
||||
|
||||
# Allow tcp/udp outbound added to security group 'default'
|
||||
- local_action:
|
||||
module: cs_securitygroup_rule
|
||||
|
@ -114,7 +113,6 @@ EXAMPLES = '''
|
|||
- tcp
|
||||
- udp
|
||||
|
||||
|
||||
# Allow inbound icmp from 0.0.0.0/0 added to security group 'default'
|
||||
- local_action:
|
||||
module: cs_securitygroup_rule
|
||||
|
@ -123,7 +121,6 @@ EXAMPLES = '''
|
|||
icmp_code: -1
|
||||
icmp_type: -1
|
||||
|
||||
|
||||
# Remove rule inbound port 80/tcp from 0.0.0.0/0 from security group 'default'
|
||||
- local_action:
|
||||
module: cs_securitygroup_rule
|
||||
|
@ -131,7 +128,6 @@ EXAMPLES = '''
|
|||
port: 80
|
||||
state: absent
|
||||
|
||||
|
||||
# Allow inbound port 80/tcp from security group web added to security group 'default'
|
||||
- local_action:
|
||||
module: cs_securitygroup_rule
|
||||
|
@ -399,7 +395,7 @@ def main():
|
|||
api_key = dict(default=None),
|
||||
api_secret = dict(default=None, no_log=True),
|
||||
api_url = dict(default=None),
|
||||
api_http_method = dict(default='get'),
|
||||
api_http_method = dict(choices=['get', 'post'], default='get'),
|
||||
api_timeout = dict(type='int', default=10),
|
||||
),
|
||||
required_together = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue