Policy types for @turbot/servicenow-gcp-kubernetesengine

GCP > Kubernetes Engine > Region Cluster > ServiceNow

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/regionClusterServiceNow
Targets

GCP > Kubernetes Engine > Region Cluster > ServiceNow > Configuration Item

Synchronize the data for the GCP > Kubernetes Engine > Region Cluster based on the policies GCP > Kubernetes Engine > Region 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 GCP > Kubernetes Engine > Region Cluster information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/regionClusterServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
],
"example": [
"Skip"
],
"default": "Skip"
}

GCP > Kubernetes Engine > Region 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 GCP > Kubernetes Engine > Region 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.

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/regionClusterServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: regionCluster{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"addons_config: {{ $.resource.data.addonsConfig | dump | safe }}\nauthenticator_groups_config: {{ $.resource.data.authenticatorGroupsConfig | dump | safe }}\nautopilot_enabled: {{ $.resource.data.autopilot.enabled | dump | safe }}\nautoscaling: {{ $.resource.data.autoscaling | dump | safe }}\nbinary_authorization: {{ $.resource.data.binaryAuthorization.evaluationMode | dump | safe }}\ncluster_ipv4_cidr: {{ $.resource.data.clusterIpv4Cidr | dump | safe }}\nconditions: {{ $.resource.data.conditions | dump | safe }}\ncreate_time: {{ $.resource.data.createTime | dump | safe }}\ncurrent_master_version: {{ $.resource.data.currentMasterVersion | dump | safe }}\ncurrent_node_count: {{ $.resource.data.currentNodeCount | dump | safe }}\ncurrent_node_version: {{ $.resource.data.currentNodeVersion | dump | safe }}\ndatabase_encryption_state: {{ $.resource.data.databaseEncryption.state | dump | safe }}\nendpoint: {{ $.resource.data.endpoint | dump | safe }}\nexpire_time: {{ $.resource.data.expireTime | dump | safe }}\ninitial_cluster_version: {{ $.resource.data.initialClusterVersion | dump | safe }}\ninstance_group_urls: {{ $.resource.data.instanceGroupUrls | dump | safe }}\nip_allocation_policy: {{ $.resource.data.ipAllocationPolicy | dump | safe }}\nlocations: {{ $.resource.data.locations | dump | safe }}\nnetwork: {{ $.resource.data.network | dump | safe }}\nnetwork_config: {{ $.resource.data.networkConfig | dump | safe }}\nnode_config: {{ $.resource.data.nodeConfig | dump | safe }}\nnode_pools: {{ $.resource.data.nodePools | dump | safe }}\nnotification_config: {{ $.resource.data.notificationConfig | dump | safe }}\nprivate_cluster_config: {{ $.resource.data.privateClusterConfig | dump | safe }}\nproject: {{ $.resource.metadata.gcp.projectId | dump | safe }}\nregion: {{ $.resource.metadata.gcp.regionName | dump | safe }}\nregion_cluster_location: {{ $.resource.data.location | dump | safe }}\nservices_ipv4_cidr: {{ $.resource.data.servicesIpv4Cidr | dump | safe }}\nstatus: {{ $.resource.data.status | dump | safe }}\nstatus_message: {{ $.resource.data.statusMessage | dump | safe }}\nsubnetwork: {{ $.resource.data.subnetwork | dump | safe }}\ntags: {{ $.resource.turbot.tags | dump | safe }}\nzone: {{ $.resource.data.zone | dump | safe }}\n"
Schema
{
"type": "object"
}

GCP > Kubernetes Engine > Region Cluster > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the GCP > Kubernetes Engine > Region Cluster data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/regionClusterServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n",
"{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/regionClusterServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"
]
Default Template
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

GCP > Kubernetes Engine > Region Cluster > ServiceNow > Table

Configure a Table for GCP > Kubernetes Engine > Region Cluster resource type in ServiceNow via the GCP > Kubernetes Engine > Region Cluster > ServiceNow > Table > * policies.

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

