On Thu, 2011-06-02 at 21:54 +1000, Justin Clift wrote:
> On 02/06/2011, at 6:27 PM, David Lutterkort wrote:
> <snip>
> > In practical terms, we already have a feature 'user_name' for instances
> > that indicates that the clouds supports user-supplied names. We could
> > just enhance the XML to include the maximum size, e.g.
> > 
> >        <api driver="..." version="...">
> >                <link href="http://localhost:3001/api/instances"; 
> > rel="instances">
> >                    <feature name="user_name">
> >                        <param name="name">
> >                                  <constraint name="max_length"
> >                                value="20"/>
> >                                  <constraint name="pattern"
> >                                value="[a-zA-Z0-9]+"/>
> >                                </param>
> >                    </feature>
> >                </link>
> >        </api>
> > 
> > (The pattern stuff as an example of something we don't need right now,
> > but might want to add at some point)
> 
> For the "pattern" example, is the general idea to communicate
> the characters allowed in the name?

Yes, that's what I meant by that - and really, I only included that to
(a) confuse everybody and (b) sound out what the constraint biz would
look like with multiple constraints.

David


Reply via email to