Beispiele

GET /api/compute_attributes
200
{
  "total": 5,
  "subtotal": 5,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "created_at": "2019-11-07 08:49:23 UTC",
      "updated_at": "2019-11-07 08:49:23 UTC",
      "id": 980190962,
      "name": null,
      "compute_resource_id": 928692541,
      "compute_resource_name": "amazon123",
      "provider_friendly_name": "EC2",
      "compute_profile_id": 980190962,
      "compute_profile_name": "1-Small",
      "vm_attrs": {
        "flavor_id": "m1.small",
        "availability_zone": "eu-west-1a"
      },
      "attributes": {
        "flavor_id": "m1.small",
        "availability_zone": "eu-west-1a",
        "subnet_id": null,
        "image_id": null,
        "managed_ip": null,
        "flavor_name": "Small Instance",
        "subnet_name": null,
        "image_name": null,
        "security_groups": {}
      }
    },
    {
      "created_at": "2019-11-07 08:49:23 UTC",
      "updated_at": "2019-11-07 08:49:23 UTC",
      "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": {}
      }
    },
    {
      "created_at": "2019-11-07 08:49:23 UTC",
      "updated_at": "2019-11-07 08:49:23 UTC",
      "id": 113629430,
      "name": null,
      "compute_resource_id": 928692541,
      "compute_resource_name": "amazon123",
      "provider_friendly_name": "EC2",
      "compute_profile_id": 298486374,
      "compute_profile_name": "2-Medium",
      "vm_attrs": {
        "flavor_id": "m1.medium",
        "availability_zone": "eu-west-1a"
      },
      "attributes": {
        "flavor_id": "m1.medium",
        "availability_zone": "eu-west-1a",
        "subnet_id": null,
        "image_id": null,
        "managed_ip": null,
        "flavor_name": "Medium Instance",
        "subnet_name": null,
        "image_name": null,
        "security_groups": {}
      }
    },
    {
      "created_at": "2019-11-07 08:49:23 UTC",
      "updated_at": "2019-11-07 08:49:23 UTC",
      "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": {}
      }
    },
    {
      "created_at": "2019-11-07 08:49:23 UTC",
      "updated_at": "2019-11-07 08:49:23 UTC",
      "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
          }
        }
      }
    }
  ]
}

Parameter

Parametername Beschreibung
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

compute_profile_id
optional

Kennung des Rechenprofiles

Validations:

  • Must be a String

compute_resource_id
optional

Kennung der compute_resource

Validations:

  • Must be a String

search
optional

Ergebnisse filtern

Validations:

  • Must be a String

order
optional

Feld und Reihenfolge sortieren, z.B. ‘id DESC’

Validations:

  • Must be a String

page
optional

Seitennummer, beginnend bei 1

Validations:

  • Must be a number.

per_page
optional

Anzahl der angezeigten Ergebnisse pro Seite

Validations:

  • Must be a number.

Suchfelder

Feld Name Typ Mögliche Werte
compute_profile string
compute_resource string
name string