如何使用RED HAT CLOUDFORMS REST API 简述
2017-06-02 15:47
295 查看
点击打开链接 https://access.redhat.com/documentation/en-us/red_hat_cloudforms/4.1/html-single/red_hat_cloudforms_rest_api/
举例说明,结合使用文档简述:
POST=> https://cfme.ose.org/api/provision_requests
Provision Request | POST | /api/provision_requests | |
Provision Requests | POST | /api/provision_requests |
POST=> https://cfme.ose.org/api/provision_requests
POST clone_vm_restapi https://cfme.ose.org/api/provision_requests HEADERS X-Auth-Token / 61564cce0a16cd53b9243826dae44a5e Content-Type / application/x-www-form-urlencoded Authorization / Basic YWRtaW46c21hcnR2bQ== BODY
{"version": "1.1", "template_fields": { "guid": "8bba4394-e05f-11e6-8900-0050568176b3", "request_type": "template" }, "vm_fields": { --哪此字段放在这里,文档都有说明,并且字段类型,默认值都有说明 "sysprep_server_license_mode": "perServer", "sysprep_identification": "domain", "sysprep_per_server_max_connections": "5", "sysprep_workgroup_name": "WORKGROUP", "addr_mode": "dhcp", "sysprep_change_sid": true, "sysprep_auto_logon": true, "sysprep_enabled": "disabled", "sysprep_auto_logon_count": 1, "placement_auto": true, "number_of_vms": 1, "vm_name": "01test-shl-lei", "provision_type": "vmware", "vm_auto_start": true, "retirement": 0, "retirement_warn": 604800, "vlan": "VM Network", "disk_format": "thin", "cpu_limit": -1, "memory_limit": -1, "number_of_sockets": 1, "cores_per_socket": 1, "cpu_reserve": 0, "vm_memory": "2048", "memory_reserve": 0, "network_adapters": 1, "schedule_type": "immediately" }, "requester": { "owner_first_name": "d", "owner_last_name": "b", "owner_email": "db@test.com", "auto_approve": true, "placement_auto": false }, "tags": {}, "additional_values": { "placement_dc_name": 200000000000012, "placement_cluster_name": 200000000000001, "placement_rp_name": 200000000000001, "placement_folder_name": 200000000000010, "placement_host_name": 200000000000004, "placement_ds_name": 200000000000019 }, "ems_custom_attributes": null, "miq_custom_attributes": null }
相关文章推荐
- 如何使用RED HAT CLOUDFORMS REST API 简述 (二)
- Red Hat CloudForms REST API 学习(一)
- Red Hat CloudForms REST API 学习(二)
- How to clone VM 使用cloudForms REST api
- ArcGIS API for javascript开发笔记(六)——REST详解及如何使用REST API调用GP服务
- 如何使用Wisdom RESTClient定制满足您个性化需求的API文档?
- 如何使用python3调用openstack keystone identity REST api接口获取X-AUTH-TOKEN
- 如何使用Wisdom RESTClient定制满足您个性化需求的API文档?
- ArcGIS API for javascript开发笔记(六)——REST详解及如何使用REST API调用GP服务
- 如何使用Wisdom RESTClient定制满足您个性化需求的API文档?
- red hat linux 9下telnet的配置和使用
- 如何使用 API 从 VisualBasic 访问高级控件
- 如何在 Web 服务中使用 Service Data Objects 2.1 的动态数据 API
- Red Hat Linux 9.0 使用总结
- 如何用APT维护Red Hat Enterprise Linux (RHEL)
- 【翻译】MSIL 教程(二):数组、分支、循环、使用不安全代码和如何调用Win32 API
- 在PC上如何快速安装 Red Hat Linux
- red hat linux 9下telnet的配置和使用
- 在Red Hat Linux 5下使用远程桌面环境
- 如何在Red Hat Linux 9.0 下安装LumaQQ