pytoccaz.azure_cli.az_storage_blob_list (1.0.0) — module

Lists blobs under azure storage containers

| "added in version" 1.0.0 of pytoccaz.azure_cli"

Authors: Olivier Bernard (@pytoccaz)

Install collection

Install with ansible-galaxy collection install pytoccaz.azure_cli:==1.0.0


Add to requirements.yml

  collections:
    - name: pytoccaz.azure_cli
      version: 1.0.0

Description

Lists blobs under azure storage containers using the C(az storage blob list) command

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: List blobs containers inside backups
  pytoccaz.azure_cli.az_storage_blob_list:
    container: backups
  register: blobs_list

Inputs

    
prefix:
    description:
    - Filter the results to return only blobs whose name begins with the specified prefix
    type: str

account_key:
    aliases:
    - key
    description:
    - Storage account key
    type: str

account_name:
    aliases:
    - account
    description:
    - Storage account name
    type: str

blob_endpoint:
    aliases:
    - endpoint
    description:
    - Storage data service endpoint. Must be used in conjunction with storage account
      key
    type: str

container_name:
    aliases:
    - container
    description:
    - The container name
    required: true
    type: str

connection_string:
    description:
    - Storage account connection string
    type: str

Outputs

results:
  description: 'A List of blobs dictionary

    '
  elements: dict
  returned: success
  sample:
  - container: backups
    creationTime: '2023-12-04T23:00:05+00:00'
    name: test.tar.gz
  type: list