名前空間: microsoft.graph
restorePoint オブジェクトとそのプロパティの一覧を取得します。
手記: この API は、最大 5 つの restorePoint オブジェクトを返します。
orderBy パラメーターを含めない場合は、最新の 5 つの復元ポイントが返されます。
この API は、次の国内クラウド展開で使用できます。
| グローバル サービス |
米国政府機関 L4 |
米国政府機関 L5 (DOD) |
21Vianet が運営する中国 |
| ✅ |
❌ |
❌ |
❌ |
アクセス許可
この API の最小特権としてマークされているアクセス許可またはアクセス許可を選択します。
アプリで必要な場合にのみ、より高い特権のアクセス許可またはアクセス許可を使用します。 委任されたアクセス許可とアプリケーションのアクセス許可の詳細については、「アクセス許可の種類」を参照してください。 これらのアクセス許可の詳細については、「アクセス許可のリファレンス」を参照してください。
| アクセス許可の種類 |
最小特権アクセス許可 |
より高い特権のアクセス許可 |
| 委任 (職場または学校のアカウント) |
BackupRestore-Search.Read.All |
注意事項なし。 |
| 委任 (個人用 Microsoft アカウント) |
サポートされていません。 |
サポートされていません。 |
| アプリケーション |
BackupRestore-Search.Read.All |
注意事項なし。 |
HTTP 要求
GET /solutions/backupRestore/restorePoints?$expand=protectionUnit($filter=id eq '{ProtectionUnitID}')&$filter=protectionDateTime lt YYYY-MM-DDTHH:mm:ssZ
オプションのクエリ パラメーター
このメソッドは、このトピックの後半の例に示すように、$expand、$filter、orderByOData クエリ パラメーターをサポートします。
$expandおよび$filterクエリ パラメーターが必要です。
| 名前 |
説明 |
| Authorization |
ベアラー {token}。 必須です。
認証と認可についての詳細をご覧ください。 |
要求本文
このメソッドには、要求本文を指定しません。
応答
成功した場合、このメソッドは 200 OK 応答コードと、応答本文の restorePoint オブジェクトのコレクションを返します。
考えられるエラー応答の一覧については、「 Backup Storage API エラー応答」を参照してください。
例
要求
次の例は要求を示しています。
GET https://graph.microsoft.com/v1.0/solutions/backupRestore/restorePoints?$expand=protectionUnit($filter=id eq 'd234cf54-e0fb-49b7-9c8a-5bcd1439e853')&$filter=protectionDateTime lt 2024-05-12T10:01:00Z
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Solutions.BackupRestore.RestorePoints.GetAsync((requestConfiguration) =>
{
requestConfiguration.QueryParameters.Expand = new string []{ "protectionUnit($filter=id eq 'd234cf54-e0fb-49b7-9c8a-5bcd1439e853')" };
requestConfiguration.QueryParameters.Filter = "protectionDateTime lt 2024-05-12T10:01:00Z";
});
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
// Code snippets are only available for the latest major version. Current major version is $v1.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go"
graphsolutions "github.com/microsoftgraph/msgraph-sdk-go/solutions"
//other-imports
)
requestFilter := "protectionDateTime lt 2024-05-12T10:01:00Z"
requestParameters := &graphsolutions.BackupRestoreRestorePointsRequestBuilderGetQueryParameters{
Expand: [] string {"protectionUnit($filter=id eq 'd234cf54-e0fb-49b7-9c8a-5bcd1439e853')"},
Filter: &requestFilter,
}
configuration := &graphsolutions.BackupRestoreRestorePointsRequestBuilderGetRequestConfiguration{
QueryParameters: requestParameters,
}
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
restorePoints, err := graphClient.Solutions().BackupRestore().RestorePoints().Get(context.Background(), configuration)
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
RestorePointCollectionResponse result = graphClient.solutions().backupRestore().restorePoints().get(requestConfiguration -> {
requestConfiguration.queryParameters.expand = new String []{"protectionUnit($filter=id eq 'd234cf54-e0fb-49b7-9c8a-5bcd1439e853')"};
requestConfiguration.queryParameters.filter = "protectionDateTime lt 2024-05-12T10:01:00Z";
});
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
const options = {
authProvider,
};
const client = Client.init(options);
let restorePoints = await client.api('/solutions/backupRestore/restorePoints')
.filter('protectionDateTime lt 2024-05-12T10:01:00Z')
.expand('protectionUnit($filter=id eq \'d234cf54-e0fb-49b7-9c8a-5bcd1439e853\')')
.get();
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\Solutions\BackupRestore\RestorePoints\RestorePointsRequestBuilderGetRequestConfiguration;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestConfiguration = new RestorePointsRequestBuilderGetRequestConfiguration();
$queryParameters = RestorePointsRequestBuilderGetRequestConfiguration::createQueryParameters();
$queryParameters->expand = ["protectionUnit(\$filter=id eq 'd234cf54-e0fb-49b7-9c8a-5bcd1439e853')"];
$queryParameters->filter = "protectionDateTime lt 2024-05-12T10:01:00Z";
$requestConfiguration->queryParameters = $queryParameters;
$result = $graphServiceClient->solutions()->backupRestore()->restorePoints()->get($requestConfiguration)->wait();
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
Import-Module Microsoft.Graph.BackupRestore
Get-MgSolutionBackupRestorePoint -ExpandProperty "protectionUnit(`$filter=id eq 'd234cf54-e0fb-49b7-9c8a-5bcd1439e853')" -Filter "protectionDateTime lt 2024-05-12T10:01:00Z"
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.solutions.backup_restore.restore_points.restore_points_request_builder import RestorePointsRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
query_params = RestorePointsRequestBuilder.RestorePointsRequestBuilderGetQueryParameters(
expand = ["protectionUnit($filter=id eq 'd234cf54-e0fb-49b7-9c8a-5bcd1439e853')"],
filter = "protectionDateTime lt 2024-05-12T10:01:00Z",
)
request_configuration = RequestConfiguration(
query_parameters = query_params,
)
result = await graph_client.solutions.backup_restore.restore_points.get(request_configuration = request_configuration)
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
応答
次の例は応答を示しています。
注: ここに示す応答オブジェクトは、読みやすさのために短縮されている場合があります。
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "/solutions/backupRestore/restorePoints",
"@odata.nextLink": "https://graph.microsoft.com/v1.0/solutions/backupRestore/restorePoints?$skiptoken=M2UyZDAwMDAwMDMxMzkzYTMyNjQ2MTM0NjMzMjM5NjYzNjY0k2NDUwOTgzMg%3d%3d",
"value": [
{
"@odata.type": "#microsoft.graph.restorePoint",
"id": "cdf4a823-sfde-ki2s-kmsj-clu2nsdkk2as",
"protectionDateTime": "2023-01-01T00:00:00Z",
"expirationDateTime": "2024-01-01T00:00:00Z",
"protectionUnit": {
"@odata.type": "#microsoft.graph.siteProtectionUnit",
"id": "32514d8c-71fe-4d00-a01a-31850bc5b32c",
"siteId": "contoso-jpn.sharepoint.com,da60e844-ba1d-49bc-b4d4-d5e36bae9019,0271110f-634f-4300-a841-3a8a2e851852",
"policyId": "9fec8e78-bce4-4aaf-ab1b-5451cc387264"
},
"tags": "fastRestore" // Newly Added
},
{
"@odata.type": "#microsoft.graph.restorePoint",
"id": "cdf4a823-sfde-ki2s-kmsj-clu2nsdk43as",
"protectionDateTime": "2023-01-01T00:00:00Z",
"expirationDateTime": "2024-01-01T00:00:00Z",
"protectionUnit": {
"@odata.type": "#microsoft.graph.siteProtectionUnit",
"id": "17014d8c-71fe-4d00-a01a-31850bc5b32c",
"siteId": "contoso-jpn.sharepoint.com,da60e844-ba1d-49bc-b4d4-d5e36bae9019,0271110f-634f-4300-a841-3a8a2e851861",
"policyId": "9fec8e78-bce4-4aaf-ab1b-5451cc387264"
},
"tags": "fastRestore" // Newly Added
},
{
"@odata.type": "#microsoft.graph.restorePoint",
"id": "cdf4a823-sfde-ki2s-kmsj-clu2nsdk43ga",
"protectionDateTime": "2023-01-07T00:00:00Z",
"expirationDateTime": "2024-01-07T00:00:00Z",
"protectionUnit": {
"@odata.type": "#microsoft.graph.siteProtectionUnit",
"id": "23014d8c-71fe-4d00-a01a-31850bc5b42a",
"siteId": "contoso-jpn.sharepoint.com,da60e844-ba1d-49bc-b4d4-d5e36bae9019,0271110f-634f-4300-a841-3a8a2e857893",
"policyId": "9fec8e78-bce4-4aaf-ab1b-5451cc387264"
},
"tags": "fastRestore" // Newly Added
}
]
}