Skip to content

Commit c7467f9

Browse files
committed
Update longRunningOperations.md
1 parent 19c9472 commit c7467f9

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

graph/patterns/longRunningOperations.md

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -261,50 +261,4 @@ HTTP/1.1 202 Accepted
261261
262262
Location: https://graph.microsoft.com/v1.0/storage/operations/123
263263
264-
```
265-
### Trigger a long running action using the Stepwise Operation in hybrid model
266-
267-
The server responds synchronously to POST requests to collections that create a resource even if the resources aren't fully created when the response is generated. The response includes a representation of the incomplete resource that will eventually exist at the URL in the Content-Location header and the Location header with an operation resource for further polling.
268-
269-
```
270-
POST https://graph.microsoft.com/v1.0/storage/databases/
271-
272-
{
273-
"displayName": "Retail DB",
274-
}
275-
```
276-
277-
The API responds synchronously that the database has been created and indicates
278-
that the provisioning operation is not fully completed by including the
279-
Content-Location header and status property in the response payload.
280-
281-
```
282-
HTTP/1.1 202 Accepted
283-
Content-Location: https://graph.microsoft.com/v1.0/storage/databases/db1
284-
Location: https://graph.microsoft.com/v1.0/storage/operations/123
285-
{
286-
"id": "db1",
287-
"displayName": "Retail DB",
288-
"status": "provisioning",
289-
[ … other fields for "database" …]
290-
}
291-
```
292-
The client waits for a period of time then invokes another request to try to get the database status.
293-
294-
```
295-
296-
GET https://graph.microsoft.com/v1.0/storage/operations/123
297-
```
298-
If resource creation is successful then the server responds with a "status:succeeded" and the resource
299-
location.
300-
301-
```
302-
HTTP/1.1 200 OK
303-
304-
{
305-
"createdDateTime": "2015-06-19T12-01-03.45Z",
306-
"lastActionDateTime": "2015-06-19T12-06-03.0024Z",
307-
"status": "succeeded",
308-
"resourceLocation": "https://graph.microsoft.com/v1.0/storage/databases/db1"
309-
}
310264
```

0 commit comments

Comments
 (0)