create_device
¶
create_device(
global_network_id: GlobalNetworkId,
*,
config_overrides: Optional[NetworkManagerClientConfig] = None,
aws_location: Optional[AWSLocation] = None,
description: Optional[ConstrainedString] = None,
type: Optional[ConstrainedString] = None,
vendor: Optional[ConstrainedString] = None,
model: Optional[ConstrainedString] = None,
serial_number: Optional[ConstrainedString] = None,
location: Optional[Location] = None,
site_id: Optional[SiteId] = None,
tags: Optional[TagList] = None,
) -> CreateDeviceResponse
Creates a new device in a global network. If you specify both a site ID and a location, the location of the site is used for visualization in the Network Manager console.
Parameters:
-
global_network_id(GlobalNetworkId) –The ID of the global network.
-
aws_location(Optional[AWSLocation], default:None) –The Amazon Web Services location of the device, if applicable. For an on-premises device, you can omit this parameter.
-
description(Optional[ConstrainedString], default:None) –A description of the device.
Constraints: Maximum length of 256 characters.
-
type(Optional[ConstrainedString], default:None) –The type of the device.
-
vendor(Optional[ConstrainedString], default:None) –The vendor of the device.
Constraints: Maximum length of 128 characters.
-
model(Optional[ConstrainedString], default:None) –The model of the device.
Constraints: Maximum length of 128 characters.
-
serial_number(Optional[ConstrainedString], default:None) –The serial number of the device.
Constraints: Maximum length of 128 characters.
-
location(Optional[Location], default:None) –The location of the device.
-
site_id(Optional[SiteId], default:None) –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/network_manager.py
1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 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 | |