From 19945343d949e856773162cd2d60803bf411fe30 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Tue, 3 Dec 2024 09:50:21 -0800 Subject: [PATCH] [WIP] update to oxidecomputer/dropshot#1180 --- Cargo.lock | 12 +- Cargo.toml | 5 + clickhouse-admin/src/clickhouse_cli.rs | 3 +- clickhouse-admin/src/clickward.rs | 3 +- cockroach-admin/src/cockroach_cli.rs | 3 +- cockroach-admin/src/context.rs | 2 +- common/src/api/external/error.rs | 19 +- dns-server/src/http_server.rs | 4 +- dns-server/src/lib.rs | 2 +- dns-server/tests/basic_test.rs | 2 +- gateway/src/error.rs | 18 +- gateway/src/http_entrypoints.rs | 2 +- gateway/src/lib.rs | 2 +- illumos-utils/src/lib.rs | 2 +- installinator-api/src/lib.rs | 8 +- internal-dns/resolver/src/resolver.rs | 2 +- openapi/bootstrap-agent.json | 166 +- openapi/clickhouse-admin-keeper.json | 142 +- openapi/clickhouse-admin-server.json | 90 +- openapi/clickhouse-admin-single.json | 62 +- openapi/cockroach-admin.json | 90 +- openapi/dns-server.json | 62 +- openapi/gateway.json | 792 +++- openapi/installinator.json | 62 +- openapi/nexus-internal.json | 1090 +++-- openapi/nexus.json | 5360 ++++++++++++++++++------ openapi/oximeter.json | 88 +- openapi/repo-depot.json | 38 +- openapi/sled-agent.json | 1462 +++++-- openapi/wicketd.json | 644 ++- oximeter/instruments/src/http.rs | 7 +- oximeter/producer/src/lib.rs | 4 +- sled-agent/src/sim/storage.rs | 6 +- wicketd/src/http_entrypoints.rs | 20 +- wicketd/src/lib.rs | 2 +- 35 files changed, 7810 insertions(+), 2466 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d8a1d33a6b..cd1788c04c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2601,8 +2601,7 @@ dependencies = [ [[package]] name = "dropshot" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50976b6bac0894e689bb8ce0e2e5892dfeedb0876408bc806f0582d81824a3b5" +source = "git+https://github.com/oxidecomputer/dropshot?branch=eliza/custom-error-httpresponse-result#c86d36881310d5c005972fdb83f77e0e4853278d" dependencies = [ "async-stream", "async-trait", @@ -2666,8 +2665,7 @@ dependencies = [ [[package]] name = "dropshot_endpoint" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8371ca3d0ecdd13df8a00acb66312633fc66a5e412076ccbc414238536f8290" +source = "git+https://github.com/oxidecomputer/dropshot?branch=eliza/custom-error-httpresponse-result#c86d36881310d5c005972fdb83f77e0e4853278d" dependencies = [ "heck 0.5.0", "proc-macro2", @@ -10374,9 +10372,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.132" +version = "1.0.133" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03" +checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377" dependencies = [ "itoa", "memchr", @@ -11006,7 +11004,7 @@ version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "03c3c6b7927ffe7ecaa769ee0e3994da3b8cafc8f444578982c83ecb161af917" dependencies = [ - "heck 0.5.0", + "heck 0.4.1", "proc-macro2", "quote", "syn 2.0.87", diff --git a/Cargo.toml b/Cargo.toml index c0f4be8bae..6bcb94c5cf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -886,3 +886,8 @@ path = "workspace-hack" [patch."https://github.com/oxidecomputer/omicron"] omicron-uuid-kinds = { path = "uuid-kinds" } omicron-common = { path = "common" } + +# /!\ REMOVE BEFORE FLIGHT: Temporary patch to test dropshot breaking changes +[patch.crates-io.dropshot] +git = 'https://github.com/oxidecomputer/dropshot' +branch = 'eliza/custom-error-httpresponse-result' diff --git a/clickhouse-admin/src/clickhouse_cli.rs b/clickhouse-admin/src/clickhouse_cli.rs index 588ebe4290..a6f5cc0e0d 100644 --- a/clickhouse-admin/src/clickhouse_cli.rs +++ b/clickhouse-admin/src/clickhouse_cli.rs @@ -55,7 +55,8 @@ impl From for HttpError { | ClickhouseCliError::ExecutionError(_) => { let message = InlineErrorChain::new(&err).to_string(); HttpError { - status_code: http::StatusCode::INTERNAL_SERVER_ERROR, + status_code: + dropshot::ErrorStatusCode::INTERNAL_SERVER_ERROR, error_code: Some(String::from("Internal")), external_message: message.clone(), internal_message: message, diff --git a/clickhouse-admin/src/clickward.rs b/clickhouse-admin/src/clickward.rs index ca5d3df3de..9703dfa73b 100644 --- a/clickhouse-admin/src/clickward.rs +++ b/clickhouse-admin/src/clickward.rs @@ -23,7 +23,8 @@ impl From for HttpError { ClickwardError::Failure { .. } => { let message = InlineErrorChain::new(&err).to_string(); HttpError { - status_code: http::StatusCode::INTERNAL_SERVER_ERROR, + status_code: + dropshot::ErrorStatusCode::INTERNAL_SERVER_ERROR, error_code: Some(String::from("Internal")), external_message: message.clone(), internal_message: message, diff --git a/cockroach-admin/src/cockroach_cli.rs b/cockroach-admin/src/cockroach_cli.rs index ab1d470fe0..d0121904b0 100644 --- a/cockroach-admin/src/cockroach_cli.rs +++ b/cockroach-admin/src/cockroach_cli.rs @@ -45,7 +45,8 @@ impl From for HttpError { | CockroachCliError::ParseOutput { .. } => { let message = InlineErrorChain::new(&err).to_string(); HttpError { - status_code: http::StatusCode::INTERNAL_SERVER_ERROR, + status_code: + dropshot::ErrorStatusCode::INTERNAL_SERVER_ERROR, error_code: Some(String::from("Internal")), external_message: message.clone(), internal_message: message, diff --git a/cockroach-admin/src/context.rs b/cockroach-admin/src/context.rs index 4ba387bb6b..98cf514352 100644 --- a/cockroach-admin/src/context.rs +++ b/cockroach-admin/src/context.rs @@ -53,7 +53,7 @@ impl ServerContext { {err:#}", ); Err(HttpError { - status_code: http::StatusCode::SERVICE_UNAVAILABLE, + status_code: dropshot::ErrorStatusCode::SERVICE_UNAVAILABLE, error_code: None, external_message: message.clone(), internal_message: message, diff --git a/common/src/api/external/error.rs b/common/src/api/external/error.rs index 7e5f773b5d..ec888a302d 100644 --- a/common/src/api/external/error.rs +++ b/common/src/api/external/error.rs @@ -413,7 +413,7 @@ impl From for HttpError { }; HttpError::for_client_error( Some(String::from("ObjectNotFound")), - http::StatusCode::NOT_FOUND, + dropshot::ClientErrorStatusCode::NOT_FOUND, format!("not found: {}", message), ) } @@ -427,7 +427,7 @@ impl From for HttpError { } Error::Unauthenticated { internal_message } => HttpError { - status_code: http::StatusCode::UNAUTHORIZED, + status_code: dropshot::ErrorStatusCode::UNAUTHORIZED, // TODO-polish We may want to rethink this error code. This is // what HTTP calls it, but it's confusing. error_code: Some(String::from("Unauthorized")), @@ -441,7 +441,7 @@ impl From for HttpError { let (internal_message, external_message) = message.into_internal_external(); HttpError { - status_code: http::StatusCode::BAD_REQUEST, + status_code: dropshot::ErrorStatusCode::BAD_REQUEST, error_code: Some(String::from("InvalidRequest")), external_message, internal_message, @@ -452,7 +452,7 @@ impl From for HttpError { let (internal_message, external_message) = message.into_internal_external(); HttpError { - status_code: http::StatusCode::BAD_REQUEST, + status_code: dropshot::ErrorStatusCode::BAD_REQUEST, error_code: Some(String::from("InvalidValue")), external_message: format!( "unsupported value for \"{}\": {}", @@ -464,7 +464,7 @@ impl From for HttpError { Error::Forbidden => HttpError::for_client_error( Some(String::from("Forbidden")), - http::StatusCode::FORBIDDEN, + dropshot::ClientErrorStatusCode::FORBIDDEN, String::from("Forbidden"), ), @@ -485,7 +485,8 @@ impl From for HttpError { // Need to construct an `HttpError` explicitly to present both // an internal and an external message. HttpError { - status_code: http::StatusCode::INSUFFICIENT_STORAGE, + status_code: + dropshot::ErrorStatusCode::INSUFFICIENT_STORAGE, error_code: Some(String::from("InsufficientCapacity")), external_message: format!( "Insufficient capacity: {}", @@ -503,7 +504,7 @@ impl From for HttpError { let (internal_message, external_message) = message.into_internal_external(); HttpError { - status_code: http::StatusCode::CONFLICT, + status_code: dropshot::ErrorStatusCode::CONFLICT, error_code: Some(String::from("Conflict")), external_message, internal_message, @@ -514,7 +515,7 @@ impl From for HttpError { let (internal_message, external_message) = message.into_internal_external(); HttpError { - status_code: http::StatusCode::NOT_FOUND, + status_code: dropshot::ErrorStatusCode::NOT_FOUND, error_code: Some(String::from("Not Found")), external_message, internal_message, @@ -523,7 +524,7 @@ impl From for HttpError { Error::Gone => HttpError::for_client_error( Some(String::from("Gone")), - http::StatusCode::GONE, + dropshot::ClientErrorStatusCode::GONE, String::from("Gone"), ), } diff --git a/dns-server/src/http_server.rs b/dns-server/src/http_server.rs index 87d576258f..edd10d0db6 100644 --- a/dns-server/src/http_server.rs +++ b/dns-server/src/http_server.rs @@ -64,7 +64,7 @@ impl From for dropshot::HttpError { let message = format!("{:#}", error); match &error { UpdateError::BadUpdateGeneration { .. } => dropshot::HttpError { - status_code: http::StatusCode::CONFLICT, + status_code: dropshot::ErrorStatusCode::CONFLICT, error_code: Some(String::from( ERROR_CODE_BAD_UPDATE_GENERATION, )), @@ -73,7 +73,7 @@ impl From for dropshot::HttpError { }, UpdateError::UpdateInProgress { .. } => dropshot::HttpError { - status_code: http::StatusCode::CONFLICT, + status_code: dropshot::ErrorStatusCode::CONFLICT, error_code: Some(String::from(ERROR_CODE_UPDATE_IN_PROGRESS)), external_message: message.clone(), internal_message: message, diff --git a/dns-server/src/lib.rs b/dns-server/src/lib.rs index b851e35541..d509524ee2 100644 --- a/dns-server/src/lib.rs +++ b/dns-server/src/lib.rs @@ -137,7 +137,7 @@ impl TransientServer { &dns_server::Config { bind_address: dns_bind_address }, &dropshot::ConfigDropshot { bind_address: "[::1]:0".parse().unwrap(), - request_body_max_bytes: 4 * 1024 * 1024, + default_request_body_max_bytes: 4 * 1024 * 1024, default_handler_task_mode: dropshot::HandlerTaskMode::Detached, log_headers: vec![], }, diff --git a/dns-server/tests/basic_test.rs b/dns-server/tests/basic_test.rs index 30026dc08c..06df402bca 100644 --- a/dns-server/tests/basic_test.rs +++ b/dns-server/tests/basic_test.rs @@ -508,7 +508,7 @@ fn test_config( dns_server::storage::Config { storage_path, keep_old_generations: 3 }; let config_dropshot = dropshot::ConfigDropshot { bind_address: "[::1]:0".to_string().parse().unwrap(), - request_body_max_bytes: 1024, + default_request_body_max_bytes: 1024, default_handler_task_mode: HandlerTaskMode::Detached, log_headers: vec![], }; diff --git a/gateway/src/error.rs b/gateway/src/error.rs index ee148e0c98..7546a01c88 100644 --- a/gateway/src/error.rs +++ b/gateway/src/error.rs @@ -114,7 +114,7 @@ impl From for HttpError { )), .. } => http_err_with_message( - http::StatusCode::SERVICE_UNAVAILABLE, + dropshot::ErrorStatusCode::SERVICE_UNAVAILABLE, "UpdateSlotBusy", InlineErrorChain::new(&error).to_string(), ), @@ -125,29 +125,29 @@ impl From for HttpError { )), .. } => http_err_with_message( - http::StatusCode::SERVICE_UNAVAILABLE, + dropshot::ErrorStatusCode::SERVICE_UNAVAILABLE, "UpdateInProgress", InlineErrorChain::new(&error).to_string(), ), SpCommsError::SpAddressUnknown(_) => http_err_with_message( - http::StatusCode::SERVICE_UNAVAILABLE, + dropshot::ErrorStatusCode::SERVICE_UNAVAILABLE, "SpAddressUnknown", InlineErrorChain::new(&error).to_string(), ), SpCommsError::Timeout { .. } => http_err_with_message( - http::StatusCode::SERVICE_UNAVAILABLE, + dropshot::ErrorStatusCode::SERVICE_UNAVAILABLE, "Timeout ", InlineErrorChain::new(&error).to_string(), ), SpCommsError::SpCommunicationFailed { .. } => { http_err_with_message( - http::StatusCode::SERVICE_UNAVAILABLE, + dropshot::ErrorStatusCode::SERVICE_UNAVAILABLE, "SpCommunicationFailed", InlineErrorChain::new(&error).to_string(), ) } SpCommsError::UpdateFailed { .. } => http_err_with_message( - http::StatusCode::SERVICE_UNAVAILABLE, + dropshot::ErrorStatusCode::SERVICE_UNAVAILABLE, "UpdateFailed", InlineErrorChain::new(&error).to_string(), ), @@ -163,12 +163,12 @@ impl From for HttpError { InlineErrorChain::new(&error).to_string(), ), SpLookupError::DiscoveryNotYetComplete => http_err_with_message( - http::StatusCode::SERVICE_UNAVAILABLE, + dropshot::ErrorStatusCode::SERVICE_UNAVAILABLE, "DiscoveryNotYetComplete", InlineErrorChain::new(&error).to_string(), ), SpLookupError::DiscoveryFailed { .. } => http_err_with_message( - http::StatusCode::SERVICE_UNAVAILABLE, + dropshot::ErrorStatusCode::SERVICE_UNAVAILABLE, "DiscoveryFailed ", InlineErrorChain::new(&error).to_string(), ), @@ -181,7 +181,7 @@ impl From for HttpError { // status code, we want to give our caller some information about what is going // wrong (e.g., we timed out waiting for an SP). pub(crate) fn http_err_with_message( - status_code: http::StatusCode, + status_code: dropshot::ErrorStatusCode, error_code: &str, message: String, ) -> HttpError { diff --git a/gateway/src/http_entrypoints.rs b/gateway/src/http_entrypoints.rs index 5746fbbf2e..7a90bdb43f 100644 --- a/gateway/src/http_entrypoints.rs +++ b/gateway/src/http_entrypoints.rs @@ -236,7 +236,7 @@ impl GatewayApi for GatewayImpl { let key = str::from_utf8(key).unwrap(); String::from_utf8(bytes).map_err(|_| { http_err_with_message( - http::StatusCode::SERVICE_UNAVAILABLE, + dropshot::ErrorStatusCode::SERVICE_UNAVAILABLE, "InvalidCaboose", format!("non-utf8 data returned for caboose key {key}"), ) diff --git a/gateway/src/lib.rs b/gateway/src/lib.rs index 35eb3dbc79..5450c4fb40 100644 --- a/gateway/src/lib.rs +++ b/gateway/src/lib.rs @@ -91,7 +91,7 @@ fn start_dropshot_server( Entry::Vacant(slot) => { let dropshot = ConfigDropshot { bind_address: SocketAddr::V6(addr), - request_body_max_bytes, + default_request_body_max_bytes: request_body_max_bytes, default_handler_task_mode: HandlerTaskMode::Detached, log_headers: vec![], }; diff --git a/illumos-utils/src/lib.rs b/illumos-utils/src/lib.rs index e719b64776..6eef2f619a 100644 --- a/illumos-utils/src/lib.rs +++ b/illumos-utils/src/lib.rs @@ -78,7 +78,7 @@ impl From for HttpError { fn from(err: ExecutionError) -> Self { let message = InlineErrorChain::new(&err).to_string(); HttpError { - status_code: http::StatusCode::INTERNAL_SERVER_ERROR, + status_code: dropshot::ErrorStatusCode::INTERNAL_SERVER_ERROR, error_code: Some(String::from("Internal")), external_message: message.clone(), internal_message: message, diff --git a/installinator-api/src/lib.rs b/installinator-api/src/lib.rs index 487e5d786c..1b1c24c972 100644 --- a/installinator-api/src/lib.rs +++ b/installinator-api/src/lib.rs @@ -14,7 +14,7 @@ use dropshot::{ HttpResponseHeaders, HttpResponseOk, HttpResponseUpdatedNoContent, Path, RequestContext, TypedBody, }; -use hyper::{header, StatusCode}; +use hyper::header; use installinator_common::EventReport; use omicron_common::update::ArtifactHashId; use schemars::JsonSchema; @@ -99,7 +99,7 @@ impl EventReportStatus { EventReportStatus::UnrecognizedUpdateId => { Err(HttpError::for_client_error( None, - StatusCode::UNPROCESSABLE_ENTITY, + dropshot::ClientErrorStatusCode::UNPROCESSABLE_ENTITY, format!( "update ID {update_id} unrecognized by this server" ), @@ -108,7 +108,7 @@ impl EventReportStatus { EventReportStatus::ReceiverClosed => { Err(HttpError::for_client_error( None, - StatusCode::GONE, + dropshot::ClientErrorStatusCode::GONE, format!("update ID {update_id}: receiver closed"), )) } @@ -129,7 +129,7 @@ pub fn default_config(bind_address: std::net::SocketAddr) -> ConfigDropshot { // TODO: replace with an endpoint-specific option once // https://github.com/oxidecomputer/dropshot/pull/618 lands and is // available in omicron. - request_body_max_bytes: 4 * 1024 * 1024, + default_request_body_max_bytes: 4 * 1024 * 1024, default_handler_task_mode: HandlerTaskMode::Detached, log_headers: vec![], } diff --git a/internal-dns/resolver/src/resolver.rs b/internal-dns/resolver/src/resolver.rs index af47bb23ad..fa97a1d89e 100644 --- a/internal-dns/resolver/src/resolver.rs +++ b/internal-dns/resolver/src/resolver.rs @@ -466,7 +466,7 @@ mod test { }, &dropshot::ConfigDropshot { bind_address: "[::1]:0".parse().unwrap(), - request_body_max_bytes: 8 * 1024, + default_request_body_max_bytes: 8 * 1024, default_handler_task_mode: HandlerTaskMode::Detached, log_headers: vec![], }, diff --git a/openapi/bootstrap-agent.json b/openapi/bootstrap-agent.json index 32fe2f0d8e..05b9dc4962 100644 --- a/openapi/bootstrap-agent.json +++ b/openapi/bootstrap-agent.json @@ -15,6 +15,26 @@ "summary": "Return the baseboard identity of this sled.", "operationId": "baseboard_get", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -24,12 +44,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -40,6 +54,26 @@ "description": "This API is intended to allow early boot services (such as Wicket) to query the underlying component versions installed on a sled.", "operationId": "components_get", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -53,12 +87,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -68,6 +96,26 @@ "summary": "Get the current status of rack initialization or reset.", "operationId": "rack_initialization_status", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -77,12 +125,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -100,6 +142,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -109,12 +171,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -122,6 +178,26 @@ "summary": "Reset the rack to an unconfigured state.", "operationId": "rack_reset", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -131,12 +207,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -146,14 +216,28 @@ "summary": "Reset this particular sled to an unconfigured state.", "operationId": "sled_reset", "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -1616,18 +1700,6 @@ "minLength": 1, "maxLength": 63 } - }, - "responses": { - "Error": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } } } } diff --git a/openapi/clickhouse-admin-keeper.json b/openapi/clickhouse-admin-keeper.json index a9539f4c16..2291748c51 100644 --- a/openapi/clickhouse-admin-keeper.json +++ b/openapi/clickhouse-admin-keeper.json @@ -15,6 +15,26 @@ "summary": "Retrieve configuration information from a keeper node.", "operationId": "keeper_conf", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -24,12 +44,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -40,6 +54,26 @@ "description": "This information is used internally by ZooKeeper to manage snapshots and logs for consistency and recovery.", "operationId": "lgif", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -49,12 +83,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -64,6 +92,26 @@ "summary": "Retrieve cluster membership information from a keeper node.", "operationId": "keeper_cluster_membership", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -73,12 +121,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -99,6 +141,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -108,12 +170,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -124,6 +180,26 @@ "description": "contains last committed cluster configuration.", "operationId": "raft_config", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -133,12 +209,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -881,18 +951,6 @@ "servers" ] } - }, - "responses": { - "Error": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } } } } diff --git a/openapi/clickhouse-admin-server.json b/openapi/clickhouse-admin-server.json index c82c7c0d8e..31b5222416 100644 --- a/openapi/clickhouse-admin-server.json +++ b/openapi/clickhouse-admin-server.json @@ -26,6 +26,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -35,12 +55,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -51,6 +65,26 @@ "description": "that were executed on a cluster.", "operationId": "distributed_ddl_queue", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -64,12 +98,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -128,6 +156,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -141,12 +189,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -655,18 +697,6 @@ "unix_epoch" ] } - }, - "responses": { - "Error": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } } } } diff --git a/openapi/clickhouse-admin-single.json b/openapi/clickhouse-admin-single.json index b00bf56314..06d4fd04d8 100644 --- a/openapi/clickhouse-admin-single.json +++ b/openapi/clickhouse-admin-single.json @@ -15,14 +15,28 @@ "summary": "Idempotently initialize a single-node ClickHouse database.", "operationId": "init_db", "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -81,6 +95,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -94,12 +128,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -170,18 +198,6 @@ "unix_epoch" ] } - }, - "responses": { - "Error": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } } } } diff --git a/openapi/cockroach-admin.json b/openapi/cockroach-admin.json index 76c0bea09b..90c9e7df4a 100644 --- a/openapi/cockroach-admin.json +++ b/openapi/cockroach-admin.json @@ -25,6 +25,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -34,12 +54,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -49,6 +63,26 @@ "summary": "Get the CockroachDB node ID of the local cockroach instance.", "operationId": "local_node_id", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -58,12 +92,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -73,6 +101,26 @@ "summary": "Get the status of all nodes in the CRDB cluster.", "operationId": "node_status", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -82,12 +130,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -312,18 +354,6 @@ "type": "string", "format": "uuid" } - }, - "responses": { - "Error": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } } } } diff --git a/openapi/dns-server.json b/openapi/dns-server.json index 30bf9acf9e..91ad62ffbd 100644 --- a/openapi/dns-server.json +++ b/openapi/dns-server.json @@ -14,6 +14,26 @@ "get": { "operationId": "dns_config_get", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -23,12 +43,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -45,14 +59,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -246,18 +274,6 @@ "weight" ] } - }, - "responses": { - "Error": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } } } } diff --git a/openapi/gateway.json b/openapi/gateway.json index b1a7adc96e..1e935b5547 100644 --- a/openapi/gateway.json +++ b/openapi/gateway.json @@ -16,6 +16,26 @@ "description": "Retreive information for all SPs via the Ignition controller. This is lower latency and has fewer possible failure modes than querying the SP over the management network.", "operationId": "ignition_list", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -29,12 +49,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -65,6 +79,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -74,12 +108,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -119,14 +147,28 @@ } ], "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -137,6 +179,26 @@ "description": "find and communicate with.\n\nNote that unlike most MGS endpoints, this endpoint does not send any communication on the management network.", "operationId": "sp_all_ids", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -150,12 +212,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -166,6 +222,26 @@ "description": "Note that most MGS endpoints behave identically regardless of which scrimlet the MGS instance is running on; this one, however, is intentionally different. This endpoint is _probably_ only useful for clients communicating with MGS over localhost (i.e., other services in the switch zone) who need to know which sidecar they are connected to.", "operationId": "sp_local_switch_id", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -175,12 +251,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -202,6 +272,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -211,12 +301,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -246,6 +330,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -255,12 +359,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -291,6 +389,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -300,12 +418,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -345,6 +457,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -358,12 +490,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -403,6 +529,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -412,12 +558,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -474,14 +614,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -532,6 +686,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -541,12 +715,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -596,6 +764,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -605,12 +793,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -650,14 +832,28 @@ } ], "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -697,6 +893,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -706,12 +922,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -750,14 +960,28 @@ } ], "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -807,6 +1031,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -816,12 +1060,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -864,8 +1102,28 @@ "default": { "description": "", "content": { - "*/*": { - "schema": {} + "*/*": { + "schema": {} + } + } + }, + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } } } } @@ -908,14 +1166,28 @@ } ], "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -987,14 +1259,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -1044,14 +1330,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -1091,6 +1391,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1100,12 +1420,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1136,6 +1450,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1145,12 +1479,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -1178,14 +1506,28 @@ } ], "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -1226,14 +1568,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } }, @@ -1261,14 +1617,28 @@ } ], "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -1299,6 +1669,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1308,12 +1698,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -1352,14 +1736,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -1401,6 +1799,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1410,12 +1828,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1446,6 +1858,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1455,12 +1887,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -1499,14 +1925,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -3460,18 +3900,6 @@ "power_reset" ] } - }, - "responses": { - "Error": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } } } } diff --git a/openapi/installinator.json b/openapi/installinator.json index 6419760fbd..981f5e98d0 100644 --- a/openapi/installinator.json +++ b/openapi/installinator.json @@ -36,6 +36,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "", "content": { @@ -43,12 +63,6 @@ "schema": {} } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -81,14 +95,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -2311,18 +2339,6 @@ "slots_written" ] } - }, - "responses": { - "Error": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } } } } diff --git a/openapi/nexus-internal.json b/openapi/nexus-internal.json index 5c39652aa3..70a8b96f08 100644 --- a/openapi/nexus-internal.json +++ b/openapi/nexus-internal.json @@ -44,6 +44,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "", "content": { @@ -51,12 +71,6 @@ "schema": {} } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -67,6 +81,26 @@ "description": "This is a list of discrete background activities that Nexus carries out. This is exposed for support and debugging.", "operationId": "bgtask_list", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -80,12 +114,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -106,14 +134,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -134,6 +176,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -143,12 +205,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -158,6 +214,26 @@ "summary": "Get the current clickhouse policy", "operationId": "clickhouse_policy_get", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -167,12 +243,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -190,14 +260,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -236,14 +320,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -282,14 +380,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -327,14 +439,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -364,14 +490,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -401,14 +541,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -419,6 +573,26 @@ "description": "This saga is used for demo and testing. The saga just waits until you complete using the `saga_demo_complete` API.", "operationId": "saga_demo_create", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -428,12 +602,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -454,14 +622,28 @@ } ], "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -500,6 +682,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -509,12 +711,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -539,6 +735,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -548,12 +764,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -573,14 +783,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -598,17 +822,31 @@ } } }, - "required": true - }, - "responses": { + "required": true + }, + "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "204": { "description": "resource updated" - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -619,6 +857,26 @@ "description": "that's changed since the last one was generated", "operationId": "blueprint_regenerate", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -628,12 +886,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -643,6 +895,26 @@ "summary": "Fetches the current target blueprint, if any", "operationId": "blueprint_target_view", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -652,12 +924,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -675,6 +941,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -684,12 +970,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -709,6 +989,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -718,12 +1018,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -745,14 +1039,28 @@ } ], "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -783,14 +1091,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -820,6 +1142,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -829,12 +1171,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -854,14 +1190,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -910,6 +1260,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -919,12 +1289,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -947,6 +1311,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -956,12 +1340,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -994,6 +1372,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1007,12 +1405,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1033,14 +1425,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -1079,15 +1485,35 @@ "type": "string" } }, - { - "in": "query", - "name": "sort_by", - "schema": { - "$ref": "#/components/schemas/IdSortMode" + { + "in": "query", + "name": "sort_by", + "schema": { + "$ref": "#/components/schemas/IdSortMode" + } + } + ], + "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } } - } - ], - "responses": { + }, "200": { "description": "successful operation", "content": { @@ -1101,12 +1527,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -1141,14 +1561,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -1187,6 +1621,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1196,12 +1650,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -1225,6 +1673,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1234,12 +1702,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1259,6 +1721,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1268,12 +1750,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -1301,14 +1777,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -1329,14 +1819,28 @@ } ], "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -1356,6 +1860,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -1365,12 +1889,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1391,6 +1909,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1400,12 +1938,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1415,6 +1947,26 @@ "summary": "List uninitialized sleds", "operationId": "sled_list_uninitialized", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1424,12 +1976,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1459,6 +2005,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1468,12 +2034,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1503,14 +2063,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -1532,14 +2106,28 @@ } ], "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -6097,18 +6685,6 @@ "type": "string", "format": "uuid" } - }, - "responses": { - "Error": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } } } } diff --git a/openapi/nexus.json b/openapi/nexus.json index 79186e379a..d0f6a4e52a 100644 --- a/openapi/nexus.json +++ b/openapi/nexus.json @@ -36,6 +36,26 @@ "schema": {} } } + }, + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } } } } @@ -59,14 +79,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -97,6 +131,26 @@ "schema": {} } } + }, + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } } } } @@ -146,6 +200,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -155,12 +229,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -197,6 +265,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -206,12 +294,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -244,6 +326,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -253,12 +355,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -289,14 +385,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -338,6 +448,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "303": { "description": "redirect (see other)", "headers": { @@ -350,12 +480,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -398,6 +522,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -407,12 +551,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -437,6 +575,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -446,12 +604,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -476,6 +628,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -485,12 +657,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -513,14 +679,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -570,6 +750,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -579,12 +779,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -621,25 +815,39 @@ "required": true }, "responses": { - "201": { - "description": "successful creation", + "4XX": { + "description": "client error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Disk" + "$ref": "#/components/schemas/Error" } } } }, - "4XX": { - "$ref": "#/components/responses/Error" - }, "5XX": { - "$ref": "#/components/responses/Error" - } - } - } - }, + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "201": { + "description": "successful creation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Disk" + } + } + } + } + } + } + }, "/v1/disks/{disk}": { "get": { "tags": [ @@ -667,6 +875,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -676,12 +904,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -711,14 +933,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -760,14 +996,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -800,14 +1050,28 @@ } ], "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -840,14 +1104,28 @@ } ], "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -889,14 +1167,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -981,6 +1273,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -990,12 +1302,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -1051,6 +1357,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1060,12 +1386,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -1102,6 +1422,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -1111,12 +1451,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1148,6 +1482,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1157,12 +1511,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -1202,6 +1550,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1211,12 +1579,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -1246,14 +1608,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -1296,23 +1672,37 @@ "required": true }, "responses": { - "202": { - "description": "successfully enqueued operation", + "4XX": { + "description": "client error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FloatingIp" + "$ref": "#/components/schemas/Error" } } } }, - "4XX": { - "$ref": "#/components/responses/Error" - }, "5XX": { - "$ref": "#/components/responses/Error" - } - } + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "202": { + "description": "successfully enqueued operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FloatingIp" + } + } + } + } + } } }, "/v1/floating-ips/{floating_ip}/detach": { @@ -1342,6 +1732,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "202": { "description": "successfully enqueued operation", "content": { @@ -1351,12 +1761,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1398,6 +1802,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1407,12 +1831,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -1440,6 +1858,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1449,12 +1887,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1505,6 +1937,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1514,12 +1966,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -1554,6 +2000,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -1563,12 +2029,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1601,6 +2061,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1610,12 +2090,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -1646,14 +2120,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -1687,6 +2175,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "202": { "description": "successfully enqueued operation", "content": { @@ -1696,12 +2204,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1734,6 +2236,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "202": { "description": "successfully enqueued operation", "content": { @@ -1743,12 +2265,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1798,6 +2314,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1807,12 +2343,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -1849,6 +2379,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -1858,12 +2408,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1895,6 +2439,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1904,12 +2468,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -1949,6 +2507,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1958,12 +2536,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -1993,14 +2565,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -2059,6 +2645,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -2068,12 +2674,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -2118,6 +2718,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "202": { "description": "successfully enqueued operation", "content": { @@ -2127,12 +2747,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -2174,6 +2788,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "202": { "description": "successfully enqueued operation", "content": { @@ -2183,12 +2817,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -2220,6 +2848,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -2229,12 +2877,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -2276,6 +2918,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "202": { "description": "successfully enqueued operation", "content": { @@ -2285,12 +2947,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -2320,14 +2976,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -2359,6 +3029,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "202": { "description": "successfully enqueued operation", "content": { @@ -2368,12 +3058,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -2438,6 +3122,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -2447,12 +3151,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -2502,6 +3200,26 @@ "schema": {} } } + }, + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } } }, "x-dropshot-websocket": {} @@ -2562,6 +3280,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -2571,12 +3309,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -2611,6 +3343,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "202": { "description": "successfully enqueued operation", "content": { @@ -2620,12 +3372,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -2657,21 +3403,35 @@ } ], "responses": { - "202": { - "description": "successfully enqueued operation", + "4XX": { + "description": "client error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Instance" + "$ref": "#/components/schemas/Error" } } } }, - "4XX": { - "$ref": "#/components/responses/Error" - }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "202": { + "description": "successfully enqueued operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Instance" + } + } + } } } } @@ -2737,6 +3497,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -2746,12 +3526,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -2804,6 +3578,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -2813,12 +3607,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -2874,14 +3662,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -2947,6 +3749,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -2956,12 +3778,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -3014,6 +3830,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -3023,12 +3859,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -3084,14 +3914,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -3149,6 +3993,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -3158,12 +4022,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -3208,6 +4066,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -3217,12 +4095,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -3262,6 +4134,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -3271,12 +4163,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -3322,14 +4208,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -3371,6 +4271,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -3380,12 +4300,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -3412,6 +4326,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -3421,12 +4355,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -3459,14 +4387,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" - }, + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -3479,14 +4421,28 @@ "summary": "Log user out of web console by deleting session on client and server", "operationId": "logout", "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -3499,6 +4455,26 @@ "summary": "Fetch user for current session", "operationId": "current_user_view", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -3508,12 +4484,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -3555,6 +4525,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -3564,12 +4554,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -3615,6 +4599,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -3624,12 +4628,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -3654,6 +4652,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -3663,12 +4681,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -3693,6 +4705,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -3702,12 +4734,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -3730,14 +4756,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -3815,6 +4855,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -3824,12 +4884,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -3893,6 +4947,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -3902,12 +4976,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -3952,6 +5020,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -3961,12 +5049,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -4006,6 +5088,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -4015,12 +5117,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -4068,6 +5164,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -4077,12 +5193,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -4121,14 +5231,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" - }, + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -4142,6 +5266,26 @@ "description": "Always responds with Ok if it responds at all.", "operationId": "ping", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -4151,12 +5295,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -4169,6 +5307,26 @@ "summary": "Fetch current silo's IAM policy", "operationId": "policy_view", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -4178,12 +5336,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -4204,6 +5356,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -4213,12 +5385,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -4260,6 +5426,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -4269,12 +5455,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -4298,6 +5478,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -4307,12 +5507,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -4336,6 +5530,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -4345,12 +5559,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -4382,6 +5590,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -4391,12 +5619,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -4418,14 +5640,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -4449,6 +5685,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -4458,12 +5714,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -4495,6 +5745,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -4504,12 +5774,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -4559,6 +5823,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -4568,12 +5852,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -4611,6 +5889,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -4620,12 +5918,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -4657,21 +5949,35 @@ } ], "responses": { - "200": { - "description": "successful operation", + "4XX": { + "description": "client error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Snapshot" + "$ref": "#/components/schemas/Error" } } } }, - "4XX": { - "$ref": "#/components/responses/Error" - }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Snapshot" + } + } + } } } }, @@ -4701,14 +6007,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -4750,6 +6070,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -4759,12 +6099,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -4792,6 +6126,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -4801,12 +6155,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -4848,6 +6196,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -4857,12 +6225,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -4890,6 +6252,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -4899,12 +6281,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -4946,6 +6322,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -4955,12 +6351,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -4984,6 +6374,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -4993,12 +6403,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -5023,6 +6427,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -5032,12 +6456,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -5089,6 +6507,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -5098,12 +6536,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -5158,6 +6590,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -5167,12 +6619,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -5210,6 +6656,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -5219,12 +6685,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -5259,6 +6719,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -5268,12 +6748,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -5328,6 +6802,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -5337,12 +6831,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -5398,14 +6886,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } }, @@ -5446,14 +6948,28 @@ } ], "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -5496,6 +7012,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -5505,12 +7041,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -5552,6 +7082,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -5561,12 +7111,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -5594,6 +7138,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -5603,12 +7167,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -5658,6 +7216,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -5667,12 +7245,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -5712,6 +7284,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -5721,12 +7313,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -5760,14 +7346,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -5812,14 +7412,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -5853,6 +7467,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -5862,12 +7496,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -5900,6 +7528,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -5909,12 +7557,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -5956,6 +7598,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -5965,12 +7627,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -5991,9 +7647,29 @@ } } }, - "required": true - }, - "responses": { + "required": true + }, + "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -6003,12 +7679,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -6032,6 +7702,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -6041,12 +7731,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -6078,6 +7762,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -6087,12 +7791,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -6114,14 +7812,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -6166,6 +7878,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -6175,12 +7907,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -6218,6 +7944,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -6227,12 +7973,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -6266,14 +8006,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -6324,6 +8078,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -6333,12 +8107,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -6374,6 +8142,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -6383,12 +8171,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -6430,6 +8212,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -6439,12 +8241,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -6474,14 +8270,28 @@ } ], "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -6505,6 +8315,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -6514,12 +8344,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -6532,6 +8356,26 @@ "summary": "Fetch Oxide service IP pool", "operationId": "ip_pool_service_view", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -6541,12 +8385,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -6582,6 +8420,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -6591,12 +8449,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -6623,6 +8475,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -6632,12 +8504,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -6660,14 +8526,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -6745,6 +8625,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -6754,12 +8654,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -6807,6 +8701,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -6816,12 +8730,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -6845,6 +8753,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -6854,12 +8782,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -6883,14 +8805,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -6941,6 +8877,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -6950,12 +8906,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -6971,6 +8921,26 @@ "summary": "Get user-facing services IP allowlist", "operationId": "networking_allow_list_view", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -6980,12 +8950,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -7006,6 +8970,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -7015,12 +8999,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -7043,14 +9021,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -7073,14 +9065,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -7093,6 +9099,26 @@ "summary": "Get BFD status", "operationId": "networking_bfd_status", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -7106,12 +9132,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -7153,21 +9173,35 @@ } ], "responses": { - "200": { - "description": "successful operation", + "4XX": { + "description": "client error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BgpConfigResultsPage" + "$ref": "#/components/schemas/Error" } } } }, - "4XX": { - "$ref": "#/components/responses/Error" - }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BgpConfigResultsPage" + } + } + } } }, "x-dropshot-pagination": { @@ -7191,6 +9225,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -7200,12 +9254,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -7227,14 +9275,28 @@ } ], "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -7276,6 +9338,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -7289,12 +9371,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -7319,6 +9395,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -7328,12 +9424,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -7357,14 +9447,28 @@ } ], "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -7388,6 +9492,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -7401,12 +9525,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -7419,6 +9537,26 @@ "summary": "Get BGP exported routes", "operationId": "networking_bgp_exported", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -7428,12 +9566,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -7459,6 +9591,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -7468,12 +9620,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -7499,6 +9645,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -7512,12 +9678,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -7530,6 +9690,26 @@ "summary": "Get BGP peer status", "operationId": "networking_bgp_status", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -7543,12 +9723,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -7590,6 +9764,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -7599,12 +9793,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -7628,6 +9816,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -7637,12 +9845,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -7697,14 +9899,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -7754,6 +9970,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -7763,12 +9999,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -7792,6 +10022,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -7801,12 +10051,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -7827,14 +10071,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -7858,6 +10116,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -7867,12 +10145,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -7885,6 +10157,26 @@ "summary": "Fetch top-level IAM policy", "operationId": "system_policy_view", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -7894,12 +10186,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -7920,6 +10206,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -7929,12 +10235,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -7969,6 +10269,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -7978,12 +10298,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -8010,6 +10324,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -8019,12 +10353,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -8066,6 +10394,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -8075,12 +10423,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -8126,6 +10468,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -8135,12 +10497,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -8164,6 +10520,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -8173,12 +10549,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -8203,6 +10573,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -8212,12 +10602,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -8240,14 +10624,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "5XX": { - "$ref": "#/components/responses/Error" + "204": { + "description": "successful deletion" } } } @@ -8299,6 +10697,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -8308,12 +10726,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -8340,6 +10752,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -8349,12 +10781,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -8386,6 +10812,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -8395,12 +10841,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -8424,6 +10864,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -8433,12 +10893,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -8471,6 +10925,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -8480,12 +10954,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -8509,6 +10977,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -8518,12 +11006,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -8558,6 +11040,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -8567,12 +11069,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -8625,6 +11121,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -8634,12 +11150,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -8678,6 +11188,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -8687,12 +11217,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -8734,6 +11258,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -8743,12 +11287,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -8774,6 +11312,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -8783,12 +11341,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -8830,6 +11382,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -8839,12 +11411,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -8871,6 +11437,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -8880,12 +11466,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -8936,6 +11516,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -8945,12 +11545,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -8966,6 +11560,26 @@ "summary": "Fetch resource utilization for user's current silo", "operationId": "utilization_view", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -8975,12 +11589,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -9012,6 +11620,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -9021,12 +11649,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -9067,6 +11689,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -9076,12 +11718,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -9148,6 +11784,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -9157,12 +11813,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -9215,6 +11865,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -9224,12 +11894,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -9278,6 +11942,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -9287,12 +11971,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -9348,6 +12026,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -9357,12 +12055,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -9408,14 +12100,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -9473,6 +12179,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -9482,12 +12208,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -9532,6 +12252,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -9541,12 +12281,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -9586,6 +12320,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -9595,12 +12349,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -9645,9 +12393,29 @@ } } }, - "required": true - }, - "responses": { + "required": true + }, + "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -9657,12 +12425,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -9700,14 +12462,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -9765,6 +12541,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -9774,12 +12570,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -9824,6 +12614,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -9833,12 +12643,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -9878,6 +12682,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -9887,12 +12711,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -9940,6 +12758,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -9949,12 +12787,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -9992,14 +12824,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -10066,6 +12912,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -10075,12 +12941,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -10133,6 +12993,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -10142,12 +13022,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -10184,6 +13058,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -10193,12 +13087,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -10230,6 +13118,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -10239,12 +13147,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -10284,6 +13186,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -10293,12 +13215,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -10328,14 +13244,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -22511,18 +25441,6 @@ } ] } - }, - "responses": { - "Error": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } } }, "tags": [ diff --git a/openapi/oximeter.json b/openapi/oximeter.json index dea3418b8d..4f401aa91e 100644 --- a/openapi/oximeter.json +++ b/openapi/oximeter.json @@ -15,6 +15,26 @@ "summary": "Return identifying information about this collector.", "operationId": "collector_info", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -24,12 +44,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -61,6 +75,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -70,12 +104,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { @@ -99,14 +127,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -262,18 +304,6 @@ } ] } - }, - "responses": { - "Error": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } } } } diff --git a/openapi/repo-depot.json b/openapi/repo-depot.json index 0c0019cf8d..21eedb1ef4 100644 --- a/openapi/repo-depot.json +++ b/openapi/repo-depot.json @@ -26,6 +26,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "", "content": { @@ -33,12 +53,6 @@ "schema": {} } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -65,18 +79,6 @@ "request_id" ] } - }, - "responses": { - "Error": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } } } } diff --git a/openapi/sled-agent.json b/openapi/sled-agent.json index 14a4c92692..0647ed2193 100644 --- a/openapi/sled-agent.json +++ b/openapi/sled-agent.json @@ -14,6 +14,26 @@ "get": { "operationId": "artifact_list", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -29,12 +49,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -65,6 +79,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -74,12 +108,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -97,14 +125,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -134,6 +176,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "202": { "description": "successfully enqueued operation", "content": { @@ -143,12 +205,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -197,14 +253,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -223,6 +293,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -232,12 +322,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -266,14 +350,28 @@ } ], "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -283,6 +381,26 @@ "summary": "Get the internal state of the local bootstore node", "operationId": "bootstore_status", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -292,12 +410,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -307,14 +419,28 @@ "summary": "Initializes a CockroachDB cluster", "operationId": "cockroachdb_init", "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -324,6 +450,26 @@ "summary": "Lists the datasets that this sled is configured to use", "operationId": "datasets_get", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -333,12 +479,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -356,6 +496,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -365,12 +525,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -400,6 +554,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -409,12 +583,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -434,14 +602,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -451,21 +633,35 @@ "summary": "Fetch basic information about this sled", "operationId": "inventory", "responses": { - "200": { - "description": "successful operation", + "4XX": { + "description": "client error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Inventory" + "$ref": "#/components/schemas/Error" } } } }, - "4XX": { - "$ref": "#/components/responses/Error" - }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Inventory" + } + } + } } } } @@ -476,6 +672,26 @@ "description": "bootstore. The boostore is a distributed data store that is eventually consistent. Reads from individual nodes may not represent the latest state.", "operationId": "read_network_bootstore_config_cache", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -485,12 +701,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -507,14 +717,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -523,6 +747,26 @@ "get": { "operationId": "omicron_physical_disks_get", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -532,12 +776,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -554,6 +792,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -563,12 +821,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -587,14 +839,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -604,6 +870,26 @@ "summary": "Fetch sled identifiers", "operationId": "sled_identifiers", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -613,12 +899,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -627,6 +907,26 @@ "get": { "operationId": "sled_role_get", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -636,12 +936,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -661,14 +955,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -677,6 +985,26 @@ "get": { "operationId": "support_dladm_info", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "", "content": { @@ -684,12 +1012,6 @@ "schema": {} } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -698,6 +1020,26 @@ "get": { "operationId": "support_ipadm_info", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "", "content": { @@ -705,12 +1047,6 @@ "schema": {} } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -719,6 +1055,26 @@ "get": { "operationId": "support_zoneadm_info", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "", "content": { @@ -726,12 +1082,6 @@ "schema": {} } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -761,6 +1111,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -774,12 +1144,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -835,6 +1199,26 @@ "schema": {} } } + }, + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } } } }, @@ -891,6 +1275,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -900,12 +1304,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -942,14 +1340,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } }, @@ -1003,6 +1415,26 @@ "schema": {} } } + }, + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } } } } @@ -1021,14 +1453,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -1037,6 +1483,26 @@ "get": { "operationId": "timesync_get", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1046,12 +1512,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1070,14 +1530,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -1087,6 +1561,26 @@ "summary": "List v2p mappings present on sled", "operationId": "list_v2p", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1100,12 +1594,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -1123,14 +1611,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } }, @@ -1148,14 +1650,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -1184,6 +1700,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1193,12 +1729,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -1215,6 +1745,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1224,12 +1774,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1268,6 +1812,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1277,12 +1841,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1311,14 +1869,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } }, @@ -1345,14 +1917,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -1371,6 +1957,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1380,12 +1986,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -1412,6 +2012,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1421,12 +2041,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1456,23 +2070,57 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "204": { "description": "resource updated" - }, + } + } + } + }, + "/vpc-routes": { + "get": { + "summary": "Get the current versions of VPC routing rules.", + "operationId": "list_vpc_routes", + "responses": { "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "5XX": { - "$ref": "#/components/responses/Error" - } - } - } - }, - "/vpc-routes": { - "get": { - "summary": "Get the current versions of VPC routing rules.", - "operationId": "list_vpc_routes", - "responses": { "200": { "description": "successful operation", "content": { @@ -1486,12 +2134,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -1513,14 +2155,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -1530,6 +2186,26 @@ "summary": "List the zones that are currently managed by the sled agent.", "operationId": "zones_list", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1543,12 +2219,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1558,6 +2228,26 @@ "summary": "Trigger a zone bundle cleanup.", "operationId": "zone_bundle_cleanup", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1571,12 +2261,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1586,6 +2270,26 @@ "summary": "Return context used by the zone-bundle cleanup task.", "operationId": "zone_bundle_cleanup_context", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1595,12 +2299,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -1618,14 +2316,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -1635,6 +2347,26 @@ "summary": "Return utilization information about all zone bundles.", "operationId": "zone_bundle_utilization", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1648,12 +2380,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1674,6 +2400,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1687,12 +2433,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1713,6 +2453,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1726,12 +2486,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -1750,6 +2504,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "201": { "description": "successful creation", "content": { @@ -1759,12 +2533,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -1795,6 +2563,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "", "content": { @@ -1802,12 +2590,6 @@ "schema": {} } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -1836,14 +2618,28 @@ } ], "responses": { - "204": { - "description": "successful deletion" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "successful deletion" } } } @@ -1852,6 +2648,26 @@ "get": { "operationId": "zpools_get", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -1865,12 +2681,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -6477,18 +7287,6 @@ "type": "string", "format": "uuid" } - }, - "responses": { - "Error": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } } } } diff --git a/openapi/wicketd.json b/openapi/wicketd.json index 0b3c4d7c9e..621f529ab3 100644 --- a/openapi/wicketd.json +++ b/openapi/wicketd.json @@ -46,14 +46,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -64,6 +78,26 @@ "description": "The order of the returned artifacts is unspecified, and may change between calls even if the total set of artifacts has not.", "operationId": "get_artifacts_and_event_reports", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -73,12 +107,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -88,6 +116,26 @@ "summary": "Report the configured baseboard details.", "operationId": "get_baseboard", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -97,12 +145,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -112,6 +154,26 @@ "summary": "Get wicketd's current view of all sleds visible on the bootstrap network.", "operationId": "get_bootstrap_sleds", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -121,12 +183,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -147,6 +203,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -156,12 +232,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -200,14 +270,28 @@ } ], "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -228,6 +312,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -237,12 +341,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -253,6 +351,26 @@ "description": "connected to.", "operationId": "get_location", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -262,12 +380,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -278,6 +390,26 @@ "description": "check.", "operationId": "get_preflight_uplink_report", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -287,12 +419,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -310,14 +436,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -327,6 +467,26 @@ "summary": "Query current state of rack setup.", "operationId": "get_rack_setup_state", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -336,12 +496,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -350,6 +504,26 @@ "description": "Will return an error if not all of the rack setup configuration has been populated.", "operationId": "post_run_rack_setup", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -359,12 +533,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -372,6 +540,26 @@ "summary": "Run rack reset.", "operationId": "post_run_rack_reset", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -381,12 +569,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -397,6 +579,26 @@ "description": "some cases) RSS configuration.", "operationId": "get_rss_config", "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -406,12 +608,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }, @@ -430,14 +626,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } }, @@ -445,14 +655,28 @@ "summary": "Reset all RSS configuration to their default values.", "operationId": "delete_rss_config", "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -473,6 +697,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -482,12 +726,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -517,6 +755,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -526,12 +784,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -553,6 +805,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -562,12 +834,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -589,6 +855,26 @@ "required": true }, "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -598,12 +884,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -623,14 +903,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -641,14 +935,28 @@ "description": "The only expected client of this endpoint is `curl` from wicketd's SMF `refresh` method, but other clients hitting it is harmless.", "operationId": "post_reload_config", "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -670,14 +978,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -697,14 +1019,28 @@ "required": true }, "responses": { - "204": { - "description": "resource updated" - }, "4XX": { - "$ref": "#/components/responses/Error" + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, "5XX": { - "$ref": "#/components/responses/Error" + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "204": { + "description": "resource updated" } } } @@ -735,6 +1071,26 @@ } ], "responses": { + "4XX": { + "description": "client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "5XX": { + "description": "server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "200": { "description": "successful operation", "content": { @@ -744,12 +1100,6 @@ } } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } } @@ -6744,18 +7094,6 @@ "power_reset" ] } - }, - "responses": { - "Error": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } } } } diff --git a/oximeter/instruments/src/http.rs b/oximeter/instruments/src/http.rs index efd053ad66..de5f71f96d 100644 --- a/oximeter/instruments/src/http.rs +++ b/oximeter/instruments/src/http.rs @@ -171,16 +171,17 @@ impl LatencyTracker { let latency = start.elapsed(); let status_code = match &result { Ok(response) => response.status_code(), - Err(ref e) => e.status_code, + Err(ref e) => e.status_code.as_status(), }; - if let Err(e) = self.update(&context.operation_id, status_code, latency) + if let Err(e) = + self.update(&context.endpoint.operation_id, status_code, latency) { slog::error!( &context.log, "error instrumenting dropshot handler"; "error" => ?e, "status_code" => status_code.as_u16(), - "operation_id" => &context.operation_id, + "operation_id" => &context.endpoint.operation_id, "remote_addr" => context.request.remote_addr(), "latency" => ?latency, ); diff --git a/oximeter/producer/src/lib.rs b/oximeter/producer/src/lib.rs index 42d2b03808..e28ab86ac8 100644 --- a/oximeter/producer/src/lib.rs +++ b/oximeter/producer/src/lib.rs @@ -216,7 +216,7 @@ impl Server { let log = Self::build_logger(log)?; let dropshot = ConfigDropshot { bind_address: server_info.address, - request_body_max_bytes, + default_request_body_max_bytes: request_body_max_bytes, default_handler_task_mode: dropshot::HandlerTaskMode::Detached, log_headers: vec![], }; @@ -509,7 +509,7 @@ mod tests { ServerBuilder::new(api, Arc::new(AtomicU32::new(0)), log.clone()) .config(ConfigDropshot { bind_address: "[::1]:0".parse().unwrap(), - request_body_max_bytes: 2048, + default_request_body_max_bytes: 2048, ..Default::default() }) .start() diff --git a/sled-agent/src/sim/storage.rs b/sled-agent/src/sim/storage.rs index dc8cf63fe4..8756d640e1 100644 --- a/sled-agent/src/sim/storage.rs +++ b/sled-agent/src/sim/storage.rs @@ -981,7 +981,7 @@ impl Storage { if stored_config.generation > config.generation { return Err(HttpError::for_client_error( None, - http::StatusCode::BAD_REQUEST, + dropshot::ClientErrorStatusCode::BAD_REQUEST, "Generation number too old".to_string(), )); } else if stored_config.generation == config.generation @@ -989,7 +989,7 @@ impl Storage { { return Err(HttpError::for_client_error( None, - http::StatusCode::BAD_REQUEST, + dropshot::ClientErrorStatusCode::BAD_REQUEST, "Generation number unchanged but data is different" .to_string(), )); @@ -1672,7 +1672,7 @@ impl PantryServer { bind_address: SocketAddr::new(ip, 0), // This has to be large enough to support: // - bulk writes into disks - request_body_max_bytes: 8192 * 1024, + default_request_body_max_bytes: 8192 * 1024, default_handler_task_mode: HandlerTaskMode::Detached, log_headers: vec![], }) diff --git a/wicketd/src/http_entrypoints.rs b/wicketd/src/http_entrypoints.rs index ada8422de4..da0dc6dbf7 100644 --- a/wicketd/src/http_entrypoints.rs +++ b/wicketd/src/http_entrypoints.rs @@ -220,7 +220,8 @@ impl WicketdApi for WicketdApiImpl { let message = format!("Failed to send rack setup request: {err}"); HttpError { - status_code: http::StatusCode::SERVICE_UNAVAILABLE, + status_code: + dropshot::ErrorStatusCode::SERVICE_UNAVAILABLE, error_code: None, external_message: message.clone(), internal_message: message, @@ -274,7 +275,8 @@ impl WicketdApi for WicketdApiImpl { let message = format!("Failed to send rack setup request: {err}"); HttpError { - status_code: http::StatusCode::SERVICE_UNAVAILABLE, + status_code: + dropshot::ErrorStatusCode::SERVICE_UNAVAILABLE, error_code: None, external_message: message.clone(), internal_message: message, @@ -320,7 +322,8 @@ impl WicketdApi for WicketdApiImpl { let message = format!("Failed to send rack reset request: {err}"); HttpError { - status_code: http::StatusCode::SERVICE_UNAVAILABLE, + status_code: + dropshot::ErrorStatusCode::SERVICE_UNAVAILABLE, error_code: None, external_message: message.clone(), internal_message: message, @@ -484,7 +487,7 @@ impl WicketdApi for WicketdApiImpl { "Rack inventory not yet available (is MGS alive?)" .to_owned(); return Err(HttpError { - status_code: http::StatusCode::SERVICE_UNAVAILABLE, + status_code: dropshot::ErrorStatusCode::SERVICE_UNAVAILABLE, error_code: None, external_message: message.clone(), internal_message: message, @@ -779,7 +782,7 @@ impl WicketdApi for WicketdApiImpl { Ok(()) => Ok(HttpResponseUpdatedNoContent {}), Err(err) => Err(HttpError::for_client_error( None, - StatusCode::TOO_MANY_REQUESTS, + dropshot::ClientErrorStatusCode::TOO_MANY_REQUESTS, err.to_string(), )), } @@ -864,7 +867,12 @@ fn http_error_from_client_error( ) -> HttpError { // Most errors have a status code; the only one that definitely doesn't is // `Error::InvalidRequest`, for which we'll use `BAD_REQUEST`. - let status_code = err.status().unwrap_or(StatusCode::BAD_REQUEST); + let status_code = err + .status() + .map(|status| { + status.try_into().expect("status code must be a client error") + }) + .unwrap_or(dropshot::ErrorStatusCode::BAD_REQUEST); let message = format!("request to MGS failed: {err}"); diff --git a/wicketd/src/lib.rs b/wicketd/src/lib.rs index 4292f2e0d7..66db255f1f 100644 --- a/wicketd/src/lib.rs +++ b/wicketd/src/lib.rs @@ -133,7 +133,7 @@ impl Server { // The maximum request size is set to 4 GB -- artifacts can be large // and there's currently no way to set a larger request size for // some endpoints. - request_body_max_bytes: 4 << 30, + default_request_body_max_bytes: 4 << 30, default_handler_task_mode: HandlerTaskMode::Detached, log_headers: vec![], };