validatePartitionsForOperatingSystem


SoftLayer_Hardware_SecurityModule::validatePartitionsForOperatingSystem

Validates a collection of partitions for an operating system

Overview

Validates a collection of partitions for an operating system


Parameters

Name Type Description
operatingSystem SoftLayer_Software_Description The operating system that is to be verified against.
partitions SoftLayer_Hardware_Component_Partition[] The partitions that are to be used with the operating system.

Required Headers

  • authenticate

Return Values

  • boolean

Error Handling

  • SoftLayer_Exception_Public

Throws the exception ‘Invalid operating system provided.’ when the operating system description that was provided does not exist.

  • SoftLayer_Exception_Public

Throws the exception ‘ partition is too small…’ when the partition that was provided does not meet the minimum requirements

  • SoftLayer_Exception_Public

Throws the exception ‘Missing required partitions:…’ when partitions that are required for the operating system indicated are not provided.