create_link
async
¶
create_link(
global_network_id: GlobalNetworkId,
bandwidth: Bandwidth,
site_id: SiteId,
*,
config_overrides: Optional[AsyncNetworkManagerClientConfig] = None,
description: Optional[ConstrainedString] = None,
type: Optional[ConstrainedString] = None,
provider: Optional[ConstrainedString] = None,
tags: Optional[TagList] = None,
) -> CreateLinkResponse
Creates a new link for a specified site.
Parameters:
-
global_network_id(GlobalNetworkId) –The ID of the global network.
-
description(Optional[ConstrainedString], default:None) –A description of the link.
Constraints: Maximum length of 256 characters.
-
type(Optional[ConstrainedString], default:None) –The type of the link.
Constraints: Maximum length of 128 characters. Cannot include the following characters: | \ ^
-
bandwidth(Bandwidth) –The upload speed and download speed in Mbps.
-
provider(Optional[ConstrainedString], default:None) –The provider of the link.
Constraints: Maximum length of 128 characters. Cannot include the following characters: | \ ^
-
site_id(SiteId) –The ID of the site.
-
tags(Optional[TagList], default:None) –The tags to apply to the resource during creation.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–There was a conflict processing the request. Updating or deleting the resource can cause an inconsistent state.
-
InternalServerException–The request has failed due to an internal error.
-
ResourceNotFoundException–The specified resource could not be found.
-
ServiceQuotaExceededException–A service limit was exceeded.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_networkmanager/_services/async_network_manager.py
1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 | |