You need to enable JavaScript to run this app.
导航

DeleteSecurityGroup

最近更新时间2024.01.10 10:41:29

首次发布时间2021.07.29 14:11:54

调用 DeleteSecurityGroup 接口,删除指定的安全组。

调用说明

调试

请求参数

参数名称
类型
是否必选
示例值
描述
ActionStringDeleteSecurityGroup系统规定参数。取值:DeleteSecurityGroup。
VersionString2020-04-01API版本信息,取值为:2020-04-01。

SecurityGroupId

String

sg-bp1fg655nh68xyz9****

安全组ID。
您可以调用 DescribeSecurityGroups 接口,查询安全组的ID。

返回数据

参数名称
类型
示例值
描述
RequestIdString2021062415303301022514515207C4****请求ID。

请求示例

GET /?Action=DeleteSecurityGroup&Version=2020-04-01&SecurityGroupId=sg-bp1fg655nh68xyz9**** HTTP/1.1
Host: open.volcengineapi.com
Service: vpc
Region: cn-beijing

返回示例

{
    "ResponseMetadata": {
        "RequestId": "2021062415303301022514515207C4****",
        "Action": "DeleteSecurityGroup",
        "Version": "2020-04-01",
        "Service": "vpc",
        "Region": "cn-beijing"
    },
   "Result": {
        "RequestId": "2021062415303301022514515207C4****"
    }
}

错误码

此处仅展示当前API的错误码,更多错误码请参见公共错误码

HttpCode
错误码
错误信息
描述
400InvalidSecurityGroup.InvalidStatusThe specified security group is not in the correct status for the request.指定的安全组所处状态无法响应该请求。
400InvalidSecurityGroup.InUseThe specified security group has dependent resource of a security rule.指定的安全组被其他规则引用,无法删除。
400InvalidSecurityGroup.InUseThe specified security group has dependent resource of an ENI.指定的安全组已经绑定网卡,无法删除。
400InvalidSecurityRule.InvalidStatusThe specified security rule is not in the correct status for the request.指定的安全组规则所处状态无法响应该请求。
403ForbiddenYou are not authorized to perform operations on the specified security group. The specified security group is a service-managed security group.无权限对指定安全组进行操作。指定的安全组为云产品托管的安全组。
404InvalidSecurityGroupId.NotFoundThe specified security group does not exist.指定的安全组不存在。
409InvalidOperation.ConflictThe specified resource operation conflicts.指定的资源操作冲突。