summaryrefslogtreecommitdiff
path: root/api-ref
diff options
context:
space:
mode:
authorKevin_Zheng <zhengzhenyu@huawei.com>2017-06-01 11:06:08 +0800
committerMatt Riedemann <mriedem.os@gmail.com>2017-07-17 15:59:42 -0400
commitb50b5a660efd5401490e9dbda853d7363d0568e3 (patch)
tree2ca5f21300e32f2c431ba2acaba77b8f0d301bdd /api-ref
parent771dd5b1217f8fb8109c782fb7f3a7658e0a4ad4 (diff)
downloadnova-b50b5a660efd5401490e9dbda853d7363d0568e3.tar.gz
Support tag instances when boot(4/4)
This is the 4th patch of the series, this patch adds a new microversion in API to support adding tags when booting instances. Implemetes: blueprint support-tag-instance-when-boot Change-Id: Ifcaaf285c8f98a1d0e8bbbc87b2f57fbce057346
Diffstat (limited to 'api-ref')
-rw-r--r--api-ref/source/parameters.yaml22
-rw-r--r--api-ref/source/servers.inc1
2 files changed, 23 insertions, 0 deletions
diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml
index 11c26e91cb..4d3ec59ddb 100644
--- a/api-ref/source/parameters.yaml
+++ b/api-ref/source/parameters.yaml
@@ -4963,6 +4963,28 @@ server_status:
in: body
required: true
type: string
+server_tags_create:
+ description: |
+ A list of tags. Tags have the following restrictions:
+
+ - Tag is a Unicode bytestring no longer than 60 characters.
+
+ - Tag is a non-empty string.
+
+ - Tags are case sensitive.
+
+ - '/' is not allowed to be in a tag name
+
+ - Comma is not allowed to be in a tag name in order to simplify
+ requests that specify lists of tags
+
+ - All other characters are allowed to be in a tag name
+
+ - Each server can have up to 50 tags.
+ in: body
+ required: false
+ type: array
+ min_version: 2.52
server_usages:
description: |
A list of the server usage objects.
diff --git a/api-ref/source/servers.inc b/api-ref/source/servers.inc
index 2279dfed7a..3247d6f8ce 100644
--- a/api-ref/source/servers.inc
+++ b/api-ref/source/servers.inc
@@ -333,6 +333,7 @@ Request
- os:scheduler_hints: os:scheduler_hints
- OS-DCF:diskConfig: OS-DCF:diskConfig
- description: server_description
+ - tags: server_tags_create
**Example Create Server**