Share via


Shared Private Link Resources - Get

取得由指定資源群組中搜尋服務所管理之共用私人鏈接資源的詳細數據。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}?api-version=2023-11-01

URI 參數

名稱 位於 必要 類型 Description
resourceGroupName
path True

string

目前訂用帳戶內的資源組名。 您可以從 Azure 資源管理員 API 或入口網站取得這個值。

searchServiceName
path True

string

與指定之資源群組相關聯的搜尋服務名稱。

sharedPrivateLinkResourceName
path True

string

由指定資源群組內搜尋服務管理的共用私人鏈接資源名稱。

subscriptionId
path True

string

Microsoft Azure 訂用帳戶的唯一標識符。 您可以從 Azure Resource Manager API、命令行工具或入口網站取得此值。

api-version
query True

string

要用於每個要求的 API 版本。

要求標頭

名稱 必要 類型 Description
x-ms-client-request-id

string

uuid

用戶端產生之可識別此要求的 GUID 值。 如果已指定,則會將回應資訊包含在響應資訊中,以作為追蹤要求的方式。

回應

名稱 類型 Description
200 OK

SharedPrivateLinkResource

已成功擷取共用私人鏈接資源的定義,且在回應中。

Other Status Codes

CloudError

找不到 HTTP 404 () :找不到訂用帳戶、資源群組、搜尋服務或共用私人鏈接資源。

安全性

azure_auth

Microsoft Entra ID OAuth2 授權流程。

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名稱 Description
user_impersonation 模擬您的用戶帳戶

範例

SharedPrivateLinkResourceGet

Sample Request

GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice/sharedPrivateLinkResources/testResource?api-version=2023-11-01

Sample Response

{
  "name": "testResource",
  "type": "Microsoft.Search/searchServices/sharedPrivateLinkResources",
  "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice/sharedPrivateLinkResources/testResource",
  "properties": {
    "requestMessage": "please approve",
    "groupId": "blob",
    "privateLinkResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName",
    "status": "Pending",
    "resourceRegion": null
  }
}

定義

名稱 Description
CloudError

包含 API 錯誤的相關信息。

CloudErrorBody

描述具有錯誤碼和訊息的特定 API 錯誤。

SharedPrivateLinkResource

描述由搜尋服務管理的共用 Private Link 資源。

SharedPrivateLinkResourceProperties

描述由搜尋服務管理之現有共用 Private Link 資源的屬性。

SharedPrivateLinkResourceProvisioningState

共用私人鏈接資源的布建狀態。 有效值為 [更新]、[刪除]、[失敗]、[成功] 或 [不完整]。

SharedPrivateLinkResourceStatus

共用私人鏈接資源的狀態。 有效值為 Pending、Approved、Rejected 或 Disconnected。

CloudError

包含 API 錯誤的相關信息。

名稱 類型 Description
error

CloudErrorBody

描述具有錯誤碼和訊息的特定 API 錯誤。

CloudErrorBody

描述具有錯誤碼和訊息的特定 API 錯誤。

名稱 類型 Description
code

string

比起 HTTP 狀態代碼,更精確地描述錯誤狀況的錯誤碼。 可用來以程式設計方式處理特定錯誤案例。

details

CloudErrorBody[]

包含與此錯誤相關的巢狀錯誤。

message

string

描述錯誤的詳細訊息,並提供偵錯資訊。

target

string

例如,錯誤 (中屬性的名稱) 的特定錯誤目標。

SharedPrivateLinkResource

描述由搜尋服務管理的共用 Private Link 資源。

名稱 類型 Description
id

string

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

name

string

資源的名稱

properties

SharedPrivateLinkResourceProperties

描述由搜尋服務管理之共用 Private Link 資源的屬性。

type

string

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

SharedPrivateLinkResourceProperties

描述由搜尋服務管理之現有共用 Private Link 資源的屬性。

名稱 類型 Description
groupId

string

共用私人鏈接資源提供者的群組標識碼。

privateLinkResourceId

string

共用私人鏈接資源的資源資源識別碼。

provisioningState

SharedPrivateLinkResourceProvisioningState

共用私人鏈接資源的布建狀態。 有效值為 [更新]、[刪除]、[失敗]、[成功] 或 [不完整]。

requestMessage

string

要求核准共用私人鏈接資源的要求訊息。

resourceRegion

string

選擇性。 可用來指定要建立共用私人連結之資源的 Azure Resource Manager 位置。 只有 DNS 設定為區域 (的資源,例如 Azure Kubernetes Service) ,才需要此專案。

status

SharedPrivateLinkResourceStatus

共用私人鏈接資源的狀態。 有效值為 Pending、Approved、Rejected 或 Disconnected。

SharedPrivateLinkResourceProvisioningState

共用私人鏈接資源的布建狀態。 有效值為 [更新]、[刪除]、[失敗]、[成功] 或 [不完整]。

名稱 類型 Description
Deleting

string

Failed

string

Incomplete

string

Succeeded

string

Updating

string

SharedPrivateLinkResourceStatus

共用私人鏈接資源的狀態。 有效值為 Pending、Approved、Rejected 或 Disconnected。

名稱 類型 Description
Approved

string

Disconnected

string

Pending

string

Rejected

string