0
votes

Using Fast Provision API, BM Servier provision is success. I want to capture image of BM Server. Is there any payload(example) available for capture image for bare metal server.

http://sldn.softlayer.com/reference/services/SoftLayer_Hardware/captureImage

I am unable to generate payload for this.

1

1 Answers

0
votes

Please try the following REST request:

https://[username]:apikey]@api.softlayer.com/rest/v3/SoftLayer_Hardware/[hardware_id]/captureImage

Method: POST

Json Payload:

{
      "parameters": [
          {
            "name": "myImageName",
            "description": "api test note"
          }
      ]
    }

Where the supported OSes to create a flex image are:

- Centos 5.x - 6.x
- Redhat Enterprise 5.x - 6.x
- Windows 2003 - SP2
- Windows 2008 RC2
- Bare metal platform installations NOT supported

References:

create flex image

what is flex image