escrimaglia.o4n_azure_storagefile_test.o4n_azure_list_files (1.0.19) — module

List Files in a File Share

| "added in version" 1.0 of escrimaglia.o4n_azure_storagefile_test"

Authors: Ed Scrimaglia

Install collection

Install with ansible-galaxy collection install escrimaglia.o4n_azure_storagefile_test:==1.0.19


Add to requirements.yml

  collections:
    - name: escrimaglia.o4n_azure_storagefile_test
      version: 1.0.19

Description

Connect to Azure Storage file using connection string method

List Files in a File Share

Return a list of Files in a File Share


Requirements

Inputs

    
path:
    description: path, directory, whose files must be listed
    required: false
    type: string

share:
    description: Name of the share to be managed
    required: true
    type: string

account_name:
    description: Storage Account Name Provided by Azure Portal
    required: true
    type: string

connection_string:
    description: String that include URL & Token to connect to Azure Storage Account.
      Provided by Azure Portal Storage Account -> Access Keys -> Connection String
    required: true
    type: string

Outputs

output:
  description: List of files
  returned: allways
  sample:
    output:
      changed: false
      content:
      - file_id: '9799948237879115776'
        is_directory: false
        name: o4n_azure_delete_files.py
        size: 12240
      - file_id: '16141016513216774144'
        is_directory: false
        name: o4n_azure_download_files.py
        size: 13353
      - file_id: '12682251999396233216'
        is_directory: false
        name: o4n_azure_manage_directory.py
        size: 9937
      - file_id: '10376408990182539264'
        is_directory: false
        name: o4n_azure_manage_shares.py
        size: 4359
      - file_id: '17293938017823621120'
        is_directory: false
        name: o4n_azure_upload_files.py
        size: 10611
      - file_id: '14988095008609927168'
        is_directory: false
        name: __init__.py
        size: 0
      failed: false
      msg: List of Files created for Directory </dir1> in share <share-to-test2>
  type: dict