|
43 | 43 | servers: |
44 | 44 | description: |
45 | 45 | - Domain servers. When this field is provided, 'set-domain' command is executed asynchronously. |
46 | | - type: dict |
| 46 | + type: list |
47 | 47 | suboptions: |
| 48 | + name: |
| 49 | + description: |
| 50 | + - Object name. Must be unique in the domain. |
| 51 | + type: str |
| 52 | + ip_address: |
| 53 | + description: |
| 54 | + - IPv4 or IPv6 address. If both addresses are required use ipv4-address and ipv6-address fields explicitly. |
| 55 | + type: str |
| 56 | + ipv4_address: |
| 57 | + description: |
| 58 | + - IPv4 address. |
| 59 | + type: str |
| 60 | + ipv6_address: |
| 61 | + description: |
| 62 | + - IPv6 address. |
| 63 | + type: str |
| 64 | + multi_domain_server: |
| 65 | + description: |
| 66 | + - Multi Domain server name or UID. |
| 67 | + type: str |
| 68 | + active: |
| 69 | + description: |
| 70 | + - Activate domain server. Only one domain server is allowed to be active |
| 71 | + type: bool |
| 72 | + skip_start_domain_server: |
| 73 | + description: |
| 74 | + - Set this value to be true to prevent starting the new created domain. |
| 75 | + type: bool |
| 76 | + type: |
48 | 77 | description: |
49 | | - - Adds to collection of values |
50 | | - type: list |
51 | | - suboptions: |
52 | | - name: |
53 | | - description: |
54 | | - - Object name. Must be unique in the domain. |
55 | | - type: str |
56 | | - ip_address: |
57 | | - description: |
58 | | - - IPv4 or IPv6 address. If both addresses are required use ipv4-address and ipv6-address fields explicitly. |
59 | | - type: str |
60 | | - ipv4_address: |
61 | | - description: |
62 | | - - IPv4 address. |
63 | | - type: str |
64 | | - ipv6_address: |
65 | | - description: |
66 | | - - IPv6 address. |
67 | | - type: str |
68 | | - multi_domain_server: |
69 | | - description: |
70 | | - - Multi Domain server name or UID. |
71 | | - type: str |
72 | | - skip_start_domain_server: |
73 | | - description: |
74 | | - - Set this value to be true to prevent starting the new created domain. |
75 | | - type: bool |
76 | | - type: |
77 | | - description: |
78 | | - - Domain server type. |
79 | | - type: str |
80 | | - choices: ['management server', 'log server', 'smc'] |
| 78 | + - Domain server type. |
| 79 | + type: str |
| 80 | + choices: ['management server', 'log server', 'smc'] |
81 | 81 | color: |
82 | 82 | description: |
83 | 83 | - Color of the object. Should be one of existing colors. |
|
108 | 108 | - Collection of tag identifiers. Note, The list of tags can not be modified in a single command together with the domain servers. To modify |
109 | 109 | tags, please use the separate 'set-domain' command, without providing the list of domain servers. |
110 | 110 | type: list |
111 | | -extends_documentation_fragment: checkpoint_objects |
| 111 | +extends_documentation_fragment: check_point.mgmt.checkpoint_commands |
112 | 112 | """ |
113 | 113 |
|
114 | 114 | EXAMPLES = """ |
|
119 | 119 | ip_address: 192.0.2.1 |
120 | 120 | multi_domain_server: MDM_Server |
121 | 121 | name: domain1_ManagementServer_1 |
122 | | - state: present |
123 | 122 | """ |
124 | 123 |
|
125 | 124 | RETURN = """ |
@@ -160,9 +159,9 @@ def main(): |
160 | 159 | argument_spec.update(checkpoint_argument_spec_for_commands) |
161 | 160 |
|
162 | 161 | module = AnsibleModule(argument_spec=argument_spec) |
163 | | - api_call_object = 'add-domain' |
| 162 | + command = 'add-domain' |
164 | 163 |
|
165 | | - result = api_command(module, api_call_object) |
| 164 | + result = api_command(module, command) |
166 | 165 | module.exit_json(**result) |
167 | 166 |
|
168 | 167 |
|
|
0 commit comments