Policy types for @turbot/servicenow-gcp-appengine

GCP > App Engine > Application > ServiceNow

URI
tmod:@turbot/servicenow-gcp-appengine#/policy/types/applicationServiceNow
Targets

GCP > App Engine > Application > ServiceNow > Configuration Item

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

URI
tmod:@turbot/servicenow-gcp-appengine#/policy/types/applicationServiceNowConfigurationItem
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 > App Engine > Application > 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 > App Engine > Application 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-appengine#/policy/types/applicationServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: application{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"application_name: {{ $.resource.data.name | dump | safe }}\ncode_bucket: {{ $.resource.data.codeBucket | dump | safe }}\ndatabase_type: {{ $.resource.data.databaseType | dump | safe }}\ndefault_bucket: {{ $.resource.data.defaultBucket | dump | safe }}\ndefault_hostname: {{ $.resource.data.defaultHostname | dump | safe }}\nfeature_settings: {{ $.resource.data.featureSettings | dump | safe }}\nid: {{ $.resource.data.id | dump | safe }}\nlocation_id: {{ $.resource.data.locationId | dump | safe }}\nproject: {{ $.resource.metadata.gcp.projectId | dump | safe }}\nservice_account: {{ $.resource.data.serviceAccount | dump | safe }}\nserving_status: {{ $.resource.data.servingStatus | dump | safe }}\n"
Schema
{
"type": "object"
}

GCP > App Engine > Application > ServiceNow > Configuration Item > Table Definition

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

URI
tmod:@turbot/servicenow-gcp-appengine#/policy/types/applicationServiceNowConfigurationItemTableDefinition
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-appengine#/policy/types/applicationServiceNowTableDefinition 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 > App Engine > Application > ServiceNow > Table

Configure a Table for GCP > App Engine > Application resource type in ServiceNow via the GCP > App Engine > Application > ServiceNow > Table > * policies.

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

GCP > App Engine > Application > 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 > App Engine > Application data.

URI
tmod:@turbot/servicenow-gcp-appengine#/policy/types/applicationServiceNowTableDefinition
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_appengine_application",
"label": "GCP > App Engine > Application",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "application_name",
"label": "Name"
},
{
"name": "code_bucket",
"label": "Code Bucket"
},
{
"name": "database_type",
"label": "Database Type"
},
{
"name": "default_bucket",
"label": "Default Bucket"
},
{
"name": "default_hostname",
"label": "Default Hostname"
},
{
"name": "feature_settings",
"label": "Feature Settings"
},
{
"name": "id",
"label": "ID"
},
{
"name": "location_id",
"label": "Location ID",
"type": "string"
},
{
"name": "project",
"label": "Project",
"type": "string"
},
{
"name": "service_account",
"label": "Service Account"
},
{
"name": "serving_status",
"label": "Serving Status"
}
]
}
}

GCP > App Engine > Firewall Rule > ServiceNow

URI
tmod:@turbot/servicenow-gcp-appengine#/policy/types/firewallRuleServiceNow
Targets

GCP > App Engine > Firewall Rule > ServiceNow > Configuration Item

Synchronize the data for the GCP > App Engine > Firewall Rule based on the policies GCP > App Engine > Firewall Rule > 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 > App Engine > Firewall Rule information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-gcp-appengine#/policy/types/firewallRuleServiceNowConfigurationItem
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 > App Engine > Firewall Rule > 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 > App Engine > Firewall Rule 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-appengine#/policy/types/firewallRuleServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: firewallRule{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"action: {{ $.resource.data.action | dump | safe }}\ndescription: {{ $.resource.data.description | dump | safe }}\npriority: {{ $.resource.data.priority | dump | safe }}\nproject: {{ $.resource.metadata.gcp.projectId | dump | safe }}\nsource_range: {{ $.resource.data.sourceRange | dump | safe }}\n"
Schema
{
"type": "object"
}

GCP > App Engine > Firewall Rule > ServiceNow > Configuration Item > Table Definition

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