GCP > Kubernetes Engine > Region 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 GCP > Kubernetes Engine > Region Cluster data.

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/regionClusterServiceNowTableDefinition
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"table",
"columns"
],
"properties": {
"table": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string"
},
"extendsTable": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
}
}
},
"columns": {
"type": "array",
"description": "An array of columns with their mappings to the CMDB.",
"default": [],
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the column in the table.",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string",
"description": "The label for the column."
},
"type": {
"description": "The data type of the column.",
"type": "string"
},
"size": {
"type": "integer",
"description": "The length for data type."
}
}
}
}
},
"default": {
"table": {
"name": "guardrails_gcp_kubernetesengine_regioncluster",
"label": "GCP > Kubernetes Engine > Region Cluster",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "addons_config",
"label": "Addons Config",
"type": "string",
"size": 1000
},
{
"name": "authenticator_groups_config",
"label": "Authenticator Groups Config",
"type": "string",
"size": 1000
},
{
"name": "autopilot_enabled",
"label": "Autopilot Enabled",
"type": "boolean"
},
{
"name": "autoscaling",
"label": "Autoscaling",
"type": "string",
"size": 1000
},
{
"name": "binary_authorization",
"label": "Binary Authorization",
"type": "string",
"size": 1000
},
{
"name": "cluster_ipv4_cidr",
"label": "Cluster IPV4 CIDR"
},
{
"name": "conditions",
"label": "Conditions",
"type": "string",
"size": 1000
},
{
"name": "create_time",
"label": "Create Time"
},
{
"name": "current_master_version",
"label": "Current Master Version"
},
{
"name": "current_node_count",
"label": "Current Node Count"
},
{
"name": "current_node_version",
"label": "Current Node Version"
},
{
"name": "database_encryption_state",
"label": "Database Encryption State"
},
{
"name": "endpoint",
"label": "Endpoint"
},
{
"name": "expire_time",
"label": "Expire Time"
},
{
"name": "initial_cluster_version",
"label": "Initial Cluster Version"
},
{
"name": "instance_group_urls",
"label": "Instance Group URLs",
"type": "string",
"size": 1000
},
{
"name": "ip_allocation_policy",
"label": "IP Allocation Policy",
"type": "string",
"size": 1000
},
{
"name": "locations",
"label": "Locations",
"type": "string",
"size": 1000
},
{
"name": "network",
"label": "Network"
},
{
"name": "network_config",
"label": "Network Config",
"type": "string",
"size": 1000
},
{
"name": "node_config",
"label": "Node Config",
"type": "string",
"size": 1000
},
{
"name": "node_pools",
"label": "Node Pools",
"type": "string",
"size": 1000
},
{
"name": "notification_config",
"label": "Notification Config",
"type": "string",
"size": 1000
},
{
"name": "private_cluster_config",
"label": "Private Cluster Config",
"type": "string",
"size": 1000
},
{
"name": "project",
"label": "Project",
"type": "string"
},
{
"name": "region",
"label": "Region"
},
{
"name": "region_cluster_location",
"label": "Location"
},
{
"name": "services_ipv4_cidr",
"label": "Services IPV4 CIDR"
},
{
"name": "status",
"label": "Status"
},
{
"name": "status_message",
"label": "Status Message"
},
{
"name": "subnetwork",
"label": "Subnetwork"
},
{
"name": "tags",
"label": "Tags",
"type": "string",
"size": 1000
},
{
"name": "zone",
"label": "Zone"
}
]
}
}

GCP > Kubernetes Engine > Region Node Pool > ServiceNow

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/regionNodePoolServiceNow
Targets

GCP > Kubernetes Engine > Region Node Pool > ServiceNow > Configuration Item

Synchronize the data for the GCP > Kubernetes Engine > Region Node Pool based on the policies GCP > Kubernetes Engine > Region Node Pool > 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 GCP > Kubernetes Engine > Region Node Pool information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/regionNodePoolServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
],
"example": [
"Skip"
],
"default": "Skip"
}

