Get onPremisesPublishingProfile
名前空間: microsoft.graph
重要
Microsoft Graph のバージョンの /beta API は変更される可能性があります。 実稼働アプリケーションでこれらの API を使用することは、サポートされていません。 API が v1.0 で使用できるかどうかを確認するには、 バージョン セレクターを使用します。
onPremisesPublishingProfile オブジェクトのプロパティとリレーションシップを取得します。
アクセス許可
この API を呼び出すには、次のいずれかのアクセス許可が必要です。アクセス許可の選択方法などの詳細については、「アクセス許可」を参照してください。
| アクセス許可の種類 | アクセス許可 (特権の小さいものから大きいものへ) |
|---|---|
| 委任 (職場または学校のアカウント) | Directory.ReadWrite.All |
| 委任 (個人用 Microsoft アカウント) | サポートされていません。 |
| アプリケーション | サポートされていません。 |
HTTP 要求
GET ~/onPremisesPublishingProfiles/{publishingType}/
オプションのクエリ パラメーター
このメソッドは、応答をカスタマイズするための OData クエリ パラメーターをサポートします。
要求ヘッダー
| 名前 | 説明 |
|---|---|
| Authorization | ベアラー {トークン} |
要求本文
このメソッドには、要求本文を指定しません。
応答
成功した場合、このメソッドは応答コードと、応答本文の 200 OK onPremisesPublishingProfile オブジェクトを返します。
例
要求
要求の例を次に示します。
GET https://graph.microsoft.com/beta/onPremisesPublishingProfiles/provisioning?$expand=publishedResources,agents,agentGroups
応答
応答の例を次に示します。
注: ここに示す応答オブジェクトは、読みやすさのために短縮されている場合があります。
HTTP/1.1 200 OK
{
"publishedResources": [
{
"publishingType": "provisioning",
"displayName": "Demo Provisioning",
"id": "aed0b780-965f-4149-85c5-a8c73e58b67d",
"resourceName": "domain1.contoso.com",
"agentGroups": [
{
"id": "2d55ed41-1619-4848-92bb-0576d3038682",
"displayName": "Group 1"
}
]
}
],
"agents": [
{
"id": "1234b780-965f-4149-85c5-a8c73e58b67d",
"status": "Active",
"machineName": "server 1",
"externalIp": "1.0.0.127",
"agentGroups": [
{
"id": "2d55ed41-1619-4848-92bb-0576d3038682",
"displayName": "Group 1"
}
]
}
],
"agentGroups": [
{
"id": "2d55ed41-1619-4848-92bb-0576d3038682",
"displayName": "Group 1",
"publishingType": "provisioning",
"isDefault": false,
"agents": [
{
"id": "1234b780-965f-4149-85c5-a8c73e58b67d",
"status": "Active"
}
],
"publishedResources": [
{
"displayName": "Demo Provisioning",
"id": "aed0b780-965f-4149-85c5-a8c73e58b67d",
"resourceName": "domain1.contoso.com"
}
]
}
],
"hybridAgentUpdaterConfiguration": {
"deferUpdateDateTime" : "2018-08-12T12:00",
"updateWindow" :
{
"updateWindowStartTime" : "0:00:00",
"updateWindowEndTime" : "23:59:00.0000000"
},
"allowUpdateConfigurationOverride" : false
}
}
フィードバック
フィードバックの送信と表示