Designate/Blueprints/ReverseFixedIP

Summary
This blueprint proposes to provide an interface for a VM instance's PTR record based on the allocated Fixed IP.

This blueprint is based on the blueprint for floating IP PTR records:

Designate/Blueprints/Reverse

API Resource - Private / Fixed IPs
Using the general endpoint call "/reverse" add the fixed IP resource called "fixedips".

List the Fixed IP PTR Records (GET)
Return the list of PTR record for all fixed IP addresses.

There is no request message body.

Response {       “fixedips”: [ {               "ptrdname": "server.mydomain.com.", "address": " :", "ttl": 3600, "description": null, "links": { "self": "http://endpoint/v2/reverse/fixedips/ :" }           },            {                "ptrdname": "server2.mydomain.com.", "address": " :", "ttl": 3600, "description": null, "links": { "self": "http://endpoint/v2/reverse/fixedips/ :" }           }        ],        "links": { "self": "http://endpoint/v2/reverse/fixedips" }   }

Get the Fixed IP PTR Record (GET)
Return the PTR record for the given fixed IP address.

There is no request message body.

Response {       “fixedip”: { "ptrdname": "server.mydomain.com.", "address": " :", "ttl": 3600, "description": null, "links": { "self": "http://endpoint/v2/reverse/fixedips/ :" }       }    }

Create the Fixed IP PTR Record (PATCH)
Create the PTR record for the given fixed IP address.

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

Response {       “fixedip”: { "ptrdname": "server.mydomain.com.", "address": " :", "ttl": 3600, "description": null, "links": { "self": "http://endpoint/v2/reverse/fixedips/ :" }       }    }

Delete the Fixed IP PTR Record (PATCH)
Delete the PTR record for the given fixed IP address.

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

The return body is empty.

Database Changes
There are no changes to the database schema.