調用DetachSecurityGroupFromVpcEndpoint介面,將終端節點移除安全性群組。
介面說明
-
DetachSecurityGroupFromVpcEndpoint 介面屬於非同步介面,即系統會返回一個請求 ID,但終端節點尚未從安全性群組中移除,系統背景移除任務仍在進行。您可以調用 ListVpcEndpoints 查詢終端節點的移除狀態:
當終端節點處於 Pending 狀態時,表示終端節點正在移除中。
當在安全性群組中查詢不到該終端節點時,表示終端節點移除完成。
-
DetachSecurityGroupFromVpcEndpoint 介面不支援將同一個終端節點執行個體並發移除安全性群組。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
privatelink:DetachSecurityGroupFromVpcEndpoint |
update |
*VpcEndpoint
*SecurityGroup
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
要移除安全性群組的終端節點所屬的地區 ID。您可以通過調用 DescribeRegions 介面擷取地區 ID。 |
eu-west-1 |
| SecurityGroupId |
string |
是 |
要移除的安全性群組的 ID。 |
sg-hp3c8qj1tyct90ej**** |
| EndpointId |
string |
是 |
要移除安全性群組的終端節點的 ID。 |
ep-hp33b2e43fays7s8**** |
| DryRun |
boolean |
否 |
是否只預檢此次請求。取值:
|
false |
| ClientToken |
string |
否 |
用戶端 Token,用於保證請求的等冪性。 從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元。 |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
| RegionId |
string |
是 |
要移除安全性群組的終端節點所屬的地區 ID。您可以通過調用 DescribeRegions 介面擷取地區 ID。 |
eu-west-1 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
8D778FF9-7640-4C13-BCD6-9265CA9A2F81 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "8D778FF9-7640-4C13-BCD6-9265CA9A2F81"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | SecurityGroupNotFound | The specified security group does not exist. | 當前安全性群組未找到。 |
| 400 | EndpointMustContainSecurityGroup | The specified endpoint must have at least one security group. | 終端節點需要至少加入一個安全性群組 |
| 400 | EndpointNotFound | The specified Endpoint does not exist. | 當前終端節點未找到。 |
| 400 | EndpointOperationDenied | The specified operation of endpoint is not allowed. | 當前終端節點正在處理中,不允許操作。 |
| 400 | EndpointLocked | The specified Endpoint is locked. | 當前終端節點已經被鎖定。 |
| 400 | EndpointConnectionOperationDenied | The endpoint is being connected. | 終端節點串連正在處理中,不允許操作。 |
| 400 | EndpointServiceDeleted | The specified Service is already deleted. | 終端節點服務已經被刪除 |
| 400 | GatewayLoadBalancerNotSupportSecurityGroup | The gateway load balancer not support security group. | 網關型負載平衡類型不支援設定安全性群組 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。