名前空間: microsoft.graph
重要
Microsoft Graph の /beta
バージョンの API は変更される可能性があります。 実稼働アプリケーションでこれらの API を使用することは、サポートされていません。 v1.0 で API を使用できるかどうかを確認するには、Version セレクターを使用します。
Viva Goals organization内の goalsExportJob オブジェクトとそのプロパティの一覧を取得します。
この API は、次の国内クラウド展開で使用できます。
グローバル サービス |
米国政府機関 L4 |
米国政府機関 L5 (DOD) |
21Vianet が運営する中国 |
✅ |
❌ |
❌ |
❌ |
アクセス許可
この API の最小特権としてマークされているアクセス許可またはアクセス許可を選択します。
アプリで必要な場合にのみ、より高い特権のアクセス許可またはアクセス許可を使用します。 委任されたアクセス許可とアプリケーションのアクセス許可の詳細については、「 アクセス許可の種類」を参照してください。 これらのアクセス許可の詳細については、 アクセス許可のリファレンスを参照してください。
アクセス許可の種類 |
最小特権アクセス許可 |
特権の高いアクセス許可 |
委任 (職場または学校のアカウント) |
Goals-Export.Read.All |
注意事項なし。 |
委任 (個人用 Microsoft アカウント) |
サポートされていません。 |
サポートされていません。 |
アプリケーション |
サポートされていません。 |
サポートされていません。 |
HTTP 要求
GET /employeeExperience/goals/exportJobs
オプションのクエリ パラメーター
このメソッドは、応答のカスタマイズに $filter
役立つ OData クエリ パラメーターをサポートします。
$filter
OData クエリ パラメーターは、goalsOrganizationId プロパティでのみサポートされています。
一般的な情報については、「OData クエリ パラメーター」を参照してください。
名前 |
説明 |
Authorization |
ベアラー {token}。 必須です。
認証と承認の詳細については、こちらをご覧ください。 |
要求本文
このメソッドには、要求本文を指定しません。
応答
成功した場合、このメソッドは 200 OK
応答コードと、応答本文の goalsExportJob オブジェクトのコレクションを返します。
例
例 1: exportJobs を一覧表示する
要求
次の例は要求を示しています。
GET https://graph.microsoft.com/beta/employeeExperience/goals/exportJobs
// 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.EmployeeExperience.Goals.ExportJobs.GetAsync();
mgc-beta employee-experience goals export-jobs list
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
//other-imports
)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
exportJobs, err := graphClient.EmployeeExperience().Goals().ExportJobs().Get(context.Background(), nil)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
GoalsExportJobCollectionResponse result = graphClient.employeeExperience().goals().exportJobs().get();
const options = {
authProvider,
};
const client = Client.init(options);
let exportJobs = await client.api('/employeeExperience/goals/exportJobs')
.version('beta')
.get();
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$result = $graphServiceClient->employeeExperience()->goals()->exportJobs()->get()->wait();
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
result = await graph_client.employee_experience.goals.export_jobs.get()
応答
次の例は応答を示しています。
注: ここに示す応答オブジェクトは、読みやすさのために短縮されている場合があります。
HTTP/1.1 200 OK
Content-Type: application/json
{
"value": [
{
"@odata.type": "#microsoft.graph.goalsExportJob",
"id": "eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiI4MzIxMjc1In0",
"status": "succeeded",
"goalsOrganizationId": "9ab0fcab-c1d4-4b26-963b-a3c33155f853",
"explorerViewId": "2c8b5fd3-67c3-4677-8eb3-e0066c4d2fd7",
"resourceLocation": "https://graph.microsoft.com/beta/employeeexperience/goals/exportJobs/eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiI4MzIxMjc1In0/content",
"createdDateTime": "2023-06-19T12-06-03.0024Z",
"expirationDateTime": "2023-07-29T12-06-03.0024Z"
}
]
}
例 2: に基づいて応答をフィルター処理する goalsOrganizationId
要求
次の例は要求を示しています。
GET https://graph.microsoft.com/beta/employeeexperience/goals/exportJobs?$filter= goalsOrganizationId eq '3d9a8150-90fd-42bd-9777-25ba783d4a05'
// 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.EmployeeExperience.Goals.ExportJobs.GetAsync((requestConfiguration) =>
{
requestConfiguration.QueryParameters.Filter = " goalsOrganizationId eq '3d9a8150-90fd-42bd-9777-25ba783d4a05'";
});
mgc-beta employee-experience goals export-jobs list --filter " goalsOrganizationId eq '3d9a8150-90fd-42bd-9777-25ba783d4a05'"
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
graphemployeeexperience "github.com/microsoftgraph/msgraph-beta-sdk-go/employeeexperience"
//other-imports
)
requestFilter := " goalsOrganizationId eq '3d9a8150-90fd-42bd-9777-25ba783d4a05'"
requestParameters := &graphemployeeexperience.GoalsExportJobsRequestBuilderGetQueryParameters{
Filter: &requestFilter,
}
configuration := &graphemployeeexperience.GoalsExportJobsRequestBuilderGetRequestConfiguration{
QueryParameters: requestParameters,
}
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
exportJobs, err := graphClient.EmployeeExperience().Goals().ExportJobs().Get(context.Background(), configuration)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
GoalsExportJobCollectionResponse result = graphClient.employeeExperience().goals().exportJobs().get(requestConfiguration -> {
requestConfiguration.queryParameters.filter = " goalsOrganizationId eq '3d9a8150-90fd-42bd-9777-25ba783d4a05'";
});
const options = {
authProvider,
};
const client = Client.init(options);
let exportJobs = await client.api('/employeeexperience/goals/exportJobs')
.version('beta')
.filter(' goalsOrganizationId eq \'3d9a8150-90fd-42bd-9777-25ba783d4a05\'')
.get();
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\EmployeeExperience\Goals\ExportJobs\ExportJobsRequestBuilderGetRequestConfiguration;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestConfiguration = new ExportJobsRequestBuilderGetRequestConfiguration();
$queryParameters = ExportJobsRequestBuilderGetRequestConfiguration::createQueryParameters();
$queryParameters->filter = " goalsOrganizationId eq '3d9a8150-90fd-42bd-9777-25ba783d4a05'";
$requestConfiguration->queryParameters = $queryParameters;
$result = $graphServiceClient->employeeExperience()->goals()->exportJobs()->get($requestConfiguration)->wait();
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.employee_experience.goals.export_jobs.export_jobs_request_builder import ExportJobsRequestBuilder
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 = ExportJobsRequestBuilder.ExportJobsRequestBuilderGetQueryParameters(
filter = " goalsOrganizationId eq '3d9a8150-90fd-42bd-9777-25ba783d4a05'",
)
request_configuration = RequestConfiguration(
query_parameters = query_params,
)
result = await graph_client.employee_experience.goals.export_jobs.get(request_configuration = request_configuration)
応答
次の例は応答を示しています。
注: ここに示す応答オブジェクトは、読みやすさのために短縮されている場合があります。
HTTP/1.1 200 OK
Content-Type: application/json
{
"value": [
{
"@odata.type": "#microsoft.graph.goalsExportJob",
"id": "fyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiI4MzIxMjc1In0",
"status": "succeeded",
"goalsOrganizationId": "3d9a8150-90fd-42bd-9777-25ba783d4a05",
"explorerViewId": "2c8b5fd3-67c3-4677-8eb3-e0066c4d2fd7",
"resourceLocation": "https://graph.microsoft.com/beta/employeeexperience/goals/exportJobs/fyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiI4MzIxMjc1In0/content",
"createdDateTime": "2023-06-19T12-06-03.0024Z",
"expirationDateTime": "2023-07-29T12-06-03.0024Z"
}
]
}
例 3: 以外のプロパティに基づいて応答をフィルター処理する goalsOrganizationId
要求
次の例は要求を示しています。
GET https://graph.microsoft.com/beta/employeeexperience/goals/exportJobs?$filter= explorerViewId eq ‘9ab0fcab-c1d4-4b26-963b-a3c33155f853’
// 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.EmployeeExperience.Goals.ExportJobs.GetAsync((requestConfiguration) =>
{
requestConfiguration.QueryParameters.Filter = " explorerViewId eq ‘9ab0fcab-c1d4-4b26-963b-a3c33155f853’";
});
mgc-beta employee-experience goals export-jobs list --filter " explorerViewId eq ‘9ab0fcab-c1d4-4b26-963b-a3c33155f853’"
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
graphemployeeexperience "github.com/microsoftgraph/msgraph-beta-sdk-go/employeeexperience"
//other-imports
)
requestFilter := " explorerViewId eq ‘9ab0fcab-c1d4-4b26-963b-a3c33155f853’"
requestParameters := &graphemployeeexperience.GoalsExportJobsRequestBuilderGetQueryParameters{
Filter: &requestFilter,
}
configuration := &graphemployeeexperience.GoalsExportJobsRequestBuilderGetRequestConfiguration{
QueryParameters: requestParameters,
}
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
exportJobs, err := graphClient.EmployeeExperience().Goals().ExportJobs().Get(context.Background(), configuration)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
GoalsExportJobCollectionResponse result = graphClient.employeeExperience().goals().exportJobs().get(requestConfiguration -> {
requestConfiguration.queryParameters.filter = " explorerViewId eq ‘9ab0fcab-c1d4-4b26-963b-a3c33155f853’";
});
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\EmployeeExperience\Goals\ExportJobs\ExportJobsRequestBuilderGetRequestConfiguration;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestConfiguration = new ExportJobsRequestBuilderGetRequestConfiguration();
$queryParameters = ExportJobsRequestBuilderGetRequestConfiguration::createQueryParameters();
$queryParameters->filter = " explorerViewId eq ‘9ab0fcab-c1d4-4b26-963b-a3c33155f853’";
$requestConfiguration->queryParameters = $queryParameters;
$result = $graphServiceClient->employeeExperience()->goals()->exportJobs()->get($requestConfiguration)->wait();
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.employee_experience.goals.export_jobs.export_jobs_request_builder import ExportJobsRequestBuilder
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 = ExportJobsRequestBuilder.ExportJobsRequestBuilderGetQueryParameters(
filter = " explorerViewId eq ‘9ab0fcab-c1d4-4b26-963b-a3c33155f853’",
)
request_configuration = RequestConfiguration(
query_parameters = query_params,
)
result = await graph_client.employee_experience.goals.export_jobs.get(request_configuration = request_configuration)
応答
次の例は応答を示しています。
注: ここに示す応答オブジェクトは、読みやすさのために短縮されている場合があります。
HTTP/1.1 400 Bad Request
Content-type: application/json
{
"error": {
"code": "badRequest",
"message": "Invalid filter keys found: explorerViewId",
"innerError": {
"code": "unknown",
"date": "String (timestamp)",
"request-id": "String",
"client-request-id": "String"
}
}
}