ARM Error
ARM OpenAPI (swagger) specs
- RPC-Async-V1-11, RPC-Async-V1-14
Synchronous POST operations must have one of the following combinations of responses - 200 and default ; 204 and default. They also must not have other response codes. Long-running POST operations must have responses with 202 and default return codes. They must also have a 200 return code if only if the final response is intended to have a schema, if not the 200 return code must not be specified. They also must not have other response codes.
Synchronous POST operations must have one of the following combinations of responses - 200 and default ; 204 and default. They also must not have other response codes. Long-running POST operations must have responses with 202 and default return codes. They must also have a 200 return code if only if the final response is intended to have a schema, if not the 200 return code must not be specified. They also must not have other response codes. 202 response for a LRO POST operation must not have a response schema specified.
Synchronous POST operations must have one of the following combinations of responses - 200 and default ; 204 and default. They also must not have other response codes.
For Long-running POST operations:
- Add responses with 202 and default return codes.
- Add 200 response code if only if the final response is intended to have a schema.
- Ensure no other response codes are specified.
- Make sure to define "x-ms-long-running-operation".
- 202 response for a LRO POST operation must not have a response schema specified.
The following would be a valid SYNC POST:
...
"responses": {
"200": {
"description": "Operation completed",
"schema": {
"$ref": "#/definitions/FooResource"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
...
...
"responses": {
"204": {
"description": "No Content",
"schema": {
"$ref": "#/definitions/FooResource"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
...
The following would be a valid ASYNC POST:
...
"responses": {
"202": {
"description": "Operation accepted",
},
"200": {
"description": "Operation completed",
"schema": {
"$ref": "#/definitions/FooResource"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-long-running-operation": true,
...
...
"responses": {
"202": {
"description": "Operation accepted",
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-long-running-operation": true,
...