调用UploadGatewayLog上传网关支持信息。
调用该接口时,您需要注意:
- 仅支持网关状态为运行中(Running)、已激活(Activated)时调用此接口。
请求参数
名称 |
类型 |
是否必选 |
示例值 |
描述 |
名称 |
类型 |
是否必选 |
示例值 |
描述 |
Action | String | 是 | UploadGatewayLog | 系统规定参数。取值:UploadGatewayLog。 |
GatewayId | String | 是 | gw-0001xv7je3031yzun*** | 网关ID。 |
返回数据
示例
请求示例
http(s)://[Endpoint]/?Action=UploadGatewayLog
&GatewayId=gw-0001xv7je3031yzun***
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<UploadGatewayLogResponse>
<TaskId>t-0001xv7je3580412f***</TaskId>
<Message>successful</Message>
<RequestId>CB300009-3850-4107-B291-59BDB4EDA183</RequestId>
<Code>200</Code>
<Success>true</Success>
</UploadGatewayLogResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"TaskId" : "t-0001xv7je3580412f***",
"Message" : "successful",
"RequestId" : "CB300009-3850-4107-B291-59BDB4EDA183",
"Code" : "200",
"Success" : true
}
错误码
HttpCode |
错误码 |
错误信息 |
描述 |
HttpCode |
错误码 |
错误信息 |
描述 |
400 | EmptyGatewayId | You must enter a valid ID for the gateway. | 网关ID不能为空。 |
400 | GatewayNotExist | The specified gateway does not exist. You must specify a valid parameter. | 网关不存在,请确认输入参数是否正确。 |
400 | GatewayOperationNotAllowed | You cannot perform the operation when the gateway is in the current state. | 网关当前状态不允许执行该操作。 |
400 | BadRequest | Invalid request. You must specify valid parameters in the request. | 非法请求,请检查请求参数。 |
访问错误中心查看更多错误码。
上一篇:无下一篇:云存储网关
该文章对您有帮助吗?
- 本页导读 (1)
- 请求参数
- 返回数据
- 示例
- 错误码