路网数字化服务 DRIS-创建数据转发配置:请求示例

时间:2024-10-24 18:13:03

请求示例

POST https://{endpoint}/v1/{project_id}/forwarding-configs
Content-Type:application/json
X-Auth-Token:********
Instance-Id:********

{
  "forwarding_type" : "kafka",
  "forwarding_config" : {
    "kafka_config" : {
      "topic_prefix" : "prefix",
      "user_topics" : [ "v2x-v1-tracks", "v2x-v1-bsm", "v2x-v1-rsi", "v2x-v1-rsm", "v2x-v1-spat", "v2x-v1-edge-flow", "realtime-traffic", "junction-realtime-traffic", "forecast-traffic", "recommended-strategies", "executed-strategies", "strategy-evaluations", "confirmed-event", "traffic-event", "compositive-tracks", "model-data", "request-strategies", "congestion-event", "congestion-prediction-event" ],
      "brokers" : [ "127.0.0.1:10000" ],
      "username" : "1234567890",
      "password" : "1234567890",
      "model_ids" : [ "40f96952-ea2f-4a10-8a92-e641aa1c6e49" ]
    }
  }
}
support.huaweicloud.com/api-v2x/v2x_04_0063.html