Secret
Create a secret
post/secrets/create
Request
- Base URL/v1.49 (relative, and the document was published on a file host, not at the API’s origin)
- URL/v1.49/secrets/create
- Authnone declared
Request body
Example request
{
"Name": "app-key.crt",
"Labels": {
"foo": "bar"
},
"Data": "VEhJUyBJUyBOT1QgQSBSRUFMIENFUlRJRklDQVRFCg==",
"Driver": {
"Name": "secret-bucket",
"Options": {
"OptionA": "value for driver option A",
"OptionB": "value for driver option B"
}
}
}Response
no error
Changes
No recorded changes to this operation across all 4 revisions of this API.