DetachExtNetwork
In this article:
DetachExtNetwork#
Description#
Detaches an external network from a subnet or virtual switch.
Request Parameters#
Note
Either ExtNetId or ExtNetName and AvailabilityZone must be specified.
AvailabilityZone — The availability zone to which the external network is connected.
Type: String
Required: No
Constraints: Cannot be used with the ExtNetId option
ExtNetId — The ID of the external subnet.
Type: String
Required: No
Constraints: Cannot be used with the ExtNetName and AvailabilityZone options
ExtNetName — The name of the external network.
Type: String
Required: No
Constraints: Cannot be used with the ExtNetId option
Response Elements#
requestId — The request ID.
Type: String
Examples#
c2-ec2 DetachExtNetwork ExtNetName <ext-net-name> AvailabilityZone <az>
c2-ec2 DetachExtNetwork ExtNetId <ext-net-id>