Policy types for @turbot/servicenow-gcp-bigtable

GCP > Bigtable > Cluster > ServiceNow

URI
tmod:@turbot/servicenow-gcp-bigtable#/policy/types/clusterServiceNow
Targets

GCP > Bigtable > Cluster > ServiceNow > Configuration Item

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

URI
tmod:@turbot/servicenow-gcp-bigtable#/policy/types/clusterServiceNowConfigurationItem
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 > Bigtable > 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 > Bigtable > 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-bigtable#/policy/types/clusterServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: cluster{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"cluster_config: {{ $.resource.data.clusterConfig | dump | safe }}\ncluster_location: {{ $.resource.data.location | dump | safe }}\ncluster_name: {{ $.resource.data.name | dump | safe }}\ndefault_storage_type: {{ $.resource.data.defaultStorageType | dump | safe }}\nencryption_config: {{ $.resource.data.encryptionConfig | dump | safe }}\nproject: {{ $.resource.metadata.gcp.projectId | dump | safe }}\nserver_nodes: {{ $.resource.data.serveNodes | dump | safe }}\nstate: {{ $.resource.data.state | dump | safe }}\n"
Schema
{
"type": "object"
}

GCP > Bigtable > 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 > Bigtable > Cluster data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-gcp-bigtable#/policy/types/clusterServiceNowConfigurationItemTableDefinition
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-bigtable#/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"
]
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 > Bigtable > Cluster > ServiceNow > Table

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

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

GCP > Bigtable > 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 > Bigtable > Cluster data.

URI
tmod:@turbot/servicenow-gcp-bigtable#/policy/types/clusterServiceNowTableDefinition
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_bigtable_cluster",
"label": "GCP > Bigtable > Cluster",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "cluster_config",
"label": "Cluster Config",
"type": "string",
"size": 1000
},
{
"name": "cluster_location",
"label": "Location"
},
{
"name": "cluster_name",
"label": "Cluster Name"
},
{
"name": "default_storage_type",
"label": "Default Storage Type",
"type": "string"
},
{
"name": "encryption_config",
"label": "Encryption Config",
"type": "string",
"size": 1000
},
{
"name": "project",
"label": "Project"
},
{
"name": "server_nodes",
"label": "Server Nodes"
},
{
"name": "state",
"label": "State"
}
]
}
}

GCP > Bigtable > Instance > ServiceNow

URI
tmod:@turbot/servicenow-gcp-bigtable#/policy/types/instanceServiceNow
Targets

GCP > Bigtable > Instance > ServiceNow > Configuration Item

Synchronize the data for the GCP > Bigtable > Instance based on the policies GCP > Bigtable > Instance > 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 > Bigtable > Instance information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-gcp-bigtable#/policy/types/instanceServiceNowConfigurationItem
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 > Bigtable > Instance > 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 > Bigtable > Instance 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-bigtable#/policy/types/instanceServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: instance{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"display_name: {{ $.resource.data.displayName | dump | safe }}\niam_policy: {{ $.resource.data.iamPolicy | dump | safe }}\ninstance_name: {{ $.resource.data.name | dump | safe }}\ninstance_type: {{ $.resource.data.type | dump | safe }}\nlabels: {{ $.resource.data.labels | dump | safe }}\nproject: {{ $.resource.metadata.gcp.projectId | dump | safe }}\nstate: {{ $.resource.data.state | dump | safe }}\n"
Schema
{
"type": "object"
}

GCP > Bigtable > Instance > ServiceNow > Configuration Item > Table Definition

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

URI
tmod:@turbot/servicenow-gcp-bigtable#/policy/types/instanceServiceNowConfigurationItemTableDefinition
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-bigtable#/policy/types/instanceServiceNowTableDefinition 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 > Bigtable > Instance > ServiceNow > Table

Configure a Table for GCP > Bigtable > Instance resource type in ServiceNow via the GCP > Bigtable > Instance > ServiceNow > Table > * policies.

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

GCP > Bigtable > Instance > 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 > Bigtable > Instance data.

URI
tmod:@turbot/servicenow-gcp-bigtable#/policy/types/instanceServiceNowTableDefinition
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_bigtable_instance",
"label": "GCP > Bigtable > Instance",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "display_name",
"label": "Display Name"
},
{
"name": "iam_policy",
"label": "IAM Policy",
"type": "string",
"size": 1000
},
{
"name": "instance_name",
"label": "Name"
},
{
"name": "instance_type",
"label": "Type"
},
{
"name": "labels",
"label": "Labels",
"type": "string",
"size": 1000
},
{
"name": "project",
"label": "Project"
},
{
"name": "state",
"label": "State"
}
]
}
}

GCP > Bigtable > Table > ServiceNow

URI
tmod:@turbot/servicenow-gcp-bigtable#/policy/types/tableServiceNow
Targets

GCP > Bigtable > Table > ServiceNow > Configuration Item

Synchronize the data for the GCP > Bigtable > Table based on the policies GCP > Bigtable > Table > 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 > Bigtable > Table information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-gcp-bigtable#/policy/types/tableServiceNowConfigurationItem
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 > Bigtable > Table > 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 > Bigtable > Table 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-bigtable#/policy/types/tableServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: table{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"change_stream_config: {{ $.resource.data.changeStreamConfig | dump | safe }}\ncluster_states: {{ $.resource.data.clusterStates | dump | safe }}\ncolumn_families: {{ $.resource.data.columnFamilies | dump | safe }}\ndeletion_protection: {{ $.resource.data.deletionProtection | dump | safe }}\ngranularity: {{ $.resource.data.granularity | dump | safe }}\nproject: {{ $.resource.metadata.gcp.projectId | dump | safe }}\nrestore_info: {{ $.resource.data.restoreInfo | dump | safe }}\nstats: {{ $.resource.data.stats | dump | safe }}\ntable_name: {{ $.resource.data.name | dump | safe }}\n"
Schema
{
"type": "object"
}

GCP > Bigtable > Table > ServiceNow > Configuration Item > Table Definition

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

URI
tmod:@turbot/servicenow-gcp-bigtable#/policy/types/tableServiceNowConfigurationItemTableDefinition
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-bigtable#/policy/types/tableServiceNowTableDefinition 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 > Bigtable > Table > ServiceNow > Table

Configure a Table for GCP > Bigtable > Table resource type in ServiceNow via the GCP > Bigtable > Table > ServiceNow > Table > * policies.

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

GCP > Bigtable > Table > 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 > Bigtable > Table data.

URI
tmod:@turbot/servicenow-gcp-bigtable#/policy/types/tableServiceNowTableDefinition
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_bigtable_table",
"label": "GCP > Bigtable > Table",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "change_stream_config",
"label": "Change Stream Config",
"type": "string",
"size": 1000
},
{
"name": "cluster_states",
"label": "Cluster States",
"type": "string",
"size": 1000
},
{
"name": "column_families",
"label": "Column Families",
"type": "string",
"size": 1000
},
{
"name": "deletion_protection",
"label": "Deletion Protection",
"type": "boolean"
},
{
"name": "granularity",
"label": "Granularity",
"type": "string",
"size": 1000
},
{
"name": "project",
"label": "Project"
},
{
"name": "restore_info",
"label": "Stats",
"type": "Restore Info",
"size": 1000
},
{
"name": "stats",
"label": "Stats",
"type": "string",
"size": 1000
},
{
"name": "table_name",
"label": "Name"
}
]
}
}