update_device
async
¶
update_device(
global_network_id: GlobalNetworkId,
device_id: DeviceId,
*,
config_overrides: Optional[AsyncNetworkManagerClientConfig] = 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/async_network_manager.py
9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 | |