Import the details of an existing IBM Cloud Functions rule as a read-only data source. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

Example Usage

data "ibm_function_rule" "rule" {
    name = "rule-name"

Argument Reference

The following arguments are supported:

  • name - (Required, string) The name of the rule.

Attributes Reference

The following attributes are exported:

  • id - The ID of the trigger.
  • publish - Trigger visibility.
  • version - Semantic version of the trigger.
  • status - The status of the rule.
  • trigger_name - The name of the trigger.
  • action_name - The name of the action.