在azure数据目录中注释列标记

时间:2016-12-24 06:25:41

标签: azure-data-catalog

我可以使用资产URL(ADC中表格的位置)来注释表格的描述。

我使用的Http请求是:

{table_location_url}/descriptions?api-version=2016-03-30

Json对象是:

    private static string DescriptionJson(string description)
    {
        return string.Format(@"
        {{
            ""properties"" : {{
                ""key"": ""{0}"",
                ""fromSourceSystem"": false,
                ""description"": ""{1}""
            }}
        }}
        ", Guid.NewGuid().ToString("N"), description);
    }

为表格添加说明是成功的。

现在我正在尝试使用

注释列的标记
    Http request:  {table_location_url}/columnTags?api-version=2016-03-30

    static string SampleAnnotationJson(string name)
    {
        return string.Format(@"
        {{
            ""properties"" : {{                    
                ""key"": ""{0}"",
                ""fromSourceSystem"": false,
                ""columnName"": ""on_hold_text_key"",
                ""termId"": ""https://1194df16-3ae0-49aa-b48b-5c4da6e13689-imss-data-catalog.api.datacatalog.azure.com/catalogs/IMSS-Data-Catalog/glossaries/IMSS-Data-Catalog/terms/4b8fe89d-c92a-4aee-abe1-691a2cd52458"",
             }}             
        ", Guid.NewGuid().ToString("N"));
    }

我的请求错误(400)。

我错过了什么吗?

1 个答案:

答案 0 :(得分:1)

问题在于json请求,花括号未正确关闭。它可以正常纠正。