Skip to main content

πŸ”Œ Google GCE Instance - object.extracts.yaml

  • Contextual name: πŸ”Œ object.extracts.yaml
  • ID: /types/CA10__CaGoogleGceInstance__c/object.extracts.yaml
  • Located in: πŸ“• Google GCE Instance

Used In​

LogicPolicyFlags
🧠 prod.logic.yaml πŸŸ’πŸ“ Google GCE Instance Block Project-Wide SSH Keys is not enabled 🟒🟒 x3
🧠 prod.logic.yaml πŸŸ’πŸ“ Google GCE Instance Confidential Compute is not enabled 🟒🟒 x3
🧠 prod.logic.yaml πŸŸ’πŸ“ Google GCE Instance Enable Connecting to Serial Ports is not disabled 🟒🟒 x3
🧠 prod.logic.yaml πŸŸ’πŸ“ Google GCE Instance has a public IP address 🟒🟒 x3
🧠 prod.logic.yaml πŸŸ’πŸ“ Google GCE Instance is configured to use the Default Service Account 🟒🟒 x3
🧠 prod.logic.yaml πŸŸ’πŸ“ Google GCE Instance is configured to use the Default Service Account with full access to all Cloud APIs 🟒🟒 x3
🧠 prod.logic.yaml πŸŸ’πŸ“ Google GCE Instance is launched without Shielded VM enabled 🟒🟒 x3
🧠 prod.logic.yaml πŸŸ’πŸ“ Google GCE Instance IP Forwarding is not disabled. 🟒🟒 x3
🧠 prod.logic.yaml πŸŸ’πŸ“ Google GCE Instance OS Login is not enabled 🟒🟒 x3

Content​

Open File

---
extracts:
- name: "Name"
value:
FIELD:
path: "Name"
undeterminedIf:
isEmpty: "Name should not be empty"
- name: "CA10__labels__c"
value:
FIELD:
path: "CA10__labels__c"
undeterminedIf:
isEmpty: "Labels should not be empty"
- name: "CA10__ipForwarding__c"
value:
FIELD:
path: "CA10__ipForwarding__c"
undeterminedIf:
isEmpty: "IP forwarding can't be empty"
- name: "CA10__shieldedIntegrityMonitoringState__c"
value:
FIELD:
path: "CA10__shieldedIntegrityMonitoringState__c"
- name: "CA10__shieldedVtpmState__c"
value:
FIELD:
path: "CA10__shieldedVtpmState__c"
- name: "CA10__confidentialComputeStatus__c"
value:
FIELD:
path: "CA10__confidentialComputeStatus__c"
- name: "CA10__machineTypeName__c"
value:
FIELD:
path: "CA10__machineTypeName__c"
- name: "CA10__metadataJson__c"
value:
FIELD:
path: "CA10__metadataJson__c"
returnType: BYTES
- name: "caJsonFrom__metadataJson__c"
value:
JSON_FROM:
arg:
EXTRACT: "CA10__metadataJson__c"
undeterminedIf:
isInvalid: "Metadata JSON is invalid."
isEmpty: "Metadata JSON is empty."
- name: "caJsonFrom__metadataJson__block_project_ssh_keys_value"
value:
JSON_QUERY_TEXT:
arg:
EXTRACT: "caJsonFrom__metadataJson__c"
expression: "to_string(items[?key=='block-project-ssh-keys'].value)"
undeterminedIf:
evaluationError: "The JSON query has failed."
resultTypeMismatch: "The JSON query did not return a text."
resultIsEmpty: "The JSON query did not return a value."
- name: "caJsonFrom__metadataJson__enable_oslogin_value"
value:
JSON_QUERY_TEXT:
arg:
EXTRACT: "caJsonFrom__metadataJson__c"
expression: "to_string(items[?key=='enable-oslogin'].value)"
undeterminedIf:
evaluationError: "The JSON query has failed."
resultTypeMismatch: "The JSON query did not return a text."
resultIsEmpty: "The JSON query did not return a value."
- name: "caJsonFrom__metadataJson__serial_port_enable_value"
value:
JSON_QUERY_TEXT:
arg:
EXTRACT: "caJsonFrom__metadataJson__c"
expression: "to_string(items[?key=='serial-port-enable'].value)"
undeterminedIf:
evaluationError: "The JSON query has failed."
resultTypeMismatch: "The JSON query did not return a text."
resultIsEmpty: "The JSON query did not return a value."