GCP > Kubernetes Engine > Region Node Pool > 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 GCP > Kubernetes Engine > Region Node Pool is systematically mapped to a specific column in a ServiceNow table.

The policy allows enabling organizations to select and map only those attributes that are most relevant to their operational needs. It significantly reduces the manual effort involved in data transfer and minimizes the risk of errors, thereby enhancing the overall efficiency of data management.

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/regionNodePoolServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: regionNodePool{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"autoscaling: {{ $.resource.data.autoscaling | dump | safe }}\nconfig: {{ $.resource.data.config | dump | safe }}\ninitial_node_count: {{ $.resource.data.initialNodeCount | dump | safe }}\ninstance_group_urls: {{ $.resource.data.instanceGroupUrls | dump | safe }}\nlocations: {{ $.resource.data.locations | dump | safe }}\nmanagement: {{ $.resource.data.management | dump | safe }}\nmax_pods_constraint: {{ $.resource.data.maxPodsConstraint | dump | safe }}\npod_ipv4_cidr_size: {{ $.resource.data.podIpv4CidrSize | dump | safe }}\nproject: {{ $.resource.metadata.gcp.projectId | dump | safe }}\nregion: {{ $.resource.metadata.gcp.regionName | dump | safe }}\nregion_node_pool_name: {{ $.resource.data.name | dump | safe }}\nstatus: {{ $.resource.data.status | dump | safe }}\ntags: {{ $.resource.turbot.tags | dump | safe }}\nupgrade_settings: {{ $.resource.data.upgradeSettings | dump | safe }}\nversion: {{ $.resource.data.version | dump | safe }}\n"
Schema
{
"type": "object"
}

GCP > Kubernetes Engine > Region Node Pool > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the GCP > Kubernetes Engine > Region Node Pool data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/regionNodePoolServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n",
"{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/regionNodePoolServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"
]
Default Template
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

GCP > Kubernetes Engine > Region Node Pool > ServiceNow > Table

Configure a Table for GCP > Kubernetes Engine > Region Node Pool resource type in ServiceNow via the GCP > Kubernetes Engine > Region Node Pool > ServiceNow > Table > * policies.

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

GCP > Kubernetes Engine > Region Node Pool > 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 GCP > Kubernetes Engine > Region Node Pool data.

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/regionNodePoolServiceNowTableDefinition
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"table",
"columns"
],
"properties": {
"table": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string"
},
"extendsTable": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
}
}
},
"columns": {
"type": "array",
"description": "An array of columns with their mappings to the CMDB.",
"default": [],
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the column in the table.",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string",
"description": "The label for the column."
},
"type": {
"description": "The data type of the column.",
"type": "string"
},
"size": {
"type": "integer",
"description": "The length for data type."
}
}
}
}
},
"default": {
"table": {
"name": "guardrails_gcp_kubernetesengine_regionnodepool",
"label": "GCP > Kubernetes Engine > Region Node Pool",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "autoscaling",
"label": "Autoscaling",
"type": "string",
"size": 1000
},
{
"name": "config",
"label": "Config",
"type": "string",
"size": 1000
},
{
"name": "initial_node_count",
"label": "Initial Node Count"
},
{
"name": "instance_group_urls",
"label": "Instance Group URLs",
"type": "string",
"size": 1000
},
{
"name": "locations",
"label": "Locations",
"type": "string",
"size": 1000
},
{
"name": "management",
"label": "Management",
"type": "string",
"size": 1000
},
{
"name": "max_pods_constraint",
"label": "Max Pods Constraint",
"type": "string",
"size": 1000
},
{
"name": "pod_ipv4_cidr_size",
"label": "Pod IPV4 CIDR Size"
},
{
"name": "project",
"label": "Project",
"type": "string"
},
{
"name": "region",
"label": "Region"
},
{
"name": "region_node_pool_name",
"label": "Name"
},
{
"name": "status",
"label": "Status"
},
{
"name": "tags",
"label": "Tags",
"type": "string",
"size": 1000
},
{
"name": "upgrade_settings",
"label": "Upgrade Settings",
"type": "string",
"size": 1000
},
{
"name": "version",
"label": "Version"
}
]
}
}

