Skip to main content

🔌 Google GCE Instance - object.extracts.yaml

  • Contextual name: 🔌 object.extracts.yaml
  • ID: /types/CA10__CaGoogleGceInstance__c/object.extracts.yaml

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 idle🟢🟢 x3
🧠 prod.logic.yaml🟢🛡️ Google GCE Instance is launched without Shielded VM enabled🟢🟢 x3
🧠 prod.logic.yaml🟢🛡️ Google GCE Instance is located in a less cost-effective region🟢🟢 x3
🧠 prod.logic.yaml🟢🛡️ Google GCE Instance is overutilized🟢🟢 x3
🧠 prod.logic.yaml🟢🛡️ Google GCE Instance is underutilized🟢🟢 x3
🧠 prod.logic.yaml🟢🛡️ Google GCE Instance IP Forwarding is not disabled.🟢🟢 x3
🧠 prod.logic.yaml🟢🛡️ Google GCE Project 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: "caJsonText__metadataJsonBlockProjectSshKeysValue"
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: "caJsonText__metadataJsonEnableOsloginValue"
value:
JSON_QUERY_TEXT:
arg:
EXTRACT: "caJsonFrom__metadataJson__c"
expression: "to_string(items[?key=='enable-oslogin'].value[] | [0])"
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: "caJsonText__metadataJsonSerialPortEnableValue"
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."
# Nullable
- name: "CA10__averageCpuTwoWeeks__c"
value:
FIELD:
path: "CA10__averageCpuTwoWeeks__c"
# Nullable
- name: "CA10__maxCpuTwoWeeks__c"
value:
FIELD:
path: "CA10__maxCpuTwoWeeks__c"
# Nullable
- name: "CA10__sumTwoWeekNetworkInMb__c"
value:
FIELD:
path: "CA10__sumTwoWeekNetworkInMb__c"
# Nullable
- name: "CA10__sumTwoWeekNetworkOutMb__c"
value:
FIELD:
path: "CA10__sumTwoWeekNetworkOutMb__c"
- name: "CA10__status__c"
value:
FIELD:
path: "CA10__status__c"
- name: "CA10__creationDate__c"
value:
FIELD:
path: "CA10__creationDate__c"
- name: "CA10N__newRelicHost__c"
value:
FIELD:
path: "CA10N__newRelicHost__c"
# Nullable
- name: "CA10N__newRelicHostMemoryUsed14Day__c"
value:
FIELD:
path: "CA10N__newRelicHostMemoryUsed14Day__c"
# Nullable
- name: "CA10N__newRelicHostDiskReadUtilization__c"
value:
FIELD:
path: "CA10N__newRelicHostDiskReadUtilization__c"
# Nullable
- name: "CA10N__newRelicHostDiskWriteUtilization__c"
value:
FIELD:
path: "CA10N__newRelicHostDiskWriteUtilization__c"
# Text
- name: "CA10__regionName__c"
value:
FIELD:
path: "CA10__regionName__c"