Policy types for @turbot/servicenow-azure-signalr
- Azure > SignalR Service > SignalR > ServiceNow
- Azure > SignalR Service > SignalR > ServiceNow > Configuration Item
- Azure > SignalR Service > SignalR > ServiceNow > Configuration Item > Record
- Azure > SignalR Service > SignalR > ServiceNow > Configuration Item > Table Definition
- Azure > SignalR Service > SignalR > ServiceNow > Table
- Azure > SignalR Service > SignalR > ServiceNow > Table > Definition
Azure > SignalR Service > SignalR > ServiceNow
tmod:@turbot/servicenow-azure-signalr#/policy/types/signalRServiceNow
Azure > SignalR Service > SignalR > ServiceNow > Configuration Item
Synchronize the data for the Azure > SignalR Service > SignalR
based on the policies Azure > SignalR Service > SignalR > 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 > SignalR Service > SignalR
information within the ServiceNow CMDB.
tmod:@turbot/servicenow-azure-signalr#/policy/types/signalRServiceNowConfigurationItem
[ "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 > SignalR Service > SignalR > 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 > SignalR Service > SignalR
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-signalr#/policy/types/signalRServiceNowConfigurationItemRecord
"{\n resource: signalR{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"allowed_public_networks: {{ $.resource.data.networkACLs.publicNetwork.allow | dump | safe }}\nclient_cert_enabled: {{ $.resource.data.tls.clientCertEnabled | dump | safe }}\ncors: {{ $.resource.data.cors | dump | safe }}\ndenied_public_networks: {{ $.resource.data.networkACLs.publicNetwork.deny | dump | safe }}\ndisable_aad_auth: {{ $.resource.data.disableAadAuth | dump | safe }}\ndisable_local_auth: {{ $.resource.data.disableLocalAuth | dump | safe }}\nexternal_ip: {{ $.resource.data.externalIP | dump | safe }}\nfeatures: {{ $.resource.data.features | dump | safe }}\nhost_name: {{ $.resource.data.hostName | dump | safe }}\nid: {{ $.resource.data.id | dump | safe }}\nkind: {{ $.resource.data.kind | dump | safe }}\nnetwork_acl_default_action: {{ $.resource.data.networkACLs.defaultAction | dump | safe }}\nprivate_endpoint_connections: {{ $.resource.data.privateEndpointConnections | dump | safe }}\nprovisioning_state: {{ $.resource.data.provisioningState | dump | safe }}\npublic_network_access: {{ $.resource.data.publicNetworkAccess | dump | safe }}\npublic_port: {{ $.resource.data.publicPort | dump | safe }}\nresource_group: {{ $.resource.metadata.azure.resourceGroupName | dump | safe }}\nserver_port: {{ $.resource.data.serverPort | dump | safe }}\nsignalr_location: {{ $.resource.data.location | dump | safe }}\nsignalr_name: {{ $.resource.data.name | dump | safe }}\nsku: {{ $.resource.data.sku | dump | safe }}\nsubscription_id: {{ $.resource.metadata.azure.subscriptionId | dump | safe }}\ntags: {{ $.resource.turbot.tags | dump | safe }}\nupstream: {{ $.resource.data.upstream | dump | safe }}\nversion: {{ $.resource.data.version | dump | safe }}\n"
{ "type": "object"}
Azure > SignalR Service > SignalR > ServiceNow > Configuration Item > Table Definition
This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > SignalR Service > SignalR
data will be stored, and the details of the columns used for archiving purposes.
tmod:@turbot/servicenow-azure-signalr#/policy/types/signalRServiceNowConfigurationItemTableDefinition
[ "{\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-signalr#/policy/types/signalRServiceNowTableDefinition 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 > SignalR Service > SignalR > ServiceNow > Table
Configure a Table for Azure > SignalR Service > SignalR
resource type in ServiceNow via the Azure > SignalR Service > SignalR > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-azure-signalr#/policy/types/signalRServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "type": "string", "enum": [ "Skip", "Check: Configured", "Enforce: Configured" ], "example": [ "Skip" ], "default": "Skip"}
Azure > SignalR Service > SignalR > 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 > SignalR Service > SignalR
data.
tmod:@turbot/servicenow-azure-signalr#/policy/types/signalRServiceNowTableDefinition
{ "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_signalr_signalr", "label": "Azure > SignalR Service > SignalR", "extendsTable": "cmdb_ci" }, "columns": [ { "name": "allowed_public_networks", "label": "Allowed Public Networks", "type": "string", "size": 1000 }, { "name": "client_cert_enabled", "label": "TLS Client Cert Enabled", "type": "boolean" }, { "name": "cors", "label": "Cors", "type": "string", "size": 1000 }, { "name": "denied_public_networks", "label": "Denied Public Networks", "type": "string", "size": 1000 }, { "name": "disable_aad_auth", "label": "Disable AAD Auth", "type": "boolean" }, { "name": "disable_local_auth", "label": "Disable Local Auth", "type": "boolean" }, { "name": "external_ip", "label": "External IP" }, { "name": "features", "label": "Features", "type": "string", "size": 1000 }, { "name": "host_name", "label": "Host Name" }, { "name": "id", "label": "ID" }, { "name": "kind", "label": "Kind" }, { "name": "network_acl_default_action", "label": "Network ACL Default Action" }, { "name": "private_endpoint_connections", "label": "Private Endpoint Connections", "type": "string", "size": 1000 }, { "name": "provisioning_state", "label": "Provisioning State" }, { "name": "public_network_access", "label": "Public Network Access" }, { "name": "public_port", "label": "Public Port" }, { "name": "resource_group", "label": "Resource Group" }, { "name": "server_port", "label": "Server Port" }, { "name": "signalr_location", "label": "Location" }, { "name": "signalr_name", "label": "Name" }, { "name": "sku", "label": "SKU", "type": "string", "size": 1000 }, { "name": "subscription_id", "label": "Subscription Id" }, { "name": "tags", "label": "Tags", "type": "string", "size": 1000 }, { "name": "upstream", "label": "Upstream", "type": "string", "size": 1000 }, { "name": "version", "label": "Version" } ] }}