highbond_control (Data Source)
Schema
Required
control_id | String | |
objective_id | Number |
Optional
id | String | The ID of this resource. |
Read-Only
controls | List of Object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Nested Schema for `controls`Read-Only
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
is_available | Boolean |
Example Usage
data "highbond_project_type" "main" {
name = "Test project type name"
}
data "highbond_framework" "main" {
name = "Test framework name"
}
// Sample for framework objective
data "highbond_objective" "famework_objective" {
title = "Test objective framework"
parent_resource_id = data.highbond_framework.main.frameworks[0].id
parent_resource_type = "frameworks"
}
data "highbond_control" "main" {
control_id = "C01"
objective_id = data.highbond_objective.famework_objective.objectives[0].id
}
// We can access this datasource value as below:: data.highbond_control.main.controls[0].id