Skip to content

Commit a628a95

Browse files
committed
Incorporating review comments
1 parent 9db343c commit a628a95

10 files changed

+43
-39
lines changed

api-reference/beta/api/driveprotectionunitsbulkadditionjobs-get.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ GET /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{driveProtect
4040
|Name|Description|
4141
|:---|:---|
4242
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
43-
|Content-Type|application/json|
44-
|Application|application/json|
4543

4644
## Request body
4745

api-reference/beta/api/driveprotectionunitsbulkadditionjobs-post.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,10 @@ POST /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveF
4343
|:---|:---|
4444
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
4545
|Content-Type|application/json|
46-
|Application|application/json|
4746

4847
## Request body
4948

50-
```json
51-
{
52-
"displayName" : "drives-I",
53-
"drives" : ["amala@contoso.com", "conrad@contoso.com", "lothar@contoso.com"],
54-
"directoryObjectIds" : ["1fec4e78-bce4-4aaf-ab1b-5451cc387264"]
55-
}
56-
```
49+
In the request body, include a JSON representation of the [driveProtectionUnitsBulkAdditionJob](../resources/driveprotectionunitsbulkadditionjob.md) object.
5750

5851
## Response
5952

@@ -72,7 +65,15 @@ The following example shows a request.
7265
-->
7366

7467
```http
75-
POST https://graph.microsoft.com/beta/solutions/backupRestore/oneDriveForBusinessProtectionPolicies/71633878-8321-4950-bfaf-ed285bdd1461/driveProtectionUnitsBulkAdditionJobs
68+
POST https://graph.microsoft.com/beta/solutions/backupRestore/oneDriveForBusinessProtectionPolicies/71633878-8321-4950-bfaf-ed285bdd1461/driveProtectionUnitsBulkAdditionJobs
69+
Content-Type: application/json
70+
71+
{
72+
"displayName" : "drives-I",
73+
"drives" : ["amala@contoso.com", "conrad@contoso.com", "lothar@contoso.com"],
74+
"directoryObjectIds" : ["1fec4e78-bce4-4aaf-ab1b-5451cc387264"]
75+
}
76+
7677
```
7778

7879
---

api-reference/beta/api/exchangeprotectionpolicy-list-mailboxprotectionunitsbulkadditionjobs.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Namespace: microsoft.graph
1414
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
1515

1616
Get a list of [mailboxProtectionUnitsBulkAdditionJobs](../resources/mailboxprotectionunitsbulkadditionjob.md) objects associated with an [exchangeProtectionPolicy](../resources/exchangeprotectionpolicy.md).
17-
The `mailboxes`, and `directoryObjectIds` field are deliberately omitted from the response body in order to limit the response size.
1817

1918
[!INCLUDE [national-cloud-support](../../includes/global-only.md)]
2019

@@ -40,8 +39,6 @@ GET /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolic
4039
|Name|Description|
4140
|:---|:---|
4241
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
43-
|Content-Type|application/json|
44-
|Application|application/json|
4542

4643
## Request body
4744

@@ -50,6 +47,7 @@ Don't supply a request body for this method.
5047
## Response
5148

5249
If successful, this method returns a `200 OK` response code and a list of [mailboxProtectionUnitsBulkAdditionJob](../resources/mailboxprotectionunitsbulkadditionjob.md) objects in the response body.
50+
The `mailboxes` and `directoryObjectIds` fields are omitted from the response body in order to limit the response size.
5351

5452
## Examples
5553

api-reference/beta/api/mailboxprotectionunitsbulkadditionjobs-get.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ GET /solutions/backupRestore/exchangeProtectionPolicies/{mailboxProtectionPolicy
3939
|Name|Description|
4040
|:---|:---|
4141
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
42-
|Content-Type|application/json|
43-
|Application|application/json|
4442

4543
## Request body
4644

api-reference/beta/api/mailboxprotectionunitsbulkadditionjobs-post.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,10 @@ POST /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPo
4343
|:---|:---|
4444
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
4545
|Content-Type|application/json|
46-
|Application|application/json|
4746

4847
## Request body
4948

50-
```json
51-
{
52-
"displayName" : "mailboxes-I",
53-
"mailboxes" : ["amala@contoso.com", "conrad@contoso.com", "lothar@contoso.com"],
54-
"directoryObjectIds" : ["1fec4e78-bce4-4aaf-ab1b-5451cc387264"]
55-
}
56-
```
49+
In the request body, include a JSON representation of the [mailboxProtectionUnitsBulkAdditionJob](../resources/mailboxprotectionunitsbulkadditionjob.md) object.
5750

5851
## Response
5952

@@ -73,6 +66,13 @@ The following example shows a request.
7366

7467
```http
7568
POST https://graph.microsoft.com/beta/solutions/backupRestore/exchangeProtectionPolicies/71633878-8321-4950-bfaf-ed285bdd1461/mailboxProtectionUnitsBulkAdditionJobs
69+
Content-Type: application/json
70+
71+
{
72+
"displayName" : "mailboxes-I",
73+
"mailboxes" : ["amala@contoso.com", "conrad@contoso.com", "lothar@contoso.com"],
74+
"directoryObjectIds" : ["1fec4e78-bce4-4aaf-ab1b-5451cc387264"]
75+
}
7676
```
7777

7878
---

api-reference/beta/api/onedriveforbusinessprotectionpolicy-list-driveprotectionunitsbulkadditionjobs.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Namespace: microsoft.graph
1414
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
1515

1616
Get a list of [driveProtectionUnitsBulkAdditionJobs](../resources/driveprotectionunitsbulkadditionjob.md) objects associated with a [oneDriveForBusinessProtectionPolicy](../resources/onedriveforbusinessprotectionpolicy.md).
17-
The `drives`, and `directoryObjectIds` field are deliberately omitted from the response body in order to limit the response size.
1817

1918
[!INCLUDE [national-cloud-support](../../includes/global-only.md)]
2019

@@ -40,16 +39,15 @@ GET /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForB
4039
|Name|Description|
4140
|:---|:---|
4241
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
43-
|Content-Type|application/json|
44-
|Application|application/json|
4542

4643
## Request body
4744

4845
Don't supply a request body for this method.
4946

5047
## Response
5148

52-
If successful, this method returns a `200 OK` response code and a list of [driveProtectionUnitsBulkAdditionJob](../resources/driveprotectionunitsbulkadditionjob.md) objects in the response body.
49+
If successful, this method returns a `200 OK` response code and a list of [driveProtectionUnitsBulkAdditionJob](../resources/driveprotectionunitsbulkadditionjob.md) objects in the response body.
50+
The `drives` and `directoryObjectIds` fields are omitted from the response body in order to limit the response size.
5351

5452
## Examples
5553

api-reference/beta/api/sharepointprotectionpolicy-list-siteprotectionunitsbulkadditionjobs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Namespace: microsoft.graph
1414
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
1515

1616
Get a list of [siteProtectionUnitsBulkAdditionJobs](../resources/siteprotectionunitsbulkadditionjob.md) objects associated with a [sharePointProtectionPolicy](../resources/sharepointprotectionpolicy.md).
17-
The `siteWebUrls`, and `siteIds` values are deliberately omitted from the response body in order to limit the response size.
1817

1918
[!INCLUDE [national-cloud-support](../../includes/global-only.md)]
2019

@@ -48,6 +47,7 @@ Don't supply a request body for this method.
4847
## Response
4948

5049
If successful, this method returns a `200 OK` response code and a list of [siteProtectionUnitsBulkAdditionJob](../resources/siteprotectionunitsbulkadditionjob.md) object in the response body.
50+
The `siteWebUrls` and `siteIds` values are omitted from the response body in order to limit the response size.
5151

5252
## Examples
5353

api-reference/beta/api/siteprotectionunitsbulkadditionjobs-get.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ GET /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionP
3939
|Name|Description|
4040
|:---|:---|
4141
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
42-
|Content-Type|application/json|
43-
|Application|application/json|
4442

4543
## Request body
4644

api-reference/beta/api/siteprotectionunitsbulkadditionjobs-post.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,10 @@ POST /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtecti
4444
|:---|:---|
4545
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
4646
|Content-Type|application/json|
47-
|Application|application/json|
4847

4948
## Request body
5049

51-
```json
52-
{
53-
"displayName" : "Sites-I",
54-
"siteWebUrls" : [ "https://contoso.sharepoint.com/test1", "https://contoso.sharepoint.com/test2", "https://contoso.sharepoint.com/test4", "https://contoso.sharepoint.com/test5" ],
55-
"siteIds" : [ "contoso.sharepoint.com,da60e844-ba1d-49bc-b4d4-d5e36bae9019,712a596e-90a1-49e3-9b48-bfa80bee4532", "contoso.sharepoint.com,ab60e844-ba1d-49bc-b4d4-d5e36bae9019,832a596e-90a1-49e3-9b48-bfa80bee4532"]
56-
}
57-
```
50+
In the request body, include a JSON representation of the [siteProtectionUnitsBulkAdditionJob](../resources/siteprotectionunitsbulkadditionjob.md) object.
5851

5952
## Response
6053

@@ -74,6 +67,13 @@ The following example shows a request.
7467

7568
```http
7669
POST https://graph.microsoft.com/beta/solutions/backupRestore/sharePointProtectionPolicies/71633878-8321-4950-bfaf-ed285bdd1461/siteProtectionUnitsBulkAdditionJobs
70+
Content-Type: application/json
71+
72+
{
73+
"displayName" : "Sites-I",
74+
"siteWebUrls" : [ "https://contoso.sharepoint.com/test1", "https://contoso.sharepoint.com/test2", "https://contoso.sharepoint.com/test4", "https://contoso.sharepoint.com/test5" ],
75+
"siteIds" : [ "contoso.sharepoint.com,da60e844-ba1d-49bc-b4d4-d5e36bae9019,712a596e-90a1-49e3-9b48-bfa80bee4532", "contoso.sharepoint.com,ab60e844-ba1d-49bc-b4d4-d5e36bae9019,832a596e-90a1-49e3-9b48-bfa80bee4532"]
76+
}
7777
```
7878

7979
---

concepts/whats-new-overview.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ Updated the [chatMessage: delta](/graph/api/chatmessage-delta) method to use a n
3737

3838
### Backup storage
3939

40+
Added new endpoints for bulk addition of protection units into a protection policy:
41+
- [Create siteProtectionUnitsBulkAdditionJob](/graph/api/siteprotectionunitsbulkadditionjobs-post?view=graph-rest-beta&preserve-view=true)
42+
- [List siteProtectionUnitsBulkAdditionJobs](/graph/api/sharepointprotectionpolicy-list-siteprotectionunitsbulkadditionjobs?view=graph-rest-beta&preserve-view=true)
43+
- [Get siteProtectionUnitsBulkAdditionJob](/graph/api/siteprotectionunitsbulkadditionjobs-get?view=graph-rest-beta&preserve-view=true)
44+
45+
- [Create mailboxProtectionUnitsBulkAdditionJob](/graph/api/mailboxprotectionunitsbulkadditionjobs-post?view=graph-rest-beta&preserve-view=true)
46+
- [List mailboxProtectionUnitsBulkAdditionJobs](/graph/api/onedriveforbusinessprotectionpolicy-list-driveprotectionunitsbulkadditionjobs?view=graph-rest-beta&preserve-view=true)
47+
- [Get mailboxProtectionUnitsBulkAdditionJob](/graph/api/mailboxprotectionunitsbulkadditionjobs-get?view=graph-rest-beta&preserve-view=true)
48+
49+
- [Create driveProtectionUnitsBulkAdditionJob](/graph/api/driveprotectionunitsbulkadditionjobs-post?view=graph-rest-beta&preserve-view=true)
50+
- [List driveProtectionUnitsBulkAdditionJobs](/graph/api/exchangeprotectionpolicy-list-mailboxprotectionunitsbulkadditionjobs?view=graph-rest-beta&preserve-view=true)
51+
- [Get driveProtectionUnitsBulkAdditionJob](/graph/api/driveprotectionunitsbulkadditionjobs-get?view=graph-rest-beta&preserve-view=true)
52+
4053
Updated the endpoints of the following methods:
4154
- [List driveProtectionUnits](/graph/api/backuprestoreroot-list-driveprotectionunits?view=graph-rest-beta&preserve-view=true)
4255
- [List mailboxProtectionUnits](/graph/api/backuprestoreroot-list-mailboxprotectionunits?view=graph-rest-beta&preserve-view=true)

0 commit comments

Comments
 (0)