community.general.memset_memstore_info (8.5.0) — module

Retrieve Memstore product usage information

Authors: Simon Weald (@glitchcrab)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Retrieve Memstore product usage information.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get usage for mstestyaa1
  community.general.memset_memstore_info:
    name: mstestyaa1
    api_key: 5eb86c9896ab03919abcf03857163741
  delegate_to: localhost

Inputs

    
name:
    description:
    - The Memstore product name (that is, C(mstestyaa1)).
    required: true
    type: str

api_key:
    description:
    - The API key obtained from the Memset control panel.
    required: true
    type: str

Outputs

memset_api:
  contains:
    bandwidth:
      contains:
        bytes_in:
          description: Inbound bandwidth for the last 24 hours in bytes
          returned: always
          sample: 1000
          type: int
        bytes_out:
          description: Outbound bandwidth for the last 24 hours in bytes
          returned: always
          sample: 1000
          type: int
        requests:
          description: Number of requests in the last 24 hours
          returned: always
          sample: 10
          type: int
      description: Dictionary of CDN bandwidth facts
      returned: always
      type: complex
    bytes:
      description: Space used in bytes
      returned: always
      sample: 3860997965
      type: int
    cdn_bandwidth:
      contains:
        bytes_in:
          description: Inbound CDN bandwidth for the last 24 hours in bytes
          returned: always
          sample: 1000
          type: int
        bytes_out:
          description: Outbound CDN bandwidth for the last 24 hours in bytes
          returned: always
          sample: 1000
          type: int
        requests:
          description: Number of requests in the last 24 hours
          returned: always
          sample: 10
          type: int
      description: Dictionary of CDN bandwidth facts
      returned: always
      type: complex
    containers:
      description: Number of containers
      returned: always
      sample: 10
      type: int
    objs:
      description: Number of objects
      returned: always
      sample: 1000
      type: int
  description: Info from the Memset API
  returned: always
  type: complex