Policy types for @turbot/servicenow-azure-networkwatcher
- Azure > Network Watcher > Flow Log > ServiceNow
- Azure > Network Watcher > Flow Log > ServiceNow > Configuration Item
- Azure > Network Watcher > Flow Log > ServiceNow > Configuration Item > Record
- Azure > Network Watcher > Flow Log > ServiceNow > Configuration Item > Table Definition
- Azure > Network Watcher > Flow Log > ServiceNow > Table
- Azure > Network Watcher > Flow Log > ServiceNow > Table > Definition
- Azure > Network Watcher > Network Watcher > ServiceNow
- Azure > Network Watcher > Network Watcher > ServiceNow > Configuration Item
- Azure > Network Watcher > Network Watcher > ServiceNow > Configuration Item > Record
- Azure > Network Watcher > Network Watcher > ServiceNow > Configuration Item > Table Definition
- Azure > Network Watcher > Network Watcher > ServiceNow > Table
- Azure > Network Watcher > Network Watcher > ServiceNow > Table > Definition
Azure > Network Watcher > Flow Log > ServiceNow
tmod:@turbot/servicenow-azure-networkwatcher#/policy/types/flowLogServiceNow
Azure > Network Watcher > Flow Log > ServiceNow > Configuration Item
Synchronize the data for the Azure > Network Watcher > Flow Log
based on the policies Azure > Network Watcher > Flow Log > ServiceNow > Configuration Item > *
The Configuration Item control is responsible for automatically synchronizing records in a designated ServiceNow table, maintaining an up-to-date reflection of the Azure > Network Watcher > Flow Log
information within the ServiceNow CMDB.
tmod:@turbot/servicenow-azure-networkwatcher#/policy/types/flowLogServiceNowConfigurationItem
[ "Skip", "Check: Archived", "Check: Deleted", "Check: Sync", "Enforce: Archived", "Enforce: Deleted", "Enforce: Sync", "Enforce: Sync, archive on delete"]
{ "type": "string", "enum": [ "Skip", "Check: Archived", "Check: Deleted", "Check: Sync", "Enforce: Archived", "Enforce: Deleted", "Enforce: Sync", "Enforce: Sync, archive on delete" ], "example": [ "Skip" ], "default": "Skip"}
Azure > Network Watcher > Flow Log > ServiceNow > Configuration Item > Record
The policy facilitates the accurate representation of cloud resource within the ServiceNow environment, ensuring that critical data is effectively mapped and managed. Attribute of an Azure > Network Watcher > Flow Log
is systematically mapped to a specific column in a ServiceNow table.
The policy allows enabling organizations to select and map only those attributes that are most relevant to their operational needs. It significantly reduces the manual effort involved in data transfer and minimizes the risk of errors, thereby enhancing the overall efficiency of data management.
tmod:@turbot/servicenow-azure-networkwatcher#/policy/types/flowLogServiceNowConfigurationItemRecord
"{\n resource: flowLog{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"enabled: {{ $.resource.data.enabled | dump | safe }}\nflow_analytics_configuration: {{ $.resource.data.flowAnalyticsConfiguration | dump | safe }}\nflow_log_location: {{ $.resource.data.location | dump | safe }}\nflow_log_name: {{ $.resource.data.name | dump | safe }}\nformat_type: {{ $.resource.data.format.type | dump | safe }}\nformat_version: {{ $.resource.data.format.version | dump | safe }}\nid: {{ $.resource.data.id | dump | safe }}\nnetwork_watcher_name: {{ $.resource.metadata.networkWatcherName | dump | safe }}\nprovisioning_state: {{ $.resource.data.provisioningState | dump | safe }}\nresource_group: {{ $.resource.metadata.azure.resourceGroupName | dump | safe }}\nretention_policy_days: {{ $.resource.data.retentionPolicy.days | dump | safe }}\nretention_policy_enabled: {{ $.resource.data.retentionPolicy.enabled | dump | safe }}\nstorage_id: {{ $.resource.data.storageId | dump | safe }}\nsubscription_id: {{ $.resource.metadata.azure.subscriptionId | dump | safe }}\ntags: {{ $.resource.turbot.tags | dump | safe }}\ntarget_resource_guid: {{ $.resource.data.targetResourceGuid | dump | safe }}\ntarget_resource_id: {{ $.resource.data.targetResourceId | dump | safe }}\ntraffic_analytics: {{ $.resource.data.trafficAnalytics | dump | safe }}\n"
{ "type": "object"}
Azure > Network Watcher > Flow Log > ServiceNow > Configuration Item > Table Definition
This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > Network Watcher > Flow Log
data will be stored, and the details of the columns used for archiving purposes.
tmod:@turbot/servicenow-azure-networkwatcher#/policy/types/flowLogServiceNowConfigurationItemTableDefinition
[ "{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n", "{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-azure-networkwatcher#/policy/types/flowLogServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"]
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
{ "type": "object", "additionalProperties": false, "required": [ "tableName" ], "properties": { "tableName": { "type": "string" }, "archiveColumns": { "type": "object" } }}
Azure > Network Watcher > Flow Log > ServiceNow > Table
Configure a Table for Azure > Network Watcher > Flow Log
resource type in ServiceNow via the Azure > Network Watcher > Flow Log > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-azure-networkwatcher#/policy/types/flowLogServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "type": "string", "enum": [ "Skip", "Check: Configured", "Enforce: Configured" ], "example": [ "Skip" ], "default": "Skip"}
Azure > Network Watcher > Flow Log > ServiceNow > Table > Definition
The policy enables the definition of ServiceNow table properties, including its name and the base table from which it extends, and details the specific columns required for representing Azure > Network Watcher > Flow Log
data.
tmod:@turbot/servicenow-azure-networkwatcher#/policy/types/flowLogServiceNowTableDefinition
{ "type": "object", "additionalProperties": false, "required": [ "table", "columns" ], "properties": { "table": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string", "pattern": "^([0-9a-z_])+$" }, "label": { "type": "string" }, "extendsTable": { "type": "string", "pattern": "^([0-9a-z_])+$" } } }, "columns": { "type": "array", "description": "An array of columns with their mappings to the CMDB.", "default": [], "items": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string", "description": "The name of the column in the table.", "pattern": "^([0-9a-z_])+$" }, "label": { "type": "string", "description": "The label for the column." }, "type": { "description": "The data type of the column.", "type": "string" }, "size": { "type": "integer", "description": "The length for data type." } } } } }, "default": { "table": { "name": "guardrails_azure_networkwatcher_flowlog", "label": "Azure > Network Watcher > Flow Log", "extendsTable": "cmdb_ci" }, "columns": [ { "name": "enabled", "label": "Enabled", "type": "boolean" }, { "name": "flow_analytics_configuration", "label": "Flow Analytics Configuration", "type": "string", "size": 2000 }, { "name": "flow_log_location", "label": "Location" }, { "name": "flow_log_name", "label": "Name" }, { "name": "format_type", "label": "Format Type" }, { "name": "format_version", "label": "Format Version" }, { "name": "id", "label": "ID" }, { "name": "network_watcher_name", "label": "Network Watcher Name" }, { "name": "provisioning_state", "label": "Provisioning State" }, { "name": "resource_group", "label": "Resource Group" }, { "name": "retention_policy_days", "label": "Retention Policy Days" }, { "name": "retention_policy_enabled", "label": "Retention Policy Enabled", "type": "boolean" }, { "name": "storage_id", "label": "Storage ID" }, { "name": "subscription_id", "label": "Subscription ID" }, { "name": "tags", "label": "Tags", "type": "string", "size": 1000 }, { "name": "target_resource_guid", "label": "Target Resource GUID" }, { "name": "target_resource_id", "label": "Target Resource ID" }, { "name": "traffic_analytics", "label": "Traffic Analytics", "type": "string", "size": 1000 } ] }}
Azure > Network Watcher > Network Watcher > ServiceNow
tmod:@turbot/servicenow-azure-networkwatcher#/policy/types/networkWatcherServiceNow
Azure > Network Watcher > Network Watcher > ServiceNow > Configuration Item
Synchronize the data for the Azure > Network Watcher > Network Watcher
based on the policies Azure > Network Watcher > Network Watcher > ServiceNow > Configuration Item > *
The Configuration Item control is responsible for automatically synchronizing records in a designated ServiceNow table, maintaining an up-to-date reflection of the Azure > Network Watcher > Network Watcher
information within the ServiceNow CMDB.
tmod:@turbot/servicenow-azure-networkwatcher#/policy/types/networkWatcherServiceNowConfigurationItem
[ "Skip", "Check: Archived", "Check: Deleted", "Check: Sync", "Enforce: Archived", "Enforce: Deleted", "Enforce: Sync", "Enforce: Sync, archive on delete"]
{ "type": "string", "enum": [ "Skip", "Check: Archived", "Check: Deleted", "Check: Sync", "Enforce: Archived", "Enforce: Deleted", "Enforce: Sync", "Enforce: Sync, archive on delete" ], "example": [ "Skip" ], "default": "Skip"}
Azure > Network Watcher > Network Watcher > ServiceNow > Configuration Item > Record
The policy facilitates the accurate representation of cloud resource within the ServiceNow environment, ensuring that critical data is effectively mapped and managed. Attribute of an Azure > Network Watcher > Network Watcher
is systematically mapped to a specific column in a ServiceNow table.
The policy allows enabling organizations to select and map only those attributes that are most relevant to their operational needs. It significantly reduces the manual effort involved in data transfer and minimizes the risk of errors, thereby enhancing the overall efficiency of data management.
tmod:@turbot/servicenow-azure-networkwatcher#/policy/types/networkWatcherServiceNowConfigurationItemRecord
"{\n resource: networkWatcher{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"id: {{ $.resource.data.id | dump | safe }}\nnetwork_watcher_location: {{ $.resource.data.location | dump | safe }}\nnetwork_watcher_name: {{ $.resource.data.name | dump | safe }}\nprovisioning_state: {{ $.resource.data.provisioningState | dump | safe }}\nregion_name: {{ $.resource.metadata.azure.regionName | dump | safe }}\nresource_group: {{ $.resource.metadata.azure.resourceGroupName | dump | safe }}\nsubscription_id: {{ $.resource.metadata.azure.subscriptionId | dump | safe }}\ntags: {{ $.resource.turbot.tags | dump | safe }}\n"
{ "type": "object"}
Azure > Network Watcher > Network Watcher > ServiceNow > Configuration Item > Table Definition
This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > Network Watcher > Network Watcher
data will be stored, and the details of the columns used for archiving purposes.
tmod:@turbot/servicenow-azure-networkwatcher#/policy/types/networkWatcherServiceNowConfigurationItemTableDefinition
[ "{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n", "{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-azure-networkwatcher#/policy/types/networkWatcherServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"]
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
{ "type": "object", "additionalProperties": false, "required": [ "tableName" ], "properties": { "tableName": { "type": "string" }, "archiveColumns": { "type": "object" } }}
Azure > Network Watcher > Network Watcher > ServiceNow > Table
Configure a Table for Azure > Network Watcher > Network Watcher
resource type in ServiceNow via the Azure > Network Watcher > Network Watcher > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-azure-networkwatcher#/policy/types/networkWatcherServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "type": "string", "enum": [ "Skip", "Check: Configured", "Enforce: Configured" ], "example": [ "Skip" ], "default": "Skip"}
Azure > Network Watcher > Network Watcher > ServiceNow > Table > Definition
The policy enables the definition of ServiceNow table properties, including its name and the base table from which it extends, and details the specific columns required for representing Azure > Network Watcher > Network Watcher
data.
tmod:@turbot/servicenow-azure-networkwatcher#/policy/types/networkWatcherServiceNowTableDefinition
{ "type": "object", "additionalProperties": false, "required": [ "table", "columns" ], "properties": { "table": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string", "pattern": "^([0-9a-z_])+$" }, "label": { "type": "string" }, "extendsTable": { "type": "string", "pattern": "^([0-9a-z_])+$" } } }, "columns": { "type": "array", "description": "An array of columns with their mappings to the CMDB.", "default": [], "items": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string", "description": "The name of the column in the table.", "pattern": "^([0-9a-z_])+$" }, "label": { "type": "string", "description": "The label for the column." }, "type": { "description": "The data type of the column.", "type": "string" }, "size": { "type": "integer", "description": "The length for data type." } } } } }, "default": { "table": { "name": "guardrails_azure_networkwatcher_networkwatcher", "label": "Azure > Network Watcher > Network Watcher", "extendsTable": "cmdb_ci" }, "columns": [ { "name": "id", "label": "ID" }, { "name": "network_watcher_location", "label": "Location" }, { "name": "network_watcher_name", "label": "Name" }, { "name": "provisioning_state", "label": "Provisioning State" }, { "name": "region_name", "label": "Region Name" }, { "name": "resource_group", "label": "Resource Group" }, { "name": "subscription_id", "label": "Subscription ID" }, { "name": "tags", "label": "Tags", "type": "string", "size": 1000 } ] }}