你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SshPublicKeyUpdateResource Class

Specifies information about the SSH public key.

Inheritance
azure.mgmt.compute.v2024_03_01.models._models_py3.UpdateResource
SshPublicKeyUpdateResource

Constructor

SshPublicKeyUpdateResource(*, tags: Dict[str, str] | None = None, public_key: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
tags

Resource tags.

public_key
str

SSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format.

Variables

Name Description
tags

Resource tags.

public_key
str

SSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format.