ibm_compute_monitor

    0

    0

    lucycodes42

    Terraform snippets

    The code creates a resource called "ibm_compute_monitor" and assigns the guest_id of the vm instance as the resource's identifier. It also assigns the ip address of the vm instance as the resource's identifier. The code specifies that the resource's query type is "1" and that the response action is "1" (that is, the resource will be notified when a change occurs). The code specifies that the resource should wait for five cycles (that is, five seconds) and that only the owner of the resource (in this case, the root account) should be notified. Finally, the code specifies that the resource should be notified to users listed in the "notified_users" property.

    Shortcut: tf_ibm_compute_monitor

    resource "ibm_compute_monitor" "${myResourceName}" {
       guest_id = "${ibm_compute_vm_instance.myResourceName.id}"
       ip_address = "${ibm_compute_vm_instance.myResourceName.ipv4_address}"
       query_type_id = 1
       response_action_id = 1
       wait_cycles = 5
       notified_users = [6575505]
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.