set_local_console_password
¶
set_local_console_password(
gateway_arn: GatewayARN,
local_console_password: LocalConsolePassword,
*,
config_overrides: Optional[StorageGatewayClientConfig] = None,
) -> SetLocalConsolePasswordOutput
Sets the password for your VM local console. When you log in to the local console for the first time, you log in to the VM with the default credentials. We recommend that you set a new password. You don't need to know the default password to set a new password.
Parameters:
-
local_console_password(LocalConsolePassword) –The password you want to set for your VM local console.
Raises:
-
InternalServerError–An internal server error has occurred during the request. For more information, see the error and message fields.
-
InvalidGatewayRequestException–An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To set a password for your VM Sets the password for your VM local console.
>>> client.set_local_console_password(gateway_arn='arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B', local_console_password='PassWordMustBeAtLeast6Chars.')
Source code in docs_src/capo_storage_gateway/_services/storage_gateway.py
5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 | |