Data Deflects
dvn_datadeflect
create, update, or destroy DVN data deflects
Synopsis
- Create a new deflect
- Delete an existing deflect
- Update an existing deflect
- Add a deflect to a deflect pool
- Remove a deflect from a deflect pool
Options
| Parameter | Required? | Default | Choices | Comments |
|---|---|---|---|---|
| username | service-prov administrator username. If not specified as a parameter, the environment variable DVNREST_USER will be used. | |||
| password | service-prov password If not specified as a parameter, the environment variable DVNREST_PASSWORD will be used. | |||
| url | service-prov url. If not specified as a parameter, the environment variable DVNREST_URL will be used. | |||
| validate_certs | True | Check certs. Use false to allow self-signed. If not specified as a parameter, the environment variable VALIDATE_CERTS will be used. | ||
| state | present |
|
specify state of the data deflect | |
| deflect_id | yes | Unique ID for data deflect object | ||
| deflect_port | yes | The deflect port | ||
| vtc_id | yes | ID for VTC host | ||
| http_port | same as deflect_port | HTTP port to be used if protocol is set to 'http' or 'all' | ||
| in_service | True |
|
Whether or not the deflect will be in service | |
| channel_type | all |
|
Protocol used by the deflect | |
| common_name | Optional label for object | |||
| deflect_pools | [] | specify deflect pool(s) to place deflect into |
Examples
- name: create a deflect
dvn_datadeflect:
url: "{{rest_url}}"
username: "{{rest_user}}"
password: "{{rest_pass}}"
deflect_id: testdeflect
vtc_id: test1
deflect_port: 50505
validate_certs: false
- name: change http_port
dvn_datadeflect:
url: "{{rest_url}}"
username: "{{rest_user}}"
password: "{{rest_pass}}"
deflect_id: testdeflect
vtc_id: test1
deflect_port: 50505
http_port: 33333
validate_certs: false