curl --location --request POST 'https://api.flashcat.cloud/api/n9e-plus/datasource-label-mapping' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NfdXVpZCI6IjdjMGM4YmQyLTExOTYtNDlmYS04YzY0LWE0NDE2ODQ4NTUzYSIsImF1dGhvcml6ZWQiOnRydWUsImV4cCI6MTc0OTg4ODQ4MCwidXNlcl9pZGVudGl0eSI6IjEtcm9vdCJ9._S1Isb29viOhHyVrjbwIUjPZnNQXewmb4zftVeqbFpA' \
--header 'X-User-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"ds_id": 0,
"ds_cate": "string",
"label_mapping": [
{
"label_mapping_id": 0,
"label_mapping_name": "string",
"label_source_type": "string",
"label_source_config": {
"cloudwatch": {
"resource_type": "string",
"namespace": "string"
}
},
"source_keys": [
{
"source_key": "string",
"target_key": "string"
}
],
"append_keys": [
{
"source_key": "string",
"rename_key": true,
"target_key": "string"
}
]
}
]
}'