SoftLayer.image

Image Manager/helpers

license:MIT, see LICENSE for more details.
class SoftLayer.managers.image.ImageManager(client)[source]

Manages server images

Parameters:client (SoftLayer.API.Client) – an API client instance
delete_image(image_id)[source]

deletes the specified image.

Parameters:image (int) – The ID of the image.
edit(image_id, name=None, note=None, tag=None)[source]

Edit image related details :param int image: The ID of the image :param string name: Name of the Image. :param string note: Note of the image. :param string tag: Tags of the image to be updated to.

get_image(image_id, **kwargs)[source]

Get details about an image

Parameters:
  • image (int) – The ID of the image.
  • **kwargs (dict) – response-level options (mask, limit, etc.)
list_private_images(guid=None, name=None, **kwargs)[source]

List all private images.

Parameters:
  • guid (string) – filter based on GUID
  • name (string) – filter based on name
  • **kwargs (dict) – response-level options (mask, limit, etc.)
list_public_images(guid=None, name=None, **kwargs)[source]

List all public images.

Parameters:
  • guid (string) – filter based on GUID
  • name (string) – filter based on name
  • **kwargs (dict) – response-level options (mask, limit, etc.)
resolve_ids(identifier)

Takes a string and tries to resolve to a list of matching ids.

What exactly ‘identifier’ can be depends on the resolvers

Parameters:identifier (string) – identifying string
Returns list: