Flint provides out-of-the-box or ready to use workflows for operations on cloud infrastructure/resources. Here are the details of workflows or Flintbits for IBM Softlayer provider-

fb-cloudhttps://github.com/getflint/fb-cloud.git

fb-cloud > softlayer > operations

Available Flintbits

Perform all standard application operations available through the IBM Softlayer, Some of them are listed below:

IBM Softlayer available Flintbits

  • create_instance.rb
  • start_instance.rb
  • stop_instance.rb
  • reboot_instance.rb
  • reset_instance.rb
  • describe_instance.rb
  • list_instance.rb
  • list_regions.rb
  • update_instance.rb
  • delete_instance.rb

create_instance

To create a new Instance in IBM Softlayer data center.

Input and output JSON for the Create_instance operation

This section illustrates the Flintbit Input and output for Create_instance operation.

Sample Input JSON for the Create_instance operation
{
  "connector_name" : "softlayer",
  "host-name" : "my-hostname",
  "domain-name" : "example.com",
  "cpu" : 2,
  "max-memory" : 1024,
  "datacenter" : "dal01",
  "operating-system": "",
  "username" : "",
  "apikey" : "a23dgn5nmk247gbn85sdebg",
  "ipv6" : false,
  "user_data" : null,
  "private_networking":true
}
Flintbit input elements for the Create_instance operation
ParameterDescriptionrequired
connector_nameName of the IBM Softlayer Connector to be configured.true
host-nameHostname of the machine to be createdtrue

domain-name

DomainName of the machine to be created

true

cpu

No of cpu required

true

max-memory

Max memory required by machine

true

datacenter

Name of the datacenter where machine is created

true

operating-system

Name of the operating system which is to be in machine

false

username

Username of softlayer account

false

apikey

API key of softlayer account

false

ipv6

User data for the Instance

false

user_data

User data for the Instance

false

private_networking

Private networking enable or not

false
Sample JSON output for the Create_Instance operations
{
  "meta": {
    "job-id": "job-fd9dba4b-64e3-43f4-9488-cfb58e59260f",
    "exit-code": 0,
    "context": "fb-cloud:softlayer:operations:create_instance.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1470132715126,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "response": {
      "id": 22823657,
      "domainName": "example.com"
    },
    "exit-code": 0
  }
}

start_instance

To Starts an instance on IBM Softlayer

Input and output JSON for the Start_Instance operation

This section illustrates the Flintbit Input and output for Start_instances operations.

Sample Input JSON for the Start_instances operations
{
"connector_name" : "softlayer",
"username" : "SL558783",
"id" : 22823657,
"apikey" : "64202a134bb1d7e526a65270fac2ccbb93880b675d10374d8944b54e4e5ef8fa"
} 
Flintbit input elements for the Start_instances operation
ParameterDescriptionrequired
connector_nameName of the IBM Softlayer Connector to be configured.true

username

Username of softlayer account

false

apikey

API key of softlayer account

false
idId of the instancetrue
Sample JSON output for the Start_Instance operations
 {
  "meta": {
    "job-id": "job-e52b7b64-2c52-47f0-8cf0-f0c6312384e1",
    "exit-code": 0,
    "context": "fb-cloud:softlayer:operations:start_instance.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1470132949497,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "response": {
      "power-on": true,
      "vm-state": "Running"
    },
    "exit-code": 0
  }
}

stop_instance

To Stop an instance on IBM Softlayer

Input and output JSON for the Stop_Instance operation

This section illustrates the Flintbit Input and output for Stop_instances operations.

Sample Input JSON for the Stop_instances operations
 {
"connector_name" : "softlayer",
"username" : "SL558783",
"id" : 22823657,
"apikey" : "64202a134bb1d7e526a65270fac2ccbb93880b675d10374d8944b54e4e5ef8fa"
} 
Flintbit input elements for the Stop_instances operation
ParameterDescriptionrequired
connector_nameName of the IBM Softlayer Connector to be configured.true

username

Username of softlayer account

false

apikey

API key of softlayer account

false
idId of the instancetrue
Sample JSON output for the Stop_Instance operations
 {
  "meta": {
    "job-id": "job-31c1bd26-ee0c-45a4-9e63-f73b6bd42d53",
    "exit-code": 0,
    "context": "fb-cloud:softlayer:operations:stop_instance.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1470133074999,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "response": {
      "power-off": true,
      "vm-state": "Halted"
    },
    "exit-code": 0
  }
}

reboot_instance

