BookingService を取得するGet bookingService
名前空間: microsoft.graphNamespace: microsoft.graph
重要
/beta
Microsoft 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 が v2.0 で利用できるかどうかを確認するには、 バージョン セレクターを使用します。To determine whether an API is available in v1.0, use the Version selector.
指定したbookingserviceのbookingserviceオブジェクトのプロパティとリレーションシップを取得します。Get the properties and relationships of a bookingService object in the specified bookingbusiness.
アクセス許可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) | 予約します。 all、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/{id}/services/{id}
オプションのクエリ パラメーターOptional query parameters
このメソッドは、応答をカスタマイズするための OData クエリ パラメーターをサポートします。This method supports the OData Query Parameters to help customize the response.
要求ヘッダーRequest headers
名前Name | 説明Description |
---|---|
AuthorizationAuthorization | Bearer {code}Bearer {code} |
要求本文Request body
このメソッドには、要求本文を指定しません。Do not supply a request body for this method.
応答Response
成功した場合、このメソッドは応答 200 OK
コードと、応答本文で Bookingservice オブジェクトを返します。If successful, this method returns a 200 OK
response code and bookingService object in the response body.
例Example
要求Request
要求の例を次に示します。The following is an example of the request.
GET https://graph.microsoft.com/beta/bookingBusinesses/Contosolunchdelivery@M365B489948.onmicrosoft.com/services/57da6774-a087-4d69-b0e6-6fb82c339976
応答Response
応答の例を次に示します。The following is an example of the response. 注: 簡潔にするために、ここに示す応答オブジェクトは切り詰められている場合があります。Note: The response object shown here may be truncated for brevity. 実際の呼び出しではすべてのプロパティが返されます。All of the properties will be returned from an actual call.
HTTP/1.1 200 OK
Content-type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#bookingBusinesses('Contosolunchdelivery%40M365B489948.onmicrosoft.com')/services/$entity",
"id": "57da6774-a087-4d69-b0e6-6fb82c339976",
"displayName": "Bento",
"defaultDuration": "PT30M",
"defaultPrice": 10,
"defaultPriceType": "fixedPrice",
"description": "Individual bento box lunch delivery",
"isHiddenFromCustomers": false,
"notes": "Home-cooked special",
"preBuffer": "PT5M",
"postBuffer": "PT10M",
"staffMemberIds": [],
"defaultLocation": {
"displayName": "Contoso Lunch Delivery",
"locationEmailAddress": null,
"locationUri": "",
"locationType": null,
"uniqueId": null,
"uniqueIdType": null,
"address": {
"type": "home",
"postOfficeBox": "",
"street": "4567 First Street",
"city": "Buffalo",
"state": "NY",
"countryOrRegion": "USA",
"postalCode": "98052"
},
"coordinates": {
"altitude": null,
"latitude": null,
"longitude": null,
"accuracy": null,
"altitudeAccuracy": null
}
},
"defaultReminders": [
{
"offset": "P1D",
"recipients": "allAttendees",
"message": "Please be reminded that this service is tomorrow."
}
],
"schedulingPolicy": {
"timeSlotInterval": "PT1H",
"minimumLeadTime": "PT10H",
"maximumAdvance": "P10D",
"sendConfirmationsToOwner": true,
"allowStaffSelection": true
}
}