Skip to content

Zones

dvn_zone

create, update, or destroy DVN zones

Synopsis

  • create, update, or destroy DVN zones

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
  • present
  • absent
specify state of the zone
zone_id yes Unique ID for object
common_name Optional label for object
max_rtt 80 Maximum roundtrip time in milliseconds

Examples


  - name: create a zone
    dvn_zone:
      url: "{{rest_url}}"
      username: "{{rest_user}}"
      password: "{{rest_pass}}"
      zone_id: test-zone
      validate_certs: false
  - name: change max_rtt
    dvn_zone:
      url: "{{rest_url}}"
      username: "{{rest_user}}"
      password: "{{rest_pass}}"
      zone_id: test-zone
      max_rtt: 95
      validate_certs: false