Policy types for @turbot/servicenow-azure
- Azure > Resource Group > ServiceNow
- Azure > Resource Group > ServiceNow > Configuration Item
- Azure > Resource Group > ServiceNow > Configuration Item > Record
- Azure > Resource Group > ServiceNow > Configuration Item > Table Definition
- Azure > Resource Group > ServiceNow > Table
- Azure > Resource Group > ServiceNow > Table > Definition
- Azure > Subscription > ServiceNow
- Azure > Subscription > ServiceNow > Configuration Item
- Azure > Subscription > ServiceNow > Configuration Item > Record
- Azure > Subscription > ServiceNow > Configuration Item > Table Definition
- Azure > Subscription > ServiceNow > Table
- Azure > Subscription > ServiceNow > Table > Definition
- Azure > Tenant > ServiceNow
- Azure > Tenant > ServiceNow > Configuration Item
- Azure > Tenant > ServiceNow > Configuration Item > Record
- Azure > Tenant > ServiceNow > Configuration Item > Table Definition
- Azure > Tenant > ServiceNow > Table
- Azure > Tenant > ServiceNow > Table > Definition
- ServiceNow > Turbot > Watches > Azure
Azure > Resource Group > ServiceNow
tmod:@turbot/servicenow-azure#/policy/types/resourceGroupServiceNow
Azure > Resource Group > ServiceNow > Configuration Item
Synchronize the data for the Azure > Resource Group
based on the policies Azure > Resource Group > 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 > Resource Group
information within the ServiceNow CMDB.
tmod:@turbot/servicenow-azure#/policy/types/resourceGroupServiceNowConfigurationItem
[ "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 > Resource Group > 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 > Resource Group
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#/policy/types/resourceGroupServiceNowConfigurationItemRecord
"{\n resource: resourceGroup{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"id: {{ $.resource.data.id | dump | safe }}\nprovisioning_state: {{ $.resource.data.properties.provisioningState | dump | safe }}\nregion: {{ $.resource.data.location | dump | safe }}\nresource_group_name: {{ $.resource.data.name | dump | safe }}\nsubscription_id: {{ $.resource.metadata.azure.subscriptionId | dump | safe }}\ntags: {{ $.resource.turbot.tags | dump | safe }}\ntype: {{ $.resource.data.type | dump | safe }}\n"
{ "type": "object"}
Azure > Resource Group > ServiceNow > Configuration Item > Table Definition
This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > Resource Group
data will be stored, and the details of the columns used for archiving purposes.
tmod:@turbot/servicenow-azure#/policy/types/resourceGroupServiceNowConfigurationItemTableDefinition
[ "{\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#/policy/types/resourceGroupServiceNowTableDefinition 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 > Resource Group > ServiceNow > Table
Configure a Table for Azure > Resource Group
resource type in ServiceNow via the Azure > Resource Group > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-azure#/policy/types/resourceGroupServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "type": "string", "enum": [ "Skip", "Check: Configured", "Enforce: Configured" ], "example": [ "Skip" ], "default": "Skip"}
Azure > Resource Group > 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 > Resource Group
data.
tmod:@turbot/servicenow-azure#/policy/types/resourceGroupServiceNowTableDefinition
{ "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_resourcegroup", "label": "Azure > Resource Group", "extendsTable": "cmdb_ci" }, "columns": [ { "name": "id", "label": "ID" }, { "name": "provisioning_state", "label": "Provisioning State" }, { "name": "region", "label": "Region" }, { "name": "resource_group_name", "label": "Name" }, { "name": "subscription_id", "label": "Subscription ID" }, { "name": "tags", "label": "Tags", "type": "string", "size": 1000 }, { "name": "type", "label": "Type" } ] }}
Azure > Subscription > ServiceNow
tmod:@turbot/servicenow-azure#/policy/types/subscriptionServiceNow
Azure > Subscription > ServiceNow > Configuration Item
Synchronize the data for the Azure > Subscription
based on the policies Azure > Subscription > 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 > Subscription
information within the ServiceNow CMDB.
tmod:@turbot/servicenow-azure#/policy/types/subscriptionServiceNowConfigurationItem
[ "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 > Subscription > 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 > Subscription
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#/policy/types/subscriptionServiceNowConfigurationItemRecord
"{\n resource: subscription{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"authorization_source: {{ $.resource.data.authorizationSource | dump | safe }}\ndisplay_name: {{ $.resource.data.displayName | dump | safe }}\nid: {{ $.resource.data.id | dump | safe }}\nmanaged_by_tenants: {{ $.resource.data.managedByTenants | dump | safe }}\nstate: {{ $.resource.data.state | dump | safe }}\nsubscription_id: {{ $.resource.metadata.azure.subscriptionId | dump | safe }}\nsubscription_name: {{ $.resource.data.name | dump | safe }}\nsubscription_policies: {{ $.resource.data.subscriptionPolicies | dump | safe }}\ntenant_id: {{ $.resource.data.tenantId | dump | safe }}\ntype: {{ $.resource.data.type | dump | safe }}\n"
{ "type": "object"}
Azure > Subscription > ServiceNow > Configuration Item > Table Definition
This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > Subscription
data will be stored, and the details of the columns used for archiving purposes.
tmod:@turbot/servicenow-azure#/policy/types/subscriptionServiceNowConfigurationItemTableDefinition
[ "{\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#/policy/types/subscriptionServiceNowTableDefinition 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 > Subscription > ServiceNow > Table
Configure a Table for Azure > Subscription
resource type in ServiceNow via the Azure > Subscription > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-azure#/policy/types/subscriptionServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "type": "string", "enum": [ "Skip", "Check: Configured", "Enforce: Configured" ], "example": [ "Skip" ], "default": "Skip"}
Azure > Subscription > 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 > Subscription
data.
tmod:@turbot/servicenow-azure#/policy/types/subscriptionServiceNowTableDefinition
{ "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_subscription", "label": "Azure > Subscription", "extendsTable": "cmdb_ci" }, "columns": [ { "name": "authorization_source", "label": "Authorization Source" }, { "name": "display_name", "label": "Display Name" }, { "name": "id", "label": "ID" }, { "name": "managed_by_tenants", "label": "Managed By Tenants", "type": "string", "size": 1000 }, { "name": "state", "label": "State" }, { "name": "subscription_id", "label": "Subscription ID" }, { "name": "subscription_name", "label": "Name" }, { "name": "subscription_policies", "label": "Subscription Policies", "type": "string", "size": 1000 }, { "name": "tenant_id", "label": "Tenant ID" }, { "name": "type", "label": "Type" } ] }}
Azure > Tenant > ServiceNow
tmod:@turbot/servicenow-azure#/policy/types/tenantServiceNow
Azure > Tenant > ServiceNow > Configuration Item
Synchronize the data for the Azure > Tenant
based on the policies Azure > Tenant > 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 > Tenant
information within the ServiceNow CMDB.
tmod:@turbot/servicenow-azure#/policy/types/tenantServiceNowConfigurationItem
[ "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 > Tenant > 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 > Tenant
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#/policy/types/tenantServiceNowConfigurationItemRecord
"{\n resource: tenant{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"assigned_plans: {{ $.resource.data.assignedPlans | dump | safe }}\ncountry: {{ $.resource.data.country | dump | safe }}\ncountry_letter_code: {{ $.resource.data.countryLetterCode | dump | safe }}\nid: {{ $.resource.data.id | dump | safe }}\nprovisioned_plans: {{ $.resource.data.provisionedPlans | dump | safe }}\nsecurity_compliance_notification_mails: {{ $.resource.data.securityComplianceNotificationMails | dump | safe }}\ntechnical_notification_mails: {{ $.resource.data.technicalNotificationMails | dump | safe }}\ntenant_name: {{ $.resource.data.displayName | dump | safe }}\ntenant_type: {{ $.resource.data.tenantType | dump | safe }}\nverified_domains: {{ $.resource.data.verifiedDomains | dump | safe }}\n"
{ "type": "object"}
Azure > Tenant > ServiceNow > Configuration Item > Table Definition
This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > Tenant
data will be stored, and the details of the columns used for archiving purposes.
tmod:@turbot/servicenow-azure#/policy/types/tenantServiceNowConfigurationItemTableDefinition
[ "{\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#/policy/types/tenantServiceNowTableDefinition 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 > Tenant > ServiceNow > Table
Configure a Table for Azure > Tenant
resource type in ServiceNow via the Azure > Tenant > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-azure#/policy/types/tenantServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "type": "string", "enum": [ "Skip", "Check: Configured", "Enforce: Configured" ], "example": [ "Skip" ], "default": "Skip"}
Azure > Tenant > 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 > Tenant
data.
tmod:@turbot/servicenow-azure#/policy/types/tenantServiceNowTableDefinition
{ "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_tenant", "label": "Azure > Tenant", "extendsTable": "cmdb_ci" }, "columns": [ { "name": "assigned_plans", "label": "Assigned Plans" }, { "name": "country", "label": "Country" }, { "name": "country_letter_code", "label": "Country Letter Code" }, { "name": "id", "label": "ID" }, { "name": "provisioned_plans", "label": "Provisioned Plans" }, { "name": "security_compliance_notification_mails", "label": "Security Compliance Notification Mails" }, { "name": "technical_notification_mails", "label": "Technical Notification Mails" }, { "name": "tenant_name", "label": "Name" }, { "name": "tenant_type", "label": "Tenant Type" }, { "name": "verified_domains", "label": "Verified Domains" } ] }}
ServiceNow > Turbot > Watches > Azure
The policy ensures that ServiceNow records are appropriately managed, and actions are triggered when necessary, to maintain data accuracy and synchronization.
tmod:@turbot/servicenow-azure#/policy/types/watchesAzure
[ "Skip", "Check: Enabled", "Check: Disabled", "Enforce: Enabled", "Enforce: Disabled"]
{ "type": "string", "enum": [ "Skip", "Check: Enabled", "Check: Disabled", "Enforce: Enabled", "Enforce: Disabled" ], "example": [ "Skip" ], "default": "Enforce: Enabled"}