update_device
¶
update_device(
global_network_id: GlobalNetworkId,
device_id: DeviceId,
*,
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,
) -> UpdateDeviceResponse
Updates the details for an existing device. To remove information for any of the parameters, specify an empty string.
Parameters:
-
global_network_id(GlobalNetworkId) –The ID of the global network.
-
device_id(DeviceId) –The ID of the device.
-
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.
-
site_id(Optional[SiteId], default:None) –The ID of the site.
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.
-
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
8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 | |