GCP > Kubernetes Engine > Zone Cluster > ServiceNow

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/zoneClusterServiceNow
Targets

GCP > Kubernetes Engine > Zone Cluster > ServiceNow > Configuration Item

Synchronize the data for the GCP > Kubernetes Engine > Zone Cluster based on the policies GCP > Kubernetes Engine > Zone 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 GCP > Kubernetes Engine > Zone Cluster information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/zoneClusterServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
],
"example": [
"Skip"
],
"default": "Skip"
}

GCP > Kubernetes Engine > Zone 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 GCP > Kubernetes Engine > Zone 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.

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/zoneClusterServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: zoneCluster{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"addons_config: {{ $.resource.data.addonsConfig | dump | safe }}\nauthenticator_groups_config: {{ $.resource.data.authenticatorGroupsConfig | dump | safe }}\nautopilot_enabled: {{ $.resource.data.autopilot.enabled | dump | safe }}\nautoscaling: {{ $.resource.data.autoscaling | dump | safe }}\nbinary_authorization: {{ $.resource.data.binaryAuthorization.evaluationMode | dump | safe }}\ncreate_time: {{ $.resource.data.createTime | dump | safe }}\ncurrent_master_version: {{ $.resource.data.currentMasterVersion | dump | safe }}\ncurrent_node_count: {{ $.resource.data.currentNodeCount | dump | safe }}\ncurrent_node_version: {{ $.resource.data.currentNodeVersion | dump | safe }}\ndatabase_encryption_state: {{ $.resource.data.databaseEncryption.state | dump | safe }}\nendpoint: {{ $.resource.data.endpoint | dump | safe }}\ninitial_cluster_version: {{ $.resource.data.initialClusterVersion | dump | safe }}\ninstance_group_urls: {{ $.resource.data.instanceGroupUrls | dump | safe }}\nip_allocation_policy: {{ $.resource.data.ipAllocationPolicy | dump | safe }}\nlocations: {{ $.resource.data.locations | dump | safe }}\nnetwork: {{ $.resource.data.network | dump | safe }}\nnetwork_config: {{ $.resource.data.networkConfig | dump | safe }}\nnode_config: {{ $.resource.data.nodeConfig | dump | safe }}\nnode_pools: {{ $.resource.data.nodePools | dump | safe }}\nnotification_config: {{ $.resource.data.notificationConfig | dump | safe }}\nprivate_cluster_config: {{ $.resource.data.privateClusterConfig | dump | safe }}\nproject: {{ $.resource.metadata.gcp.projectId | dump | safe }}\nregion: {{ $.resource.metadata.gcp.regionName | dump | safe }}\nservices_ipv4_cidr: {{ $.resource.data.servicesIpv4Cidr | dump | safe }}\nstatus: {{ $.resource.data.status | dump | safe }}\nsubnetwork: {{ $.resource.data.subnetwork | dump | safe }}\ntags: {{ $.resource.turbot.tags | dump | safe }}\nzone: {{ $.resource.data.zone | dump | safe }}\nzone_cluster_location: {{ $.resource.data.location | dump | safe }}\nzone_cluster_name: {{ $.resource.data.name | dump | safe }}\n"
Schema
{
"type": "object"
}

GCP > Kubernetes Engine > Zone Cluster > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the GCP > Kubernetes Engine > Zone Cluster data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/zoneClusterServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n",
"{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/zoneClusterServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"
]
Default Template
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

GCP > Kubernetes Engine > Zone Cluster > ServiceNow > Table

Configure a Table for GCP > Kubernetes Engine > Zone Cluster resource type in ServiceNow via the GCP > Kubernetes Engine > Zone Cluster > ServiceNow > Table > * policies.

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

