Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

vCD vApp Network

mac edited this page May 11, 2020 · 6 revisions

Vapp Network Example Usage

  1. Vapp Network States

    • Create Vapp Network
    
     - name: create vapp network
       vcd_vapp_network:
        vapp: web2
        vdc: test_vdc
        network: sample
        network_cidr: 192.168.102.2/24
        primary_dns_ip: 192.168.102.1
        dns_suffix: dn
        ip_ranges:
          - 192.168.102.5-192.168.102.10
        is_guest_vlan_allowed: False
        state: present
    
    
    Argument Reference
    • user - (Optional) - vCloud Director user name
    • password - (Optional) - vCloud Director password
    • org - (Optional) - vCloud Director org name to log into
    • host - (Optional) - vCloud Director host name
    • api_version - (Optional) - Pyvcloud API version
    • verify_ssl_certs - (Optional) - true to enforce to verify ssl certificate for each requests else false
    • vapp - (Required) name of the vapp
    • vdc - (Required) name of the vdc
    • network - (Required) name of the network
    • network_cidr - (Required) CIDR in the format of 192.168.1.1/24
    • description - (Optional) description of vApp network
    • primary_dns_ip - (Optional) IP address of primary DNS Server
    • secondary_dns_ip - (Optional) IP address of secondary DNS Server
    • dns_suffix - (Optional) DNS suffix
    • ip_ranges - (Optional) list of IP ranges used for static pool allocation in the network. For example, [192.168.1.2-192.168.1.49, 192.168.1.100-192.168.1.149]
    • is_guest_vlan_allowed - (Optional) True if guest vlan allowed else False
    • state == present (Required) to create vapp network

    • Update Vapp Network
    
     - name: update vapp network
       vcd_vapp_network:
        vapp: web2
        vdc: test_vdc
        network: sample
        new_network: sample_2
        state: update
    
    
    Argument Reference
    • user - (Optional) - vCloud Director user name
    • password - (Optional) - vCloud Director password
    • org - (Optional) - vCloud Director org name to log into
    • host - (Optional) - vCloud Director host name
    • api_version - (Optional) - Pyvcloud API version
    • verify_ssl_certs - (Optional) - true to enforce to verify ssl certificate for each requests else false
    • vapp - (Required) name of the vapp
    • vdc - (Required) name of the vdc
    • network - (Required) name of the network
    • new_network - (Required) new name of the network
    • description - (Optional) new description of the network
    • state == update (Required) to delete vapp network

    • Delete Vapp Network
    
     - name: delete vapp network
       vcd_vapp_network:
        network: web2Network
        vapp: web2
        vdc: test_vdc
        network: sample
        state: absent
    
    
    Argument Reference
    • user - (Optional) - vCloud Director user name
    • password - (Optional) - vCloud Director password
    • org - (Optional) - vCloud Director org name to log into
    • host - (Optional) - vCloud Director host name
    • api_version - (Optional) - Pyvcloud API version
    • verify_ssl_certs - (Optional) - true to enforce to verify ssl certificate for each requests else false
    • network - (Required) name of the network
    • vapp - (Required) name of the vapp
    • vdc - (Required) name of the vdc
    • state == absent (Required) to delete vapp network
  2. Vapp Network Operations

    • Read Vapp Network
    
     - name: read vApp Networks
       vcd_vapp_network:
        vapp: web2
        vdc: test_vdc
        operation: read
    
    
    Argument Reference
    • user - (Optional) - vCloud Director user name
    • password - (Optional) - vCloud Director password
    • org - (Optional) - vCloud Director org name to log into
    • host - (Optional) - vCloud Director host name
    • api_version - (Optional) - Pyvcloud API version
    • verify_ssl_certs - (Optional) - true to enforce to verify ssl certificate for each requests else false
    • vapp - (Required) name of the vapp
    • vdc - (Required) name of the vdc
    • operation == read (Required) to read vapp network