Policy types for @turbot/servicenow-azure-appservice
- Azure > App Service > App Service Plan > ServiceNow
- Azure > App Service > App Service Plan > ServiceNow > Configuration Item
- Azure > App Service > App Service Plan > ServiceNow > Configuration Item > Record
- Azure > App Service > App Service Plan > ServiceNow > Configuration Item > Table Definition
- Azure > App Service > App Service Plan > ServiceNow > Table
- Azure > App Service > App Service Plan > ServiceNow > Table > Definition
- Azure > App Service > Function App > ServiceNow
- Azure > App Service > Function App > ServiceNow > Configuration Item
- Azure > App Service > Function App > ServiceNow > Configuration Item > Record
- Azure > App Service > Function App > ServiceNow > Configuration Item > Table Definition
- Azure > App Service > Function App > ServiceNow > Table
- Azure > App Service > Function App > ServiceNow > Table > Definition
- Azure > App Service > Web App > ServiceNow
- Azure > App Service > Web App > ServiceNow > Configuration Item
- Azure > App Service > Web App > ServiceNow > Configuration Item > Record
- Azure > App Service > Web App > ServiceNow > Configuration Item > Table Definition
- Azure > App Service > Web App > ServiceNow > Table
- Azure > App Service > Web App > ServiceNow > Table > Definition
Azure > App Service > App Service Plan > ServiceNow
tmod:@turbot/servicenow-azure-appservice#/policy/types/appServicePlanServiceNow
Azure > App Service > App Service Plan > ServiceNow > Configuration Item
Synchronize the data for the Azure > App Service > App Service Plan
based on the policies Azure > App Service > App Service Plan > 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 > App Service > App Service Plan
information within the ServiceNow CMDB.
tmod:@turbot/servicenow-azure-appservice#/policy/types/appServicePlanServiceNowConfigurationItem
[ "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 > App Service > App Service Plan > 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 > App Service > App Service Plan
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-appservice#/policy/types/appServicePlanServiceNowConfigurationItemRecord
"{\n resource: appServicePlan{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"appservicename: {{ $.resource.data.appServiceName | dump | safe }}\napps: {{ $.resource.data.apps | dump | safe }}\nhyper_v: {{ $.resource.data.hyperV | dump | safe }}\nid: {{ $.resource.data.id | dump | safe }}\nis_spot: {{ $.resource.data.isSpot | dump | safe }}\nis_xenon: {{ $.resource.data.isXenon | dump | safe }}\nkind: {{ $.resource.data.kind | dump | safe }}\nmaximum_elastic_worker_count: {{ $.resource.data.maximumElasticWorkerCount | dump | safe }}\nmaximum_number_of_workers: {{ $.resource.data.maximumNumberOfWorkers | dump | safe }}\nprovisioning_state: {{ $.resource.data.provisioningState | dump | safe }}\nregion: {{ $.resource.data.location | dump | safe }}\nreserved: {{ $.resource.data.reserved | dump | safe }}\nresource_group: {{ $.resource.metadata.azure.resourceGroup | dump | safe }}\nsku_capacity: {{ $.resource.data.sku.capacity | dump | safe }}\nsku_family: {{ $.resource.data.sku.family | dump | safe }}\nsku_name: {{ $.resource.data.sku.name | dump | safe }}\nsku_size: {{ $.resource.data.sku.size | dump | safe }}\nsku_tier: {{ $.resource.data.sku.tier | dump | safe }}\nstatus: {{ $.resource.data.status | 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 > App Service > App Service Plan > ServiceNow > Configuration Item > Table Definition
This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > App Service > App Service Plan
data will be stored, and the details of the columns used for archiving purposes.
tmod:@turbot/servicenow-azure-appservice#/policy/types/appServicePlanServiceNowConfigurationItemTableDefinition
[ "{\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-appservice#/policy/types/appServicePlanServiceNowTableDefinition 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 > App Service > App Service Plan > ServiceNow > Table
Configure a Table for Azure > App Service > App Service Plan
resource type in ServiceNow via the Azure > App Service > App Service Plan > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-azure-appservice#/policy/types/appServicePlanServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "type": "string", "enum": [ "Skip", "Check: Configured", "Enforce: Configured" ], "example": [ "Skip" ], "default": "Skip"}
Azure > App Service > App Service Plan > 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 > App Service > App Service Plan
data.
tmod:@turbot/servicenow-azure-appservice#/policy/types/appServicePlanServiceNowTableDefinition
{ "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_appservice_appserviceplan", "label": "Azure > App Service > App Service Plan", "extendsTable": "cmdb_ci" }, "columns": [ { "name": "appservicename", "label": "App Service Name" }, { "name": "apps", "label": "Apps", "type": "string", "size": 1000 }, { "name": "hyper_v", "label": "Hyper V", "type": "boolean" }, { "name": "id", "label": "ID" }, { "name": "is_spot", "label": "IS Spot", "type": "boolean" }, { "name": "is_xenon", "label": "IS Xenon", "type": "boolean" }, { "name": "kind", "label": "Kind" }, { "name": "maximum_elastic_worker_count", "label": "Maximum Elastic Worker Count" }, { "name": "maximum_number_of_workers", "label": "Maximum Number Of Workers" }, { "name": "provisioning_state", "label": "Provisioning State" }, { "name": "region", "label": "Region" }, { "name": "reserved", "label": "Reserved", "type": "boolean" }, { "name": "resource_group", "label": "Resource Group", "size": 200 }, { "name": "sku_capacity", "label": "SKU Capacity" }, { "name": "sku_family", "label": "SKU Family" }, { "name": "sku_name", "label": "SKU Name" }, { "name": "sku_size", "label": "SKU Size" }, { "name": "sku_tier", "label": "SKU Tier" }, { "name": "status", "label": "Status" }, { "name": "subscription_id", "label": "Subscription ID", "size": 200 }, { "name": "tags", "label": "Tags", "type": "string", "size": 1000 }, { "name": "type", "label": "Type" } ] }}
Azure > App Service > Function App > ServiceNow
tmod:@turbot/servicenow-azure-appservice#/policy/types/functionAppServiceNow
Azure > App Service > Function App > ServiceNow > Configuration Item
Synchronize the data for the Azure > App Service > Function App
based on the policies Azure > App Service > Function App > 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 > App Service > Function App
information within the ServiceNow CMDB.
tmod:@turbot/servicenow-azure-appservice#/policy/types/functionAppServiceNowConfigurationItem
[ "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 > App Service > Function App > 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 > App Service > Function App
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-appservice#/policy/types/functionAppServiceNowConfigurationItemRecord
"{\n resource: functionApp{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"client_affinity_enabled: {{ $.resource.data.clientAffinityEnabled | dump | safe }}\nclient_cert_enabled: {{ $.resource.data.clientCertEnabled | dump | safe }}\nconfiguration: {{ $.resource.data.configuration | dump | safe }}\nenabled: {{ $.resource.data.enabled | dump | safe }}\nfunction_app_name: {{ $.resource.data.functionAppName | dump | safe }}\nhost_name_disabled: {{ $.resource.data.hostNameDisabled | dump | safe }}\nhost_names: {{ $.resource.data.hostNames | dump | safe }}\nhttps_only: {{ $.resource.data.httpsOnly | dump | safe }}\nid: {{ $.resource.data.id | dump | safe }}\nkind: {{ $.resource.data.kind | dump | safe }}\nregion: {{ $.resource.data.location | dump | safe }}\nreserved: {{ $.resource.data.reserved | dump | safe }}\nresource_group: {{ $.resource.metadata.azure.resourceGroup | dump | safe }}\nsite_config: {{ $.resource.data.siteConfig | dump | safe }}\nstate: {{ $.resource.data.state | 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 > App Service > Function App > ServiceNow > Configuration Item > Table Definition
This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > App Service > Function App
data will be stored, and the details of the columns used for archiving purposes.
tmod:@turbot/servicenow-azure-appservice#/policy/types/functionAppServiceNowConfigurationItemTableDefinition
[ "{\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-appservice#/policy/types/functionAppServiceNowTableDefinition 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 > App Service > Function App > ServiceNow > Table
Configure a Table for Azure > App Service > Function App
resource type in ServiceNow via the Azure > App Service > Function App > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-azure-appservice#/policy/types/functionAppServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "type": "string", "enum": [ "Skip", "Check: Configured", "Enforce: Configured" ], "example": [ "Skip" ], "default": "Skip"}
Azure > App Service > Function App > 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 > App Service > Function App
data.
tmod:@turbot/servicenow-azure-appservice#/policy/types/functionAppServiceNowTableDefinition
{ "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_appservice_functionapp", "label": "Azure > App Service > Function App", "extendsTable": "cmdb_ci" }, "columns": [ { "name": "client_affinity_enabled", "label": "Client Affinity Enabled", "type": "boolean" }, { "name": "client_cert_enabled", "label": "Client Cert Enabled", "type": "boolean" }, { "name": "configuration", "label": "Configuration", "type": "string", "size": 1000 }, { "name": "enabled", "label": "Enabled", "type": "boolean" }, { "name": "function_app_name", "label": "Function App Name" }, { "name": "host_name_disabled", "label": "Host Name Disabled", "type": "boolean" }, { "name": "host_names", "label": "Host Names", "type": "string", "size": 1000 }, { "name": "https_only", "label": "HTTPS Only", "type": "boolean" }, { "name": "id", "label": "ID" }, { "name": "kind", "label": "Kind" }, { "name": "region", "label": "Region" }, { "name": "reserved", "label": "Reserved", "type": "boolean" }, { "name": "resource_group", "label": "Resource Group", "size": 200 }, { "name": "site_config", "label": "Site Config", "type": "string", "size": 1000 }, { "name": "state", "label": "State" }, { "name": "subscription_id", "label": "Subscription ID", "size": 200 }, { "name": "tags", "label": "Tags", "type": "string", "size": 1000 }, { "name": "type", "label": "Type" } ] }}
Azure > App Service > Web App > ServiceNow
tmod:@turbot/servicenow-azure-appservice#/policy/types/webAppServiceNow
Azure > App Service > Web App > ServiceNow > Configuration Item
Synchronize the data for the Azure > App Service > Web App
based on the policies Azure > App Service > Web App > 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 > App Service > Web App
information within the ServiceNow CMDB.
tmod:@turbot/servicenow-azure-appservice#/policy/types/webAppServiceNowConfigurationItem
[ "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 > App Service > Web App > 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 > App Service > Web App
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-appservice#/policy/types/webAppServiceNowConfigurationItemRecord
"{\n resource: webApp{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"configuration: {{ $.resource.data.configuration | dump | safe }}\ndefault_host_name: {{ $.resource.data.defaultHostName | dump | safe }}\nenabled: {{ $.resource.data.enabled | dump | safe }}\nhost_name_disabled: {{ $.resource.data.hostNameDisabled | dump | safe }}\nhost_names: {{ $.resource.data.hostNames | dump | safe }}\nhttps_only: {{ $.resource.data.httpsOnly | dump | safe }}\nid: {{ $.resource.data.id | dump | safe }}\nkind: {{ $.resource.data.kind | dump | safe }}\nregion: {{ $.resource.data.location | dump | safe }}\nreserved: {{ $.resource.data.reserved | dump | safe }}\nresource_group: {{ $.resource.metadata.azure.resourceGroup | dump | safe }}\nsite_config: {{ $.resource.data.siteConfig | dump | safe }}\nstate: {{ $.resource.data.state | dump | safe }}\nsubscription_id: {{ $.resource.metadata.azure.subscriptionId | dump | safe }}\ntags: {{ $.resource.turbot.tags | dump | safe }}\ntype: {{ $.resource.data.type | dump | safe }}\nweb_app_name: {{ $.resource.data.webAppName | dump | safe }}\n"
{ "type": "object"}
Azure > App Service > Web App > ServiceNow > Configuration Item > Table Definition
This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > App Service > Web App
data will be stored, and the details of the columns used for archiving purposes.
tmod:@turbot/servicenow-azure-appservice#/policy/types/webAppServiceNowConfigurationItemTableDefinition
[ "{\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-appservice#/policy/types/webAppServiceNowTableDefinition 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 > App Service > Web App > ServiceNow > Table
Configure a Table for Azure > App Service > Web App
resource type in ServiceNow via the Azure > App Service > Web App > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-azure-appservice#/policy/types/webAppServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "type": "string", "enum": [ "Skip", "Check: Configured", "Enforce: Configured" ], "example": [ "Skip" ], "default": "Skip"}
Azure > App Service > Web App > 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 > App Service > Web App
data.
tmod:@turbot/servicenow-azure-appservice#/policy/types/webAppServiceNowTableDefinition
{ "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_appservice_webapp", "label": "Azure > App Service > Web App", "extendsTable": "cmdb_ci" }, "columns": [ { "name": "configuration", "label": "Configuration", "type": "string", "size": 1000 }, { "name": "default_host_name", "label": "Default Host Name" }, { "name": "enabled", "label": "Enabled", "type": "boolean" }, { "name": "host_name_disabled", "label": "Host Name Disabled", "type": "boolean" }, { "name": "host_names", "label": "Host Names", "type": "string", "size": 1000 }, { "name": "https_only", "label": "HTTPS Only", "type": "boolean" }, { "name": "id", "label": "ID" }, { "name": "kind", "label": "Kind" }, { "name": "region", "label": "Region" }, { "name": "reserved", "label": "Reserved", "type": "boolean" }, { "name": "resource_group", "label": "Resource Group", "size": 200 }, { "name": "site_config", "label": "Site Config", "type": "string", "size": 1000 }, { "name": "state", "label": "State" }, { "name": "subscription_id", "label": "Subscription ID", "size": 200 }, { "name": "tags", "label": "Tags", "type": "string", "size": 1000 }, { "name": "type", "label": "Type" }, { "name": "web_app_name", "label": "Web App Name" } ] }}