Skip to Content
Private Network(UVPC)DisassociateSecGroup

Unbind resources from the security group - DisassociateSecGroup

Overview

Unbind Security Group and Resource Binding Relationship

💡 Batch Use of Arrays

ℹ️ Only passing the security group means unbinding all associations of the security group; only passing the resource means unbinding all associations of the resource; resources and security groups do not support passing multiple entries simultaneously.

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DisassociateSecGroup.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See Region and Availability Zone ListYes
ProjectIdstringProject ID. If not filled, it defaults to the default project. Sub-accounts must fill this in. Please refer to GetProjectList APINo
SecGroupId.NstringSecurity Group ID. If not provided, it indicates that all resources bound to the security group will be unbound. At least one of Security Group ID or Resource ID must be provided, and only one batch is allowed. Supports string array format.No
ResourceId.NstringResource ID, if not provided, indicates unbinding all security groups from the resource. At least one of Security Group ID or Resource ID must be provided, and only one batch is allowed. Supports string array format.No
ForcebooleanWhether to force unbinding. Default is false. True indicates forced unbinding, used for unbinding before resource deletion, because resources with security group features must be bound to at least one security group, and normally unbinding all security groups is not allowed.No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No

Example

Request Example

https://api.dezai.com/?Action=DisassociateSecGroup &Region=VGZgsWQX &ProjectId=akzSYKVG &ResourceType=ywlgdbdm &SecGroupId.n=gsnMRBsK &ResourceId.n=CLJgIEDW &Force=true

Response Example

{ "Action": "DisassociateSecGroupResponse", "RetCode": 0 }