VMware Cloud Community
spride
Enthusiast
Enthusiast

CloudClient: Passing array values

I created a service blueprint and am having difficulty executing it via CloudClient.  One of the properties is an Array of type string, but whatever I type on the command line comes up as no value in Orchestrator.  For example, I'm using "vra catalog request submit" to execute the service blueprint from CloudClient.  The "--properties" parameter is used to pass properties to the catalog item.  One of the properties in my service blueprint is an Array of type string, but I can't seem to get the syntax right as Orchestrator is seeing the value as "Not Set":

> vra catalog request item --id "blah blah" --groupid "blah blah" --resaon "blah blah" --properties "region=blue,items=aaa"

The "items=aaa" name/value pair is the Array/string that the blueprint expects.  I've tried "items=aaa" and "items=[aaa]" and a couple other things, but nothing seems to work.

0 Kudos
1 Reply
spride
Enthusiast
Enthusiast

BTW, the REST API is equally as frustrating.  The Programming Guide mentions using an XML schema embedded in the "value", so I tried using this:

{

    "key": "provider-items",

    "value": {

        "type": "string",

        "value": "<ArrayOfString xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://schemas.microsoft.com/2003/10/Serialization/Arrays\">\r\n<string>aaa<\/string>\r\n<\/ArrayOfString>"

    }

}

But of course that didn't work, either.

0 Kudos