获取自定义分析器详情。

调试

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

请求头

该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。

请求语法

GET /v4/openapi/user-analyzers/[name] HTTP/1.1

请求参数

名称 类型 位置 是否必选 示例值 描述
name String Path kevin_test

分析器名称

with String Query all

关联信息,根据层级输出属性

  • all 输出关联app信息

返回数据

名称 类型 示例值 描述
requestId String FFAEF396-10EF-53C7-1F51-518853880729

请求ID

result Map {}

自定义分析器

示例

请求示例

GET /v4/openapi/user-analyzers/kevin_test?with=all

正常返回示例

XML格式

<requestId>FFAEF396-10EF-53C7-1F51-518853880729</requestId>
<result>
    <id>1234</id>
    <name>kevin_test</name>
    <business>chn_it_content</business>
    <available>true</available>
    <relatedAppInfoList>
        <id>100298352</id>
        <name>test_srn_mysql</name>
    </relatedAppInfoList>
    <dicts>
        <id>123</id>
        <type>segment</type>
        <entries>
            <cmd>add</cmd>
            <key>kevintest</key>
            <value>kevin test</value>
            <created>1536690285</created>
            <updated>1537348987</updated>
            <status>ACTIVE</status>
            <splitEnabled>true</splitEnabled>
        </entries>
        <entries>
            <cmd>add</cmd>
            <key>abcd</key>
            <value>abcd</value>
            <created>1536690285</created>
            <updated>1537348987</updated>
            <status>ACTIVE</status>
            <splitEnabled>true</splitEnabled>
        </entries>
        <entriesLimit>4</entriesLimit>
        <entriesCount>2</entriesCount>
        <available>true</available>
        <created>1584702214</created>
        <updated>1584702214</updated>
    </dicts>
    <created>1584702212</created>
    <updated>1584702212</updated>
</result>

JSON格式

{
    "requestId": "FFAEF396-10EF-53C7-1F51-518853880729",
    "result": {
        "id": 1234,
        "name": "kevin_test",
        "business": "chn_it_content",
        "available": true,
        "relatedAppInfoList": {
            "id": 100298352,
            "name": "test_srn_mysql"
        },
        "dicts": {
            "id": 123,
            "type": "segment",
            "entries": [
                {
                    "cmd": "add",
                    "key": "kevintest",
                    "value": "kevin test",
                    "created": 1536690285,
                    "updated": 1537348987,
                    "status": "ACTIVE",
                    "splitEnabled": true
                },
                {
                    "cmd": "add",
                    "key": "abcd",
                    "value": "abcd",
                    "created": 1536690285,
                    "updated": 1537348987,
                    "status": "ACTIVE",
                    "splitEnabled": true
                }
            ],
            "entriesLimit": 4,
            "entriesCount": 2,
            "available": true,
            "created": 1584702214,
            "updated": 1584702214
        },
        "created": 1584702212,
        "updated": 1584702212
    }
}

错误码

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