No source template was found from input data:<{:guid=> [clone vm via /api/provision_requests]

130 阅读1分钟

请求:

{
    "version": "1.1",
    "template_fields": {
        "guid": "d102a688-4123-11e7-bc11-0050568176b3"  --错误的原因:这个GUID需要写模板的GUID,而不是VM的GUID
    },
    "vm_fields": {
        "number_of_cpus": 1,
        "vm_name": "shenhl_test",
        "vm_memory": "1024",
        "vlan": "VM Network"
    },
    "requester": {
        "user_name": "admin",
        "owner_first_name": "sdf",
        "owner_last_name": "wer",
        "owner_email": "a@b.com",
        "auto_approve": true
    },
    "tags": { },
    "additional_values": { },
    "ems_custom_attributes": { },
    "miq_custom_attributes": { }
}


\

结果:\

{
  "error": {
    "kind": "internal_server_error",
    "message": "No source template was found from input data:<{:guid=>\"d102a688-4123-11e7-bc11-0050568176b3\"}>",
    "klass": "RuntimeError"
  }
}


\

\