From 93e3784a6ed64fd6af83279f51ccbfb455964097 Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Fri, 15 Apr 2016 12:07:02 -0700 Subject: [PATCH] Fix "Creates an agent build" parameters "Creates an agent build" API supports multiple parameters on a request, but api-ref doesn.t contain them at all This patch adds them. The following JSON-Schema is for the API. https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/schemas/agents.py#L21 Part of bp:api-ref-in-rst Change-Id: I4b026f691711b11c1918785dff89bf5196c7177d --- api-ref/source/os-agents.inc | 6 ++++++ api-ref/source/parameters.yaml | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/api-ref/source/os-agents.inc b/api-ref/source/os-agents.inc index f26e55e72a11..341dd0346bff 100644 --- a/api-ref/source/os-agents.inc +++ b/api-ref/source/os-agents.inc @@ -29,6 +29,12 @@ Request .. rest_parameters:: parameters.yaml - tenant_id: tenant_id + - hypervisor: OS-EXT-SRV-ATTR:hypervisor_hostname + - architecture: architecture + - os: os + - url: url + - md5hash: md5hash + - version: version **Example Create Agent Build: JSON request** diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index 4eb75a67e0ae..960f144ba21e 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -46,6 +46,12 @@ api_version: type: string description: > The API version as returned in the links from the ``GET /`` call. +architecture: + description: | + The name of the cpu architecture. + in: body + required: true + type: string attachment_id: description: | The UUID of the attachment. @@ -1427,6 +1433,12 @@ next: in: body required: false type: string +os: + description: | + The name of the operating system. + in: body + required: true + type: string os-availability-zone:availability_zone: description: | The availability zone from which to launch the server. When you provision resources,