1 Reply Latest reply: Jul 6, 2012 8:42 AM by jack.yu RSS

    cloud api does not show service template!

    947745
      I want to deploy VM using Cloud API.

      I installed em12c and registered vm manager.
      Then virtual machine template was imported in repository.

      When I retrieve cloud information using cloud API.
      It does not show template information.

      the result looks like:

      {
      "uri" : "/em/cloud" ,
      "name" : "Infrastructure Cloud" ,
      "description" : "Infrastructure Cloud with Self Service Portal and Virtualization Managements" ,
      "service_templates" : {
      "uri" : "/em/cloud/collection/servicetemplates" ,
      "type" : "application/oracle.com.cloud.common.ServiceTemplate+json" ,
      "total" : "0" ,
      "elements" :
      [      ]
      } ,
      "zones" : {
      "uri" : "/em/cloud/collection/zones" ,
      "type" : "application/oracle.com.cloud.common.Zone+json" ,
      "total" : "1" ,
      "elements" :
      [
      {
      "uri" : "/em/cloud/zone/AC591977CDC16610351193A1AEBA3800" ,
      "name" : "OVM_ZONE_KR1" ,
      "type" : "oracle_vm_zone"
      }
      ]
      } ,
      "vdcs" : {
      "uri" : "/em/cloud/collection/vdcs" ,
      "type" : "application/oracle.com.cloud.common.VDC+json" ,
      "total" : "1" ,
      "elements" :
      [
      {
      "uri" : "/em/cloud/vdc/default/AC591977CDC16610351193A1AEBA3800" ,
      "name" : "Oracle Enterprise Manager Virtual Data Center on Zone OVM_ZONE_KR1"
      }
      ]
      } ,
      "instance_options" : {
      "uri" : "/em/cloud/collection/instanceoptions" ,
      "type" : "application/oracle.com.cloud.common.InstanceOption+json" ,
      "total" : "3" ,
      "elements" :
      [
      {
      "uri" : "/em/cloud/instanceoption/virtual_machine_size/3" ,
      "name" : "Medium" ,
      "type" : "virtual_machine_size" ,
      "memory" : "8192" ,
      "cpu" : "4" ,
      "local_storage" : "512000"
      } ,
      {
      "uri" : "/em/cloud/instanceoption/virtual_machine_size/4" ,
      "name" : "Large" ,
      "type" : "virtual_machine_size" ,
      "memory" : "15360" ,
      "cpu" : "8" ,
      "local_storage" : "1024000"
      } ,
      {
      "uri" : "/em/cloud/instanceoption/virtual_machine_size/2" ,
      "name" : "Small" ,
      "type" : "virtual_machine_size" ,
      "memory" : "4096" ,
      "cpu" : "2" ,
      "local_storage" : "256000"
      }
      ]
      } ,
      "resource_state" : {
      "state" : "READY"
      }
      }
        • 1. Re: cloud api does not show service template!
          jack.yu
          Please publish the service template to the user via

          1. Setup->Cloud->Infrastructure
          2. Click on Software Components
          3. publish the service template to the role of which the user is assigned

          Service Template is a privileged object where only users with view privileges would be able to access it.