CreateSecretValue
Creates a ciphertext.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
emr-serverless-spark:CreateSecretValue |
create |
*All Resource
|
None | None |
Request syntax
POST /api/v1/workspaces/{workspaceId}/secret HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspaceId |
string |
No |
The workspace ID. |
w-1ee727989ef1ab65 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request struct. |
|
| name |
string |
No |
The name of the ciphertext. |
mysecret |
| content |
string |
No |
The content of the ciphertext. |
password |
| comment |
string |
No |
The comment. |
My secret |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
5C2B60C6-03CE-5F31-A8A4-13FCBEBACA1C |
| secretId |
string |
The ciphertext ID. |
st-xxxxxxxxxx |
Examples
Success response
JSON format
{
"requestId": "5C2B60C6-03CE-5F31-A8A4-13FCBEBACA1C",
"secretId": "st-xxxxxxxxxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.