Skip to content

Commit 75b484e

Browse files
authored
operation constraint
1 parent 8a18f36 commit 75b484e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

graph/patterns/longRunningOperations.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,14 @@ presentation makes things simpler for our users and tooling chain.
5050
In general, Microsoft Graph API guidelines for LRO follow [Microsoft REST API
5151
Guidelines](https://github.com/microsoft/api-guidelines/blob/vNext/Guidelines.md#13-long-running-operations).
5252

53-
A single deviation from the base guidelines is that Microsoft Graph API standards require that you use the following response headers:
53+
There are some deviations from the base guidelines where Microsoft Graph API standards require that you do one of the following:
5454

55-
- The Content-Location header indicates the location of a RELO resource.
55+
- For RELO pattern you should return the Content-Location header that indicates the location of the resource.
5656
- The API response says the targeted resource is being created by returning a 201 status code and the resource URI is provided in the Content-Location header, but the response indicates that the request is not completed by including "Provisioning" status.
5757

58-
- The Location header indicates the location of a new stepwise operation LRO resource.
58+
- For LRO pattern you should return the Location header that indicates the location of a new stepwise operation resource.
5959
- The API response says the operation resource is being created at the URL provided in the Location header and indicates that the request is not completed by including a 202 status code.
60+
- Microsoft Graph doesn’t allow tenant wide operation resources therefore stepwise operations is often modeled as a navigation property on the target resource.
6061

6162
## When to use this pattern
6263

0 commit comments

Comments
 (0)