This API is used to modify the security group of a cluster.
For details, see Calling APIs.
PUT /v1/{project_id}/clusters/{cluster_id}/security-group
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Definition Project ID. To obtain the value, see Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
cluster_id |
Yes |
String |
Definition Cluster ID. For details about how to obtain the value, see Obtaining the Cluster ID. Constraints N/A Range N/A Default Value N/A |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
security_groups |
Yes |
Array of strings |
Definition Security group ID array. Constraints N/A Range N/A Default Value N/A |
Status code: 200
Cluster security group modified.
None
Request example for modifying a cluster security group.
PUT https://{Endpoint}/v1/05f2cff45100d5112f4bc00b794ea08a/clusters/58031bb5-7c1a-4449-a95f-3fbb6a91dfda/security-group
{
"security_groups" : [ "b3c812cb-2d90-4d89-a3df-c5480d915e2e", "0fbe2c34-8123-42b5-955f-242229e9318e" ]
}
None
Status Code |
Description |
|---|---|
200 |
Cluster security group modified. |
400 |
Request error. |
401 |
Authentication failed. |
403 |
You do not have required permissions. |
500 |
Internal server error. |
503 |
Service unavailable. |