chg: [command:importer] More complete mapping for enisa csirts inventory

pull/67/head
mokaddem 2021-07-05 09:35:06 +02:00
parent 9de600db97
commit 256b39691c
2 changed files with 32 additions and 25 deletions

View File

@ -0,0 +1,32 @@
{
"format": "json",
"mapping": {
"name": "data.{n}.short-team-name",
"uuid": {
"path": "data.{n}.team-name",
"override": false,
"massage": "genUUID"
},
"url": "data.{n}.website",
"contacts": "data.{n}.email",
"ISO 3166-1 Code": "data.{n}.country-code",
"website": "data.{n}.website",
"enisa-geo-group": "data.{n}.enisa-geo-group",
"is-approved": "data.{n}.is_approved",
"first-member-type": "data.{n}.first-member-type",
"team-name": "data.{n}.team-name",
"oes-coverage": {
"path": "data.{n}.oes-coverage",
"massage": "nullToEmptyString"
},
"enisa-tistatus": "data.{n}.enisa-tistatus",
"csirt-network-status": "data.{n}.csirt-network-status",
"constituency": "data.{n}.constituency",
"establishment": "data.{n}.establishment",
"email": "data.{n}.email",
"country-name": "data.{n}.country-name",
"short-team-name": "data.{n}.short-team-name",
"key": "data.{n}.key"
},
"metaTemplateUUID": "089c68c7-d97e-4f21-a798-159cd10f7864"
}

View File

@ -1,25 +0,0 @@
{
"format": "json",
"mapping": {
"name": "data.{n}.short-team-name",
"uuid": {
"path": "data.{n}.team-name",
"override": false,
"massage": "genUUID"
},
"url": "data.{n}.website",
"nationality": "data.{n}.country-name",
"membership_type": "data.{n}.first-member-type",
"email": "data.{n}.email",
"country": "data.{n}.country-name",
"official_name": "data.{n}.team-name",
"established": "data.{n}.establishment",
"website": "data.{n}.website",
"constituency": "data.{n}.constituency",
"is_approved": "data.{n}.is_approved",
"enisa_geo_group": "data.{n}.enisa-geo-group",
"oes_coverage": "data.{n}.oes-coverage",
"enisa-tistatus": "data.{n}.enisa-tistatus",
"csirt_network_status": "data.{n}.csirt-network-status"
}
}