From b3e1afd087ebe8aad60754f895571df63b8da5aa Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Fri, 15 Apr 2016 12:26:01 -0700 Subject: [PATCH] Fix "Creates an aggregate" parameters "Creates an aggregate" 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/aggregates.py#L32 Part of bp:api-ref-in-rst Change-Id: I3a58568662d21059bccdcf64cc30dbf3b706db58 --- api-ref/source/os-aggregates.inc | 2 ++ api-ref/source/parameters.yaml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/api-ref/source/os-aggregates.inc b/api-ref/source/os-aggregates.inc index 05aadeb437..6e85449818 100644 --- a/api-ref/source/os-aggregates.inc +++ b/api-ref/source/os-aggregates.inc @@ -26,6 +26,8 @@ Request .. rest_parameters:: parameters.yaml - tenant_id: tenant_id + - name: aggregate_name + - availability_zone: availability_zone **Example Create Aggregate: JSON request** diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index 4eb75a67e0..2be49eb981 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -34,6 +34,12 @@ aggregate_id: in: path required: true type: string +aggregate_name: + description: | + The name of the aggregate. + in: body + required: true + type: string alias_1: description: | An alias for the extension name. For example, ``os-server-external-events``.