[{"label":"Latest (2.0.1)","version":"latest"}]
telco-cloud-service-assurance

Create Kafka Mapper

Description

Create a new Kafka Mapper.

Request

Request

URL

URL


post
https://{api_host}tcsa.host.com/v1/kafkamapper/mappings
Copy

Request Body

Request Body

kafkaMapperRequestObject of mimetype application/json Required

Request to create a New Kafka Mapper.

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns object of type application/json
Errors

Errors

400

Invalid Request sent by the user


401

User authentication failed


403

Access to the requested resource/operation is forbidden


404

Cannot find requested resource


object
409

Resource already exists


500

Internal server error

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"demo1":{"default":{"mapping":{"instance":"$.labels.instance","metricType":"Generic","metrics.test":"$.labels.CUUPID","processedTimestamp":"$.labels.timestamp","properties.dataSource":"$.labels.CUUPID","properties.deviceName":"$.labels.kubernetes_pod_name","properties.deviceType":"$.labels.kubernetes_namespace","properties.entityName":"$.labels.name","properties.entityType":"$.labels.nfType","properties.ip":"$.labels.cnfc_uuid","tags.customer":"$.labels.MessageType","timestamp":"$.labels.timestamp","type":"Kafka-Collector"}},"metadata":{"description":"sample","enabled":true,"keys":[],"model":"Generic","type":"json_metrics"}}}' https://{api_host}tcsa.host.com/v1/kafkamapper/mappings


[{"label":"Latest (2.0.1)","version":"latest"}]
telco-cloud-service-assurance
Feedback

Was this page helpful?