调用ListLiveRealtimeLogDelivery查询用户下所有实时日志投递。

使用说明

您可调用本接口查询用户下所有实时日志投递,无其他特殊使用说明,调用时请保证参数设置符合要求。

QPS限制

本接口的单用户QPS限制为6000次/分钟。超过限制,API调用会被限流,这可能会影响您的业务,请合理调用。更多信息,请参见QPS限制

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String ListLiveRealtimeLogDelivery

系统规定参数。取值:

ListLiveRealtimeLogDelivery

RegionId String cn-shanghai

地域ID。

返回数据

名称 类型 示例值 描述
Content Array of RealtimeLogDeliveryInfo

实时日志投递信息。

RealtimeLogDeliveryInfo
DmId Integer 1001010

域名ID。

DomainName String example.com

播流域名。

Logstore String logstore_example

实时投递SLS的LogStoreName。

Project String project_example

实时投递SLS的ProjectName。

Region String cn-hangzhou

实时投递SLS的Region。

Status String online

日志服务状态。取值:

  • online:正在服务。
  • offline:停止服务。
RequestId String 30559C03-86C9-4EEC-B840-0DC5F5A2189B

请求ID。

示例

请求示例

http(s)://live.aliyuncs.com/?Action=ListLiveRealtimeLogDelivery
&<公共请求参数>

正常返回示例

XML格式

<ListLiveRealtimeLogDeliveryResponse>
      <RequestId>30559C03-86C9-4EEC-B840-0DC5F5A2189B</RequestId>
      <Content>
            <RealtimeLogDeliveryInfo>
                  <Status>online</Status>
                  <Region>cn-hangzhou-corp</Region>
                  <Domain>example.com</Domain>
                  <DmId>1001010</DmId>
                  <Project>project_example</Project>
                  <Logstore>logstore_example</Logstore>
            </RealtimeLogDeliveryInfo>
            <RealtimeLogDeliveryInfo>
                  <Status>online</Status>
                  <Region>cn-hangzhou</Region>
                  <Domain>example.com</Domain>
                  <DmId>101010101</DmId>
                  <Project>project_example</Project>
                  <Logstore>logstore_example</Logstore>
            </RealtimeLogDeliveryInfo>
      </Content>
</ListLiveRealtimeLogDeliveryResponse>

JSON格式

{
    "ListLiveRealtimeLogDeliveryResponse": {
        "RequestId": "30559C03-86C9-4EEC-B840-0DC5F5A2189B",
        "Content": {
            "RealtimeLogDeliveryInfo": [
                {
                    "Status": "online",
                    "Region": "cn-hangzhou-corp",
                    "Domain": "example.com",
                    "DmId": 1001010,
                    "Project": "project_example",
                    "Logstore": "logstore_example"
                },
                {
                    "Status": "online",
                    "Region": "cn-hangzhou",
                    "Domain": "example.com",
                    "DmId": 101010101,
                    "Project": "project_example",
                    "Logstore": "logstore_example"
                }
            ]
        }
    }
}

错误码

访问错误中心查看更多错误码。

特定错误码

HttpCode

错误码

错误信息

描述

403

Unauthorized

RealtimeLogDelivery Service Not Authorized

没有开启实时投递授权。