Uploaded image for project: 'Ansible Cloud Automation'
  1. Ansible Cloud Automation
  2. ACA-1915

vmware.vmware_rest.content_library_item_info module returns INVALID_ARGUMENT error

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Important

      Description:

      vmware.vmware_rest.content_library_item_info module returns INVALID_ARGUMENT error

      Steps to reproduce:

       

          - name: Create a content library based on a DataStore
            vmware.vmware_rest.content_locallibrary:
              name: my_library_on_datastore
              description: automated
              publish_info:
                published: true
                authentication_method: NONE
              storage_backings:
              - datastore_id: "{{ lookup('vmware.vmware_rest.datastore_moid', '/' + vcenter_datacenter + '/' + datastore_name) }}"
                type: DATASTORE
              state: present
            register: ds_lib
      
          - name: Get the list of items of the library
            vmware.vmware_rest.content_library_item_info:
              library_id: '{{ ds_lib.id }}'
            register: ds_lib_items_info
      

       

      Expected result:

      The list of items of the library

      Actual result:

      FAILED! => {"changed": false, "value": {"error_type": "INVALID_ARGUMENT", "messages": [{"args": ["library_id?library_id"], "default_message": "Unsupported property with name: library_id?library_id.", "id": "com.vmware.vapi.rest.unsupportedProperty"}]}}

       

              Unassigned Unassigned
              annsavina Anna Savina Frances
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: