Policy types for @turbot/servicenow-azure-datafactory

Azure > Data Factory > Dataset > ServiceNow

URI
tmod:@turbot/servicenow-azure-datafactory#/policy/types/datasetServiceNow
Targets

Azure > Data Factory > Dataset > ServiceNow > Configuration Item

Synchronize the data for the Azure > Data Factory > Dataset based on the policies Azure > Data Factory > Dataset > 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 > Data Factory > Dataset information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-azure-datafactory#/policy/types/datasetServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"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 > Data Factory > Dataset > 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 > Data Factory > Dataset 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.

URI
tmod:@turbot/servicenow-azure-datafactory#/policy/types/datasetServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: dataset{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"dataset_name: {{ $.resource.data.name | dump | safe }}\netag: {{ $.resource.data.etag | dump | safe }}\nfactory_name: {{ $.resource.metadata.factoryName | dump | safe }}\nid: {{ $.resource.data.id | dump | safe }}\nproperties: {{ $.resource.data.properties | dump | safe }}\nresource_group: {{ $.resource.metadata.azure.resourceGroupName | dump | safe }}\nsubscription_id: {{ $.resource.metadata.azure.subscriptionId | dump | safe }}\ntype: {{ $.resource.data.type | dump | safe }}\n"
Schema
{
"type": "object"
}

Azure > Data Factory > Dataset > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > Data Factory > Dataset data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-azure-datafactory#/policy/types/datasetServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\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-datafactory#/policy/types/datasetServiceNowTableDefinition 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"
]
Default Template
"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"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

Azure > Data Factory > Dataset > ServiceNow > Table

Configure a Table for Azure > Data Factory > Dataset resource type in ServiceNow via the Azure > Data Factory > Dataset > ServiceNow > Table > * policies.

URI
tmod:@turbot/servicenow-azure-datafactory#/policy/types/datasetServiceNowTable
Valid Value
[
"Skip",
"Check: Configured",
"Enforce: Configured"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Configured",
"Enforce: Configured"
],
"example": [
"Skip"
],
"default": "Skip"
}

Azure > Data Factory > Dataset > 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 > Data Factory > Dataset data.

URI
tmod:@turbot/servicenow-azure-datafactory#/policy/types/datasetServiceNowTableDefinition
Schema
{
"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_datafactory_dataset",
"label": "Azure > Data Factory > Dataset",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "dataset_name",
"label": "Name"
},
{
"name": "etag",
"label": "Etag"
},
{
"name": "factory_name",
"label": "Factory Name"
},
{
"name": "id",
"label": "ID"
},
{
"name": "properties",
"label": "Properties",
"type": "string",
"size": 1000
},
{
"name": "resource_group",
"label": "Resource Group"
},
{
"name": "subscription_id",
"label": "Subscription ID"
},
{
"name": "type",
"label": "Type"
}
]
}
}

Azure > Data Factory > Factory > ServiceNow

URI
tmod:@turbot/servicenow-azure-datafactory#/policy/types/factoryServiceNow
Targets

Azure > Data Factory > Factory > ServiceNow > Configuration Item

Synchronize the data for the Azure > Data Factory > Factory based on the policies Azure > Data Factory > Factory > 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 > Data Factory > Factory information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-azure-datafactory#/policy/types/factoryServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"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 > Data Factory > Factory > 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 > Data Factory > Factory 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.

URI
tmod:@turbot/servicenow-azure-datafactory#/policy/types/factoryServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: factory{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"create_time: {{ $.resource.data.createTime | dump | safe }}\nencryption: {{ $.resource.data.encryption | dump | safe }}\netag: {{ $.resource.data.eTag | dump | safe }}\nfactory_name: {{ $.resource.data.name | dump | safe }}\nid: {{ $.resource.data.id | dump | safe }}\nidentity: {{ $.resource.data.identity | dump | safe }}\nprovisioning_state: {{ $.resource.data.provisioningState | dump | safe }}\npublic_network_access: {{ $.resource.data.publicNetworkAccess | dump | safe }}\nregion: {{ $.resource.metadata.azure.regionName | dump | safe }}\nrepo_configuration: {{ $.resource.data.repoConfiguration | dump | safe }}\nresource_group: {{ $.resource.metadata.azure.resourceGroupName | dump | safe }}\nsubscription_id: {{ $.resource.metadata.azure.subscriptionId | dump | safe }}\ntags: {{ $.resource.turbot.tags | dump | safe }}\ntype: {{ $.resource.data.type | dump | safe }}\n"
Schema
{
"type": "object"
}

Azure > Data Factory > Factory > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > Data Factory > Factory data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-azure-datafactory#/policy/types/factoryServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\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-datafactory#/policy/types/factoryServiceNowTableDefinition 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"
]
Default Template
"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"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

Azure > Data Factory > Factory > ServiceNow > Table

Configure a Table for Azure > Data Factory > Factory resource type in ServiceNow via the Azure > Data Factory > Factory > ServiceNow > Table > * policies.

URI
tmod:@turbot/servicenow-azure-datafactory#/policy/types/factoryServiceNowTable
Valid Value
[
"Skip",
"Check: Configured",
"Enforce: Configured"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Configured",
"Enforce: Configured"
],
"example": [
"Skip"
],
"default": "Skip"
}

Azure > Data Factory > Factory > 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 > Data Factory > Factory data.

URI
tmod:@turbot/servicenow-azure-datafactory#/policy/types/factoryServiceNowTableDefinition
Schema
{
"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_datafactory_factory",
"label": "Azure > Data Factory > Factory",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "create_time",
"label": "Create Time"
},
{
"name": "encryption",
"label": "Encryption",
"type": "string",
"size": 1000
},
{
"name": "etag",
"label": "Etag"
},
{
"name": "factory_name",
"label": "Name"
},
{
"name": "id",
"label": "ID"
},
{
"name": "identity",
"label": "Identity",
"type": "string",
"size": 1000
},
{
"name": "provisioning_state",
"label": "Provisioning State"
},
{
"name": "public_network_access",
"label": "Public Network Access"
},
{
"name": "region",
"label": "Region"
},
{
"name": "repo_configuration",
"label": "Repo Configuration",
"type": "string",
"size": 1000
},
{
"name": "resource_group",
"label": "Resource Group"
},
{
"name": "subscription_id",
"label": "Subscription ID"
},
{
"name": "tags",
"label": "Tags",
"type": "string",
"size": 1000
},
{
"name": "type",
"label": "Type"
}
]
}
}

Azure > Data Factory > Pipeline > ServiceNow

URI
tmod:@turbot/servicenow-azure-datafactory#/policy/types/pipelineServiceNow
Targets

Azure > Data Factory > Pipeline > ServiceNow > Configuration Item

Synchronize the data for the Azure > Data Factory > Pipeline based on the policies Azure > Data Factory > Pipeline > 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 > Data Factory > Pipeline information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-azure-datafactory#/policy/types/pipelineServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"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 > Data Factory > Pipeline > 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 > Data Factory > Pipeline 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.

URI
tmod:@turbot/servicenow-azure-datafactory#/policy/types/pipelineServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: pipeline{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"activities: {{ $.resource.data.activities | dump | safe }}\nannotations: {{ $.resource.data.annotations | dump | safe }}\nconcurrency: {{ $.resource.data.concurrency | dump | safe }}\ndescription: {{ $.resource.data.description | dump | safe }}\netag: {{ $.resource.data.etag | dump | safe }}\nfactory_name: {{ $.resource.metadata.factoryName | dump | safe }}\nid: {{ $.resource.data.id | dump | safe }}\nparameters: {{ $.resource.data.parameters | dump | safe }}\npipeline_folder: {{ $.resource.data.SourceFolder | dump | safe }}\npipeline_name: {{ $.resource.data.name | dump | safe }}\npipeline_policy: {{ $.resource.data.policy | dump | safe }}\nresource_group: {{ $.resource.metadata.azure.resourceGroupName | dump | safe }}\nsubscription_id: {{ $.resource.metadata.azure.subscriptionId | dump | safe }}\ntype: {{ $.resource.data.type | dump | safe }}\nvariables: {{ $.resource.data.variables | dump | safe }}\n"
Schema
{
"type": "object"
}

Azure > Data Factory > Pipeline > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > Data Factory > Pipeline data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-azure-datafactory#/policy/types/pipelineServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\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-datafactory#/policy/types/pipelineServiceNowTableDefinition 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"
]
Default Template
"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"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

Azure > Data Factory > Pipeline > ServiceNow > Table

Configure a Table for Azure > Data Factory > Pipeline resource type in ServiceNow via the Azure > Data Factory > Pipeline > ServiceNow > Table > * policies.

URI
tmod:@turbot/servicenow-azure-datafactory#/policy/types/pipelineServiceNowTable
Valid Value
[
"Skip",
"Check: Configured",
"Enforce: Configured"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Configured",
"Enforce: Configured"
],
"example": [
"Skip"
],
"default": "Skip"
}

Azure > Data Factory > Pipeline > 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 > Data Factory > Pipeline data.

URI
tmod:@turbot/servicenow-azure-datafactory#/policy/types/pipelineServiceNowTableDefinition
Schema
{
"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_datafactory_pipeline",
"label": "Azure > Data Factory > Pipeline",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "activities",
"label": "Activities",
"type": "string",
"size": 1000
},
{
"name": "annotations",
"label": "Annotations",
"type": "string",
"size": 1000
},
{
"name": "concurrency",
"label": "Concurrency"
},
{
"name": "description",
"label": "Description"
},
{
"name": "etag",
"label": "Etag"
},
{
"name": "factory_name",
"label": "Factory Name"
},
{
"name": "id",
"label": "ID"
},
{
"name": "parameters",
"label": "Parameters",
"type": "string",
"size": 1000
},
{
"name": "pipeline_folder",
"label": "Pipeline Folder"
},
{
"name": "pipeline_name",
"label": "Name"
},
{
"name": "pipeline_policy",
"label": "Pipeline Policy",
"type": "string",
"size": 1000
},
{
"name": "resource_group",
"label": "Resource Group"
},
{
"name": "subscription_id",
"label": "Subscription ID"
},
{
"name": "type",
"label": "Type"
},
{
"name": "variables",
"label": "Variables",
"type": "string",
"size": 1000
}
]
}
}