To Reboot an instance on IBM Softlayer

Input and output JSON for the Reboot_Instance operation

This section illustrates the Flintbit Input and output for Reboot_instances operation.

Sample Input JSON for the Reboot_instances operation
{
"connector_name" : "softlayer",
"username" : "SL558783",
"id" : 22823657,
"apikey" : "64202a134bb1d7e526a65270fac2ccbb93880b675d10374d8944b54e4e5ef8fa"
} 
Flintbit input elements for the Reboot_instances operation
ParameterDescriptionrequired
connector_nameName of the IBM Softlayer Connector to be configured.true

username

Username of softlayer account

false

apikey

API key of softlayer account

false
idId of the instancetrue
Sample JSON output for the Reboot_Instances operation
 {
  "meta": {
    "job-id": "job-2e606dcb-0e82-4ce6-99ba-905ce5da5b3f",
    "exit-code": 0,
    "context": "fb-cloud:softlayer:operations:reboot_instance.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1470133308543,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "response": {
      "isreboot": true
    },
    "exit-code": 0
  }
}

reset_instance

To Reset an instance on IBM Softlayer

Input and output JSON for the Reset_Instance operation

This section illustrates the Flintbit Input and output for Reset_instance operation.

Sample Input JSON for the Reset_instance operation
 {
"connector_name" : "softlayer",
"username" : "SL558783",
"id" : 22823657,
"apikey" : "64202a134bb1d7e526a65270fac2ccbb93880b675d10374d8944b54e4e5ef8fa"
} 
Flintbit input elements for the Reset_instance operation
ParameterDescriptionrequired
connector_nameName of the IBM Softlayer Connector to be configured.true

username

Username of softlayer account

false

apikey

API key of softlayer account

false
idId of the instancetrue
Sample JSON output for the Reset_Instance operation
 {
  "meta": {
    "job-id": "job-45dbe490-5203-4312-832a-6a6a109f9fd9",
    "exit-code": 0,
    "context": "fb-cloud:softlayer:operations:reset_instance.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1470133410960,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "response": {
      "reset": true,
      "vm-state": "Running"
    }
  }
}

describe_instance

To Describe an instance on IBM Softlayer

Input and output JSON for the Describe_Instance operation

This section illustrates the Flintbit Input and output for Describe_instance operation.

Sample Input JSON for the Describe_instance operation
 {
"connector_name" : "softlayer",
"username" : "SL558783",
"id" : 22823657,
"apikey" : "64202a134bb1d7e526a65270fac2ccbb93880b675d10374d8944b54e4e5ef8fa"
} 
Flintbit input elements for the Describe_instance operation
ParameterDescriptionrequired
connector_nameName of the IBM Softlayer Connector to be configured.true

username

Username of softlayer account

false

apikey

API key of softlayer account

false
idId of the instancetrue
Sample JSON output for the Describe_Instance operation
 {
  "meta": {
    "job-id": "job-5d18aa91-d2bb-4920-afc1-f308846b1a7d",
    "exit-code": 0,
    "context": "fb-cloud:softlayer:operations:describe_instance.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1470133591754,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "response": {
      "vm-details": {
        "domain-name": "example.com",
        "max-cpu": 2,
        "operating-system": "UBUNTU_16_64",
        "cpu-units": "CORE",
        "datacenter": "Amsterdam 1",
        "host-name": "myhostname",
        "status-id": 1001,
        "full-name": "myhostname.example.com",
        "max-memory": 1024,
        "public-ip": "10.105.134.68",
        "id": 22823657,
        "private-ip": "159.8.7.91",
        "vm-state": "Active",
        "start-cpu": 2,
        "status": "Running"
      }
    },
    "exit-code": 0
  }
}

list_instance

To List an instances on IBM Softlayer

Input and output JSON for the List_Instance operation

This section illustrates the Flintbit Input and output for List_instance operation.

Sample Input JSON for the List_instance operation
 {
"connector_name" : "softlayer",
"username" : "SL558783",
"apikey" : "64202a134bb1d7e526a65270fac2ccbb93880b675d10374d8944b54e4e5ef8fa"
} 
Flintbit input elements for the List_instance operation
ParameterDescriptionrequired
connector_nameName of the IBM Softlayer Connector to be configured.true

username

Username of softlayer account

false

apikey

API key of softlayer account

