fadcos_virtual_server_basic – virtual server basic configuration in Fortinet’s FortiADC¶
New in version 1.0.0.
FortiADC Version Compatibility¶
v7.0.0 |
v7.0.1 |
v7.0.2 |
v7.1.0 |
v7.1.4 |
v7.2.2 |
v7.4.0 |
|
| fortiadc_virtual_server_basic | yes | yes | yes | yes | yes | yes | yes |
Parameters¶
- name - virtual server nametype: str required: true
- application - application type (ms-sharepoint/ms-exchange/smtp/http/http-turbo/http2-h2/http2-h2c/tcps/radius/dns/sip/rdp/rtmp/tcp/diameter/rtsp/udp/ftp/ip/iis/apache/iso8583/l7-tcp/l7-udp/)type: str required: true
- address - ip address of virtual servertype: str required: true
- interface - interface nametype: str required: true
- pool - pool nametype: str required: true
- port - virtual server porttype: str required: flase default: 80
- vdom - VDOM name if enabled.type: str required: true(if VDOM is enabled)
Examples¶
- name:
hosts: all
connection: httpapi
gather_facts: false
tasks:
- name: Create basic virtual server
fadcos_virtual_server_basic:
name: test
application: http
address: 7.7.7.7
interface: port3
pool: rs_pool
port: 80
Return Values¶
Common return values are documented: https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values, the following are the fields unique to this module:
- 200 - OK: Request returns successful.
- 400 - Bad Request: Request cannot be processed by the API.
- 401 - Not Authorized: Request without successful login session.
- 403 - Forbidden: Request is missing CSRF token or administrator is missing access profile permissions.
- 404 - Resource Not Found: Unable to find the specified resource.
- 405 - Method Not Allowed: Specified HTTP method is not allowed for this resource.
- 413 - Request Entity Too Large: Request cannot be processed due to large entity.
- 424 - Failed Dependency: Fail dependency can be duplicate resource, missing required parameter, missing required attribute, or invalid attribute value.
- 429 - Access temporarily blocked: Maximum failed authentications reached. The offended source is temporarily blocked for certain amount of time.
- 500 - Internal Server Error: Internal error when processing the request.
For errorcode please check FortiADC API errorcode at : https://fndn.fortinet.net/index.php?/fortiapi/981-fortiadc/