Skip to content

Tool to manage PTR and NOTE records for IP addresses in Softlayer Datacenter

License

Notifications You must be signed in to change notification settings

m1keru/softlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Info

Tool to mange IP notes and PTR in IBM Soflayer Classic Infrastructure.

Creds must be provided with environment variables SL_USER and SL_APIKEY

Build

go build

Usage

./softlayer
  -force
        force yes to rename prompt. Use with caution!!!. default false
  -ip string
        ip address to delete in x.x.x.x form. default ''
  -list
        list free public and private ips
  -note string
        note about cli in ibm cloud [host.domain.com]. default ''
  -private
        list only free private ips
  -ptr string
        cli address ptr [hostname]. default ''
  -public
        list only free public ips
  -ttl int
        ttl for ptr. default 3600 (default 3600)

Example

list

softlayer -list -public     

create

softlayer -ip 10.114.123.123 -ptr="my.example.com" -note "my.example.com" -ttl=3600    

delete

softlayer -ip 10.114.123.123 -ptr= -note=    

About

Tool to manage PTR and NOTE records for IP addresses in Softlayer Datacenter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages