SshPublicKeyResource interface

指定 SSH 公鑰的相關資訊。

Extends

屬性

publicKey

用來透過 ssh 向虛擬機驗證的 SSH 公鑰。 如果最初未在建立資源時提供這個屬性,則會在呼叫 generateKeyPair 時填入 publicKey 屬性。 如果在資源建立時提供公鑰,則提供的公鑰必須至少為 2048 位且 ssh-rsa 格式。

繼承的屬性

id

資源的完整資源標識碼。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

location

資源所在的地理位置

name

資源名稱

systemData

包含 createdBy 和 modifiedBy 資訊的 Azure Resource Manager 元數據。

tags

資源標籤。

type

資源的類型。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts”

屬性詳細資料

publicKey

用來透過 ssh 向虛擬機驗證的 SSH 公鑰。 如果最初未在建立資源時提供這個屬性,則會在呼叫 generateKeyPair 時填入 publicKey 屬性。 如果在資源建立時提供公鑰,則提供的公鑰必須至少為 2048 位且 ssh-rsa 格式。

publicKey?: string

屬性值

string

繼承的屬性詳細資料

id

資源的完整資源標識碼。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

id?: string

屬性值

string

繼承自TrackedResource.id

location

資源所在的地理位置

location: string

屬性值

string

繼承自TrackedResource.location

name

資源名稱

name?: string

屬性值

string

繼承自 TrackedResource.name

systemData

包含 createdBy 和 modifiedBy 資訊的 Azure Resource Manager 元數據。

systemData?: SystemData

屬性值

繼承自TrackedResource.systemData

tags

資源標籤。

tags?: Record<string, string>

屬性值

Record<string, string>

繼承自TrackedResource.tags

type

資源的類型。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts”

type?: string

屬性值

string

繼承自TrackedResource.type