URI
tmod:@turbot/servicenow-gcp-appengine#/policy/types/firewallRuleServiceNowConfigurationItemTableDefinition
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-appengine#/policy/types/firewallRuleServiceNowTableDefinition 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 > App Engine > Firewall Rule > ServiceNow > Table

Configure a Table for GCP > App Engine > Firewall Rule resource type in ServiceNow via the GCP > App Engine > Firewall Rule > ServiceNow > Table > * policies.

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

GCP > App Engine > Firewall Rule > 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 > App Engine > Firewall Rule data.

URI
tmod:@turbot/servicenow-gcp-appengine#/policy/types/firewallRuleServiceNowTableDefinition
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_appengine_firewallrule",
"label": "GCP > App Engine > Firewall Rule",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "action",
"label": "Action"
},
{
"name": "description",
"label": "Description",
"type": "strings"
},
{
"name": "priority",
"label": "Priority"
},
{
"name": "project",
"label": "Project",
"type": "string"
},
{
"name": "source_range",
"label": "Source Range"
}
]
}
}

GCP > App Engine > Instance > ServiceNow

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

GCP > App Engine > Instance > ServiceNow > Configuration Item

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

URI
tmod:@turbot/servicenow-gcp-appengine#/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 > App Engine > 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 > App Engine > 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-appengine#/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
"app_engine_release: {{ $.resource.data.appEngineRelease | dump | safe }}\navailability: {{ $.resource.data.availability | dump | safe }}\nid: {{ $.resource.data.id | dump | safe }}\ninstance_name: {{ $.resource.data.name | dump | safe }}\nproject: {{ $.resource.metadata.gcp.projectId | dump | safe }}\nservice_id: {{ $.resource.metadata.serviceId | dump | safe }}\nversion_id: {{ $.resource.metadata.versionId | dump | safe }}\nvm_id: {{ $.resource.data.vmId | dump | safe }}\nvm_ip: {{ $.resource.data.vmIp | dump | safe }}\nvm_name: {{ $.resource.data.vmName | dump | safe }}\nvm_status: {{ $.resource.data.vmStatus | dump | safe }}\n"
Schema
{
"type": "object"
}

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

URI
tmod:@turbot/servicenow-gcp-appengine#/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-appengine#/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 > App Engine > Instance > ServiceNow > Table

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

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

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

URI
tmod:@turbot/servicenow-gcp-appengine#/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_appengine_instance",
"label": "GCP > App Engine > Instance",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "app_engine_release",
"label": "App Engine Release"
},
{
"name": "availability",
"label": "Availability"
},
{
"name": "id",
"label": "ID"
},
{
"name": "instance_name",
"label": "Name"
},
{
"name": "project",
"label": "Project",
"type": "string"
},
{
"name": "service_id",
"label": "Service ID"
},
{
"name": "version_id",
"label": "Version ID"
},
{
"name": "vm_id",
"label": "VM ID"
},
{
"name": "vm_ip",
"label": "VM IP"
},
{
"name": "vm_name",
"label": "Vm Name"
},
{
"name": "vm_status",
"label": "Vm Status"
}
]
}
}

GCP > App Engine > Service > ServiceNow

URI
tmod:@turbot/servicenow-gcp-appengine#/policy/types/serviceServiceNow
Targets

GCP > App Engine > Service > ServiceNow > Configuration Item

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

URI
tmod:@turbot/servicenow-gcp-appengine#/policy/types/serviceServiceNowConfigurationItem
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 > App Engine > 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 GCP > App Engine > 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.

URI
tmod:@turbot/servicenow-gcp-appengine#/policy/types/serviceServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: service{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"id: {{ $.resource.data.id | dump | safe }}\nlabels: {{ $.resource.data.labels | dump | safe }}\nnetwork_settings: {{ $.resource.data.networkSettings | dump | safe }}\nproject: {{ $.resource.metadata.gcp.projectId | dump | safe }}\nservice_name: {{ $.resource.data.name | dump | safe }}\nsplit: {{ $.resource.data.split | dump | safe }}\n"
Schema
{
"type": "object"
}

