action DNS

update_dns_record

Update DNS records

Run it now
View details
Typeaction
Modulechaosgcp.dns.actions
Nameupdate_dns_record
Returnmapping

Usage

JSON

{
  "name": "update-dns-record",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosgcp.dns.actions",
    "func": "update_dns_record",
    "arguments": {
      "project_id": "",
      "ip_address": "",
      "name": "",
      "zone_name": ""
    }
  }
}

YAML

name: update-dns-record
provider:
  arguments:
    ip_address: ''
    name: ''
    project_id: ''
    zone_name: ''
  func: update_dns_record
  module: chaosgcp.dns.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
project_idstringYesProject IdentifierProject identifier where the record resides
zone_namestringYesZone NameDNS zone name
namestringYesNameRecord name
ip_addressstringYesIP AddressNew IP address
kindstringdns#resourceRecordSetNoKindKind of record
ttlinteger5NoWait Until CompleteTTL operation has completed
record_typestringANoRecord TypeRecord type
existing_typestringANoExisting TypeCurrent record type

Signature

def update_dns_record(
        project_id: str,
        ip_address: str,
        name: str,
        zone_name: str,
        kind: str = 'dns#resourceRecordSet',
        ttl: int = 5,
        record_type: str = 'A',
        existing_type: str = 'A',
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass