Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tmclaugh/central-registration-nodejs
Manage cloud environment stuff.
https://github.com/tmclaugh/central-registration-nodejs
Last synced: about 1 month ago
JSON representation
Manage cloud environment stuff.
- Host: GitHub
- URL: https://github.com/tmclaugh/central-registration-nodejs
- Owner: tmclaugh
- Created: 2016-06-21T19:36:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-09T18:01:28.000Z (over 7 years ago)
- Last Synced: 2024-10-02T09:41:25.717Z (about 2 months ago)
- Language: JavaScript
- Size: 26.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
central-registration-nodejs
===Manages stuff.
## DNS: /api/v1/dns
The DNS endpoint can create, delete, alter recods in AWS Route53. It is
currently not very smart and mostly acts as a proxy to the Route53 API.### POST: /api/v1/dns
Create a DNS record.`$ curl -s -H "Content-Type: application/json" -X POST -d '{"HostedZone":"example.com.", "rr":{"Name":"i-deadbeef.example.com.", "Type":"A", "TTL":300, "ResourceRecords":[{"Value":"127.0.0.1"}]}}' http://localhost:8080/api/v1/dns`
### PUT: /api/v1/dns/:rrName
Alter a DNS record.`curl -s -H "Content-Type: application/json" -X PUT -d '{"HostedZone":"example.com.", "rr":{"Type":"A", "TTL":10, "ResourceRecords":[{"Value": "127.0.0.1"}]}}' http://localhost:8080/api/v1/dns/i-deadbeef.example.com.`
### GET: /api/v1/dns/:rrName
Return a DNS record.`curl -s -H "Content-Type: application/json" -X GET -d '{"HostedZone":"example.com.", "rr":{"Type":"A"}}' http://localhost:8080/api/v1/dns/i-deadbeef.example.com.`
### DELETE: /api/v1/dns/:rrName
Delete a DNS record.`curl -s -H "Content-Type: application/json" -X DELETE -d '{"HostedZone":"example.com.", "rr":{"Type":"A", "TTL":10, "ResourceRecords":[{"Value": "127.0.0.1"}]}}' http://localhost:8080/api/v1/dns/i-deadbeef.example.com.`