Skip to content

Instantly share code, notes, and snippets.

@CoderLisa
Created February 5, 2014 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CoderLisa/8833443 to your computer and use it in GitHub Desktop.
Save CoderLisa/8833443 to your computer and use it in GitHub Desktop.
Barbican: Sample Container payload with list based generic secret refs
Sample Request for creating an RSA Container using a more generic container model
Endpoint: barbicanapi/v1/{tenant_id}/containers

Request Type: POST

Request Body:
{
"name":"rsa container",
"type":"rsa",
"secret_refs": [
{
"name": "private_key",
"secret_ref":"http://localhost:9311/v1/12345/secrets/05a47308-d045-43d6-bfe3-1dbcd0c3a97b"
},
{
"name": "public_key",
"secret_ref":"http://localhost:9311/v1/12345/secrets/05a47308-d045-43d6-bfe3-1dbcd0c3a97b"
},
{
"name": "private_key_passphrase"
"secret_ref":"http://localhost:9311/v1/12345/secrets/05a47308-d045-43d6-bfe3-1dbcd0c3a97b"
}
]
}
{
"name":"rsa container",
"type":"rsa",
"secrets": {
"private_key":"http://localhost:9311/v1/12345/secrets/05a47308-d045-43d6-bfe3-1dbcd0c3a97b",
"public_key":"http://localhost:9311/v1/12345/secrets/05a47308-d045-43d6-bfe3-1dbcd0c3a97b",
"private_key_passphrase":"http://localhost:9311/v1/12345/secrets/05a47308-d045-43d6-bfe3-1dbcd0c3a97b"
}
}
@jfwood
Copy link

jfwood commented Feb 5, 2014

{
"name":"rsa container",
"type":"rsa",
"rsa_specific_meta": "data here for metadata",
"secrets": {
"private_key":"http://localhost:9311/v1/12345/secrets/05a47308-d045-43d6-bfe3-1dbcd0c3a97b",
"public_key":"http://localhost:9311/v1/12345/secrets/05a47308-d045-43d6-bfe3-1dbcd0c3a97b",
"private_key_passphrase":"http://localhost:9311/v1/12345/secrets/05a47308-d045-43d6-bfe3-1dbcd0c3a97b"
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment