Skip to content

Latest commit

 

History

History
191 lines (158 loc) · 6.53 KB

community.missing_collection.statuscake_locations_info_module.rst

File metadata and controls

191 lines (158 loc) · 6.53 KB

community.missing_collection.statuscake_locations_info

Get information from Status Cake (Locations).

Version added: 0.3.0

The below requirements are needed on the host that executes this module.

  • requests
Parameter Choices/Defaults Comments
api_key
string / required
api key for statuscake.
best
boolean
    Choices:
  • no
  • yes ←
Return only locations with the least number of tests.
command
string
    Choices:
  • uptime ←
  • pagespeed
for which service you want to fetch all locations.
location
string
Country ISO.
url
string
Default:
statuscake api.

- name: list all uptime locations
  community.missing_collection.statuscake_locations_info:
    api_key: 'sGxxxxxxxxxxxx6y'
    command: 'uptime'

- name: list all pagespeed locations
  community.missing_collection.statuscake_locations_info:
    api_key: 'sGxxxxxxxxxxxx6y'
    command: 'pagespeed'

Common return values are documented here, the following are the fields unique to this module:

Key Returned Description
data
list
when success.
result of the api.

Sample:
[{'hostname': 'UKINT', 'description': 'United Kingdom, London - 5', 'region': 'United Kingdom / London', 'ipv4': '178.62.78.199', 'ipv6': '2a03:b0c0:1:d0::5e:f001', 'region_code': 'london', 'status': 'up'}]


Authors