Ndr2.0组件配置说明

Ndr2.0组件配置说明

Ndr2.0组件配置文件,方便接入应用进行定制和状态设置。
配置文件路径: StreamingAssets/Config/NdrServices.json
配置项说明:

{
    "CsHost" : "http://gcdncs.101.com/v0.1/static", //cs服务cdn地址
    "SdpAppId" : "07ecd3c9-8a37-4e1f-bcc5-8b7f27485be2", //应用Id
    "GatewayServiceHost" : "http://vlab-web-gateway.sdp.101.com", //权限网关服务地址
    "GatewayAuthorization" : "UCToken", //权限网关权限认证(UCToken)
    "NdrServiceHost" : "https://ndr-gateway.sdp.101.com", //Ndr2.0服务地址
    "NdrAuthorization" : "UCToken", //Ndr权限认证(UCToken/AKSKToken)
    "NdrAkToken" : "omsj2f6Ieg4Y51U85dWL", //AKSKToken认证AKToken
    "NdrSkToken" : "2ZPdu6045c4Afv7kYe2O", //AKSKToken认证SKToken
    "NdrTenantId" : 310, //租户Id
    "NdrContainerId" : "VLab101", //容器Id
    "NdrTagViewName" : "VLab101TagView", //标签视图名
    "NdrRequestLanguage" : "zh-CN", //语言编码
    "NdrQueryStatus" : "Online", //资源检索类型(Online/AllStatus)
    "NdrCacheEnable" : false, //是否开启缓存
    "NdrServiceEntries" :
    [
        {
            "ServiceName" : "NdrContainerRequest", //服务名
            "ServiceAPI" : "/v1.0/310/container/list", //Ndr服务API
            "ServiceMethod" : 0, //Ndr服务请求方式(0-GET,1-POST)
            "GatewayServiceAPI" : "", //权限网关服务API,填空表示不通过权限网关服务器
            "GatewayServiceMethod" : 0 //权限网关服务请求方式(0-GET,1-POST)
        },
        {
            "ServiceName" : "NdrTagViewRequest",
            "ServiceAPI" : "/v1.0/310/tag_views/VLab101TagView",
            "ServiceMethod" : 0,
            "GatewayServiceAPI" : "",
            "GatewayServiceMethod" : 0
        },
        {
            "ServiceName" : "NdrTagCascadeRequest",
            "ServiceAPI" : "/v1.0/310/tag_cascades",
            "ServiceMethod" : 0,
            "GatewayServiceAPI" : "/v1/client/ndr/tag_cascades",
            "GatewayServiceMethod" : 0
        },
        {
            "ServiceName" : "NdrOnlineResourceQueryRequest",
            "ServiceAPI" : "/v1.0/310/search/query",
            "ServiceMethod" : 2,
            "GatewayServiceAPI" : "/v1/client/ndr/resource_query",
            "GatewayServiceMethod" : 0
        },
        {
            "ServiceName" : "NdrAllResourceQueryRequest",
            "ServiceAPI" : "/v1.0/310/search/all_status/query",
            "ServiceMethod" : 2,
            "GatewayServiceAPI" : "/v1/client/ndr/resource_query",
            "GatewayServiceMethod" : 0
        },
        {
            "ServiceName" : "NdrChapterHierarchyRequest",
            "ServiceAPI" : "/v1.0/310/tree_nodes/none/children",
            "ServiceMethod" : 0,
            "GatewayServiceAPI" : "/v1/client/ndr/tree_nodes/children",
            "GatewayServiceMethod" : 0
        }
    ]
}

更新记录

2020/06/28 [刘剑(281001)]