You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The **Monitoring pipeline** datasource can be used to search for and return an existing Monitoring pipeline.
13
+
If a single match is found, it will be returned. If your search results in multiple matches, an error will be returned.
14
+
15
+
> ⚠️ Only tokens are accepted for authorization in the **monitoring_pipeline** data source. Please ensure you are using tokens as other methods will not be valid.
16
+
17
+
## Example Usage
18
+
19
+
### By ID
20
+
```hcl
21
+
data "ionoscloud_monitoring_pipeline" "example" {
22
+
location = "de/txl"
23
+
id = "pipeline_id"
24
+
}
25
+
```
26
+
27
+
### By name
28
+
```hcl
29
+
data "ionoscloud_monitoring_pipeline" "example" {
30
+
location = "de/txl"
31
+
name = "pipeline_name"
32
+
}
33
+
```
34
+
35
+
## Argument reference
36
+
*`location` - (Optional)[string] The location of the Monitoring pipeline. Default is `de/fra`. It can be one of `de/fra`, `de/txl`, `gb/lhr`, `es/vit`, `fr/par`. If this is not set and if no value is provided for the `IONOS_API_URL` env var, the default `location` will be: `de/fra`.
37
+
*`id` - (Optional)[string] The ID of the Monitoring pipeline you want to search for.
38
+
*`name` - (Optional)[string] The name of the Monitoring pipeline you want to search for.
39
+
40
+
Either `id` or `name` must be provided. If none, or both are provided, the datasource will return an error.
41
+
42
+
## Attributes Reference
43
+
44
+
The following attributes are returned by the datasource:
45
+
46
+
*`id` - The UUID of the Monitoring pipeline.
47
+
*`name` - The name of the Monitoring pipeline.
48
+
*`grafana_address` - The endpoint of the Grafana instance.
49
+
*`http_endpoint`- The HTTP endpoint of the Monitoring instance.
> ⚠️ Only tokens are accepted for authorization in the **monitoring_pipeline** resource. Please ensure you are using tokens as other methods will not be valid.
**NOTE:** The default timeout for all operations is 60 minutes. If you want to change the default value, you can use `timeouts` attribute inside the resource:
*`name` - (Required)[string] The name of the Monitoring pipeline.
43
+
*`location` - (Optional)[string] The location of the Monitoring pipeline. Default is `de/fra`. It can be one of `de/fra`, `de/txl`, `gb/lhr`, `es/vit`, `fr/par`. If this is not set and if no value is provided for the `IONOS_API_URL_MONITORING` env var, the default `location` will be: `de/fra`.
44
+
*`grafana_endpoint` - (Computed)[string] The endpoint of the Grafana instance.
45
+
*`http_endpoint` - (Computed)[string] The HTTP endpoint of the monitoring instance.
46
+
*`key` - (Computed)(Sensitive)[string] The key used to connect to the monitoring pipeline.
47
+
48
+
> **⚠ NOTE:**`IONOS_API_URL_MONITORING` can be used to set a custom API URL for the resource. `location` field needs to be empty, otherwise it will override the custom API URL.
49
+
50
+
## Import
51
+
52
+
In order to import a Monitoring pipeline, you can define an empty Monitoring pipeline resource in the plan:
Copy file name to clipboardExpand all lines: gitbook_docs/README.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,7 @@ See the [IonosCloud Provider documentation](https://registry.terraform.io/provid
43
43
|`IONOS_API_URL_KAFKA`| Sets a custom API URL for the Event Streams product. `location` field needs to be empty, otherwise it will override the custom API URL. Setting `token` or `IONOS_API_URL` does not have any effect. |
44
44
|`IONOS_API_URL_VPN`| Sets a custom API URL for the VPN product. `location` field needs to be empty, otherwise it will override the custom API URL. Setting `token` or `IONOS_API_URL` does not have any effect. |
45
45
|`IONOS_API_URL_OBJECT_STORAGE`| Sets a custom API URL for the Object Storage product. `region` field needs to be empty, otherwise it will override the custom API URL. Setting `token` or `IONOS_API_URL` does not have any effect. |
46
+
|`IONOS_API_URL_MONITORING`| Sets a custom API URL for the Monitoring product. `location` field needs to be empty, otherwise it will override the custom API URL. Setting `token` or `IONOS_API_URL` does not have any effect. |
0 commit comments