// removed jquery ui css and js

Update Cloud Image Mapping

Details

API Details
Name

Update Cloud Image Mapping

Description
MethodPUT
URI

v1/tenants/tenantId/clouds/cloudId/regions/regionId/images/cloudImageId

CloudCenter Release
  • Introduced in CloudCenter 4.0.
  • 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.regionId.images.cloudImageId

Example

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

Request Body

Update the launchUserName from cloudcenter to CloudCenter:

{
  "id": "1",
  "resource": "https://<HOST:><PORT>/v1/tenants/1/clouds/1/regions/1/images/1",
  "perms": [],
  "regionId": "1",
  "cloudProviderImageId": "ami-43201873",
  "launchUserName": "cloudcenter",
  "imageId": "15",
  "grantAndRevoke": false,
  "imageCloudAccountId": 0,
  "resources": [],
  "mappings": [
    {
      "id": "12",
      "cloudInstanceType": {
        "id": "45",
        "resource": null,
        "perms": [],
        "name": "m2.4xlarge",
        "description": "High-memory Quadruple Extra Large Instance",
        "type": "m2.4xlarge",
        "regionId": "1",
        "costPerHour": 0.98,
        "memorySize": 68400,
        "numOfCPUs": 8,
        "numOfNICs": 1,
        "localStorageSize": 1690,
        "supportsCuda": false,
        "supportsSsd": false,
        "supports32Bit": false,
        "supports64Bit": true
      },
      "costOverride": 2.976,
      "cloudProviderImageIdOverride": null
    }
  ]
}

Response

{
  "id": "1",
  "resource": "https://<HOST>:>PORT>/v1/tenants/1/clouds/1/regions/1/images/1",
  "perms": [],
  "regionId": "1",
  "cloudProviderImageId": "ami-43201873",
  "launchUserName": "CloudCenter",
  "imageId": "15",
  "grantAndRevoke": false,
  "imageCloudAccountId": 0,
  "resources": [],
  "mappings": [
    {
      "id": "12",
      "cloudInstanceType": {
        "id": "45",
        "resource": null,
        "perms": [],
        "name": "m2.4xlarge",
        "description": "High-memory Quadruple Extra Large Instance",
        "type": "m2.4xlarge",
        "regionId": "1",
        "costPerHour": 0.98,
        "memorySize": 68400,
        "numOfCPUs": 8,
        "numOfNICs": 1,
        "localStorageSize": 1690,
        "supportsCuda": false,
        "supportsSsd": false,
        "supports32Bit": false,
        "supports64Bit": true
      }
    "costOverride": 2.976,
    "cloudProviderImageIdOverride": null
    }
  ]
}

 

Request Attributes

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

  • Type: String

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

cloudImageId
  • Description: Unique, system-generated identifier for a cloud image
  • 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)

regionId
  • DescriptionUnique, system-generated identifier for the cloud region 
  • Type: String

cloudProviderImageId
  • Description: Unique, system-generated identifier for a cloud provider image
  • Type: String

launchUserName
  • Description: User name associated with an image
  • Type: String

imageId
  • DescriptionUnique, system-generated identifier for a logically mapped image (see Manage Images for additional context).
  • Type: String

grantAndRevoke
  • Description: Grants image permissions to permitted users on an as needed basis and revoke this access immediately after the permitted user has launched the image. See Grant Image Permissions for additional context.
    • true =Grant permission (default)
    • false = Revoke permission
  • Type: Boolean

imageCloudAccountId
  • DescriptionUnique, system-generated identifier for the image cloud account
  • Type: Integer

resources
  • Description:  Properties for this image
  • Type: Name-Value Pair (array)

mappings
  • Description: Information about the image mapping.
  • Type: Array of mapped data types

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

    • Type: String

    cloudInstanceType (click for additional details)

    costOverride
    • DescriptionProvides the ability to control and override prices. See Track Cloud Costs for additional details.
    • Type: Float
    cloudProviderImageIdOverride
    • Description: Alternative unique identifier for the cloud provider image. If specified, this value overrides the valued specified by cloudProviderImageId.
    • Type: String

 

© 2017 Cisco Systems