GET /api/architectures
Liste der Architekturen

GET /api/operatingsystems/:operatingsystem_id/architectures
Alle Architekturen für das Betriebssystem auflisten

Beispiele

GET /api/architectures
200
{
  "total": 4,
  "subtotal": 4,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "created_at": "2019-09-11 14:40:18 UTC",
      "updated_at": "2019-09-11 14:40:18 UTC",
      "name": "x86_64",
      "id": 501905019
    },
    {
      "created_at": "2019-09-11 14:40:18 UTC",
      "updated_at": "2019-09-11 14:40:18 UTC",
      "name": "sparc",
      "id": 331892513
    },
    {
      "created_at": "2019-09-11 14:40:18 UTC",
      "updated_at": "2019-09-11 14:40:18 UTC",
      "name": "s390",
      "id": 381564594
    },
    {
      "created_at": "2019-09-11 14:40:18 UTC",
      "updated_at": "2019-09-11 14:40:18 UTC",
      "name": "ASIC",
      "id": 578327757
    }
  ]
}

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

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.

operatingsystem_id
optional

Kennung des Betriebssystems

Validations:

  • Must be a String

Suchfelder

Feld Name Typ Mögliche Werte
name string

GET /api/architectures/:id
Architektur anzeigen

Beispiele

GET /api/architectures/501905019-x86_64
200
{
  "created_at": "2019-09-11 14:40:18 UTC",
  "updated_at": "2019-09-11 14:40:18 UTC",
  "name": "x86_64",
  "id": 501905019,
  "operatingsystems": [
    {
      "id": 309172073,
      "name": "centos",
      "title": "centos 5.3"
    },
    {
      "id": 750842046,
      "name": "OpenSuse",
      "title": "OpenSuSE 12.3"
    },
    {
      "id": 1073012828,
      "name": "Redhat",
      "title": "RHEL 6.1"
    },
    {
      "id": 331303656,
      "name": "Ubuntu",
      "title": "Ubuntu 10.10"
    },
    {
      "id": 272342666,
      "name": "Ubuntu",
      "title": "Ubuntu 12.10"
    }
  ],
  "images": [
    {
      "id": 980190962,
      "name": "centos-1"
    },
    {
      "id": 298486374,
      "name": "centos-2"
    }
  ]
}

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

id
verpflichtend

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/architectures
Architektur erstellen

Beispiele

POST /api/architectures
{
  "architecture": {
    "name": "i386"
  }
}
201
{
  "created_at": "2019-09-11 14:40:35 UTC",
  "updated_at": "2019-09-11 14:40:35 UTC",
  "name": "i386",
  "id": 578327784,
  "operatingsystems": [],
  "images": []
}

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

architecture
verpflichtend

Validations:

  • Must be a Hash

architecture[name]
verpflichtend

Validations:

  • Must be a String

architecture[operatingsystem_ids]
optional , nil erlaubt

Betriebssystemkennungen

Validations:

  • Must be an array of any type


PUT /api/architectures/:id
Architektur aktualisieren

Beispiele

PUT /api/architectures/501905019-x86_64
{
  "architecture": {
    "name": "newx86_64"
  }
}
403
{
  "error": {
    "message": "Access denied",
    "details": "Missing one of the required permissions: edit_architectures"
  }
}

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

id
verpflichtend

Validations:

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

architecture
verpflichtend

Validations:

  • Must be a Hash

architecture[name]
optional

Validations:

  • Must be a String

architecture[operatingsystem_ids]
optional , nil erlaubt

Betriebssystemkennungen

Validations:

  • Must be an array of any type


DELETE /api/architectures/:id
Architektur löschen

Beispiele

DELETE /api/architectures/381564594-s390
{
  "architecture": {}
}
200
{
  "id": 381564594,
  "name": "s390",
  "created_at": "2019-09-11T14:40:18.769Z",
  "updated_at": "2019-09-11T14:40:18.769Z"
}

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

id
verpflichtend

Validations:

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