GCP > Kubernetes Engine > Zone 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 GCP > Kubernetes Engine > Zone Cluster data.

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/zoneClusterServiceNowTableDefinition
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"table",
"columns"
],
"properties": {
"table": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string"
},
"extendsTable": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
}
}
},
"columns": {
"type": "array",
"description": "An array of columns with their mappings to the CMDB.",
"default": [],
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the column in the table.",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string",
"description": "The label for the column."
},
"type": {
"description": "The data type of the column.",
"type": "string"
},
"size": {
"type": "integer",
"description": "The length for data type."
}
}
}
}
},
"default": {
"table": {
"name": "guardrails_gcp_kubernetesengine_zonecluster",
"label": "GCP > Kubernetes Engine > Zone Cluster",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "addons_config",
"label": "Addons Config",
"type": "string",
"size": 1000
},
{
"name": "authenticator_groups_config",
"label": "Authenticator Groups Config",
"type": "string",
"size": 1000
},
{
"name": "autopilot_enabled",
"label": "Autopilot Enabled",
"type": "boolean"
},
{
"name": "autoscaling",
"label": "Autoscaling",
"type": "string",
"size": 1000
},
{
"name": "binary_authorization",
"label": "Binary Authorization",
"type": "string",
"size": 1000
},
{
"name": "create_time",
"label": "Create Time"
},
{
"name": "current_master_version",
"label": "Current Master Version"
},
{
"name": "current_node_count",
"label": "Current Node Count"
},
{
"name": "current_node_version",
"label": "Current Node Version"
},
{
"name": "database_encryption_state",
"label": "Database Encryption State"
},
{
"name": "endpoint",
"label": "Endpoint"
},
{
"name": "initial_cluster_version",
"label": "Initial Cluster Version"
},
{
"name": "instance_group_urls",
"label": "Instance Group URLs",
"type": "string",
"size": 1000
},
{
"name": "ip_allocation_policy",
"label": "IP Allocation Policy",
"type": "string",
"size": 1000
},
{
"name": "locations",
"label": "Locations",
"type": "string",
"size": 1000
},
{
"name": "network",
"label": "Network"
},
{
"name": "network_config",
"label": "Network Config",
"type": "string",
"size": 1000
},
{
"name": "node_config",
"label": "Node Config",
"type": "string",
"size": 1000
},
{
"name": "node_pools",
"label": "Node Pools",
"type": "string",
"size": 1000
},
{
"name": "notification_config",
"label": "Notification Config",
"type": "string",
"size": 1000
},
{
"name": "private_cluster_config",
"label": "Private Cluster Config",
"type": "string",
"size": 1000
},
{
"name": "project",
"label": "Project",
"type": "string"
},
{
"name": "region",
"label": "Region"
},
{
"name": "services_ipv4_cidr",
"label": "Services IPV4 CIDR"
},
{
"name": "status",
"label": "Status"
},
{
"name": "subnetwork",
"label": "Subnetwork"
},
{
"name": "tags",
"label": "Tags",
"type": "string",
"size": 1000
},
{
"name": "zone",
"label": "Zone"
},
{
"name": "zone_cluster_location",
"label": "Location"
},
{
"name": "zone_cluster_name",
"label": "Name"
}
]
}
}

GCP > Kubernetes Engine > Zone Node Pool > ServiceNow

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/zoneNodePoolServiceNow
Targets

GCP > Kubernetes Engine > Zone Node Pool > ServiceNow > Configuration Item

Synchronize the data for the GCP > Kubernetes Engine > Zone Node Pool based on the policies GCP > Kubernetes Engine > Zone Node Pool > 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 GCP > Kubernetes Engine > Zone Node Pool information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/zoneNodePoolServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
],
"example": [
"Skip"
],
"default": "Skip"
}

GCP > Kubernetes Engine > Zone Node Pool > 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 GCP > Kubernetes Engine > Zone Node Pool is systematically mapped to a specific column in a ServiceNow table.

