getNetworkByIdWithHttpInfo method
Returns one overlay network by id, scoped to the caller's org.
Returns one overlay network by id, scoped to the caller's org. The org has exactly one overlay network and its id is derived from the org, so any other id — another tenant's, or one that does not exist — is 404 rather than a peek across the tenant boundary. An org whose network exists but has no edge-routers is 404 too, for the same reason the list is empty: there is no overlay until something is on it.
Note: This method returns the HTTP Response.
Parameters:
- String id (required): ID is the network id from the path. The URL is the addressing authority, so it binds from there whatever else the request carries.
Implementation
Future<Response> getNetworkByIdWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/v1/network/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}