列出 ErrorexceededfindcountlimitList bookingBusinesses

命名空间:microsoft.graphNamespace: microsoft.graph

重要

/betaMicrosoft Graph 中的版本下的 api 可能会发生更改。APIs under the /beta version in Microsoft Graph are subject to change. 不支持在生产应用程序中使用这些 API。Use of these APIs in production applications is not supported. 若要确定 API 在 v1.0 中是否可用,请使用 版本 选择器。To determine whether an API is available in v1.0, use the Version selector.

获取已为租户创建的 bookingbusiness 对象的集合。Get a collection of bookingbusiness objects that has been created for the tenant.

此操作仅返回集合中每个预订业务的 iddisplayNameThis operation returns only the id and displayName of each Bookings business in the collection. 出于性能考虑,它不返回其他属性。For performance considerations, it does not return other properties. 您可以通过在get操作中指定其Id来获取预订业务的其他属性。You can get the other properties of a Bookings business by specifying its id in a GET operation.

您还可以通过在参数中指定字符串 query 以执行租户的业务中的子字符串匹配,从而查询预订业务。You can also query for Bookings businesses by specifying a string in a query parameter to do substring matching among the businesses of a tenant. 请参阅以下示例See an example below.

权限Permissions

要调用此 API,需要以下权限之一。要了解详细信息,包括如何选择权限的信息,请参阅权限One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

权限类型Permission type 权限(从最低特权到最高特权)Permissions (from least to most privileged)
委派(工作或学校帐户)Delegated (work or school account) BookingsAppointment、全部、预订、全部、登记、全部、预订。所有Bookings.Read.All, BookingsAppointment.ReadWrite.All, Bookings.ReadWrite.All, Bookings.Manage.All
委派(个人 Microsoft 帐户)Delegated (personal Microsoft account) 不支持。Not supported.
应用程序Application 不支持。Not supported.

HTTP 请求HTTP request

GET /bookingBusinesses

可选的查询参数Optional query parameters

此方法支持 OData 查询参数 来帮助自定义响应。This method supports the OData Query Parameters to help customize the response.

此方法还支持 query 接受字符串值的参数。This method also supports the query parameter which accepts a string value. 此参数将 GET 结果限制为与指定的字符串匹配的企业。This parameter limits the GET results to businesses that match the specified string. 您可以参阅下面的 示例You can see an example below.

请求标头Request headers

名称Name 说明Description
AuthorizationAuthorization Bearer {code}Bearer {code}

请求正文Request body

请勿提供此方法的请求正文。Do not supply a request body for this method.

响应Response

如果成功,此方法 200 OK 在响应正文中返回响应代码和 bookingBusiness 对象集合。If successful, this method returns a 200 OK response code and collection of bookingBusiness objects in the response body.

示例Example

请求 1Request 1

下面的示例获取租户中的预订企业。The following example gets the Bookings businesses in a tenant.

GET https://graph.microsoft.com/beta/bookingBusinesses
响应 1Response 1

下面介绍响应示例。The following is an example of the response.

HTTP/1.1 200 OK
Content-type: application/json

{
    "@odata.context":"https://graph.microsoft.com/beta/$metadata#bookingBusinesses",
    "value":[
        {
            "id":"Contosolunchdelivery@M365B489948.onmicrosoft.com",
            "displayName":"Contoso lunch delivery",
        },
        {
            "id":"Fabrikam@M365B489948.onmicrosoft.com",
            "displayName":"Fabrikam",
        }
    ]
}
请求 2Request 2

下面的示例演示如何使用参数在 query 租户中获取一个或多个匹配的预订企业。The following example shows how to use the query parameter to get one or more matching Bookings businesses in the tenant.

GET https://graph.microsoft.com/beta/bookingBusinesses?query=Adventure
响应 2Response 2

下面展示了示例响应。The following is an example of the response.

HTTP/1.1 200 OK
Content-type: application/json

{
    "@odata.context":"https://graph.microsoft.com/beta/$metadata#bookingBusinesses",
    "value":[
        {
            "id":"AdventureWorksCycles@M365B960066.onmicrosoft.com",
            "displayName":"Adventure Works Cycles",
        }
    ]
}