probeDomains

list_nameservers

List nameservers set for this domain and return them as a list of strings

Activity as code

Below are the details and signature of the activity Python module.

Typeprobe
Modulechaosgandi.domains.probes
Namelist_nameservers
Returnlist

Usage

JSON

{
  "name": "list-nameservers",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosgandi.domains.probes",
    "func": "list_nameservers",
    "arguments": {
      "domain": ""
    }
  }
}

YAML

name: list-nameservers
provider:
  arguments:
    domain: ""
  func: list_nameservers
  module: chaosgandi.domains.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
domainstringYesDomainDomain to list nameservers for

See https://api.gandi.net/docs/domains/#v5-domain-domains-domain-nameservers

Signature

def list_domains(
    fqdn_filter: str = None,
    tld_filter: str = None,
    configuration: Dict[str, Dict[str, str]] = None,
    secrets: Dict[str, Dict[str, str]] = None) -> List[Dict[str, Any]]:
  pass
def list_nameservers(domain: str,
                     configuration: Dict[str, Dict[str, str]] = None,
                     secrets: Dict[str, Dict[str, str]] = None) -> List[str]:
    pass