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

vCD Roles

mac edited this page Mar 21, 2020 · 1 revision

Role Example Usage

  1. Role States

    • Create Role
     
     - name: create role
       vcd_roles:
        role_name: test_role
        role_description: test role description
        role_rights:
         - test_right_01
         - test_right_02
        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
    • role_name - Name of the new role
    • role_description - Description of new role
    • role_rights - list of rights attached with role
    • state - (Required) "present" to create role

    • Update Role
     
     - name: update role
       vcd_roles:
        role_name: test_role
        role_description: test role description
        role_rights:
         - test_right_01
         - test_right_02
        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
    • role_name - Name of the role needs to be updated
    • role_description - Updated description of role
    • role_rights - Updated list of rights attached with role
    • state - (Required) "update" to update role

    • Delete Role
     
     - name: delete role
       vcd_roles:
        role_name: test_role
        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
    • role_name - Name of role needs to be deleted
    • state - (Required) "absent" to delete role

  2. Role Operations

    • List Roles
     
     - name: list roles
       vcd_roles:
        operation: list_roles
     
     
    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
    • operation - (Required) "list_roles" to list all available roles inside logged in organization

    • List Rights
     
     - name: list rights
       vcd_roles:
        operation: list_rights
     
     
    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
    • operation - (Required) "list_rights" to list all available rights of the logged in organization