diff --git a/akamai-guardicore-centra/custom-integration-centra-v3-api.star b/akamai-guardicore-centra/custom-integration-centra-v3-api.star index 97720a2..656957a 100644 --- a/akamai-guardicore-centra/custom-integration-centra-v3-api.star +++ b/akamai-guardicore-centra/custom-integration-centra-v3-api.star @@ -82,7 +82,7 @@ def build_assets(assets): agent_labels = agent_info.get('labels', []) for label in agent_labels: custom_attributes['agent.labels.' + str(agent_labels.index(label))] = label - labels = asset.get('lables', []) + labels = asset.get('labels', []) for label in labels: for k, v in label.items(): custom_attributes['labels.' + str(labels.index(label)) + '.' + k ] = v diff --git a/akamai-guardicore-centra/custom-integration-centra-v4-api.star b/akamai-guardicore-centra/custom-integration-centra-v4-api.star index b39a41c..3746f3d 100644 --- a/akamai-guardicore-centra/custom-integration-centra-v4-api.star +++ b/akamai-guardicore-centra/custom-integration-centra-v4-api.star @@ -73,6 +73,13 @@ def build_assets(assets, token): label_mapping[k] = v name = label_mapping.get(guid, '') label_names.append(name) + + tags = [] + for label in label_names: + split_tag = label.split(':').strip() + reformat = split_tag[0] + '=' + split_tag[1] + tag_string = tag_string + ' ' + reformat + tags.append(tag_string) custom_attributes = { @@ -113,7 +120,8 @@ def build_assets(assets, token): os=os, first_seen_ts=first_seen, networkInterfaces=interfaces, - customAttributes=custom_attributes + customAttributes=custom_attributes, + tags=tags ) ) return assets_import diff --git a/docs/integrations.json b/docs/integrations.json index abab71b..1e0f19b 100644 --- a/docs/integrations.json +++ b/docs/integrations.json @@ -1,5 +1,5 @@ { - "lastUpdated": "2025-12-15T22:06:49.938502Z", + "lastUpdated": "2026-01-14T17:06:56.123071Z", "totalIntegrations": 30, "integrationDetails": [ {