GCP > App Engine > Service > ServiceNow > Configuration Item > Table Definition

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

URI
tmod:@turbot/servicenow-gcp-appengine#/policy/types/serviceServiceNowConfigurationItemTableDefinition
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-appengine#/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"
]
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 > App Engine > Service > ServiceNow > Table

Configure a Table for GCP > App Engine > Service resource type in ServiceNow via the GCP > App Engine > Service > ServiceNow > Table > * policies.

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

GCP > App Engine > 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 GCP > App Engine > Service data.

URI
tmod:@turbot/servicenow-gcp-appengine#/policy/types/serviceServiceNowTableDefinition
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_appengine_service",
"label": "GCP > App Engine > Service",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "id",
"label": "ID"
},
{
"name": "labels",
"label": "Labels",
"type": "string",
"size": 1000
},
{
"name": "network_settings",
"label": "Network Settings",
"type": "string",
"size": 1000
},
{
"name": "project",
"label": "Project",
"type": "string"
},
{
"name": "service_name",
"label": "Service Name"
},
{
"name": "split",
"label": "Split",
"type": "string",
"size": 1000
}
]
}
}

GCP > App Engine > Version > ServiceNow

URI
tmod:@turbot/servicenow-gcp-appengine#/policy/types/versionServiceNow
Targets

GCP > App Engine > Version > ServiceNow > Configuration Item

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

URI
tmod:@turbot/servicenow-gcp-appengine#/policy/types/versionServiceNowConfigurationItem
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 > App Engine > Version > 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 > App Engine > Version 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-appengine#/policy/types/versionServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: version{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"env: {{ $.resource.data.env | dump | safe }}\nid: {{ $.resource.data.id | dump | safe }}\ninstance_class: {{ $.resource.data.instanceClass | dump | safe }}\nnetwork: {{ $.resource.data.network | dump | safe }}\nproject: {{ $.resource.metadata.gcp.projectId | dump | safe }}\nruntime: {{ $.resource.data.runtime | dump | safe }}\nservice_id: {{ $.resource.metadata.serviceId | dump | safe }}\nserving_status: {{ $.resource.data.servingStatus | dump | safe }}\nthreadsafe: {{ $.resource.data.threadsafe | dump | safe }}\nversion_name: {{ $.resource.data.name | dump | safe }}\nversion_url: {{ $.resource.data.versionUrl | dump | safe }}\n"
Schema
{
"type": "object"
}

GCP > App Engine > Version > ServiceNow > Configuration Item > Table Definition

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

URI
tmod:@turbot/servicenow-gcp-appengine#/policy/types/versionServiceNowConfigurationItemTableDefinition
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-appengine#/policy/types/versionServiceNowTableDefinition 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 > App Engine > Version > ServiceNow > Table

Configure a Table for GCP > App Engine > Version resource type in ServiceNow via the GCP > App Engine > Version > ServiceNow > Table > * policies.

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

GCP > App Engine > Version > 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 > App Engine > Version data.

URI
tmod:@turbot/servicenow-gcp-appengine#/policy/types/versionServiceNowTableDefinition
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_appengine_version",
"label": "GCP > App Engine > Version",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "env",
"label": "Env"
},
{
"name": "id",
"label": "ID"
},
{
"name": "instance_class",
"label": "Instance Class"
},
{
"name": "network",
"label": "Network",
"type": "string",
"size": 1000
},
{
"name": "project",
"label": "Project",
"type": "string"
},
{
"name": "runtime",
"label": "Runtime"
},
{
"name": "service_id",
"label": "Service ID"
},
{
"name": "serving_status",
"label": "Serving Status"
},
{
"name": "threadsafe",
"label": "Threadsafe"
},
{
"name": "version_name",
"label": "Version Name"
},
{
"name": "version_url",
"label": "Version URL",
"type": "string"
}
]
}
}