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
|
@ -114,7 +114,6 @@ EXAMPLES = '''
|
|||
port: 80
|
||||
cidr: 1.2.3.4/32
|
||||
|
||||
|
||||
# Allow inbound tcp/udp port 53 to 4.3.2.1
|
||||
- local_action:
|
||||
module: cs_firewall
|
||||
|
@ -125,7 +124,6 @@ EXAMPLES = '''
|
|||
- tcp
|
||||
- udp
|
||||
|
||||
|
||||
# Ensure firewall rule is removed
|
||||
- local_action:
|
||||
module: cs_firewall
|
||||
|
@ -135,7 +133,6 @@ EXAMPLES = '''
|
|||
cidr: 17.0.0.0/8
|
||||
state: absent
|
||||
|
||||
|
||||
# Allow all outbound traffic
|
||||
- local_action:
|
||||
module: cs_firewall
|
||||
|
@ -143,7 +140,6 @@ EXAMPLES = '''
|
|||
type: egress
|
||||
protocol: all
|
||||
|
||||
|
||||
# Allow only HTTP outbound traffic for an IP
|
||||
- local_action:
|
||||
module: cs_firewall
|
||||
|
@ -419,7 +415,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_one_of = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue