This API is used to change the security mode of a cluster.
You can debug this API in . Automatic authentication is supported.
POST /v1.0/{project_id}/clusters/{cluster_id}/mode/change
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID and Name. |
cluster_id |
Yes |
String |
ID of the cluster that you want to change the security mode |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
authorityEnable |
Yes |
Boolean |
Indicates whether to enable the security mode.
|
adminPwd |
No |
String |
Cluster password in security mode |
httpsEnable |
Yes |
Boolean |
Indicates whether to enable HTTPS. Its value can be:
|
None
POST /v1.0/{project_id}/clusters/{cluster_id}/mode/change { "authorityEnable" : true, "adminPwd" : "xxxx1234", "httpsEnable" : true }
None
Status Code |
Description |
---|---|
200 |
The request is processed successfully. |
400 |
Invalid request. Modify the request instead of retrying. |
404 |
The requested resource cannot be found. Modify the request instead of retrying. |