diff --git a/docs/resources/kibana_synthetics_private_location b/docs/resources/kibana_synthetics_private_location deleted file mode 100644 index ee498c76a..000000000 --- a/docs/resources/kibana_synthetics_private_location +++ /dev/null @@ -1,76 +0,0 @@ ---- -subcategory: "Kibana" -layout: "" -page_title: "Elasticstack: elasticstack_kibana_synthetics_private_location Resource" -description: |- - Creates or updates a Kibana synthetics private location. ---- - -# Resource: elasticstack_kibana_synthetics_private_location - -Creates or updates a Kibana synthetics private location. -See [Monitor via a private agent](https://www.elastic.co/guide/en/observability/current/synthetics-private-location.html#monitor-via-private-agent) -and [api docs](https://www.elastic.co/guide/en/kibana/current/create-private-location-api.html) - -## Example Usage - -```terraform -provider "elasticstack" { - fleet {} - kibana {} -} - -resource "elasticstack_fleet_agent_policy" "sample" { - name = "Sample Agent Policy" - namespace = "default" - description = "A sample agent policy" - monitor_logs = true - monitor_metrics = true - skip_destroy = false -} - -resource "elasticstack_kibana_synthetics_private_location" "example" { - label = "example label" - space_id = "default" - agent_policy_id = elasticstack_fleet_agent_policy.sample.policy_id - tags = ["tag-a", "tag-b"] - geo = { - lat = 40.7128 - lon = 74.0060 - } -} -``` - - -## Schema - -### Required - -- `agent_policy_id` (String) The ID of the agent policy associated with the private location. To create a private location for synthetics monitor you need to create an agent policy in fleet and use its agentPolicyId -- `label` (String) A label for the private location, used as unique identifier - -### Optional - -- `geo` (Attributes) Geographic coordinates (WGS84) for the location (see [below for nested schema](#nestedatt--geo)) -- `space_id` (String) An identifier for the space. If space_id is not provided, the default space is used. -- `tags` (List of String) An array of tags to categorize the private location. - -### Read-Only - -- `id` (String) Generated id for the private location. For monitor setup please use private location label. - - -### Nested Schema for `geo` - -Required: - -- `lat` (Number) The latitude of the location. -- `lon` (Number) The longitude of the location. - -## Import - -Import is supported using the following syntax: - -```shell -terraform import elasticstack_kibana_synthetics_private_location.my_location -``` \ No newline at end of file diff --git a/docs/resources/kibana_synthetics_private_location.md b/docs/resources/kibana_synthetics_private_location.md index 004815051..3ae5272b6 100644 --- a/docs/resources/kibana_synthetics_private_location.md +++ b/docs/resources/kibana_synthetics_private_location.md @@ -1,14 +1,16 @@ --- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "elasticstack_kibana_synthetics_private_location Resource - terraform-provider-elasticstack" -subcategory: "" +subcategory: "Kibana" +layout: "" +page_title: "Elasticstack: elasticstack_kibana_synthetics_private_location Resource" description: |- - Synthetics private location config, see https://www.elastic.co/guide/en/kibana/current/create-private-location-api.html for more details + Creates or updates a Kibana synthetics private location. --- -# elasticstack_kibana_synthetics_private_location (Resource) +# Resource: elasticstack_kibana_synthetics_private_location -Synthetics private location config, see https://www.elastic.co/guide/en/kibana/current/create-private-location-api.html for more details +Creates or updates a Kibana synthetics private location. +See [Monitor via a private agent](https://www.elastic.co/guide/en/observability/current/synthetics-private-location.html#monitor-via-private-agent) +and [API docs](https://www.elastic.co/guide/en/kibana/current/create-private-location-api.html) ## Example Usage @@ -71,4 +73,4 @@ Import is supported using the following syntax: ```shell terraform import elasticstack_kibana_synthetics_private_location.my_location -``` +``` \ No newline at end of file diff --git a/templates/resources/kibana_synthetics_private_location.tmpl b/templates/resources/kibana_synthetics_private_location.md.tmpl similarity index 92% rename from templates/resources/kibana_synthetics_private_location.tmpl rename to templates/resources/kibana_synthetics_private_location.md.tmpl index 694302668..c50a4c4a5 100644 --- a/templates/resources/kibana_synthetics_private_location.tmpl +++ b/templates/resources/kibana_synthetics_private_location.md.tmpl @@ -10,7 +10,7 @@ description: |- Creates or updates a Kibana synthetics private location. See [Monitor via a private agent](https://www.elastic.co/guide/en/observability/current/synthetics-private-location.html#monitor-via-private-agent) -and [api docs](https://www.elastic.co/guide/en/kibana/current/create-private-location-api.html) +and [API docs](https://www.elastic.co/guide/en/kibana/current/create-private-location-api.html) ## Example Usage