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

Shared Private Link Resources - List By Service

获取由给定服务管理的所有共享专用链接资源的列表。

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

URI 参数

名称 必需 类型 说明
resourceGroupName
path True

string

当前订阅中的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

searchServiceName
path True

string

与指定资源组关联的搜索服务的名称。

subscriptionId
path True

string

Microsoft Azure 订阅的唯一标识符。 可以从 Azure 资源管理器 API、命令行工具或门户获取此值。

api-version
query True

string

要用于每个请求的 API 版本。

请求头

名称 必需 类型 说明
x-ms-client-request-id

string

uuid

客户端生成的用于标识此请求的 GUID 值。 如果指定,则会将其包含在响应信息中,作为跟踪请求的一种方式。

响应

名称 类型 说明
200 OK

SharedPrivateLinkResourceListResult

操作成功。 响应包含由给定服务管理的所有共享专用链接资源的列表。

Other Status Codes

CloudError

操作期间出现意外错误。

安全性

azure_auth

Microsoft Entra ID OAuth2 授权流。

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

Scopes

名称 说明
user_impersonation 模拟用户帐户

示例

ListSharedPrivateLinkResourcesByService

Sample Request

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

Sample Response

{
  "value": [
    {
      "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
      }
    }
  ]
}

定义

名称 说明
CloudError

包含有关 API 错误的信息。

CloudErrorBody

描述具有错误代码和消息的特定 API 错误。

SharedPrivateLinkResource

描述由搜索服务管理的共享专用链接资源。

SharedPrivateLinkResourceListResult

包含共享专用链接资源的列表的响应。

SharedPrivateLinkResourceProperties

描述搜索服务管理的现有共享专用链接资源的属性。

SharedPrivateLinkResourceProvisioningState

共享专用链接资源的预配状态。 有效值为 Updateing、删除、Failed、Succeeded 或 Incomplete。

SharedPrivateLinkResourceStatus

共享专用链接资源的状态。 有效值为 Pending、Approved、Rejected 或 Disconnected。

CloudError

包含有关 API 错误的信息。

名称 类型 说明
error

CloudErrorBody

描述具有错误代码和消息的特定 API 错误。

CloudErrorBody

描述具有错误代码和消息的特定 API 错误。

名称 类型 说明
code

string

一个错误代码,它比 HTTP 状态代码更准确地描述错误条件。 可用于以编程方式处理特定错误情况。

details

CloudErrorBody[]

包含与此错误相关的嵌套错误。

message

string

一条消息,详细说明错误并提供调试信息。

target

string

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

SharedPrivateLinkResource

描述由搜索服务管理的共享专用链接资源。

名称 类型 说明
id

string

资源的完全限定的资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

资源的名称

properties

SharedPrivateLinkResourceProperties

描述由搜索服务管理的共享专用链接资源的属性。

type

string

资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts”

SharedPrivateLinkResourceListResult

包含共享专用链接资源的列表的响应。

名称 类型 说明
nextLink

string

用于获取下一组共享专用链接资源的 URL(如果有)。

value

SharedPrivateLinkResource[]

共享专用链接资源列表。

SharedPrivateLinkResourceProperties

描述搜索服务管理的现有共享专用链接资源的属性。

名称 类型 说明
groupId

string

共享专用链接资源所属的资源提供程序中的组 ID。

privateLinkResourceId

string

共享专用链接资源所针对的资源的资源的资源 ID。

provisioningState

SharedPrivateLinkResourceProvisioningState

共享专用链接资源的预配状态。 有效值为 Updateing、删除、Failed、Succeeded 或 Incomplete。

requestMessage

string

请求批准共享专用链接资源的请求消息。

resourceRegion

string

可选。 可用于指定要创建共享专用链接的资源的 Azure 资源管理器位置。 只有 DNS 配置为区域 ((例如Azure Kubernetes 服务) )的资源才需要这样做。

status

SharedPrivateLinkResourceStatus

共享专用链接资源的状态。 有效值为 Pending、Approved、Rejected 或 Disconnected。

SharedPrivateLinkResourceProvisioningState

共享专用链接资源的预配状态。 有效值为 Updateing、删除、Failed、Succeeded 或 Incomplete。

名称 类型 说明
Deleting

string

Failed

string

Incomplete

string

Succeeded

string

Updating

string

SharedPrivateLinkResourceStatus

共享专用链接资源的状态。 有效值为 Pending、Approved、Rejected 或 Disconnected。

名称 类型 说明
Approved

string

Disconnected

string

Pending

string

Rejected

string