Update Cloud Instance Type

Details

API Details
Name

Update Instance Type by Instance Type ID

Description
MethodPUT
URI

v1/tenants/tenantId/clouds/cloudId/regions/cloudRegionId/instanceTypes/cloudInstanceTypeId

CloudCenter Release
  • Introduced in CloudCenter 4.0.
  • Enhanced in CloudCenter 4.2 to include the supportHardwareProvision and the localStorageCount  attributes.
  • The supportsCuda and cudaSupport attributes are deprecated in CloudCenter 4.7.2.
NotesFor additional context on <PORT> usage in the following example(s), see Base URI Format.
ESB Headeraction: update.tenants.tenantId.clouds.cloudId.regions.cloudRegionId.instanceTypes.
cloudInstanceTypeId

Example

curl -k -X PUT -H "Accept: application/json" -H "Content-Type: application/json" -u cliqradmin:40E45DBE57E35ECB "https://<HOST>:<PORT>/v1/tenants/1/clouds/1/regions/1/instanceTypes/2"

Request Body

Increase the costPerHour from 0.2 to 0.5:

{
  "id": "2",
  "resource": "https://<HOST>:<PORT>/v1/tenants/1/clouds/1/regions/1/instanceTypes/2",
  "perms": [],
  "name": "m1.large",
  "description": "Large Instance",
  "type": "m1.large",
  "regionId": "1",
  "costPerHour": 0.2,
  "memorySize": 7500,
  "numOfCPUs": 2,
  "numOfNICs": 1,
  "localStorageSize": 850,
  "supportsCuda": false,
  "supportsSsd": false,
  "supports32Bit": false,
  "supports64Bit": true,
  "supportHardwareProvision":false
 }

Response

{
  "id": "2",
  "resource": "https://<HOST>:<PORT>/v1/tenants/1/clouds/1/regions/1/instanceTypes/2",
  "perms": [],
  "name": "m1.large",
  "description": "Large Instance",
  "type": "m1.large",
  "regionId": "1",
  "costPerHour": 0.5,
  "memorySize": 7500,
  "numOfCPUs": 2,
  "numOfNICs": 1,
  "localStorageCount": 1,
  "localStorageSize": 850,
  "supportsCuda": false,
  "supportsSsd": false,
  "supports32Bit": false,
  "supports64Bit": true,
  "supportHardwareProvision":false
 }

 

Request Attributes

tenantId
  • DescriptionUnique, system-generated identifier for the tenant organization. A tenant admin must belong to this tenant to invoke any APIs for this tenant. See Add Sub-Tenants > Tenant ID and Tenant Name Dependency.

  • Type: String

Required

cloudId
  • Description: Unique, system-generated identifier for a cloud representation (see View Deployment Environments for additional details)

  • Type: String

Required

cloudRegionId
  • Description: Unique, system-generated identifier for a cloud region
  • Type: String

Required

cloudInstanceTypeId
  • Description: Unique, system-generated identifier for a cloud instance type (see Map Images)
  • Type: String

Required

Response Attributes

id
  • DescriptionUnique, system-generated identifier for this CloudCenter Resource.

  • Type: String

resource
  • Description: Unique URL to access this resource.
  • Type: String
perms (click for additional details)
name
  • DescriptionThe name assigned for this CloudCenter ResourceValid characters are letters, numbers, underscores, and spaces.

  • Type: String

description
  • DescriptionA brief description for this CloudCenter Resource.

  • Type: String
type
  • DescriptionThe type of resource
  • Type: String
regionId
  • DescriptionUnique, system-generated identifier for the cloud region 
  • Type: String
costPerHour
  • Description:  The dollar price per hour to use this service. Only the user who created this service (service owner) can set this value (once) for all users using this service.
  • Type: Float
memorySize
  • DescriptionThe RAM size in MB for this Instance Type (see Map Images)
  • Type: Integer
numOfCpus
  • DescriptionThe number of CPUs for this instance type or cloud Image. This attribute is the same as the minNumberOfCpus attribute.
  • Type: Integer
numOfNics
  • Description: The number of Network Interface Cards (NICs) attached to this instance type or cloud image.

  • Type: Integer
localStorageSize
  • Description: The local storage size in GB
  • Type: Integer
supportsCuda (deprecated)
  • Description: Indicates whether CUDA is supported for this instance type. This attribute is the same as the cudaSupport attribute

  • Type: Boolean
    • true = CUDA is supported for this instance type
    • false = CUDA is not supported for this instance type
supportsSsd
  • Description: Indicates whether SSD is supported for this instance type. This attribute is the same as the ssdSupport attribute.

  • Type: Boolean

    • true = SSD is supported for this instance type
    • false = SSD is not supported for this instance type
supports32Bit
  • Description: Indicates whether 32-bit architecture is supported for this instance type

    • true = 32-bit architecture is supported for this instance type
    • false = 32-bit architecture is not supported for this instance type
  • Type: Boolean
supports64Bit
  • Description: Indicates whether 64-bit architecture is supported for this instance type

    • true = 64-bit architecture is supported for this instance type
    • false = 64-bit architecture is not supported for this instance type
  • Type: Boolean
localStorageCount
  • Description: Enables a user to specify the number of additional instance stores (instance storage) that can attached to the Application VM. AWS use this concept of Instance Storage and CloudCenter enables users to create these additional stores using this attribute:
    • Default = 0
    • Minimum = 1
    • Maximum = 24
  • Type: Integer
supportsHardwareProvision 
  • Description: Identifies if hardware provisioning is supported (see Provision Bare Metal Hardware Servers for additional context:
    • true = Supports hardware provisioning
    • false = Does not support hardware provisioning
  • Type: Boolean