跳转到: 导航, 搜索

Designate/Blueprints/ReverseFixedIP

概述

Gerrit补丁 []
Launchpad蓝图 [1]

总结

此蓝图建议提供一个接口,用于基于分配的固定 IP 的虚拟机实例的 PTR 记录。

此蓝图基于浮动 IP PTR 记录的蓝图

   Designate/Blueprints/Reverse

API 资源 - 私有 / 固定 IP

使用通用的端点调用 "/reverse",添加名为 "fixedips" 的固定 IP 资源。

API 详情

动词 资源 描述
GET /reverse/fixedips 返回所有固定 IP 地址的 PTR 记录列表。
GET /reverse/fixedips/{region}:{IP 地址} 返回给定固定 IP 地址的 PTR 记录。
PATCH /reverse/fixedips/{region}:{IP 地址} 创建或删除给定固定 IP 地址的 PTR 记录。

列出固定 IP PTR 记录 (GET)

返回所有固定 IP 地址的 PTR 记录列表。

没有请求消息体。

响应

   {
       “fixedips”: [
           {
               "ptrdname": "server.mydomain.com.",
               "address": "<region>:<ipv4 or ipv6 compliant address>",
               "ttl": 3600,
               "description": null,
               "links": {
                   "self": "http://endpoint/v2/reverse/fixedips/<region>:<ipv4 or ipv6 compliant address>"
               }
           },
           {
               "ptrdname": "server2.mydomain.com.",
               "address": "<region>:<ipv4 or ipv6 compliant address>",
               "ttl": 3600,
               "description": null,
               "links": {
                   "self": "http://endpoint/v2/reverse/fixedips/<region>:<ipv4 or ipv6 compliant address>"
               }
           }
       ],
       "links": {
           "self": "http://endpoint/v2/reverse/fixedips"
       }
   }

获取固定 IP PTR 记录 (GET)

返回给定固定 IP 地址的 PTR 记录。

没有请求消息体。

响应

   {
       “fixedip”: {
           "ptrdname": "server.mydomain.com.",
           "address": "<region>:<ipv4 or ipv6 compliant address>",
           "ttl": 3600,
           "description": null,
           "links": {
               "self": "http://endpoint/v2/reverse/fixedips/<region>:<ipv4 or ipv6 compliant address>"
           }
       }
   }

创建固定 IP PTR 记录 (PATCH)

创建给定固定 IP 地址的 PTR 记录。

请求

   {
       "fixedip": {
           "ptrdname": "server.mydomain.com.",
           "ttl": 3600
       }
   }

响应

   {
       “fixedip”: {
           "ptrdname": "server.mydomain.com.",
           "address": "<region>:<ipv4 or ipv6 compliant address>",
           "ttl": 3600,
           "description": null,
           "links": {
               "self": "http://endpoint/v2/reverse/fixedips/<region>:<ipv4 or ipv6 compliant address>"
           }
       }
   }

删除固定 IP PTR 记录 (PATCH)

删除给定固定 IP 地址的 PTR 记录。

请求

   {
       "fixedip": {
           "ptrdname": null
       }
   }

返回体为空。

数据库更改

数据库模式没有更改。