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 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
connection
|
path | True |
string |
VPN 连接的名称。 |
gateway
|
path | True |
string |
网关的名称。 |
link
|
path | True |
string |
vpn 链接连接的名称。 |
resource
|
path | True |
string |
资源组的名称。 |
subscription
|
path | True |
string |
唯一标识 Azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
api-version
|
query | True |
string |
客户端 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
请求成功。 返回 vpn 链接连接的共享密钥。 |
|
Other Status Codes |
描述操作失败的原因的错误响应。 |
安全性
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
}
}
]
}
定义
名称 | 说明 |
---|---|
Cloud |
服务的错误响应。 |
Cloud |
服务的错误响应。 |
Connection |
SharedKey 资源。 |
Connection |
VPN 链接连接的共享密钥列表。 它应仅包含每个 VPN 链接连接的一个共享密钥。 |
Provisioning |
当前预配状态。 |
Shared |
SharedKey 的参数。 |
CloudError
服务的错误响应。
名称 | 类型 | 说明 |
---|---|---|
error |
云错误正文。 |
CloudErrorBody
服务的错误响应。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误的标识符。 代码是固定的,旨在以编程方式使用。 |
details |
有关错误的其他详细信息的列表。 |
|
message |
string |
描述错误的消息,旨在适合在用户界面中显示。 |
target |
string |
特定错误的目标。 例如,错误属性的名称。 |
ConnectionSharedKeyResult
SharedKey 资源。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
VPN 链接连接的共享密钥的标识符。 |
name |
string |
资源组中唯一的资源的名称。 此名称可用于访问资源。 |
properties |
共享密钥的属性。 |
|
type |
string |
资源类型。 |
ConnectionSharedKeyResultList
VPN 链接连接的共享密钥列表。 它应仅包含每个 VPN 链接连接的一个共享密钥。
名称 | 类型 | 说明 |
---|---|---|
nextLink |
string |
用于获取下一组操作列表结果(如果有)的 URL。 |
value |
SharedKeys 列表。 |
ProvisioningState
当前预配状态。
值 | 说明 |
---|---|
Deleting | |
Failed | |
Succeeded | |
Updating |
SharedKeyProperties
SharedKey 的参数。
名称 | 类型 | 说明 |
---|---|---|
provisioningState |
SharedKey 资源的预配状态。 |
|
sharedKey |
string |
VPN 链接连接的共享密钥的值。 |
sharedKeyLength |
integer (int32) minimum: 1maximum: 128 |
VPN 链接连接的共享密钥的长度。 |