false
Sample JSON output for the List_Instance operation
 {
  "meta": {
    "job-id": "job-1c6a1386-45e3-439b-ab67-7d1c320f96b2",
    "exit-code": 0,
    "context": "fb-cloud:softlayer:operations:list_instance.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1470133680598,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "response": {
      "vm-list": [
        {
          "domain-name": "example.com",
          "max-cpu": 2,
          "operating-system": "UBUNTU_16_64",
          "cpu-units": "CORE",
          "datacenter": "Amsterdam 1",
          "host-name": "myhostname",
          "status-id": 1001,
          "full-name": "myhostname.example.com",
          "max-memory": 1024,
          "public-ip": "159.8.7.91",
          "id": 22823657,
          "private-ip": "10.105.134.68",
          "vm-state": "Active",
          "start-cpu": 2,
          "status": "Running"
        }
      ]
    },
    "exit-code": 0
  }
}

list_regions

To List regions on IBM Softlayer

Input and output JSON for the List_Instance operation

This section illustrates the Flintbit Input and output for List_instance operation.

Sample Input JSON for the List_instance operation
{
"connector_name" : "softlayer",
"username" : "SL558783",
"apikey" : "64202a134bb1d7e526a65270fac2ccbb93880b675d10374d8944b54e4e5ef8fa"
} 
Flintbit input elements for the List_instance operation
ParameterDescriptionrequired
connector_nameName of the IBM Softlayer Connector to be configured.true

username

Username of softlayer account

false

apikey

API key of softlayer account

false
Sample JSON output for the List_Instance operation
{
  "meta": {
    "job-id": "job-1277230b-1475-4ef0-bbd9-a1b9583debc2",
    "exit-code": 0,
    "context": "fb-cloud:softlayer:operations:list_regions.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1470133873462,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "result": [
      "Amsterdam 1",
      "Amsterdam 3",
      "Chennai 1",
      "Dallas 1",
      "Dallas 10",
      "Dallas 2",
      "Dallas 4",
      "Dallas 5",
      "Dallas 6",
      "Dallas 7",
      "Dallas 9",
      "Frankfurt 2",
      "Hong Kong 2",
      "Houston 2",
      "London 2",
      "Melbourne 1",
      "Mexico 1",
      "Milan 1",
      "Montreal 1",
      "Paris 1",
      "San Jose 1",
      "San Jose 3",
      "Sao Paulo 1",
      "Seattle 1",
      "Singapore 1",
      "Sydney 1",
      "Tokyo 2",
      "Toronto 1",
      "Washington 1",
      "Washington 4"
    ],
    "exit-code": 0
  }
}
 

update_instance

To update an instance  on IBM Softlayer

Input and output JSON for the update_instance operation

This section illustrates the Flintbit Input and output for update_instance operation.

Sample Input JSON for the update_instance operation
{
"connector_name" : "softlayer",
"username" : "SL558783",
"host-name" : "infiverve",
"domain-name" : "example.com",
"full-name" : "infiverve",
"id": 22823657,
"apikey" : "64202a134bb1d7e526a65270fac2ccbb93880b675d10374d8944b54e4e5ef8fa"
} 
Flintbit input elements for the update_instance operation
ParameterDescriptionrequired
connector_nameName of the IBM Softlayer Connector to be configured.true

username

Username of softlayer account

false

apikey

API key of softlayer account

false
id

id of the instance

true

full-name

Fullname of the instance which you want to givefalse

domain-name

Domainname of the Softlayer Instancetrue
Sample JSON output for the update_instance operation
 

delete_instance

To delete an instance  on IBM Softlayer

Input and output JSON for the delete_instance operation

This section illustrates the Flintbit Input and output for delete_instance operation.

Sample Input JSON for the delete_instance operation
{
"connector_name" : "softlayer",
"username" : "SL558783",
"id": 22823657,
"apikey" : "64202a134bb1d7e526a65270fac2ccbb93880b675d10374d8944b54e4e5ef8fa"
} 
Flintbit input elements for the delete_instance operation
ParameterDescriptionrequired
connector_nameName of the IBM Softlayer Connector to be configured.true

username

Username of softlayer account

false

apikey

API key of softlayer account

false
idid of the instancetrue
Sample JSON output for the delete_instance operation
{
  "meta": {
    "job-id": "job-a68342a5-bb76-49b6-b405-5335798f6d9a",
    "exit-code": 0,
    "context": "fb-cloud:softlayer:operations:delete_instance.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1470136374531,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "response": {
      "delete": true
    },
    "exit-code": 0
  }
}

 

 
 
 
 
 
  • No labels