Associating a Secret Registered by the Tenant
Function
This API is used to associate a secret registered by the tenant.
URI
POST /v1/{project_id}/cae/dew-secrets
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
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
Create a secret.
Post https://{endpoint}/v1/{project_id}/cae/dew-secrets
{
"api_version" : "v1",
"kind" : "Secret",
"spec" : {
"name" : "test",
"version_id" : "v1"
}
}
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