Enabling or Disabling SSL (a V3 API)
Function
This API is used to configure SSL to encrypt connections.
Constraints
None
URI
POST /v3/{project_id}/instances/{instance_id}/switch-ssl
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID of a tenant in a region To obtain this value, see Obtaining a Project ID. |
| instance_id | Yes | String | DDM instance ID |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | User token You can obtain the token by calling the IAM API used to obtain a user token. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| ssl_enabled | Yes | Boolean | true: SSL is enabled. false: SSL is disabled. |
Example Request
POST https://{endpoint}/v3/{project_id}/instances/{instance_id}/switch-ssl
{
"ssl_enabled" : true
} Response Parameters
- Normal response
Table 4 Response body parameters Parameter
Type
Description
job_id
String
Job ID.
Example Response
- Normal response example
{ "job_id" : "9fe84a77-6a6b-4b03-9a3e-db910a548657" }
- Abnormal response
For details, see Abnormal Request Results.
Status Codes
- Normal
- Abnormal
For details, see Status Codes.
Error Codes
For details, 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