dcloud dns records update

Change the values or TTL of a record set

IAM dns:ChangeRecordsChanges stateAsks before it deletes (-y skips)

Fields left out keep their stored value. An ALIAS target sent here replaces the old one; healthCheckId null removes the check, but stored failoverValues must be cleared in the same call (failoverValues: []) or the change is refused.

Synopsis

dcloud dns records update id recordId [flags]

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: uuid

  • <recordId>Required

    string

    Also accepted as --record-id. Constraints: uuid

Flags

  • --ttlOptional

    number

    Seconds resolvers may cache the set, 1 to 604800. Absent: the TTL is kept

    Constraints: integer, 1-604800

  • --valuesOptional

    array of string

    Replaces the values (at most 100 of at most 4096 characters each; a CNAME takes one). Absent: the values are kept. The name and type of a set cannot change

    Constraints: 1-4096 chars

  • --app-idOptional

    string

    ALIAS: the app whose address is answered

  • --load-balancer-idOptional

    string

    ALIAS: a load balancer, answered with its IPv4 (A) and IPv6 (AAAA)

  • --bucketOptional

    string

    ALIAS: a bucket name; the name answers with the bucket's static website

  • --distribution-idOptional

    string

    ALIAS: a CDN distribution, answered with its healthy edge nodes (TTL at most 30 s); list the name among the distribution's aliases too, for its certificate

  • --health-check-idOptional

    string

    A, AAAA, CNAME: an uptime check; null removes it

    May be null.

  • --failover-valuesOptional

    array of string

    Answered instead of values while the health check is down

  • --routingOptional

    object

    Weighted ({policy:"weighted", variants:[{id, weight 0-255, values, healthCheckId?}]}) or geolocation ({policy:"geo", variants:[{id, country|continent, values, healthCheckId?}]}) routing; null removes it. For geo, values are the default answer.

    Constraints: JSON

    May be null.

Example

dcloud dns records update id recordId

Generated from the API description, the same one the API checks requests against and the CLI is built from.