GET /api/compute_resources
Afficher toutes les ressources de calcul

Exemples

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": "2019-09-11 14:37:23 UTC",
      "updated_at": "2019-09-11 14:37:23 UTC",
      "id": 367690737,
      "name": "mycompute",
      "provider": "Libvirt",
      "provider_friendly_name": "Libvirt",
      "display_type": "vnc",
      "set_console_password": true
    }
  ]
}

Paramètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

search
optionel

filtrer les résultats

Validations:

  • Must be a String

order
optionel

Champ et sens de tri, ex: ‘id DESC’

Validations:

  • Must be a String

page
optionel

Numéro de la page, commençant par 1

Validations:

  • Must be a number.

per_page
optionel

Nombre de résultats par page à renvoyer

Validations:

  • Must be a number.

Rechercher les champs

Nom du champ Type Valeurs possibles
id integer
location string
location_id integer
name string
organization string
organization_id integer
type string

GET /api/compute_resources/:id
Afficher une ressource de calcul

Exemples

GET /api/compute_resources/980190962-bigcompute
200
{
  "description": "MyString",
  "url": "qemu://stam/system",
  "created_at": "2019-09-11 14:37:23 UTC",
  "updated_at": "2019-09-11 14:37:23 UTC",
  "id": 980190962,
  "name": "bigcompute",
  "provider": "Libvirt",
  "provider_friendly_name": "Libvirt",
  "display_type": "vnc",
  "set_console_password": true,
  "images": [
    {
      "id": 980190962,
      "name": "centos-1"
    },
    {
      "id": 298486374,
      "name": "centos-2"
    }
  ],
  "compute_attributes": [
    {
      "id": 298486374,
      "name": null,
      "compute_resource_id": 980190962,
      "compute_resource_name": "bigcompute",
      "provider_friendly_name": "Libvirt",
      "compute_profile_id": 980190962,
      "compute_profile_name": "1-Small",
      "vm_attrs": {
        "cpus": 2,
        "memory": 536870912
      },
      "attributes": {
        "cpus": 2,
        "memory": 536870912,
        "image_id": null,
        "image_name": null,
        "volumes_attributes": {},
        "interfaces_attributes": {}
      }
    },
    {
      "id": 281110143,
      "name": null,
      "compute_resource_id": 980190962,
      "compute_resource_name": "bigcompute",
      "provider_friendly_name": "Libvirt",
      "compute_profile_id": 298486374,
      "compute_profile_name": "2-Medium",
      "vm_attrs": {
        "cpus": 4,
        "memory": 4294967296
      },
      "attributes": {
        "cpus": 4,
        "memory": 4294967296,
        "image_id": null,
        "image_name": null,
        "volumes_attributes": {},
        "interfaces_attributes": {}
      }
    },
    {
      "id": 394428105,
      "name": null,
      "compute_resource_id": 980190962,
      "compute_resource_name": "bigcompute",
      "provider_friendly_name": "Libvirt",
      "compute_profile_id": 281110143,
      "compute_profile_name": "4-Networking",
      "vm_attrs": {
        "nics_attributes": {
          "1": {
            "attr": 1
          },
          "2": {
            "attr": 2
          }
        }
      },
      "attributes": {
        "cpus": null,
        "memory": null,
        "image_id": null,
        "image_name": null,
        "volumes_attributes": {},
        "interfaces_attributes": {
          "1": {
            "type": null,
            "model": null,
            "bridge": null
          },
          "2": {
            "type": null,
            "model": null,
            "bridge": null
          }
        }
      }
    }
  ],
  "locations": [
    {
      "id": 255093256,
      "name": "Location 1",
      "title": "Location 1",
      "description": null
    }
  ],
  "organizations": [
    {
      "id": 447626438,
      "name": "Organization 1",
      "title": "Organization 1",
      "description": null
    }
  ]
}

Paramètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/compute_resources
Créer une ressource de calcul

Exemples

POST /api/compute_resources
{
  "compute_resource": {
    "name": "Ovirt-create-test",
    "url": "https://myovirt/api",
    "provider": "ovirt",
    "datacenter": "8c30ea90-9bc8-4a90-867b-1a8ccdef44e8",
    "user": "user@example.com",
    "password": "secret"
  }
}
201
{
  "description": null,
  "url": "https://myovirt/api",
  "created_at": "2019-09-11 14:37:28 UTC",
  "updated_at": "2019-09-11 14:37:28 UTC",
  "id": 980190963,
  "name": "Ovirt-create-test",
  "provider": "Ovirt",
  "provider_friendly_name": "oVirt",
  "user": "user@example.com",
  "datacenter": "8c30ea90-9bc8-4a90-867b-1a8ccdef44e8",
  "use_v4": false,
  "ovirt_quota": null,
  "display_type": "vnc",
  "keyboard_layout": "en-us",
  "images": [],
  "compute_attributes": [],
  "locations": [],
  "organizations": []
}

Paramètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

compute_resource
requis

Validations:

  • Must be a Hash

compute_resource[name]
requis

Validations:

  • Must be a String

compute_resource[provider]
optionel , nil autorisé

Fournisseurs inclut Libvirt, Ovirt, EC2, Vmware, Openstack, Rackspace, GCE

Validations:

  • Must be a String

compute_resource[url]
optionel , nil autorisé

URL pour Libvirt, oVirt, OpenStack et Rackspace

Validations:

  • Must be a String

compute_resource[description]
optionel , nil autorisé

Validations:

  • Must be a String

compute_resource[user]
optionel , nil autorisé

Nom d’utilisateur pour oVirt, EC2, VMware, OpenStack. Clé d’accès pour EC2.

Validations:

  • Must be a String

compute_resource[password]
optionel , nil autorisé

Mot de passe pour oVirt, EC2, VMware, OpenStack. Clé secrète pour EC2.

Validations:

  • Must be a String

compute_resource[uuid]
optionel , nil autorisé

Déprécié. Veuillez utiliser le centre de données

Validations:

  • Must be a String

compute_resource[datacenter]
optionel , nil autorisé

pour oVirt, VMware Datacenter

Validations:

  • Must be a String

compute_resource[use_v4]
optionel , nil autorisé

pour oVirt seulement

Validations:

  • Must be one of: true, false, 1, 0.

compute_resource[ovirt_quota]
optionel , nil autorisé

pour oVirt seulement, ID du quota à utiliser

Validations:

  • Must be a String

compute_resource[public_key]
optionel , nil autorisé

pour oVirt seulement

Validations:

  • Must be a String

compute_resource[region]
optionel , nil autorisé

for EC2 only, use ‘us-gov-west-1’ for GovCloud region

Validations:

  • Must be a String

compute_resource[tenant]
optionel , nil autorisé

seulement pour OpenStack

Validations:

  • Must be a String

compute_resource[domain]
optionel , nil autorisé

seulement pour OpenStack (v3)

Validations:

  • Must be a String

compute_resource[project_domain_name]
optionel , nil autorisé

seulement pour OpenStack (v3)

Validations:

  • Must be a String

compute_resource[project_domain_id]
optionel , nil autorisé

seulement pour OpenStack (v3)

Validations:

  • Must be a String

compute_resource[server]
optionel , nil autorisé

pour VMware

Validations:

  • Must be a String

compute_resource[set_console_password]
optionel , nil autorisé

seulement pour Libvirt et VMware

Validations:

  • Must be one of: true, false, 1, 0.

compute_resource[display_type]
optionel , nil autorisé

seulement pour Libvirt et oVirt

Validations:

  • Must be one of: VNC, SPICE.

compute_resource[keyboard]
optionel , nil autorisé

pour oVirt seulement

Validations:

  • Must be one of: ar, de-ch, es, fo, fr-ca, hu, ja, mk, no, pt-br, sv, da, en-gb, et, fr, fr-ch, is, lt, nl, pl, ru, th, de, en-us, fi, fr-be, hr, it, lv, nl-be, pt, sl, tr.

compute_resource[caching_enabled]
optionel , nil autorisé

activer la mise en cache, pour VMware uniquement

Validations:

  • Must be one of: true, false, 1, 0.

compute_resource[project]
optionel , nil autorisé

Project id for GCE only

Validations:

  • Must be a String

compute_resource[email]
optionel , nil autorisé

Email for GCE only

Validations:

  • Must be a String

compute_resource[key_path]
optionel , nil autorisé

Certificate path for GCE only

Validations:

  • Must be a String

compute_resource[zone]
optionel , nil autorisé

for GCE only

Validations:

  • Must be a String

compute_resource[location_ids]
optionel , nil autorisé

REMPLACER les emplacements par les id donnés

Validations:

  • Must be an array of any type

compute_resource[organization_ids]
optionel , nil autorisé

REMPLACER les organisations qui ont les ID suivants

Validations:

  • Must be an array of any type


PUT /api/compute_resources/:id
Mise à jour d'une ressource de calcul

Exemples

