更新API 端點。
介面說明
用於更新 API 端點相關配置資訊。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
eventbridge:UpdateApiDestination |
update |
*ApiDestination
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| Description |
string |
否 |
API 端點描述資訊,最大長度 255 個字元。 |
demo |
| ApiDestinationName |
string |
是 |
需要更新的 API 端點名稱,最大長度 127 個字元。最小長度 2 個字元。 |
api-destination-name |
| ConnectionName |
string |
否 |
串連配置名稱。最大長度 127 個字元。最小長度 2 個字元。 提示 : 需要先調用 Connection 介面建立串連配置,ConnectionName 填寫已存在的串連名稱 |
connection-name |
| HttpApiParameters |
object |
否 |
API 端點的配置資訊 |
|
| Endpoint |
string |
否 |
API 端點的存取點地址。最大長度 127 個字元。 |
http://127.0.0.1:8001/api |
| Method |
string |
否 |
HTTP 要求方法。
|
POST |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID |
382E6272-8E9C-5681-AC96-A8AF0BFAC1A5 |
| Message |
string |
響應訊息,若成功請求為 success |
success |
| Code |
string |
介面狀態或 POP 錯誤碼。取值說明如下:Success:成功。 |
Success |
| ApiDestinationName |
string |
API 端點名稱。 |
api-destination-name |
樣本
正常返回樣本
JSON格式
{
"RequestId": "382E6272-8E9C-5681-AC96-A8AF0BFAC1A5",
"Message": "success",
"Code": "Success",
"ApiDestinationName": "api-destination-name"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 500 | InternalError | InternalError | |
| 409 | RequestParameterException | Request parameter exception | |
| 409 | ApiDestinationNotExist | The api-destination not existed! | |
| 409 | HttpApiParametersIsNull | HttpApiParameters is null! | |
| 409 | EndpointIsBlank | Endpoint is blank! | |
| 409 | Method | Method is blank! | |
| 409 | EndpointLengthExceed | Endpoint length cannot exceed 127! | |
| 409 | ConnectionNotExist | The Connection not existed! |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。