From 990f4849627afb8353b26bcea08830cf5be88cb8 Mon Sep 17 00:00:00 2001 From: liyi Date: Thu, 9 Mar 2017 13:24:23 +0800 Subject: [PATCH] Modify stack_name regular expression in Orchestration API The stack_name in request must match some regular expression, but the code implementation and document description is inconsistent. Change-Id: I02c09d2624253d9ce19735dbe745ff4d3321332d Closes-Bug: #1671126 --- api-ref/source/v1/parameters.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api-ref/source/v1/parameters.yaml b/api-ref/source/v1/parameters.yaml index a07c9cb78d..f2eea1b2b3 100644 --- a/api-ref/source/v1/parameters.yaml +++ b/api-ref/source/v1/parameters.yaml @@ -1342,7 +1342,7 @@ stack_name: A name for the stack. The value must be unique within a project. The name must start with an ASCII letter and can contain ASCII letters, digits, underscores, periods, and hyphens. Specifically, the name must - match the ``^[a-zA-Z][a-zA-Z0-9_.-]*$`` regular expression. + match the ``^[a-zA-Z][a-zA-Z0-9_.-]{0,254}$`` regular expression. When you delete or abandon a stack, its name will not become available for reuse until the deletion completes successfully. @@ -1354,7 +1354,7 @@ stack_name_request: A name for the stack. The value must be unique within a project. The name must start with an ASCII letter and can contain ASCII letters, digits, underscores, periods, and hyphens. Specifically, the name must - match the ``^[a-zA-Z][a-zA-Z0-9_.-]*$`` regular expression. + match the ``^[a-zA-Z][a-zA-Z0-9_.-]{0,254}$`` regular expression. When you delete or abandon a stack, its name will not become available for reuse until the deletion completes successfully.