PUT /api/compute_resources/367690737
{
  "compute_resource": {
    "organization_ids": [
      114267492,
      447626438,
      61304186
    ]
  }
}
200
{
  "description": "mycompute",
  "url": "test:///default",
  "created_at": "2019-09-11 14:37:23 UTC",
  "updated_at": "2019-09-11 14:37:23 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
    },
    {
      "id": 114267492,
      "name": "Empty Organization",
      "title": "Empty Organization",
      "description": null
    },
    {
      "id": 61304186,
      "name": "Organization 2",
      "title": "Organization 2",
      "description": null
    }
  ]
}

Paramètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be a String

compute_resource
requis

Validations:

  • Must be a Hash

compute_resource[name]
optionel

Validations:

  • Must be a String

compute_resource[provider]
optionel , nil autorisé

Fournisseurs inclut Libvirt, Ovirt, EC2, Vmware, Openstack, Rackspace, GCE

Validations:

  • Must be a String

compute_resource[url]
optionel , nil autorisé

URL pour Libvirt, oVirt, OpenStack et Rackspace

Validations:

  • Must be a String

compute_resource[description]
optionel , nil autorisé

Validations:

  • Must be a String

compute_resource[user]
optionel , nil autorisé

Nom d’utilisateur pour oVirt, EC2, VMware, OpenStack. Clé d’accès pour EC2.

Validations:

  • Must be a String

compute_resource[password]
optionel , nil autorisé

Mot de passe pour oVirt, EC2, VMware, OpenStack. Clé secrète pour EC2.

Validations:

  • Must be a String

compute_resource[uuid]
optionel , nil autorisé

Déprécié. Veuillez utiliser le centre de données

Validations:

  • Must be a String

compute_resource[datacenter]
optionel , nil autorisé

pour oVirt, VMware Datacenter

Validations:

  • Must be a String

compute_resource[use_v4]
optionel , nil autorisé

pour oVirt seulement

Validations:

  • Must be one of: true, false, 1, 0.

compute_resource[ovirt_quota]
optionel , nil autorisé

pour oVirt seulement, ID du quota à utiliser

Validations:

  • Must be a String

compute_resource[public_key]
optionel , nil autorisé

pour oVirt seulement

Validations:

  • Must be a String

compute_resource[region]
optionel , nil autorisé

for EC2 only, use ‘us-gov-west-1’ for GovCloud region

Validations:

  • Must be a String

compute_resource[tenant]
optionel , nil autorisé

seulement pour OpenStack

Validations:

  • Must be a String

compute_resource[domain]
optionel , nil autorisé

seulement pour OpenStack (v3)

Validations:

  • Must be a String

compute_resource[project_domain_name]
optionel , nil autorisé

seulement pour OpenStack (v3)

Validations:

  • Must be a String

compute_resource[project_domain_id]
optionel , nil autorisé

seulement pour OpenStack (v3)

Validations:

  • Must be a String

compute_resource[server]
optionel , nil autorisé

pour VMware

Validations:

  • Must be a String

compute_resource[set_console_password]
optionel , nil autorisé

seulement pour Libvirt et VMware

Validations:

  • Must be one of: true, false, 1, 0.

compute_resource[display_type]
optionel , nil autorisé

seulement pour Libvirt et oVirt

Validations:

  • Must be one of: VNC, SPICE.

compute_resource[keyboard]
optionel , nil autorisé

pour oVirt seulement

Validations:

  • Must be one of: ar, de-ch, es, fo, fr-ca, hu, ja, mk, no, pt-br, sv, da, en-gb, et, fr, fr-ch, is, lt, nl, pl, ru, th, de, en-us, fi, fr-be, hr, it, lv, nl-be, pt, sl, tr.

compute_resource[caching_enabled]
optionel , nil autorisé

activer la mise en cache, pour VMware uniquement

Validations:

  • Must be one of: true, false, 1, 0.

compute_resource[project]
optionel , nil autorisé

Project id for GCE only

Validations:

  • Must be a String

compute_resource[email]
optionel , nil autorisé

Email for GCE only

Validations:

  • Must be a String

compute_resource[key_path]
optionel , nil autorisé

Certificate path for GCE only

Validations:

  • Must be a String

compute_resource[zone]
optionel , nil autorisé

for GCE only

Validations:

  • Must be a String

compute_resource[location_ids]
optionel , nil autorisé

REMPLACER les emplacements par les id donnés

Validations:

  • Must be an array of any type

compute_resource[organization_ids]
optionel , nil autorisé

REMPLACER les organisations qui ont les ID suivants

Validations:

  • Must be an array of any type


DELETE /api/compute_resources/:id
Supprimer une ressource de calcul

Exemples

DELETE /api/compute_resources/932571420
{
  "compute_resource": {}
}
404
{
  "error": {
    "message": "Resource compute_resource not found by id '932571420'"
  }
}

Paramètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


GET /api/compute_resources/:id/available_images
Afficher les images disponibles pour une ressource de calcul

Exemples

GET /api/compute_resources/928692541-amazon123/available_images
200
[
  {
    "name": "some_image",
    "uuid": "123"
  }
]

Paramètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


GET /api/compute_resources/:id/available_clusters
Afficher les clusters disponibles pour une ressource de calcul

Exemples

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ètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


GET /api/compute_resources/:id/available_flavors
Afficher les gabarits disponibles pour une ressource de calcul

Exemples

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ètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


GET /api/compute_resources/:id/available_folders
Afficher les répertoires disponibles pour une ressource de calcul

Exemples

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ètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


GET /api/compute_resources/:id/available_zones
Afficher les zones disponibles pour une ressource de calcul

Exemples

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ètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


GET /api/compute_resources/:id/available_networks
Afficher les réseaux disponibles pour une ressource de calcul

GET /api/compute_resources/:id/available_clusters/:cluster_id/available_networks
Afficher les réseaux disponibles pour un cluster de ressources de calcul

Exemples

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ètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

cluster_id
optionel

Validations:

  • Must be a String


GET /api/compute_resources/:id/available_clusters/:cluster_id/available_resource_pools
Afficher les pools de ressources d'un cluster de ressources de calcul

Exemples

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ètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

cluster_id
requis

Validations:

  • Must be a String


GET /api/compute_resources/:id/storage_domains/:storage_domain_id
Afficher les attributs d'un domaine de stockage

Exemples

GET /api/compute_resources/305613588-Vmware/storage_domains/test_vmware_datastore
200
{
  "name": "test_vmware_datastore",
  "id": "my11-test35-uuid99"
}

Paramètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

storage_domain_id
requis

Validations:

  • Must be a String


GET /api/compute_resources/:id/available_storage_domains
Afficher les domaines de stockage pour une ressource de calcul

GET /api/compute_resources/:id/available_storage_domains/:storage_domain
Afficher les attributs d'un domaine de stockage

GET /api/compute_resources/:id/available_clusters/:cluster_id/available_storage_domains
Afficher les domaines de stockage pour une ressource de calcul

Exemples

GET /api/compute_resources/510899777-Ovirt/available_storage_domains
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ètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

cluster_id
optionel

Validations:

  • Must be a String

storage_domain
optionel

Validations:

  • Must be a String


GET /api/compute_resources/:id/storage_pods/:storage_pod_id
Afficher les attributs d'un groupe de stockage

Exemples

GET /api/compute_resources/305613588-Vmware/storage_pods/test_vmware_pod
200
{
  "name": "test_vmware_pod",
  "id": "group-p123456"
}

Paramètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

storage_pod_id
requis

Validations:

  • Must be a String


GET /api/compute_resources/:id/available_storage_pods
Afficher les groupes de stockage pour une ressource de calcul

GET /api/compute_resources/:id/available_storage_pods/:storage_pod
Afficher les attributs d'un groupe de stockage

GET /api/compute_resources/:id/available_clusters/:cluster_id/available_storage_pods
Afficher les groupes de stockage pour une ressource de calcul

Exemples

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ètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

cluster_id
optionel

Validations:

  • Must be a String

storage_pod
optionel

Validations:

  • Must be a String


GET /api/compute_resources/:id/available_security_groups
Afficher les groupes de sécurité disponibles pour une ressource de calcul

Exemples

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ètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


PUT /api/compute_resources/:id/associate
Associer les VM à des hôtes

Exemples

PUT /api/compute_resources/980190964-compute_resource135/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": "f80a874d-ccac-419f-b8b9-59c0ad7d9e19",
      "compute_resource_id": 980190964,
      "compute_resource_name": "compute_resource135",
      "compute_profile_id": null,
      "compute_profile_name": null,
      "capabilities": [
        "image",
        "key_pair"
      ],
      "provision_method": "image",
      "certname": "host548",
      "image_id": null,
      "image_name": null,
      "created_at": "2019-09-11 14:37:28 UTC",
      "updated_at": "2019-09-11 14:37:28 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": "host548",
      "id": 54,
      "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,
      "hostgroup_name": null,
      "hostgroup_title": null
    }
  ]
}

Paramètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


PUT /api/compute_resources/:id/refresh_cache
Actualiser le cache de la ressource de calcul

Exemples

PUT /api/compute_resources/305613588-Vmware/refresh_cache
{
  "compute_resource": {}
}
200
{
  "message": "Successfully refreshed the cache."
}

Paramètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.