You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azure/Guidelines.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -786,11 +786,11 @@ a [status monitor](https://datatracker.ietf.org/doc/html/rfc7231#section-6.3.3)
786
786
787
787
:white_check_mark:**DO** generate an ID (typically a GUID) for the status monitor if the `Operation-Id` header was not passed by the client.
788
788
789
-
:white_check_mark:**DO** fail a request with a `400-BadRequest` if the `Operation-Id` header that matches an outstanding operation unless the request is identical to the prior request (a retry scenario).
789
+
:white_check_mark:**DO** fail a request with a `400-BadRequest` if the `Operation-Id` header matches an outstanding operation unless the request is identical to the prior request (a retry scenario).
790
790
791
791
:white_check_mark:**DO** perform as much validation as practical when initiating the operation to alert clients of errors early.
792
792
793
-
:white_check_mark:**DO** return a `202-Accepted` status code from the request that initiates an LRO if the processing of the operation was successfully initiated (except for "create (PUT) with additional processing" type LRO).
793
+
:white_check_mark:**DO** return a `202-Accepted` status code from the request that initiates an LRO if the processing of the operation was successfully initiated (except for "PUT with additional processing" type LRO).
794
794
795
795
:warning:**YOU SHOULD NOT** return any other `2xx` status code from the initial request of an LRO -- return `202-Accepted` and a status monitor even if processing was completed before the initiating request returns.
796
796
@@ -800,9 +800,9 @@ a [status monitor](https://datatracker.ietf.org/doc/html/rfc7231#section-6.3.3)
800
800
801
801
:white_check_mark:**DO** return a status monitor in the response body as described in [Status and results of long-running operations](#status-and-results-of-long-running-operations).
802
802
803
-
#### Create (PUT) operation with additional long-running processing
803
+
#### PUT operation with additional long-running processing
804
804
805
-
For a create (PUT) with additional long-running processing:
805
+
For a PUT (create or replace) with additional long-running processing:
806
806
807
807
:white_check_mark:**DO** allow the client to pass an `Operation-Id` header with a ID for the status monitor for the operation.
808
808
@@ -812,7 +812,7 @@ For a create (PUT) with additional long-running processing:
812
812
813
813
:white_check_mark:**DO** perform as much validation as practical when initiating the operation to alert clients of errors early.
814
814
815
-
:white_check_mark:**DO** return a `201-Created` status code from the initial request with a representation of the resource if the resource was created successfully.
815
+
:white_check_mark:**DO** return a `201-Created` status code for create or `200-OK` for replace from the initial request with a representation of the resource if the resource was created successfully.
816
816
817
817
:white_check_mark:**DO** include an `Operation-Id` header in the response with the ID of the status monitor for the operation.
0 commit comments