Cloud Configuration Governance scripting reference
Cloud Configuration Governance provides several objects and variables that you can use to create script-based policies and CI finder mapping scripts.
Scripting reference for the Cloud Configuration Governance policies
| Name | Description | Schema |
|---|---|---|
configSettings |
Represents the configuration data imported from the cloud. | |
current |
Represents the current glide record object for the select resource type. | It contains the following fields:
|
resourceInformation |
Resource record and its attributes. | |
auditResult |
Audit details that must be written to the Configuration Management Database (CMDB). | |
| Name | Data type | Description |
|---|---|---|
answer |
Boolean | Variable to specify whether the policy reports the violation or not.
|
violatingConfigSettings |
JSON | Reason of the policy violation. Syntax |
Scripting reference for the CI finder mapping script
| Name | Description | Schema |
|---|---|---|
attributes |
A map containing the resource attribute key and attribute value from the Resource Attribute table for the given resource. | |
| Name | Data type | Description |
|---|---|---|
Name |
String | Name of the resource. |
identifier |
Resource record | Identifier of the Cloud Configuration Governance resource record. |
type |
Resource record | Resource type of the Cloud Configuration Governance resource resource. |
answer |
JSON | CI class with which the resource needs to be mapped. The
answer contains the following information:
If the CI finder mapping fails to identify the CI class, set this
variable to Syntax |