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

Vpn Link Connections - Get All Shared Keys

列出指定的 VpnLink 连接的所有共享密钥。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}/sharedKeys?api-version=2024-05-01

URI 参数

名称 必需 类型 说明
connectionName
path True

string

VPN 连接的名称。

gatewayName
path True

string

网关的名称。

linkConnectionName
path True

string

vpn 链接连接的名称。

resourceGroupName
path True

string

资源组的名称。

subscriptionId
path True

string

唯一标识 Azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。

api-version
query True

string

客户端 API 版本。

响应

名称 类型 说明
200 OK

ConnectionSharedKeyResultList

请求成功。 返回 vpn 链接连接的共享密钥。

Other Status Codes

CloudError

描述操作失败的原因的错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 Flow。

类型: oauth2
流向: implicit
授权 URL: https://login.microsoftonline.com/common/oauth2/authorize

作用域

名称 说明
user_impersonation 模拟用户帐户

示例

VpnSiteLinkConnectionSharedKeysGet

示例请求

GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/vpnLinkConnections/Connection-Link1/sharedKeys?api-version=2024-05-01

示例响应

{
  "value": [
    {
      "name": "default",
      "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/vpnLinkConnections/Connection-Link1/sharedKeys/default",
      "type": "Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections/sharedKeys",
      "properties": {
        "sharedKeyLength": 16
      }
    }
  ]
}

定义

名称 说明
CloudError

服务的错误响应。

CloudErrorBody

服务的错误响应。

ConnectionSharedKeyResult

SharedKey 资源。

ConnectionSharedKeyResultList

VPN 链接连接的共享密钥列表。 它应仅包含每个 VPN 链接连接的一个共享密钥。

ProvisioningState

当前预配状态。

SharedKeyProperties

SharedKey 的参数。

CloudError

服务的错误响应。

名称 类型 说明
error

CloudErrorBody

云错误正文。

CloudErrorBody

服务的错误响应。

名称 类型 说明
code

string

错误的标识符。 代码是固定的,旨在以编程方式使用。

details

CloudErrorBody[]

有关错误的其他详细信息的列表。

message

string

描述错误的消息,旨在适合在用户界面中显示。

target

string

特定错误的目标。 例如,错误属性的名称。

ConnectionSharedKeyResult

SharedKey 资源。

名称 类型 说明
id

string

VPN 链接连接的共享密钥的标识符。

name

string

资源组中唯一的资源的名称。 此名称可用于访问资源。

properties

SharedKeyProperties

共享密钥的属性。

type

string

资源类型。

ConnectionSharedKeyResultList

VPN 链接连接的共享密钥列表。 它应仅包含每个 VPN 链接连接的一个共享密钥。

名称 类型 说明
nextLink

string

用于获取下一组操作列表结果(如果有)的 URL。

value

ConnectionSharedKeyResult[]

SharedKeys 列表。

ProvisioningState

当前预配状态。

说明
Deleting
Failed
Succeeded
Updating

SharedKeyProperties

SharedKey 的参数。

名称 类型 说明
provisioningState

ProvisioningState

SharedKey 资源的预配状态。

sharedKey

string

VPN 链接连接的共享密钥的值。

sharedKeyLength

integer (int32)

minimum: 1
maximum: 128

VPN 链接连接的共享密钥的长度。