GET /api/compute_resources
200
{
"total": 1,
"subtotal": 1,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"description": "mycompute",
"url": "test:///default",
"created_at": "2020-11-04 15:05:54 UTC",
"updated_at": "2020-11-04 15:05:54 UTC",
"id": 367690737,
"name": "mycompute",
"provider": "Libvirt",
"provider_friendly_name": "Libvirt",
"display_type": "vnc",
"set_console_password": true
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
|
search optional |
filter results Validations:
|
|
order optional |
Sort field and order, eg. ‘id DESC’ Validations:
|
|
page optional |
Page number, starting at 1 Validations:
|
|
per_page optional |
Number of results per page to return, ‘all’ to return all results Validations:
|
| Field name | Type | Possible values |
|---|---|---|
| id | integer | |
| location | string | |
| location_id | integer | |
| name | string | |
| organization | string | |
| organization_id | integer | |
| type | string |
GET /api/compute_resources/367690737-mycompute
200
{
"description": "mycompute",
"url": "test:///default",
"created_at": "2020-11-04 15:05:54 UTC",
"updated_at": "2020-11-04 15:05:54 UTC",
"id": 367690737,
"name": "mycompute",
"provider": "Libvirt",
"provider_friendly_name": "Libvirt",
"display_type": "vnc",
"set_console_password": true,
"images": [],
"compute_attributes": [],
"locations": [
{
"id": 255093256,
"name": "Location 1",
"title": "Location 1",
"description": null
}
],
"organizations": [
{
"id": 447626438,
"name": "Organization 1",
"title": "Organization 1",
"description": null
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
POST /api/compute_resources
{
"compute_resource": {
"name": "Ovirt-create-test",
"url": "https://myovirt/api",
"provider": "ovirt",
"datacenter": "test",
"user": "user@example.com",
"password": "secret"
}
}
201
{
"description": null,
"url": "https://myovirt/api",
"created_at": "2020-11-04 15:05:59 UTC",
"updated_at": "2020-11-04 15:05:59 UTC",
"id": 980190963,
"name": "Ovirt-create-test",
"provider": "Ovirt",
"provider_friendly_name": "oVirt",
"user": "user@example.com",
"datacenter": "255113b0-f9e0-42cf-ac16-f9a2474a7fac",
"use_v4": true,
"ovirt_quota": "aae6e3f3-0798-4ef7-b4e4-c036f04a98d7",
"display_type": "vnc",
"keyboard_layout": "en-us",
"images": [],
"compute_attributes": [],
"locations": [],
"organizations": []
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
compute_resource required |
Validations:
|
|
compute_resource[name] required |
Validations:
|
|
compute_resource[provider] optional , nil allowed |
Providers include Libvirt, Ovirt, EC2, Vmware, Openstack, GCE Validations:
|
|
compute_resource[url] optional , nil allowed |
URL for Libvirt, oVirt and OpenStack Validations:
|
|
compute_resource[description] optional , nil allowed |
Validations:
|
|
compute_resource[user] optional , nil allowed |
Username for oVirt, EC2, VMware, OpenStack. Access Key for EC2. Validations:
|
|
compute_resource[password] optional , nil allowed |
Password for oVirt, EC2, VMware, OpenStack. Secret key for EC2 Validations:
|
|
compute_resource[datacenter] optional , nil allowed |
for oVirt, VMware Datacenter Validations:
|
|
compute_resource[use_v4] optional , nil allowed |
for oVirt only Validations:
|
|
compute_resource[ovirt_quota] optional , nil allowed |
for oVirt only, ID or Name of quota to use Validations:
|
|
compute_resource[public_key] optional , nil allowed |
for oVirt only Validations:
|
|
compute_resource[region] optional , nil allowed |
for AzureRm eg. ‘eastus’ and for EC2 only. Use ‘us-gov-west-1’ for EC2 GovCloud region Validations:
|
|
compute_resource[tenant] optional , nil allowed |
for OpenStack and AzureRm only Validations:
|
|
compute_resource[domain] optional , nil allowed |
for OpenStack (v3) only Validations:
|
|
compute_resource[project_domain_name] optional , nil allowed |
for OpenStack (v3) only Validations:
|
|
compute_resource[project_domain_id] optional , nil allowed |
for OpenStack (v3) only Validations:
|
|
compute_resource[server] optional , nil allowed |
for VMware Validations:
|
|
compute_resource[set_console_password] optional , nil allowed |
for Libvirt and VMware only Validations:
|
|
compute_resource[display_type] optional , nil allowed |
for Libvirt and oVirt only Validations:
|
|
compute_resource[keyboard_layout] optional , nil allowed |
for oVirt only Validations:
|
|
compute_resource[caching_enabled] optional , nil allowed |
enable caching, for VMware only Validations:
|
|
compute_resource[project] optional , nil allowed |
Project id for GCE only Validations:
|
|
compute_resource[email] optional , nil allowed |
Email for GCE only Validations:
|
|
compute_resource[key_path] optional , nil allowed |
Certificate path for GCE only Validations:
|
|
compute_resource[zone] optional , nil allowed |
for GCE only Validations:
|
|
compute_resource[location_ids] optional , nil allowed |
REPLACE locations with given ids Validations:
|
|
compute_resource[organization_ids] optional , nil allowed |
REPLACE organizations with given ids. Validations:
|
PUT /api/compute_resources/628705878
{
"compute_resource": {
"display_type": "SPICE"
}
}
200
{
"description": "computeresource",
"url": "test:///default/v2.0",
"created_at": "2020-11-04 15:05:54 UTC",
"updated_at": "2020-11-04 15:05:54 UTC",
"id": 628705878,
"name": "openstackcr",
"provider": "Openstack",
"provider_friendly_name": "OpenStack",
"user": "MyString",
"tenant": null,
"domain": null,
"project_domain_name": null,
"project_domain_id": null,
"images": [],
"compute_attributes": [],
"locations": [],
"organizations": []
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
|
compute_resource required |
Validations:
|
|
compute_resource[name] optional |
Validations:
|
|
compute_resource[provider] optional , nil allowed |
Providers include Libvirt, Ovirt, EC2, Vmware, Openstack, GCE Validations:
|
|
compute_resource[url] optional , nil allowed |
URL for Libvirt, oVirt and OpenStack Validations:
|
|
compute_resource[description] optional , nil allowed |
Validations:
|
|
compute_resource[user] optional , nil allowed |
Username for oVirt, EC2, VMware, OpenStack. Access Key for EC2. Validations:
|
|
compute_resource[password] optional , nil allowed |
Password for oVirt, EC2, VMware, OpenStack. Secret key for EC2 Validations:
|
|
compute_resource[datacenter] optional , nil allowed |
for oVirt, VMware Datacenter Validations:
|
|
compute_resource[use_v4] optional , nil allowed |
for oVirt only Validations:
|
|
compute_resource[ovirt_quota] optional , nil allowed |
for oVirt only, ID or Name of quota to use Validations:
|
|
compute_resource[public_key] optional , nil allowed |
for oVirt only Validations:
|
|
compute_resource[region] optional , nil allowed |
for AzureRm eg. ‘eastus’ and for EC2 only. Use ‘us-gov-west-1’ for EC2 GovCloud region Validations:
|
|
compute_resource[tenant] optional , nil allowed |
for OpenStack and AzureRm only Validations:
|
|
compute_resource[domain] optional , nil allowed |
for OpenStack (v3) only Validations:
|
|
compute_resource[project_domain_name] optional , nil allowed |
for OpenStack (v3) only Validations:
|
|
compute_resource[project_domain_id] optional , nil allowed |
for OpenStack (v3) only Validations:
|
|
compute_resource[server] optional , nil allowed |
for VMware Validations:
|
|
compute_resource[set_console_password] optional , nil allowed |
for Libvirt and VMware only Validations:
|
|
compute_resource[display_type] optional , nil allowed |
for Libvirt and oVirt only Validations:
|
|
compute_resource[keyboard_layout] optional , nil allowed |
for oVirt only Validations:
|
|
compute_resource[caching_enabled] optional , nil allowed |
enable caching, for VMware only Validations:
|
|
compute_resource[project] optional , nil allowed |
Project id for GCE only Validations:
|
|
compute_resource[email] optional , nil allowed |
Email for GCE only Validations:
|
|
compute_resource[key_path] optional , nil allowed |
Certificate path for GCE only Validations:
|
|
compute_resource[zone] optional , nil allowed |
for GCE only Validations:
|
|
compute_resource[location_ids] optional , nil allowed |
REPLACE locations with given ids Validations:
|
|
compute_resource[organization_ids] optional , nil allowed |
REPLACE organizations with given ids. Validations:
|
DELETE /api/compute_resources/367690737
{
"compute_resource": {}
}
200
{
"description": "mycompute",
"url": "test:///default",
"created_at": "2020-11-04 15:05:54 UTC",
"updated_at": "2020-11-04 15:05:54 UTC",
"id": 367690737,
"name": "mycompute",
"provider": "Libvirt",
"provider_friendly_name": "Libvirt",
"display_type": "vnc",
"set_console_password": true,
"images": [],
"compute_attributes": [],
"locations": [],
"organizations": []
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
GET /api/compute_resources/928692541-amazon123/available_images
200
[
{
"name": "some_image",
"uuid": "123"
}
]
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
GET /api/compute_resources/510899777-Ovirt/available_clusters
200
{
"total": 1,
"subtotal": 1,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"name": "test_cluster",
"id": "my11-test35-uuid99"
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
GET /api/compute_resources/928692541-amazon123/available_flavors
200
{
"total": 1,
"subtotal": 1,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"name": "test_ec2_object",
"id": "123"
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
GET /api/compute_resources/305613588-Vmware/available_folders
200
{
"total": 1,
"subtotal": 1,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"name": "test_vmware_object",
"id": "my11-test35-uuid99"
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
GET /api/compute_resources/928692541-amazon123/available_zones
200
{
"total": 1,
"subtotal": 1,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"name": "test_ec2_object"
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
GET /api/compute_resources/510899777-Ovirt/available_clusters/123-456-789/available_networks
200
{
"total": 1,
"subtotal": 1,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"name": "test_network",
"id": "my11-test35-uuid99"
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
|
cluster_id optional |
Validations:
|
GET /api/compute_resources/305613588-Vmware/available_clusters/123-456-789/available_resource_pools
200
{
"total": 1,
"subtotal": 1,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"name": "test_vmware_object",
"id": "my11-test35-uuid99"
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
|
cluster_id required |
Validations:
|
GET /api/compute_resources/305613588-Vmware/storage_domains/test_vmware_datastore
200
{
"name": "test_vmware_datastore",
"id": "my11-test35-uuid99"
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
|
storage_domain_id required |
Validations:
|
GET /api/compute_resources/305613588-Vmware/available_storage_domains/test_vmware_datastore
200
{
"total": 1,
"subtotal": 1,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"name": "test_vmware_datastore",
"id": "my11-test35-uuid99"
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
|
cluster_id optional |
Validations:
|
|
storage_domain optional |
Validations:
|
GET /api/compute_resources/305613588-Vmware/storage_pods/test_vmware_pod
200
{
"name": "test_vmware_pod",
"id": "group-p123456"
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
|
storage_pod_id required |
Validations:
|
GET /api/compute_resources/305613588-Vmware/available_storage_pods/test_vmware_pod
200
{
"total": 1,
"subtotal": 1,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"name": "test_vmware_pod",
"id": "group-p123456"
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
|
cluster_id optional |
Validations:
|
|
storage_pod optional |
Validations:
|
GET /api/compute_resources/928692541-amazon123/available_security_groups
200
{
"total": 1,
"subtotal": 1,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"name": "test_ec2_object",
"group_id": "123"
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
PUT /api/compute_resources/980190968-compute_resource4/associate
{
"compute_resource": {}
}
200
{
"total": 10,
"subtotal": 10,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"ip": null,
"ip6": null,
"environment_id": null,
"environment_name": null,
"last_report": null,
"mac": null,
"realm_id": null,
"realm_name": null,
"sp_mac": null,
"sp_ip": null,
"sp_name": null,
"domain_id": null,
"domain_name": null,
"architecture_id": null,
"architecture_name": null,
"operatingsystem_id": null,
"operatingsystem_name": null,
"subnet_id": null,
"subnet_name": null,
"subnet6_id": null,
"subnet6_name": null,
"sp_subnet_id": null,
"ptable_id": null,
"ptable_name": null,
"medium_id": null,
"medium_name": null,
"pxe_loader": null,
"build": false,
"comment": null,
"disk": null,
"installed_at": null,
"model_id": null,
"hostgroup_id": null,
"owner_id": 135138680,
"owner_name": "Admin User",
"owner_type": "User",
"enabled": true,
"managed": false,
"use_image": null,
"image_file": "",
"uuid": "73762417-8f9c-4ab2-8927-ec2c1bc0f552",
"compute_resource_id": 980190968,
"compute_resource_name": "compute_resource4",
"compute_profile_id": null,
"compute_profile_name": null,
"capabilities": [
"image",
"key_pair"
],
"provision_method": "image",
"certname": "host8",
"image_id": null,
"image_name": null,
"created_at": "2020-11-04 15:06:02 UTC",
"updated_at": "2020-11-04 15:06:02 UTC",
"last_compile": null,
"global_status": 0,
"global_status_label": "OK",
"uptime_seconds": null,
"organization_id": 447626438,
"organization_name": "Organization 1",
"location_id": 255093256,
"location_name": "Location 1",
"puppet_status": 0,
"model_name": null,
"name": "host8",
"id": 6,
"puppet_proxy_id": null,
"puppet_proxy_name": null,
"puppet_ca_proxy_id": null,
"puppet_ca_proxy_name": null,
"puppet_proxy": null,
"puppet_ca_proxy": null,
"registration_token": "eyJhbGciOiJIUzI1NiJ9.eyJob3N0X2lkIjo2LCJpYXQiOjE2MDQ1MDIzNjIsImp0aSI6IjQwZDAxZTIwZWIzYmExZjQ1OWMyNzk1NzgyNDE3NDQwYWFmNDAxOWFmN2M5YzQyOTM3YzI3YWIzMzg5M2E0MmYiLCJleHAiOjE2MDQ1ODg3NjIsIm5iZiI6MTYwNDQ5ODc2Mn0.9ElHPfztFNfzWqZndfSM-XFEAG5Nc8ZSECfIBtcqJlg",
"hostgroup_name": null,
"hostgroup_title": null
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
PUT /api/compute_resources/305613588-Vmware/refresh_cache
{
"compute_resource": {}
}
200
{
"message": "Successfully refreshed the cache."
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
GET /api/compute_resources/510899777-Ovirt/available_virtual_machines
200
[
{
"name": "test-vm1",
"id": "5ee86332-7b19-465b-8801-2a12ed0d6c1b"
},
{
"name": "fosdem",
"id": "349764bb-eba3-4466-abef-f18f4c40c9f1"
},
{
"name": "vm01",
"id": "52b9406e-cf66-4867-8655-719a094e324c"
}
]
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
|
vm_id required |
Validations:
|
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
|
vm_id required |
Validations:
|
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
|
vm_id required |
Validations:
|