Modifying the Version of a Secret Registered with DEW
Function
Modify the version of a secret registered with DEW.
URI
PUT /v1/{project_id}/cae/dew-secrets/{secret_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
secret_id |
Yes |
String |
Secret ID. |
|
project_id |
Yes |
String |
Project ID. See Obtaining a Project ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token.
|
|
X-Enterprise-Project-ID |
No |
String |
Enterprise project ID.
NOTE:
For details about how to obtain enterprise project IDs and enterprise project features, see Enterprise Management User Guide.
|
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
api_version |
Yes |
String |
API version. Fixed value: v1. |
|
kind |
Yes |
String |
Resource kind. |
|
spec |
Yes |
CreateOrUpdateSecretDetail object |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
api_version |
String |
API version. Fixed value: v1. |
|
kind |
String |
Resource kind. |
|
spec |
SecretDetail object |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Secret ID. |
|
name |
String |
Secret name. |
|
if_update_available |
Boolean |
Whether the current secret has a later version. |
|
secret_status |
String |
Secret status in DEW.
|
|
status |
String |
Secret usage status in CAE.
|
|
version_id |
String |
Current secret version number. |
|
modified_time |
Integer |
Time when the current secret was created in DEW. |
Example Requests
Modify the secret whose ID is {secret-id}.
Put https://{endpoint}/v1/{project_id}/cae/dew-secrets/{secret_id}
{
"api_version" : "v1",
"kind" : "Secret",
"spec" : {
"name" : "test",
"version_id" : "v2"
}
}
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot