调用PutExporterOutput接口创建或者修改一个监控数据导出配置。
接口说明
目前仅支持日志服务(SLS),后续将支持导出更多的产品。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
cms:PutExporterOutput |
create |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| DestName |
string |
是 |
配置的名称。 |
exporterConfig |
| ConfigJson |
string |
是 |
数据导出的配置。是一个 JSONObject 字符串。必须要包含如下字段:
|
{ "endpoint": "http://cn-qingdao-share.log.aliyuncs.com", "project": "exporter", "logstore": "exporter","ak": "LTAIp*******", "userId": "17754********", "as": "TxHwuJ8yAb3AU******"} |
| Desc |
string |
否 |
配置的描述信息。 |
CPU metric export |
| DestType |
string |
否 |
导出的产品。 |
sls |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| Code |
string |
状态码。 说明
200 表示成功。 |
200 |
| Message |
string |
返回信息。 |
The Request is not authorization. |
| RequestId |
string |
请求 ID。 |
6A5F022D-AC7C-460E-94AE-B9E75083D027 |
| Success |
boolean |
操作是否成功。true 表示成功,false 表示失败。 |
true |
示例
正常返回示例
JSON格式
{
"Code": "200",
"Message": "The Request is not authorization.",
"RequestId": "6A5F022D-AC7C-460E-94AE-B9E75083D027",
"Success": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | ParameterInvalid | Illegal parameters. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | AccessForbidden | User not authorized to operate on the specified resource. | |
| 404 | ResourceNotFound | The specified resource is not found. | 未找到指定资源。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。