The policy allows enabling organizations to select and map only those attributes that are most relevant to their operational needs. It significantly reduces the manual effort involved in data transfer and minimizes the risk of errors, thereby enhancing the overall efficiency of data management.

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/zoneNodePoolServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: zoneNodePool{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"config: {{ $.resource.data.config | dump | safe }}\ninitial_node_count: {{ $.resource.data.initialNodeCount | dump | safe }}\ninstance_group_urls: {{ $.resource.data.instanceGroupUrls | dump | safe }}\nlocations: {{ $.resource.data.locations | dump | safe }}\nmanagement: {{ $.resource.data.management | dump | safe }}\nmax_pods_constraint: {{ $.resource.data.maxPodsConstraint | dump | safe }}\nnetwork_config: {{ $.resource.data.networkConfig | dump | safe }}\npod_ipv4_cidr_size: {{ $.resource.data.podIpv4CidrSize | dump | safe }}\nproject: {{ $.resource.metadata.gcp.projectId | dump | safe }}\nregion: {{ $.resource.metadata.gcp.regionName | dump | safe }}\nstatus: {{ $.resource.data.status | dump | safe }}\ntags: {{ $.resource.turbot.tags | dump | safe }}\nupgrade_settings: {{ $.resource.data.upgradeSettings | dump | safe }}\nversion: {{ $.resource.data.version | dump | safe }}\nzone_node_pool_name: {{ $.resource.data.name | dump | safe }}\n"
Schema
{
"type": "object"
}

GCP > Kubernetes Engine > Zone Node Pool > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the GCP > Kubernetes Engine > Zone Node Pool data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/zoneNodePoolServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n",
"{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/zoneNodePoolServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"
]
Default Template
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

GCP > Kubernetes Engine > Zone Node Pool > ServiceNow > Table

Configure a Table for GCP > Kubernetes Engine > Zone Node Pool resource type in ServiceNow via the GCP > Kubernetes Engine > Zone Node Pool > ServiceNow > Table > * policies.

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

GCP > Kubernetes Engine > Zone Node Pool > 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 GCP > Kubernetes Engine > Zone Node Pool data.

URI
tmod:@turbot/servicenow-gcp-kubernetesengine#/policy/types/zoneNodePoolServiceNowTableDefinition
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"table",
"columns"
],
"properties": {
"table": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string"
},
"extendsTable": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
}
}
},
"columns": {
"type": "array",
"description": "An array of columns with their mappings to the CMDB.",
"default": [],
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the column in the table.",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string",
"description": "The label for the column."
},
"type": {
"description": "The data type of the column.",
"type": "string"
},
"size": {
"type": "integer",
"description": "The length for data type."
}
}
}
}
},
"default": {
"table": {
"name": "guardrails_gcp_kubernetesengine_zonenodepool",
"label": "GCP > Kubernetes Engine > Zone Node Pool",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "config",
"label": "Config",
"type": "string",
"size": 1000
},
{
"name": "initial_node_count",
"label": "Initial Node Count"
},
{
"name": "instance_group_urls",
"label": "Instance Group URLs",
"type": "string",
"size": 1000
},
{
"name": "locations",
"label": "Locations",
"type": "string",
"size": 1000
},
{
"name": "management",
"label": "Management",
"type": "string",
"size": 1000
},
{
"name": "max_pods_constraint",
"label": "Max Pods Constraint",
"type": "string",
"size": 1000
},
{
"name": "network_config",
"label": "Network Config"
},
{
"name": "pod_ipv4_cidr_size",
"label": "Pod IPV4 CIDR Size"
},
{
"name": "project",
"label": "Project",
"type": "string"
},
{
"name": "region",
"label": "Region"
},
{
"name": "status",
"label": "Status"
},
{
"name": "tags",
"label": "Tags",
"type": "string",
"size": 1000
},
{
"name": "upgrade_settings",
"label": "Upgrade Settings",
"type": "string",
"size": 1000
},
{
"name": "version",
"label": "Version"
},
{
"name": "zone_node_pool_name",
"label": "Name"
}
]
}
}