<div dir="ltr">Hi All,<div><br clear="all"><div><div style="font-size:12.8000001907349px">Could any one help me out with the execution of the command for creating the container .</div><div style="font-size:12.8000001907349px">Please find the command and the response below :</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><div>root@barbican:~# curl -X POST -H 'content-type:application/json' -H 'X-Project-Id: 12345' -d { "name": "container1" ,"type": "rsa","secret_refs": [ { "name": "private_key", "secret_ref":"<a href="http://localhost:9311/v1/secrets/b9e474a4-aed9-4d5b-98a7-5f2127aad81f" target="_blank">http://localhost:9311/v1/secrets/b9e474a4-aed9-4d5b-98a7-5f2127aad81f</a>" }, { "name": "public_key", "secret_ref":"<a href="http://localhost:9311/v1/secrets/c49e4b6a-7ec1-4a81-9ee5-58647102e5b6" target="_blank">http://localhost:9311/v1/secrets/c49e4b6a-7ec1-4a81-9ee5-58647102e5b6</a>" } , { "name": "private_key_passphrase", "secret_ref":"<a href="http://localhost:9311/v1/secrets/3cd2fdc8-e30d-4f33-a1d8-81aa0bc2c47e" target="_blank">http://localhost:9311/v1/secrets/3cd2fdc8-e30d-4f33-a1d8-81aa0bc2c47e</a>" } ] } <a href="http://localhost:9311/v1/containers" target="_blank">http://localhost:9311/v1/containers</a></div><div>curl: (6) Could not resolve host: name</div><div>curl: (6) Could not resolve host: container1</div><div>curl: (6) Could not resolve host: ,type</div><div>curl: (6) Could not resolve host: rsa,secret_refs</div><div>curl: (3) [globbing] bad range specification in column 2</div><div>curl: (3) [globbing] unmatched brace in column 1</div><div>curl: (6) Could not resolve host: name</div><div>curl: (6) Could not resolve host: private_key,</div><div>curl: (6) Could not resolve host: secret_ref:http</div><div>curl: (3) [globbing] unmatched close brace/bracket in column 1</div><div>curl: (3) [globbing] unmatched brace in column 1</div><div>curl: (6) Could not resolve host: name</div><div>curl: (6) Could not resolve host: public_key,</div><div>curl: (6) Could not resolve host: secret_ref:http</div><div>curl: (3) [globbing] unmatched close brace/bracket in column 1</div><div>curl: (6) Could not resolve host: ,</div><div>curl: (3) [globbing] unmatched brace in column 1</div><div>curl: (6) Could not resolve host: name</div><div>curl: (6) Could not resolve host: private_key_passphrase,</div><div>curl: (6) Could not resolve host: secret_ref:http</div><div>curl: (3) [globbing] unmatched close brace/bracket in column 1</div><div>curl: (3) [globbing] unmatched close brace/bracket in column 1</div><div>curl: (3) [globbing] unmatched close brace/bracket in column 1</div><div>{"code": 400, "description": "Malformed JSON", "title": "Bad Request"}root@barbican:~#</div><div><br></div><div>Also I got the secret references by using the following command and selected the highlighted secret from the list  :</div><div><br></div><div>url -H 'Accept: application/json' -H 'X-Project-Id:12345' <a href="http://localhost:9311/v1/secrets" target="_blank">http://localhost:9311/v1/secrets</a>                                                            {"secrets": [{"status": "ACTIVE", "secret_type": "opaque", "updated": "2015-03-10T21:23:52.843606", "name": null, "algorithm": null, "created": "2015-03-10T21:23:52.838400", "secret_ref": "<a href="http://localhost:9311/v1/secrets/de9502e5-42b2-4b17-8d8b-932dbc40604e" target="_blank">http://localhost:9311/v1/secrets/de9502e5-42b2-4b17-8d8b-932dbc40604e</a>", "content_types": {"default": "text/plain"}, "expiration": null, "bit_length": null, "mode": null}, {"status": "ACTIVE", "secret_type": "opaque", "updated": "2015-03-10T21:40:10.476840", "name": null, "algorithm": null, "created": "2015-03-10T21:40:10.473810", "secret_ref": "<a href="http://localhost:9311/v1/secrets/a7af62f1-b763-4643-813f-e268326967e3" target="_blank">http://localhost:9311/v1/secrets/a7af62f1-b763-4643-813f-e268326967e3</a>", "content_types": {"default": "text/plain"}, "expiration": null, "bit_length": null, "mode": null}, {"status": "ACTIVE", "secret_type": "opaque", "updated": "2015-03-11T19:02:03.381427", "name": null, "algorithm": null, "created": "2015-03-11T19:02:03.381427", <b>"secret_ref": "<a href="http://localhost:9311/v1/secrets/b9e474a4-aed9-4d5b-98a7-5f2127aad81f" target="_blank">http://localhost:9311/v1/secrets/b9e474a4-aed9-4d5b-98a7-5f2127aad81f</a>",</b> "expiration": null, "bit_length": null, "mode": null}, {"status": "ACTIVE", "secret_type": "opaque", "updated": "2015-03-11T21:36:11.555639", "name": null, "algorithm": null, "created": "2015-03-11T21:36:11.555639", <b>"secret_ref": "<a href="http://localhost:9311/v1/secrets/c49e4b6a-7ec1-4a81-9ee5-58647102e5b6" target="_blank">http://localhost:9311/v1/secrets/c49e4b6a-7ec1-4a81-9ee5-58647102e5b6</a>", </b>"expiration": null, "bit_length": null, "mode": null}, {"status": "ACTIVE", "secret_type": "opaque", "updated": "2015-03-11T22:22:49.473581", "name": null, "algorithm": null, "created": "2015-03-11T22:22:49.473581", "secret_ref": "<a href="http://localhost:9311/v1/secrets/5ebc1454-785f-4001-bc22-dd25957e8de3" target="_blank">http://localhost:9311/v1/secrets/5ebc1454-785f-4001-bc22-dd25957e8de3</a>", "expiration": null, "bit_length": null, "mode": null}, {"status": "ACTIVE", "secret_type": "opaque", "updated": "2015-03-13T15:25:35.989442", "name": null, "algorithm": null, "created": "2015-03-13T15:25:35.989442", "secret_ref": "<a href="http://localhost:9311/v1/secrets/13c7c239-0571-4471-820c-7f782855ee67" target="_blank">http://localhost:9311/v1/secrets/13c7c239-0571-4471-820c-7f782855ee67</a>", "expiration": null, "bit_length": null, "mode": null}, {"status": "ACTIVE", "secret_type": "opaque", "updated": "2015-03-13T15:38:14.930289", "name": null, "algorithm": null, "created": "2015-03-13T15:37:16.926344", <b>"secret_ref": "<a href="http://localhost:9311/v1/secrets/3cd2fdc8-e30d-4f33-a1d8-81aa0bc2c47e" target="_blank">http://localhost:9311/v1/secrets/3cd2fdc8-e30d-4f33-a1d8-81aa0bc2c47e</a>", </b>"content_types": {"default": "text/plain"}, "expiration": null, "bit_length": null, "mode": null}, {"status": "ACTIVE", "secret_type": "opaque", "updated": "2015-03-13T15:42:44.570773", "name": null, "algorithm": null, "created": "2015-03-13T15:40:55.906374", "secret_ref": "<a href="http://localhost:9311/v1/secrets/51cce32e-2427-4d84-8853-6b90d52e7d96" target="_blank">http://localhost:9311/v1/secrets/51cce32e-2427-4d84-8853-6b90d52e7d96</a>", "content_types": {"default": "application/octet-stream"}, "expiration": null, "bit_length": null, "mode": null}, {"status": "ACTIVE", "secret_type": "opaque", "updated": "2015-03-13T19:55:59.922138", "name": null, "algorithm": null, "created": "2015-03-13T19:55:59.919010", "secret_ref": "<a href="http://localhost:9311/v1/secrets/9ae128cb-072c-491c-8cfd-2b82d82e44e5" target="_blank">http://localhost:9311/v1/secrets/9ae128cb-072c-491c-8cfd-2b82d82e44e5</a>", "content_types": {"default": "text/plain"}, "expiration": null, "bit_length": null, "mode": null}, {"status": "ACTIVE", "secret_type": "opaque", "updated": "2015-03-13T20:02:12.341703", "name": null, "algorithm": null, "created": "2015-03-13T20:02:12.338562", "secret_ref": "<a href="http://localhost:9311/v1/secrets/9fcae609-49a1-450a-bbe6-c28238bb1671" target="_blank">http://localhost:9311/v1/secrets/9fcae609-49a1-450a-bbe6-c28238bb1671</a>", "content_types": {"default": "text/plain"}, "expiration": null, "bit_length": null, "mode": null}], "total": 12, "next": "<a href="http://localhost:9311/v1/secrets?limit=10&offset=10" target="_blank">http://localhost:9311/v1/secrets?limit=10&offset=10</a>"}root@barbican:~#</div><div><br></div><div>Thanks in advance.</div></div></div>-- <br><div class="gmail_signature"><div><em>Thanks and Regards,</em></div>
<div><em>Asha Seshagiri</em></div></div>
</div></div>