doc-exports/docs/dns/api-ref/dns_api_66005.html
Qin Ying, Fan a79d5bdbdb DNS API 1017 version
Reviewed-by: Kucerak, Kristian <kristian.kucerak@t-systems.com>
Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com>
Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
2022-10-20 13:26:00 +00:00

6.9 KiB

Unsetting a PTR Record

Function

Unset the PTR record to the default value.

URI

PATCH /v2/reverse/floatingips/{region}:{floatingip_id}

For details, see Table 1.
Table 1 Parameters in the URI

Parameter

Mandatory

Type

Description

region

Yes

String

Region of the tenant.

floatingip_id

Yes

String

EIP ID

Request

  • Parameter description
    Table 2 Parameter in the request

    Parameter

    Mandatory

    Type

    Description

    ptrdname

    Yes

    String

    Domain name of the PTR record

    Set it to null in the request.

  • Example request
    Unset the PTR record whose EIP ID is c5504932-bf23-4171-b655-b87a6bc59334 to the default value:
    PATCH https://{DNS_Endpoint}/v2/reverse/floatingips/region_id:c5504932-bf23-4171-b655-b87a6bc59334
    {
        "ptrdname": null
    }

Response

None

Returned Value

If the API call returns a code of 2xx, for example, 200, 202, or 204, the request is successful.

For details, see Status Code.