Created
February 5, 2014 21:25
-
-
Save CoderLisa/8833443 to your computer and use it in GitHub Desktop.
Barbican: Sample Container payload with list based generic secret refs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{
"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"
}
}