softlayer

command module
v0.0.0-...-8d1dae6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

README

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=    

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL