Policy types for @turbot/servicenow-kubernetes
- Kubernetes > Cluster > ServiceNow
- Kubernetes > Cluster > ServiceNow > Configuration Item
- Kubernetes > Cluster > ServiceNow > Configuration Item > Record
- Kubernetes > Cluster > ServiceNow > Configuration Item > Table Definition
- Kubernetes > Cluster > ServiceNow > Table
- Kubernetes > Cluster > ServiceNow > Table > Definition
- Kubernetes > ConfigMap > ServiceNow
- Kubernetes > ConfigMap > ServiceNow > Configuration Item
- Kubernetes > ConfigMap > ServiceNow > Configuration Item > Record
- Kubernetes > ConfigMap > ServiceNow > Configuration Item > Table Definition
- Kubernetes > ConfigMap > ServiceNow > Table
- Kubernetes > ConfigMap > ServiceNow > Table > Definition
- Kubernetes > Deployment > ServiceNow
- Kubernetes > Deployment > ServiceNow > Configuration Item
- Kubernetes > Deployment > ServiceNow > Configuration Item > Record
- Kubernetes > Deployment > ServiceNow > Configuration Item > Table Definition
- Kubernetes > Deployment > ServiceNow > Table
- Kubernetes > Deployment > ServiceNow > Table > Definition
- Kubernetes > Namespace > ServiceNow
- Kubernetes > Namespace > ServiceNow > Configuration Item
- Kubernetes > Namespace > ServiceNow > Configuration Item > Record
- Kubernetes > Namespace > ServiceNow > Configuration Item > Table Definition
- Kubernetes > Namespace > ServiceNow > Table
- Kubernetes > Namespace > ServiceNow > Table > Definition
- Kubernetes > Node > ServiceNow
- Kubernetes > Node > ServiceNow > Configuration Item
- Kubernetes > Node > ServiceNow > Configuration Item > Record
- Kubernetes > Node > ServiceNow > Configuration Item > Table Definition
- Kubernetes > Node > ServiceNow > Table
- Kubernetes > Node > ServiceNow > Table > Definition
- Kubernetes > Pod > ServiceNow
- Kubernetes > Pod > ServiceNow > Configuration Item
- Kubernetes > Pod > ServiceNow > Configuration Item > Record
- Kubernetes > Pod > ServiceNow > Configuration Item > Table Definition
- Kubernetes > Pod > ServiceNow > Table
- Kubernetes > Pod > ServiceNow > Table > Definition
- Kubernetes > ReplicaSet > ServiceNow
- Kubernetes > ReplicaSet > ServiceNow > Configuration Item
- Kubernetes > ReplicaSet > ServiceNow > Configuration Item > Record
- Kubernetes > ReplicaSet > ServiceNow > Configuration Item > Table Definition
- Kubernetes > ReplicaSet > ServiceNow > Table
- Kubernetes > ReplicaSet > ServiceNow > Table > Definition
- Kubernetes > Service > ServiceNow
- Kubernetes > Service > ServiceNow > Configuration Item
- Kubernetes > Service > ServiceNow > Configuration Item > Record
- Kubernetes > Service > ServiceNow > Configuration Item > Table Definition
- Kubernetes > Service > ServiceNow > Table
- Kubernetes > Service > ServiceNow > Table > Definition
- ServiceNow > Turbot > Watches > Kubernetes
Kubernetes > Cluster > ServiceNow
tmod:@turbot/servicenow-kubernetes#/policy/types/clusterServiceNow
Kubernetes > Cluster > ServiceNow > Configuration Item
Synchronize the data for the Kubernetes > Cluster
based on the policies Kubernetes > Cluster > 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 Kubernetes > Cluster
information within the ServiceNow CMDB.
tmod:@turbot/servicenow-kubernetes#/policy/types/clusterServiceNowConfigurationItem
[ "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"}
Kubernetes > Cluster > 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 Kubernetes > Cluster
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-kubernetes#/policy/types/clusterServiceNowConfigurationItemRecord
"{\n resource: cluster{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"name: {{ $.resource.data.name | dump | safe }}\nuid: {{ $.resource.data.uid | dump | safe }}\n"
{ "type": "object"}
Kubernetes > Cluster > ServiceNow > Configuration Item > Table Definition
This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Kubernetes > Cluster
data will be stored, and the details of the columns used for archiving purposes.
tmod:@turbot/servicenow-kubernetes#/policy/types/clusterServiceNowConfigurationItemTableDefinition
[ "{\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-kubernetes#/policy/types/clusterServiceNowTableDefinition 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" } }}
Kubernetes > Cluster > ServiceNow > Table
Configure a Table for Kubernetes > Cluster
resource type in ServiceNow via the Kubernetes > Cluster > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-kubernetes#/policy/types/clusterServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "type": "string", "enum": [ "Skip", "Check: Configured", "Enforce: Configured" ], "example": [ "Skip" ], "default": "Skip"}
Kubernetes > Cluster > 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 Kubernetes > Cluster
data.
tmod:@turbot/servicenow-kubernetes#/policy/types/clusterServiceNowTableDefinition
{ "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_kubernetes_cluster", "label": "Kubernetes > Cluster", "extendsTable": "cmdb_ci" }, "columns": [ { "name": "name", "label": "Name", "type": "string", "size": 255 }, { "name": "uid", "label": "UID", "size": 50 } ] }}
Kubernetes > ConfigMap > ServiceNow
tmod:@turbot/servicenow-kubernetes#/policy/types/configMapServiceNow
Kubernetes > ConfigMap > ServiceNow > Configuration Item
Synchronize the data for the Kubernetes > ConfigMap
based on the policies Kubernetes > ConfigMap > 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 Kubernetes > ConfigMap
information within the ServiceNow CMDB.
tmod:@turbot/servicenow-kubernetes#/policy/types/configMapServiceNowConfigurationItem
[ "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"}
Kubernetes > ConfigMap > 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 Kubernetes > ConfigMap
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-kubernetes#/policy/types/configMapServiceNowConfigurationItemRecord
"{\n resource: configMap{\n creation_timestamp\n data\n labels\n name\n namespace\n uid\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"cluster_name: {{ $.resource.metadata.kubernetes.clusterName | dump | safe }}\ncluster_uid: {{ $.resource.metadata.kubernetes.clusterUid | dump | safe }}\ncreation_timestamp: {{ $.resource.creation_timestamp | dump | safe }}\ndata: {{ $.resource.data | dump | safe }}\nlabels: {{ $.resource.labels | dump | safe }}\nname: {{ $.resource.name | dump | safe }}\nnamespace: {{ $.resource.namespace | dump | safe }}\nuid: {{ $.resource.uid | dump | safe }}\n"
{ "type": "object"}
Kubernetes > ConfigMap > ServiceNow > Configuration Item > Table Definition
This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Kubernetes > ConfigMap
data will be stored, and the details of the columns used for archiving purposes.
tmod:@turbot/servicenow-kubernetes#/policy/types/configMapServiceNowConfigurationItemTableDefinition
[ "{\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-kubernetes#/policy/types/configMapServiceNowTableDefinition 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" } }}
Kubernetes > ConfigMap > ServiceNow > Table
Configure a Table for Kubernetes > ConfigMap
resource type in ServiceNow via the Kubernetes > ConfigMap > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-kubernetes#/policy/types/configMapServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "type": "string", "enum": [ "Skip", "Check: Configured", "Enforce: Configured" ], "example": [ "Skip" ], "default": "Skip"}
Kubernetes > ConfigMap > 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 Kubernetes > ConfigMap
data.
tmod:@turbot/servicenow-kubernetes#/policy/types/configMapServiceNowTableDefinition
{ "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_kubernetes_configmap", "label": "Kubernetes > ConfigMap", "extendsTable": "cmdb_ci" }, "columns": [ { "name": "cluster_name", "label": "Cluster Name", "type": "string" }, { "name": "cluster_uid", "label": "Cluster UID", "type": "string", "size": 50 }, { "name": "creation_timestamp", "label": "Creation Timestamp", "size": 50 }, { "name": "data", "label": "Data", "type": "string", "size": 10000 }, { "name": "labels", "label": "Labels", "type": "string", "size": 10000 }, { "name": "name", "label": "Name", "type": "string", "size": 255 }, { "name": "namespace", "label": "Namespace" }, { "name": "uid", "label": "UID", "size": 50 } ] }}
Kubernetes > Deployment > ServiceNow
tmod:@turbot/servicenow-kubernetes#/policy/types/deploymentServiceNow
Kubernetes > Deployment > ServiceNow > Configuration Item
Synchronize the data for the Kubernetes > Deployment
based on the policies Kubernetes > Deployment > 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 Kubernetes > Deployment
information within the ServiceNow CMDB.
tmod:@turbot/servicenow-kubernetes#/policy/types/deploymentServiceNowConfigurationItem
[ "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"}
Kubernetes > Deployment > 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 Kubernetes > Deployment
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-kubernetes#/policy/types/deploymentServiceNowConfigurationItemRecord
"{\n resource: deployment{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"annotations: {{ $.resource.data.annotations | dump | safe }}\navailable_replicas: {{ $.resource.data.available_replicas | dump | safe }}\ncluster_name: {{ $.resource.metadata.kubernetes.clusterName | dump | safe }}\ncluster_uid: {{ $.resource.metadata.kubernetes.clusterUid | dump | safe }}\ncreation_timestamp: {{ $.resource.data.creation_timestamp | dump | safe }}\nlabels: {{ $.resource.data.labels | dump | safe }}\nname: {{ $.resource.data.name | dump | safe }}\nnamespace: {{ $.resource.data.namespace | dump | safe }}\npaused: {{ $.resource.data.paused | dump | safe }}\nready_replicas: {{ $.resource.data.ready_replicas | dump | safe }}\nreplicas: {{ $.resource.data.replicas | dump | safe }}\nselector: {{ $.resource.data.selector | dump | safe }}\nselector_query: {{ $.resource.data.selector_query | dump | safe }}\nstatus_replicas: {{ $.resource.data.status_replicas | dump | safe }}\nstrategy: {{ $.resource.data.strategy | dump | safe }}\nstrategy_type: {{ $.resource.data.strategy.type | dump | safe }}\ntemplate: {{ $.resource.data.template | dump | safe }}\nuid: {{ $.resource.data.uid | dump | safe }}\nunavailable_replicas: {{ $.resource.data.unavailable_replicas | dump | safe }}\nupdated_replicas: {{ $.resource.data.updated_replicas | dump | safe }}\n"
{ "type": "object"}
Kubernetes > Deployment > ServiceNow > Configuration Item > Table Definition
This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Kubernetes > Deployment
data will be stored, and the details of the columns used for archiving purposes.
tmod:@turbot/servicenow-kubernetes#/policy/types/deploymentServiceNowConfigurationItemTableDefinition
[ "{\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-kubernetes#/policy/types/deploymentServiceNowTableDefinition 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" } }}
Kubernetes > Deployment > ServiceNow > Table
Configure a Table for Kubernetes > Deployment
resource type in ServiceNow via the Kubernetes > Deployment > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-kubernetes#/policy/types/deploymentServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "type": "string", "enum": [ "Skip", "Check: Configured", "Enforce: Configured" ], "example": [ "Skip" ], "default": "Skip"}
Kubernetes > Deployment > 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 Kubernetes > Deployment
data.
tmod:@turbot/servicenow-kubernetes#/policy/types/deploymentServiceNowTableDefinition
{ "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_kubernetes_deployment", "label": "Kubernetes > Deployment", "extendsTable": "cmdb_ci" }, "columns": [ { "name": "annotations", "label": "Annotations", "type": "string", "size": 1000 }, { "name": "available_replicas", "label": "Available Replicas", "type": "integer" }, { "name": "cluster_name", "label": "Cluster Name", "type": "string" }, { "name": "cluster_uid", "label": "Cluster UID", "type": "string", "size": 50 }, { "name": "creation_timestamp", "label": "Creation Timestamp", "size": 50 }, { "name": "labels", "label": "Labels", "type": "string", "size": 10000 }, { "name": "name", "label": "Name", "type": "string", "size": 255 }, { "name": "namespace", "label": "Namespace" }, { "name": "paused", "label": "Paused", "type": "boolean" }, { "name": "ready_replicas", "label": "Ready Replicas", "type": "integer" }, { "name": "replicas", "label": "Replicas", "type": "integer" }, { "name": "selector", "label": "Selector", "type": "string", "size": 1000 }, { "name": "selector_query", "label": "Selector Query" }, { "name": "status_replicas", "label": "Status Replicas", "type": "integer" }, { "name": "strategy", "label": "Strategy", "type": "string", "size": 1000 }, { "name": "strategy_type", "label": "Strategy Type" }, { "name": "template", "label": "Template", "type": "string", "size": 10000 }, { "name": "uid", "label": "UID", "size": 50 }, { "name": "unavailable_replicas", "label": "Unavailable Replicas", "type": "integer" }, { "name": "updated_replicas", "label": "Updated Replicas", "type": "integer" } ] }}
Kubernetes > Namespace > ServiceNow
tmod:@turbot/servicenow-kubernetes#/policy/types/namespaceServiceNow
Kubernetes > Namespace > ServiceNow > Configuration Item
Synchronize the data for the Kubernetes > Namespace
based on the policies Kubernetes > Namespace > 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 Kubernetes > Namespace
information within the ServiceNow CMDB.
tmod:@turbot/servicenow-kubernetes#/policy/types/namespaceServiceNowConfigurationItem
[ "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"}
Kubernetes > Namespace > 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 Kubernetes > Namespace
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-kubernetes#/policy/types/namespaceServiceNowConfigurationItemRecord
"{\n resource: namespace{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"cluster_name: {{ $.resource.metadata.kubernetes.clusterName | dump | safe }}\ncluster_uid: {{ $.resource.metadata.kubernetes.clusterUid | dump | safe }}\ncreation_timestamp: {{ $.resource.data.creation_timestamp | dump | safe }}\nlabels: {{ $.resource.data.labels | dump | safe }}\nname: {{ $.resource.data.name | dump | safe }}\nphase: {{ $.resource.data.phase | dump | safe }}\nspec_finalizers: {{ $.resource.data.spec_finalizers | dump | safe }}\nuid: {{ $.resource.data.uid | dump | safe }}\n"
{ "type": "object"}
Kubernetes > Namespace > ServiceNow > Configuration Item > Table Definition
This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Kubernetes > Namespace
data will be stored, and the details of the columns used for archiving purposes.
tmod:@turbot/servicenow-kubernetes#/policy/types/namespaceServiceNowConfigurationItemTableDefinition
[ "{\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-kubernetes#/policy/types/namespaceServiceNowTableDefinition 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" } }}
Kubernetes > Namespace > ServiceNow > Table
Configure a Table for Kubernetes > Namespace
resource type in ServiceNow via the Kubernetes > Namespace > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-kubernetes#/policy/types/namespaceServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "type": "string", "enum": [ "Skip", "Check: Configured", "Enforce: Configured" ], "example": [ "Skip" ], "default": "Skip"}
Kubernetes > Namespace > 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 Kubernetes > Namespace
data.
tmod:@turbot/servicenow-kubernetes#/policy/types/namespaceServiceNowTableDefinition
{ "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_kubernetes_namespace", "label": "Kubernetes > Namespace", "extendsTable": "cmdb_ci" }, "columns": [ { "name": "cluster_name", "label": "Cluster Name", "type": "string" }, { "name": "cluster_uid", "label": "Cluster UID", "type": "string", "size": 50 }, { "name": "creation_timestamp", "label": "Creation Timestamp", "size": 50 }, { "name": "labels", "label": "Labels", "type": "string", "size": 10000 }, { "name": "name", "label": "Name", "type": "string", "size": 255 }, { "name": "phase", "label": "Phase" }, { "name": "spec_finalizers", "label": "Spec Finalizers", "type": "string", "size": 1000 }, { "name": "uid", "label": "UID", "size": 50 } ] }}
Kubernetes > Node > ServiceNow
tmod:@turbot/servicenow-kubernetes#/policy/types/nodeServiceNow
Kubernetes > Node > ServiceNow > Configuration Item
Synchronize the data for the Kubernetes > Node
based on the policies Kubernetes > Node > 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 Kubernetes > Node
information within the ServiceNow CMDB.
tmod:@turbot/servicenow-kubernetes#/policy/types/nodeServiceNowConfigurationItem
[ "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"}
Kubernetes > Node > 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 Kubernetes > Node
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-kubernetes#/policy/types/nodeServiceNowConfigurationItemRecord
"{\n resource: node{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"allocatable_cpu: {{ $.resource.data.allocatable.cpu | dump | safe }}\nallocatable_memory: {{ $.resource.data.allocatable.memory | dump | safe }}\nallocatable_pods: {{ $.resource.data.allocatable.pods | dump | safe }}\nannotations: {{ $.resource.data.annotations | dump | safe }}\narchitecture: {{ $.resource.data.node_info.architecture | dump | safe }}\nboot_id: {{ $.resource.data.node_info.bootID | dump | safe }}\ncluster_name: {{ $.resource.metadata.kubernetes.clusterName | dump | safe }}\ncluster_uid: {{ $.resource.metadata.kubernetes.clusterUid | dump | safe }}\ncontainer_runtime_version: {{ $.resource.data.node_info.containerRuntimeVersion | dump | safe }}\ncreation_timestamp: {{ $.resource.data.creation_timestamp | dump | safe }}\ndaemon_endpoints: {{ $.resource.data.daemon_endpoints | dump | safe }}\nkernel_version: {{ $.resource.data.node_info.kernelVersion | dump | safe }}\nkube_proxy_version: {{ $.resource.data.node_info.kubeProxyVersion | dump | safe }}\nkubelet_version: {{ $.resource.data.node_info.kubeletVersion | dump | safe }}\nlabels: {{ $.resource.data.labels | dump | safe }}\nmachine_id: {{ $.resource.data.node_info.machineID | dump | safe }}\nname: {{ $.resource.data.name | dump | safe }}\noperating_system: {{ $.resource.data.node_info.operatingSystem | dump | safe }}\nos_image: {{ $.resource.data.node_info.osImage | dump | safe }}\nprovider_id: {{ $.resource.data.provider_id | dump | safe }}\nsystem_uuid: {{ $.resource.data.node_info.systemUUID | dump | safe }}\nuid: {{ $.resource.data.uid | dump | safe }}\n"
{ "type": "object"}
Kubernetes > Node > ServiceNow > Configuration Item > Table Definition
This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Kubernetes > Node
data will be stored, and the details of the columns used for archiving purposes.
tmod:@turbot/servicenow-kubernetes#/policy/types/nodeServiceNowConfigurationItemTableDefinition
[ "{\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-kubernetes#/policy/types/nodeServiceNowTableDefinition 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" } }}
Kubernetes > Node > ServiceNow > Table
Configure a Table for Kubernetes > Node
resource type in ServiceNow via the Kubernetes > Node > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-kubernetes#/policy/types/nodeServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "type": "string", "enum": [ "Skip", "Check: Configured", "Enforce: Configured" ], "example": [ "Skip" ], "default": "Skip"}
Kubernetes > Node > 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 Kubernetes > Node
data.
tmod:@turbot/servicenow-kubernetes#/policy/types/nodeServiceNowTableDefinition
{ "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_kubernetes_node", "label": "Kubernetes > Node", "extendsTable": "cmdb_ci" }, "columns": [ { "name": "allocatable_cpu", "label": "Allocatable CPU" }, { "name": "allocatable_memory", "label": "Allocatable Memory" }, { "name": "allocatable_pods", "label": "Allocatable Pods" }, { "name": "annotations", "label": "Annotations", "type": "string", "size": 10000 }, { "name": "architecture", "label": "Architecture" }, { "name": "boot_id", "label": "Boot ID" }, { "name": "cluster_name", "label": "Cluster Name", "type": "string" }, { "name": "cluster_uid", "label": "Cluster UID", "type": "string", "size": 50 }, { "name": "container_runtime_version", "label": "Container Runtime Version" }, { "name": "creation_timestamp", "label": "Creation Timestamp", "size": 50 }, { "name": "daemon_endpoints", "label": "Daemon Endpoints", "type": "string", "size": 1000 }, { "name": "kernel_version", "label": "Kernel Version" }, { "name": "kube_proxy_version", "label": "Kube Proxy Version" }, { "name": "kubelet_version", "label": "Kubelet Version" }, { "name": "labels", "label": "Labels", "type": "string", "size": 10000 }, { "name": "machine_id", "label": "Machine ID" }, { "name": "name", "label": "Name", "type": "string", "size": 255 }, { "name": "operating_system", "label": "Operating System" }, { "name": "os_image", "label": "OS Image" }, { "name": "provider_id", "label": "Provider ID" }, { "name": "system_uuid", "label": "System UUID" }, { "name": "uid", "label": "UID", "size": 50 } ] }}
Kubernetes > Pod > ServiceNow
tmod:@turbot/servicenow-kubernetes#/policy/types/podServiceNow
Kubernetes > Pod > ServiceNow > Configuration Item
Synchronize the data for the Kubernetes > Pod
based on the policies Kubernetes > Pod > 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 Kubernetes > Pod
information within the ServiceNow CMDB.
tmod:@turbot/servicenow-kubernetes#/policy/types/podServiceNowConfigurationItem
[ "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"}
Kubernetes > Pod > 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 Kubernetes > Pod
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-kubernetes#/policy/types/podServiceNowConfigurationItemRecord
"{\n resource: pod{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"cluster_name: {{ $.resource.metadata.kubernetes.clusterName | dump | safe }}\ncluster_uid: {{ $.resource.metadata.kubernetes.clusterUid | dump | safe }}\ncontainers: {{ $.resource.data.containers | dump | safe }}\ncreation_timestamp: {{ $.resource.data.creation_timestamp | dump | safe }}\ndns_policy: {{ $.resource.data.dns_policy | dump | safe }}\ngenerate_name: {{ $.resource.data.generate_name | dump | safe }}\nhost_ip: {{ $.resource.data.host_ip | dump | safe }}\nhost_ipc: {{ $.resource.data.host_ipc | dump | safe }}\nhost_network: {{ $.resource.data.host_network | dump | safe }}\nhost_pid: {{ $.resource.data.host_pid | dump | safe }}\nhostname: {{ $.resource.data.hostname | dump | safe }}\nlabels: {{ $.resource.data.labels | dump | safe }}\nname: {{ $.resource.data.name | dump | safe }}\nnamespace: {{ $.resource.data.namespace | dump | safe }}\nnode_name: {{ $.resource.data.node_name | dump | safe }}\nowner_references: {{ $.resource.data.owner_references | dump | safe }}\nphase: {{ $.resource.data.phase | dump | safe }}\npod_ips: {{ $.resource.data.pod_ips | dump | safe }}\npreemption_policy: {{ $.resource.data.preemption_policy | dump | safe }}\nqos_class: {{ $.resource.data.qos_class | dump | safe }}\nrestart_policy: {{ $.resource.data.restart_policy | dump | safe }}\nscheduler_name: {{ $.resource.data.scheduler_name | dump | safe }}\nservice_account_name: {{ $.resource.data.service_account_name | dump | safe }}\nstart_time: {{ $.resource.data.start_time | dump | safe }}\ntermination_grace_period_seconds: {{ $.resource.data.termination_grace_period_seconds | dump | safe }}\ntolerations: {{ $.resource.data.tolerations | dump | safe }}\nuid: {{ $.resource.data.uid | dump | safe }}\n"
{ "type": "object"}
Kubernetes > Pod > ServiceNow > Configuration Item > Table Definition
This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Kubernetes > Pod
data will be stored, and the details of the columns used for archiving purposes.
tmod:@turbot/servicenow-kubernetes#/policy/types/podServiceNowConfigurationItemTableDefinition
[ "{\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-kubernetes#/policy/types/podServiceNowTableDefinition 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" } }}
Kubernetes > Pod > ServiceNow > Table
Configure a Table for Kubernetes > Pod
resource type in ServiceNow via the Kubernetes > Pod > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-kubernetes#/policy/types/podServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "type": "string", "enum": [ "Skip", "Check: Configured", "Enforce: Configured" ], "example": [ "Skip" ], "default": "Skip"}
Kubernetes > Pod > 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 Kubernetes > Pod
data.
tmod:@turbot/servicenow-kubernetes#/policy/types/podServiceNowTableDefinition
{ "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_kubernetes_pod", "label": "Kubernetes > Pod", "extendsTable": "cmdb_ci" }, "columns": [ { "name": "cluster_name", "label": "Cluster Name", "type": "string" }, { "name": "cluster_uid", "label": "Cluster UID", "type": "string", "size": 50 }, { "name": "containers", "label": "Containers", "size": 50000 }, { "name": "creation_timestamp", "label": "Creation Timestamp", "size": 50 }, { "name": "dns_policy", "label": "DNS Policy" }, { "name": "generate_name", "label": "Generate Name" }, { "name": "host_ip", "label": "Host IP" }, { "name": "host_ipc", "label": "Host IPC", "type": "boolean" }, { "name": "host_network", "label": "Host Network", "type": "boolean" }, { "name": "host_pid", "label": "Host PID", "type": "boolean" }, { "name": "hostname", "label": "HostName" }, { "name": "labels", "label": "Labels", "type": "string", "size": 10000 }, { "name": "name", "label": "Name", "type": "string", "size": 255 }, { "name": "namespace", "label": "Namespace" }, { "name": "node_name", "label": "Node Name" }, { "name": "owner_references", "label": "Owner References", "type": "string", "size": 10000 }, { "name": "phase", "label": "Phase" }, { "name": "pod_ips", "label": "Pod IPs", "type": "string", "size": 1000 }, { "name": "preemption_policy", "label": "Preemption Policy" }, { "name": "qos_class", "label": "QOS Class" }, { "name": "restart_policy", "label": "Restart Policy" }, { "name": "scheduler_name", "label": "Scheduler Name" }, { "name": "service_account_name", "label": "Service Account Name" }, { "name": "start_time", "label": "Start Time", "size": 50 }, { "name": "termination_grace_period_seconds", "label": "Termination Grace Period", "type": "integer" }, { "name": "tolerations", "label": "Tolerations", "type": "string", "size": 10000 }, { "name": "uid", "label": "UID", "size": 50 } ] }}
Kubernetes > ReplicaSet > ServiceNow
tmod:@turbot/servicenow-kubernetes#/policy/types/replicaSetServiceNow
Kubernetes > ReplicaSet > ServiceNow > Configuration Item
Synchronize the data for the Kubernetes > ReplicaSet
based on the policies Kubernetes > ReplicaSet > 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 Kubernetes > ReplicaSet
information within the ServiceNow CMDB.
tmod:@turbot/servicenow-kubernetes#/policy/types/replicaSetServiceNowConfigurationItem
[ "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"}
Kubernetes > ReplicaSet > 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 Kubernetes > ReplicaSet
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-kubernetes#/policy/types/replicaSetServiceNowConfigurationItemRecord
"{\n resource: replicaSet{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"annotations: {{ $.resource.data.annotations | dump | safe }}\navailable_replicas: {{ $.resource.data.available_replicas | dump | safe }}\ncluster_name: {{ $.resource.metadata.kubernetes.clusterName | dump | safe }}\ncluster_uid: {{ $.resource.metadata.kubernetes.clusterUid | dump | safe }}\ncreation_timestamp: {{ $.resource.data.creation_timestamp | dump | safe }}\nfully_labeled_replicas: {{ $.resource.data.fully_labeled_replicas | dump | safe }}\nlabels: {{ $.resource.data.labels | dump | safe }}\nname: {{ $.resource.data.name | dump | safe }}\nnamespace: {{ $.resource.data.namespace | dump | safe }}\nowner_references: {{ $.resource.data.owner_references | dump | safe }}\nready_replicas: {{ $.resource.data.ready_replicas | dump | safe }}\nreplicas: {{ $.resource.data.replicas | dump | safe }}\nselector: {{ $.resource.data.selector | dump | safe }}\nselector_query: {{ $.resource.data.selector_query | dump | safe }}\nstatus_replicas: {{ $.resource.data.status_replicas | dump | safe }}\ntemplate: {{ $.resource.data.template | dump | safe }}\nuid: {{ $.resource.data.uid | dump | safe }}\n"
{ "type": "object"}
Kubernetes > ReplicaSet > ServiceNow > Configuration Item > Table Definition
This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Kubernetes > ReplicaSet
data will be stored, and the details of the columns used for archiving purposes.
tmod:@turbot/servicenow-kubernetes#/policy/types/replicaSetServiceNowConfigurationItemTableDefinition
[ "{\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-kubernetes#/policy/types/replicaSetServiceNowTableDefinition 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" } }}
Kubernetes > ReplicaSet > ServiceNow > Table
Configure a Table for Kubernetes > ReplicaSet
resource type in ServiceNow via the Kubernetes > ReplicaSet > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-kubernetes#/policy/types/replicaSetServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "type": "string", "enum": [ "Skip", "Check: Configured", "Enforce: Configured" ], "example": [ "Skip" ], "default": "Skip"}
Kubernetes > ReplicaSet > 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 Kubernetes > ReplicaSet
data.
tmod:@turbot/servicenow-kubernetes#/policy/types/replicaSetServiceNowTableDefinition
{ "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_kubernetes_replicaset", "label": "Kubernetes > ReplicaSet", "extendsTable": "cmdb_ci" }, "columns": [ { "name": "annotations", "label": "Annotations", "type": "string", "size": 1000 }, { "name": "available_replicas", "label": "Available Replicas", "type": "integer" }, { "name": "cluster_name", "label": "Cluster Name", "type": "string" }, { "name": "cluster_uid", "label": "Cluster UID", "type": "string", "size": 50 }, { "name": "creation_timestamp", "label": "Creation Timestamp", "size": 50 }, { "name": "fully_labeled_replicas", "label": "Fully Labeled Replicas", "type": "integer" }, { "name": "labels", "label": "Labels", "type": "string", "size": 10000 }, { "name": "name", "label": "Name", "type": "string", "size": 255 }, { "name": "namespace", "label": "Namespace" }, { "name": "owner_references", "label": "Owner References", "type": "string", "size": 10000 }, { "name": "ready_replicas", "label": "Ready Replicas", "type": "integer" }, { "name": "replicas", "label": "Replicas", "type": "integer" }, { "name": "selector", "label": "Selector", "type": "string", "size": 10000 }, { "name": "selector_query", "label": "Selector Query" }, { "name": "status_replicas", "label": "Status Replicas", "type": "integer" }, { "name": "template", "label": "Template", "type": "string", "size": 10000 }, { "name": "uid", "label": "UID", "size": 50 } ] }}
Kubernetes > Service > ServiceNow
tmod:@turbot/servicenow-kubernetes#/policy/types/serviceServiceNow
Kubernetes > Service > ServiceNow > Configuration Item
Synchronize the data for the Kubernetes > Service
based on the policies Kubernetes > Service > 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 Kubernetes > Service
information within the ServiceNow CMDB.
tmod:@turbot/servicenow-kubernetes#/policy/types/serviceServiceNowConfigurationItem
[ "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"}
Kubernetes > Service > 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 Kubernetes > Service
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-kubernetes#/policy/types/serviceServiceNowConfigurationItemRecord
"{\n resource: service{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"allocate_load_balancer_node_ports: {{ $.resource.data.allocate_load_balancer_node_ports | dump | safe }}\ncluster_ips: {{ $.resource.data.cluster_ips | dump | safe }}\ncluster_name: {{ $.resource.metadata.kubernetes.clusterName | dump | safe }}\ncluster_uid: {{ $.resource.metadata.kubernetes.clusterUid | dump | safe }}\ncreation_timestamp: {{ $.resource.data.creation_timestamp | dump | safe }}\nexternal_traffic_policy: {{ $.resource.data.external_traffic_policy | dump | safe }}\nip_families: {{ $.resource.data.ip_families | dump | safe }}\nname: {{ $.resource.data.name | dump | safe }}\nnamespace: {{ $.resource.data.namespace | dump | safe }}\nports: {{ $.resource.data.ports | dump | safe }}\nselector_query: {{ $.resource.data.selector_query | dump | safe }}\nsession_affinity: {{ $.resource.data.session_affinity | dump | safe }}\ntype: {{ $.resource.data.type | dump | safe }}\nuid: {{ $.resource.data.uid | dump | safe }}\n"
{ "type": "object"}
Kubernetes > Service > ServiceNow > Configuration Item > Table Definition
This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Kubernetes > Service
data will be stored, and the details of the columns used for archiving purposes.
tmod:@turbot/servicenow-kubernetes#/policy/types/serviceServiceNowConfigurationItemTableDefinition
[ "{\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-kubernetes#/policy/types/serviceServiceNowTableDefinition 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" } }}
Kubernetes > Service > ServiceNow > Table
Configure a Table for Kubernetes > Service
resource type in ServiceNow via the Kubernetes > Service > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-kubernetes#/policy/types/serviceServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "type": "string", "enum": [ "Skip", "Check: Configured", "Enforce: Configured" ], "example": [ "Skip" ], "default": "Skip"}
Kubernetes > Service > 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 Kubernetes > Service
data.
tmod:@turbot/servicenow-kubernetes#/policy/types/serviceServiceNowTableDefinition
{ "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_kubernetes_service", "label": "Kubernetes > Service", "extendsTable": "cmdb_ci" }, "columns": [ { "name": "allocate_load_balancer_node_ports", "label": "Allocate Load Balancer Node Ports", "type": "boolean" }, { "name": "cluster_ips", "label": "Cluster IPs", "type": "string", "size": 1000 }, { "name": "cluster_name", "label": "Cluster Name", "type": "string" }, { "name": "cluster_uid", "label": "Cluster UID", "type": "string", "size": 50 }, { "name": "creation_timestamp", "label": "Creation Timestamp", "size": 50 }, { "name": "external_traffic_policy", "label": "External Traffic Policy" }, { "name": "ip_families", "label": "IP Families", "type": "string", "size": 1000 }, { "name": "name", "label": "Name", "type": "string", "size": 255 }, { "name": "namespace", "label": "Namespace" }, { "name": "ports", "label": "Ports", "type": "string", "size": 5000 }, { "name": "selector_query", "label": "Selector Query" }, { "name": "session_affinity", "label": "Session Affinity" }, { "name": "type", "label": "Type" }, { "name": "uid", "label": "UID", "size": 50 } ] }}
ServiceNow > Turbot > Watches > Kubernetes
The policy ensures that ServiceNow records are appropriately managed, and actions are triggered when necessary, to maintain data accuracy and synchronization.
tmod:@turbot/servicenow-kubernetes#/policy/types/watchesKubernetes
[ "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"}