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
6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 | |