deleteGlobalNetwork method
Deletes an existing global network. You must first delete all global network objects (devices, links, and sites) and deregister all transit gateways.
May throw ValidationException. May throw AccessDeniedException. May throw ResourceNotFoundException. May throw ConflictException. May throw ThrottlingException. May throw InternalServerException.
Parameter globalNetworkId
:
The ID of the global network.
Implementation
Future<DeleteGlobalNetworkResponse> deleteGlobalNetwork({
required String globalNetworkId,
}) async {
ArgumentError.checkNotNull(globalNetworkId, 'globalNetworkId');
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/global-networks/${Uri.encodeComponent(globalNetworkId)}',
exceptionFnMap: _exceptionFns,
);
return DeleteGlobalNetworkResponse.fromJson(response);
}