{
  "components": {
    "parameters": {
      "resourceIdPathParam": {
        "description": "キューのリソースID",
        "in": "path",
        "name": "id",
        "required": true,
        "schema": {
          "type": "string"
        }
      }
    },
    "schemas": {
      "CommonServiceItem": {
        "properties": {
          "Availability": {
            "example": "available",
            "type": "string"
          },
          "CreatedAt": {
            "format": "date-time",
            "type": "string"
          },
          "Description": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "ID": {
            "oneOf": [
              {
                "example": "113700153028",
                "type": "string"
              },
              {
                "example": 113700153028,
                "type": "integer"
              }
            ]
          },
          "Icon": {
            "$ref": "#/components/schemas/Icon"
          },
          "ModifiedAt": {
            "format": "date-time",
            "type": "string"
          },
          "Name": {
            "description": "リソース名",
            "example": "sample-queue-1",
            "type": "string"
          },
          "Provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "ServiceClass": {
            "example": "cloud/simplemq/1",
            "type": "string"
          },
          "Settings": {
            "$ref": "#/components/schemas/Settings"
          },
          "SettingsHash": {
            "type": "string"
          },
          "Status": {
            "$ref": "#/components/schemas/Status"
          },
          "Tags": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "ID",
          "Name",
          "Settings",
          "SettingsHash",
          "Status",
          "ServiceClass",
          "Availability",
          "CreatedAt",
          "ModifiedAt",
          "Provider",
          "Tags"
        ],
        "type": "object"
      },
      "ConfigQueueRequest": {
        "properties": {
          "CommonServiceItem": {
            "properties": {
              "Description": {
                "type": "string"
              },
              "Icon": {
                "$ref": "#/components/schemas/Icon"
              },
              "Settings": {
                "$ref": "#/components/schemas/Settings"
              },
              "Tags": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "Settings"
            ],
            "type": "object"
          }
        },
        "required": [
          "CommonServiceItem"
        ],
        "type": "object"
      },
      "CreateQueueRequest": {
        "properties": {
          "CommonServiceItem": {
            "properties": {
              "Description": {
                "type": "string"
              },
              "Icon": {
                "$ref": "#/components/schemas/Icon"
              },
              "Name": {
                "$ref": "#/components/schemas/QueueName"
              },
              "Provider": {
                "properties": {
                  "Class": {
                    "enum": [
                      "simplemq"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "Class"
                ],
                "type": "object"
              },
              "Tags": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "Name",
              "Provider"
            ],
            "type": "object"
          }
        },
        "required": [
          "CommonServiceItem"
        ],
        "type": "object"
      },
      "Error": {
        "properties": {
          "error_code": {
            "type": "string"
          },
          "error_msg": {
            "type": "string"
          },
          "is_fatal": {
            "type": "boolean"
          },
          "serial": {
            "example": "749ad39e1eea340c4d75bf5a4dd4bd11",
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ExpireSeconds": {
        "description": "未処理メッセージ保存期間 (秒)",
        "example": 345600,
        "maximum": 1209600,
        "minimum": 60,
        "type": "integer"
      },
      "Icon": {
        "oneOf": [
          {
            "type": "null"
          },
          {
            "properties": {
              "ID": {
                "description": "0を指定することでIconなしに設定することが出来ます",
                "oneOf": [
                  {
                    "example": "113700153028",
                    "type": "string"
                  },
                  {
                    "example": 113700153028,
                    "type": "integer"
                  }
                ]
              },
              "Name": {
                "example": "Ubuntu",
                "type": "string"
              },
              "Scope": {
                "example": "shared",
                "type": "string"
              },
              "Tags": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "URL": {
                "example": "https://secure.sakura.ad.jp/cloud/zone/is1b/api/cloud/1.1/icon/112901627751.png",
                "type": "string"
              }
            },
            "type": "object"
          }
        ]
      },
      "Provider": {
        "properties": {
          "Class": {
            "enum": [
              "simplemq"
            ],
            "type": "string"
          },
          "ID": {
            "example": 5200001,
            "type": "integer"
          },
          "Name": {
            "example": "SimpleMQ",
            "type": "string"
          },
          "ServiceClass": {
            "example": "cloud/simplemq",
            "type": "string"
          }
        },
        "required": [
          "ID",
          "Class",
          "Name",
          "ServiceClass"
        ],
        "type": "object"
      },
      "QueueName": {
        "description": "キュー名 (アカウント内で一意の値)",
        "example": "my-own-queue-00",
        "maxLength": 64,
        "minLength": 5,
        "pattern": "^[0-9a-zA-Z]+(-[0-9a-zA-Z]+)*$",
        "type": "string"
      },
      "Settings": {
        "properties": {
          "ExpireSeconds": {
            "$ref": "#/components/schemas/ExpireSeconds"
          },
          "VisibilityTimeoutSeconds": {
            "$ref": "#/components/schemas/VisibilityTimeoutSeconds"
          }
        },
        "required": [
          "VisibilityTimeoutSeconds",
          "ExpireSeconds"
        ],
        "type": "object"
      },
      "Status": {
        "properties": {
          "QueueName": {
            "description": "キュー名",
            "example": "sample-queue-1",
            "type": "string"
          }
        },
        "required": [
          "QueueName"
        ],
        "type": "object"
      },
      "VisibilityTimeoutSeconds": {
        "description": "可視性タイムアウト (秒)",
        "example": 30,
        "maximum": 900,
        "minimum": 5,
        "type": "integer"
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "description": "APIキーを利用したBasic認証",
        "scheme": "basic",
        "type": "http"
      }
    }
  },
  "info": {
    "contact": {
      "url": "https://help.sakura.ad.jp/contact/"
    },
    "description": "---\nCopyright SAKURA internet Inc.\n\n# はじめに\n\n「シンプルMQ」は、ソフトウェア同士を非同期に連携するために、ソフトウェアコンポーネント間でのデータの送受信ができる、マネージド型のメッセージキューサービスです。\nシンプルMQのリソースを作成・削除するには、さくらのクラウド コントロールパネルか下記APIを利用します。\nキューへのメッセージの送受信などについては、[シンプルMQ APIドキュメント](https://manual.sakura.ad.jp/api/cloud/portal/?api=simplemq-api) を参照してください。\n\n# 基本的な使い方\n## APIキーの発行\nAPIを利用するためには、認証のための「APIキー」が必要です。事前にキーを発行しておきます。\nAPIキーは「ユーザーID」「パスワード」に相当する「トークン」と呼ばれる認証情報で構成されています。\n|   項目名   | APIキー発行時の項目名        | このドキュメント内での例             |\n|------------|------------------------------|--------------------------------------|\n| ユーザーID | アクセストークン(UUID)       | 01234567-89ab-cdef-0123-456789abcdef |\n| パスワード | アクセストークンシークレット | SAMPLETOKENSAMPLETOKENSAMPLETOKENSAM |\n\u003cdiv class=\"warning\"\u003e\n  \u003cb\u003e操作マニュアル\u003c/b\u003e\u003cbr /\u003e\n  \u003cul\u003e\u003cli\u003e\u003ca href=\"https://manual.sakura.ad.jp/cloud/api/apikey.html\"\u003eAPIキー | さくらのクラウド ドキュメント\u003c/a\u003e\u003c/li\u003e\u003c/ul\u003e\n\u003c/div\u003e\n\n## APIエンドポイント\nhttps://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1",
    "title": "シンプルMQ さくらのクラウドAPI",
    "version": "1.1.1"
  },
  "openapi": "3.1.0",
  "paths": {
    "/commonserviceitem": {
      "get": {
        "description": "クエリパラメータに下記のようにフィルタを設定することでシンプルMQのリソースのみを取得できます\n`/commonserviceitem?{\"Filter\":{\"Provider.Class\":\"simplemq\"}}`",
        "operationId": "listQueues",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "CommonServiceItems": {
                      "items": {
                        "$ref": "#/components/schemas/CommonServiceItem"
                      },
                      "type": "array"
                    },
                    "Count": {
                      "example": 1,
                      "type": "integer"
                    },
                    "From": {
                      "type": "integer"
                    },
                    "Total": {
                      "example": 1,
                      "type": "integer"
                    },
                    "is_ok": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "CommonServiceItems"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "成功"
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "bad_request",
                  "error_msg": "不適切な要求です。パラメータの指定誤り、入力規則違反です。入力内容をご確認ください。",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "400 Bad Request"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "不正なリクエスト"
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "unauthorized",
                  "error_msg": "error-unauthorized",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "401 Unauthorized"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "認証エラー"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "サーバーエラー"
          }
        },
        "summary": "キュー一覧の取得"
      },
      "post": {
        "operationId": "createQueue",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateQueueRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "CommonServiceItem": {
                      "$ref": "#/components/schemas/CommonServiceItem"
                    },
                    "Success": {
                      "type": "boolean"
                    },
                    "is_ok": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "CommonServiceItem"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "成功"
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "bad_request",
                  "error_msg": "不適切な要求です。パラメータの指定誤り、入力規則違反です。入力内容をご確認ください。",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "400 Bad Request"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "不正なリクエスト"
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "unauthorized",
                  "error_msg": "error-unauthorized",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "401 Unauthorized"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "認証エラー"
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "conflict",
                  "error_msg": "要求された操作を行えません。現在の対象の状態では、この操作を受け付けできません。\nsame queue name found",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "409 Conflict"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "キュー名の重複"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "サーバーエラー"
          }
        },
        "summary": "キューの作成"
      }
    },
    "/commonserviceitem/{id}": {
      "delete": {
        "operationId": "deleteQueue",
        "parameters": [
          {
            "$ref": "#/components/parameters/resourceIdPathParam"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "CommonServiceItem": {
                      "$ref": "#/components/schemas/CommonServiceItem"
                    },
                    "Success": {
                      "type": "boolean"
                    },
                    "is_ok": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "CommonServiceItem"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "成功"
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "bad_request",
                  "error_msg": "不適切な要求です。パラメータの指定誤り、入力規則違反です。入力内容をご確認ください。",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "400 Bad Request"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "不正なリクエスト"
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "unauthorized",
                  "error_msg": "error-unauthorized",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "401 Unauthorized"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "認証エラー"
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "not_found",
                  "error_msg": "対象が見つかりません。対象は利用できない状態か、IDまたはパスに誤りがあります。",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "404 Not Found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "キューが存在しない"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "サーバーエラー"
          }
        },
        "summary": "キューの削除"
      },
      "get": {
        "operationId": "readQueue",
        "parameters": [
          {
            "$ref": "#/components/parameters/resourceIdPathParam"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "CommonServiceItem": {
                      "$ref": "#/components/schemas/CommonServiceItem"
                    },
                    "is_ok": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "CommonServiceItem"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "成功"
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "bad_request",
                  "error_msg": "不適切な要求です。パラメータの指定誤り、入力規則違反です。入力内容をご確認ください。",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "400 Bad Request"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "不正なリクエスト"
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "unauthorized",
                  "error_msg": "error-unauthorized",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "401 Unauthorized"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "認証エラー"
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "not_found",
                  "error_msg": "対象が見つかりません。対象は利用できない状態か、IDまたはパスに誤りがあります。",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "404 Not Found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "キューが存在しない"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "サーバーエラー"
          }
        },
        "summary": "キューの取得"
      },
      "put": {
        "description": "キュー名の変更は不可",
        "operationId": "updateQueue",
        "parameters": [
          {
            "$ref": "#/components/parameters/resourceIdPathParam"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigQueueRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "CommonServiceItem": {
                      "$ref": "#/components/schemas/CommonServiceItem"
                    },
                    "Success": {
                      "type": "boolean"
                    },
                    "is_ok": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "CommonServiceItem"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "成功"
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "bad_request",
                  "error_msg": "不適切な要求です。パラメータの指定誤り、入力規則違反です。入力内容をご確認ください。",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "400 Bad Request"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "不正なリクエスト"
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "unauthorized",
                  "error_msg": "error-unauthorized",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "401 Unauthorized"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "認証エラー"
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "not_found",
                  "error_msg": "対象が見つかりません。対象は利用できない状態か、IDまたはパスに誤りがあります。",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "404 Not Found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "キューが存在しない"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "サーバーエラー"
          }
        },
        "summary": "キューの設定変更"
      }
    },
    "/commonserviceitem/{id}/simplemq/message-count": {
      "get": {
        "operationId": "readMessageCount",
        "parameters": [
          {
            "$ref": "#/components/parameters/resourceIdPathParam"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "SimpleMQ": {
                      "properties": {
                        "count": {
                          "type": "integer"
                        },
                        "result": {
                          "default": "success",
                          "type": "string"
                        }
                      },
                      "required": [
                        "count"
                      ],
                      "type": "object"
                    },
                    "is_ok": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "SimpleMQ"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "成功"
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "bad_request",
                  "error_msg": "不適切な要求です。パラメータの指定誤り、入力規則違反です。入力内容をご確認ください。",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "400 Bad Request"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "不正なリクエスト"
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "unauthorized",
                  "error_msg": "error-unauthorized",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "401 Unauthorized"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "認証エラー"
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "not_found",
                  "error_msg": "対象が見つかりません。対象は利用できない状態か、IDまたはパスに誤りがあります。",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "404 Not Found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "キューが存在しない"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "サーバーエラー"
          }
        },
        "summary": "メッセージ数の取得"
      }
    },
    "/commonserviceitem/{id}/simplemq/messages": {
      "delete": {
        "operationId": "clearQueue",
        "parameters": [
          {
            "$ref": "#/components/parameters/resourceIdPathParam"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "SimpleMQ": {
                      "properties": {
                        "result": {
                          "default": "success",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "is_ok": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "成功"
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "bad_request",
                  "error_msg": "不適切な要求です。パラメータの指定誤り、入力規則違反です。入力内容をご確認ください。",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "400 Bad Request"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "不正なリクエスト"
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "unauthorized",
                  "error_msg": "error-unauthorized",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "401 Unauthorized"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "認証エラー"
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "not_found",
                  "error_msg": "対象が見つかりません。対象は利用できない状態か、IDまたはパスに誤りがあります。",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "404 Not Found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "キューが存在しない"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "サーバーエラー"
          }
        },
        "summary": "キュー内メッセージの全件削除"
      }
    },
    "/commonserviceitem/{id}/simplemq/rotate-apikey": {
      "put": {
        "description": "発行済みのAPIキーを無効化し、新たにAPIキーを発行します。",
        "operationId": "rotateAPIKey",
        "parameters": [
          {
            "$ref": "#/components/parameters/resourceIdPathParam"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "SimpleMQ": {
                      "properties": {
                        "apikey": {
                          "type": "string"
                        },
                        "result": {
                          "default": "success",
                          "type": "string"
                        }
                      },
                      "required": [
                        "apikey"
                      ],
                      "type": "object"
                    },
                    "is_ok": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "SimpleMQ"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "成功"
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "bad_request",
                  "error_msg": "不適切な要求です。パラメータの指定誤り、入力規則違反です。入力内容をご確認ください。",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "400 Bad Request"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "不正なリクエスト"
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "unauthorized",
                  "error_msg": "error-unauthorized",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "401 Unauthorized"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "認証エラー"
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error_code": "not_found",
                  "error_msg": "対象が見つかりません。対象は利用できない状態か、IDまたはパスに誤りがあります。",
                  "is_fatal": true,
                  "serial": "749ad39e1eea340c4d75bf5a4dd4bd11",
                  "status": "404 Not Found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "キューが存在しない"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "サーバーエラー"
          }
        },
        "summary": "APIキーの再発行"
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "servers": [
    {
      "description": "さくらのクラウドAPIエンドポイント",
      "url": "https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1"
    }
  ]
}
