Skip to content

Commit

Permalink
fix: fix inconsistent plan when agent data resources run during apply… (
Browse files Browse the repository at this point in the history
#141)

* fix: fix inconsistent plan when agent data resources run during apply always

* docs: update docs
  • Loading branch information
pedro-te authored Sep 27, 2023
1 parent 1dbd469 commit 417b10f
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 900 deletions.
1 change: 0 additions & 1 deletion docs/data-sources/agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ resource "thousandeyes_http_server" "www_thousandeyes_http_test" {
### Read-Only

- `agent_id` (Number) The unique ID of the agent.
- `agent_type` (String) The type of agent.
- `id` (String) The ID of this resource.


62 changes: 1 addition & 61 deletions docs/resources/agent_to_agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,69 +77,9 @@ resource "thousandeyes_agent_to_agent" "example_agent_to_agent_test" {
<a id="nestedblock--agents"></a>
### Nested Schema for `agents`

Optional:
Required:

- `agent_id` (Number) The unique ID for the ThousandEyes agent.
- `agent_name` (String) The name of the agent.
- `agent_state` (String) Defines whether the agent's status is online, offline, or disabled.
- `cluster_members` (Block List) Detailed information about each cluster member, shown as an array. This field is not shown for Enterprise Agents in standalone mode, or for Cloud Agents. (see [below for nested schema](#nestedblock--agents--cluster_members))
- `country_id` (String) The two-digit ISO country code of the agent.
- `created_date` (String) The date the agent was created. Expressed in UTC (yyyy-MM-dd hh:mm:ss).
- `enabled` (Boolean) Shows whether the agent is enabled or disabled.
- `error_details` (Block List) If one or more errors present in the agent, the error details are shown for each as an array. (see [below for nested schema](#nestedblock--agents--error_details))
- `groups` (Block Set) An array of label objects. (see [below for nested schema](#nestedblock--agents--groups))
- `hostname` (String) Fully qualified domain name of the agent.
- `ip_addresses` (List of String) An array of the ipAddress entries.
- `ipv6_policy` (String) [FORCE_IPV4, PREFER_IPV6 or FORCE_IPV6] The IP version policy.
- `keep_browser_cache` (Boolean) Defines whether the browser cache should be kept. Either 1 for enabled or 0 for disabled.
- `last_seen` (String) The last time the agent connected with ThousandEyes. Shown in UTC (yyyy-MM-dd hh:mm:ss).
- `location` (String) The location of the agent.
- `network` (String) The name of the autonomous system in which the agent is found.
- `prefix` (String) The network prefix, expressed in CIDR format.
- `target_for_tests` (String) The target IP address or domain name representing the test destination when the agent is acting as a test target in an agent-to-agent test.
- `utilization` (Number) Shows the overall utilization percentage.
- `verify_ssl_certificate` (Boolean) Shows whether the SSL certificate needs to be verified. 1 for enabled and 0 for disabled.

Read-Only:

- `agent_type` (String) The type of ThousandEyes agent. Default value is enterprise.

<a id="nestedblock--agents--cluster_members"></a>
### Nested Schema for `agents.cluster_members`

Optional:

- `agent_state` (String) Defines whether the agent's status is online, offline, or disabled.
- `ip_addresses` (List of String) The array of ipAddress entries.
- `last_seen` (String) The last time the agent connected with ThousandEyes. Uses UTC (yyyy-MM-dd hh:mm:ss).
- `member_id` (Number) The unique ID of the cluster member.
- `name` (String) The name of the cluster member.
- `network` (String) The name of the autonomous system in which the Enterprise Agent is found (Enterprise Agents only).
- `prefix` (String) The network prefix, in CIDR format (Enterprise Agents only).
- `public_ip_addresses` (List of String) The array of public ipAddress entries.
- `target_for_tests` (String) The target IP address or domain name. Represents the test's destination when the agent is acting as a test target in an agent-to-agent test.
- `utilization` (Number) Shows the overall utilization percentage of a cluster member.


<a id="nestedblock--agents--error_details"></a>
### Nested Schema for `agents.error_details`

Optional:

- `code` (String) [AGENT_VERSION_OUTDATED, APPLIANCE_VERSION_OUTDATED, BROWSERBOT_VERSION_OUTDATED, CLOCK_OFFSET, NAT_TRAVERSAL_ERROR, OS_END_OF_INSTALLATION_SUPPORT, OS_END_OF_SUPPORT, or OS_END_OF_LIFE] The error code.
- `description` (String) A detailed explanation of the error code.


<a id="nestedblock--agents--groups"></a>
### Nested Schema for `agents.groups`

Optional:

- `builtin` (Boolean) Shows whether you are using built-in (1) labels or user-created (2) labels. Built-in labels are read-only.
- `group_id` (Number) The unique ID of the label. This number is negative for built-in labels. Query the /groups/{id} endpoint to see a list of agents/tests with this label.
- `name` (String) The name of the label.
- `type` (String) [tests, agents, endpoint_tests or endpoint_agents] The type of label.



<a id="nestedblock--alert_rules"></a>
Expand Down
62 changes: 1 addition & 61 deletions docs/resources/agent_to_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,69 +72,9 @@ resource "thousandeyes_agent_to_server" "example_agent_to_server_test" {
<a id="nestedblock--agents"></a>
### Nested Schema for `agents`

Optional:
Required:

- `agent_id` (Number) The unique ID for the ThousandEyes agent.
- `agent_name` (String) The name of the agent.
- `agent_state` (String) Defines whether the agent's status is online, offline, or disabled.
- `cluster_members` (Block List) Detailed information about each cluster member, shown as an array. This field is not shown for Enterprise Agents in standalone mode, or for Cloud Agents. (see [below for nested schema](#nestedblock--agents--cluster_members))
- `country_id` (String) The two-digit ISO country code of the agent.
- `created_date` (String) The date the agent was created. Expressed in UTC (yyyy-MM-dd hh:mm:ss).
- `enabled` (Boolean) Shows whether the agent is enabled or disabled.
- `error_details` (Block List) If one or more errors present in the agent, the error details are shown for each as an array. (see [below for nested schema](#nestedblock--agents--error_details))
- `groups` (Block Set) An array of label objects. (see [below for nested schema](#nestedblock--agents--groups))
- `hostname` (String) Fully qualified domain name of the agent.
- `ip_addresses` (List of String) An array of the ipAddress entries.
- `ipv6_policy` (String) [FORCE_IPV4, PREFER_IPV6 or FORCE_IPV6] The IP version policy.
- `keep_browser_cache` (Boolean) Defines whether the browser cache should be kept. Either 1 for enabled or 0 for disabled.
- `last_seen` (String) The last time the agent connected with ThousandEyes. Shown in UTC (yyyy-MM-dd hh:mm:ss).
- `location` (String) The location of the agent.
- `network` (String) The name of the autonomous system in which the agent is found.
- `prefix` (String) The network prefix, expressed in CIDR format.
- `target_for_tests` (String) The target IP address or domain name representing the test destination when the agent is acting as a test target in an agent-to-agent test.
- `utilization` (Number) Shows the overall utilization percentage.
- `verify_ssl_certificate` (Boolean) Shows whether the SSL certificate needs to be verified. 1 for enabled and 0 for disabled.

Read-Only:

- `agent_type` (String) The type of ThousandEyes agent. Default value is enterprise.

<a id="nestedblock--agents--cluster_members"></a>
### Nested Schema for `agents.cluster_members`

Optional:

- `agent_state` (String) Defines whether the agent's status is online, offline, or disabled.
- `ip_addresses` (List of String) The array of ipAddress entries.
- `last_seen` (String) The last time the agent connected with ThousandEyes. Uses UTC (yyyy-MM-dd hh:mm:ss).
- `member_id` (Number) The unique ID of the cluster member.
- `name` (String) The name of the cluster member.
- `network` (String) The name of the autonomous system in which the Enterprise Agent is found (Enterprise Agents only).
- `prefix` (String) The network prefix, in CIDR format (Enterprise Agents only).
- `public_ip_addresses` (List of String) The array of public ipAddress entries.
- `target_for_tests` (String) The target IP address or domain name. Represents the test's destination when the agent is acting as a test target in an agent-to-agent test.
- `utilization` (Number) Shows the overall utilization percentage of a cluster member.


<a id="nestedblock--agents--error_details"></a>
### Nested Schema for `agents.error_details`

Optional:

- `code` (String) [AGENT_VERSION_OUTDATED, APPLIANCE_VERSION_OUTDATED, BROWSERBOT_VERSION_OUTDATED, CLOCK_OFFSET, NAT_TRAVERSAL_ERROR, OS_END_OF_INSTALLATION_SUPPORT, OS_END_OF_SUPPORT, or OS_END_OF_LIFE] The error code.
- `description` (String) A detailed explanation of the error code.


<a id="nestedblock--agents--groups"></a>
### Nested Schema for `agents.groups`

Optional:

- `builtin` (Boolean) Shows whether you are using built-in (1) labels or user-created (2) labels. Built-in labels are read-only.
- `group_id` (Number) The unique ID of the label. This number is negative for built-in labels. Query the /groups/{id} endpoint to see a list of agents/tests with this label.
- `name` (String) The name of the label.
- `type` (String) [tests, agents, endpoint_tests or endpoint_agents] The type of label.



<a id="nestedblock--alert_rules"></a>
Expand Down
62 changes: 1 addition & 61 deletions docs/resources/dns_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,69 +76,9 @@ resource "thousandeyes_dns_server" "example_dns_server_test" {
<a id="nestedblock--agents"></a>
### Nested Schema for `agents`

Optional:
Required:

- `agent_id` (Number) The unique ID for the ThousandEyes agent.
- `agent_name` (String) The name of the agent.
- `agent_state` (String) Defines whether the agent's status is online, offline, or disabled.
- `cluster_members` (Block List) Detailed information about each cluster member, shown as an array. This field is not shown for Enterprise Agents in standalone mode, or for Cloud Agents. (see [below for nested schema](#nestedblock--agents--cluster_members))
- `country_id` (String) The two-digit ISO country code of the agent.
- `created_date` (String) The date the agent was created. Expressed in UTC (yyyy-MM-dd hh:mm:ss).
- `enabled` (Boolean) Shows whether the agent is enabled or disabled.
- `error_details` (Block List) If one or more errors present in the agent, the error details are shown for each as an array. (see [below for nested schema](#nestedblock--agents--error_details))
- `groups` (Block Set) An array of label objects. (see [below for nested schema](#nestedblock--agents--groups))
- `hostname` (String) Fully qualified domain name of the agent.
- `ip_addresses` (List of String) An array of the ipAddress entries.
- `ipv6_policy` (String) [FORCE_IPV4, PREFER_IPV6 or FORCE_IPV6] The IP version policy.
- `keep_browser_cache` (Boolean) Defines whether the browser cache should be kept. Either 1 for enabled or 0 for disabled.
- `last_seen` (String) The last time the agent connected with ThousandEyes. Shown in UTC (yyyy-MM-dd hh:mm:ss).
- `location` (String) The location of the agent.
- `network` (String) The name of the autonomous system in which the agent is found.
- `prefix` (String) The network prefix, expressed in CIDR format.
- `target_for_tests` (String) The target IP address or domain name representing the test destination when the agent is acting as a test target in an agent-to-agent test.
- `utilization` (Number) Shows the overall utilization percentage.
- `verify_ssl_certificate` (Boolean) Shows whether the SSL certificate needs to be verified. 1 for enabled and 0 for disabled.

Read-Only:

- `agent_type` (String) The type of ThousandEyes agent. Default value is enterprise.

<a id="nestedblock--agents--cluster_members"></a>
### Nested Schema for `agents.cluster_members`

Optional:

- `agent_state` (String) Defines whether the agent's status is online, offline, or disabled.
- `ip_addresses` (List of String) The array of ipAddress entries.
- `last_seen` (String) The last time the agent connected with ThousandEyes. Uses UTC (yyyy-MM-dd hh:mm:ss).
- `member_id` (Number) The unique ID of the cluster member.
- `name` (String) The name of the cluster member.
- `network` (String) The name of the autonomous system in which the Enterprise Agent is found (Enterprise Agents only).
- `prefix` (String) The network prefix, in CIDR format (Enterprise Agents only).
- `public_ip_addresses` (List of String) The array of public ipAddress entries.
- `target_for_tests` (String) The target IP address or domain name. Represents the test's destination when the agent is acting as a test target in an agent-to-agent test.
- `utilization` (Number) Shows the overall utilization percentage of a cluster member.


<a id="nestedblock--agents--error_details"></a>
### Nested Schema for `agents.error_details`

Optional:

- `code` (String) [AGENT_VERSION_OUTDATED, APPLIANCE_VERSION_OUTDATED, BROWSERBOT_VERSION_OUTDATED, CLOCK_OFFSET, NAT_TRAVERSAL_ERROR, OS_END_OF_INSTALLATION_SUPPORT, OS_END_OF_SUPPORT, or OS_END_OF_LIFE] The error code.
- `description` (String) A detailed explanation of the error code.


<a id="nestedblock--agents--groups"></a>
### Nested Schema for `agents.groups`

Optional:

- `builtin` (Boolean) Shows whether you are using built-in (1) labels or user-created (2) labels. Built-in labels are read-only.
- `group_id` (Number) The unique ID of the label. This number is negative for built-in labels. Query the /groups/{id} endpoint to see a list of agents/tests with this label.
- `name` (String) The name of the label.
- `type` (String) [tests, agents, endpoint_tests or endpoint_agents] The type of label.



<a id="nestedblock--dns_servers"></a>
Expand Down
62 changes: 1 addition & 61 deletions docs/resources/dns_trace.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,69 +46,9 @@ This resource provides users with the ability to create a DNS trace test. This t
<a id="nestedblock--agents"></a>
### Nested Schema for `agents`

Optional:
Required:

- `agent_id` (Number) The unique ID for the ThousandEyes agent.
- `agent_name` (String) The name of the agent.
- `agent_state` (String) Defines whether the agent's status is online, offline, or disabled.
- `cluster_members` (Block List) Detailed information about each cluster member, shown as an array. This field is not shown for Enterprise Agents in standalone mode, or for Cloud Agents. (see [below for nested schema](#nestedblock--agents--cluster_members))
- `country_id` (String) The two-digit ISO country code of the agent.
- `created_date` (String) The date the agent was created. Expressed in UTC (yyyy-MM-dd hh:mm:ss).
- `enabled` (Boolean) Shows whether the agent is enabled or disabled.
- `error_details` (Block List) If one or more errors present in the agent, the error details are shown for each as an array. (see [below for nested schema](#nestedblock--agents--error_details))
- `groups` (Block Set) An array of label objects. (see [below for nested schema](#nestedblock--agents--groups))
- `hostname` (String) Fully qualified domain name of the agent.
- `ip_addresses` (List of String) An array of the ipAddress entries.
- `ipv6_policy` (String) [FORCE_IPV4, PREFER_IPV6 or FORCE_IPV6] The IP version policy.
- `keep_browser_cache` (Boolean) Defines whether the browser cache should be kept. Either 1 for enabled or 0 for disabled.
- `last_seen` (String) The last time the agent connected with ThousandEyes. Shown in UTC (yyyy-MM-dd hh:mm:ss).
- `location` (String) The location of the agent.
- `network` (String) The name of the autonomous system in which the agent is found.
- `prefix` (String) The network prefix, expressed in CIDR format.
- `target_for_tests` (String) The target IP address or domain name representing the test destination when the agent is acting as a test target in an agent-to-agent test.
- `utilization` (Number) Shows the overall utilization percentage.
- `verify_ssl_certificate` (Boolean) Shows whether the SSL certificate needs to be verified. 1 for enabled and 0 for disabled.

Read-Only:

- `agent_type` (String) The type of ThousandEyes agent. Default value is enterprise.

<a id="nestedblock--agents--cluster_members"></a>
### Nested Schema for `agents.cluster_members`

Optional:

- `agent_state` (String) Defines whether the agent's status is online, offline, or disabled.
- `ip_addresses` (List of String) The array of ipAddress entries.
- `last_seen` (String) The last time the agent connected with ThousandEyes. Uses UTC (yyyy-MM-dd hh:mm:ss).
- `member_id` (Number) The unique ID of the cluster member.
- `name` (String) The name of the cluster member.
- `network` (String) The name of the autonomous system in which the Enterprise Agent is found (Enterprise Agents only).
- `prefix` (String) The network prefix, in CIDR format (Enterprise Agents only).
- `public_ip_addresses` (List of String) The array of public ipAddress entries.
- `target_for_tests` (String) The target IP address or domain name. Represents the test's destination when the agent is acting as a test target in an agent-to-agent test.
- `utilization` (Number) Shows the overall utilization percentage of a cluster member.


<a id="nestedblock--agents--error_details"></a>
### Nested Schema for `agents.error_details`

Optional:

- `code` (String) [AGENT_VERSION_OUTDATED, APPLIANCE_VERSION_OUTDATED, BROWSERBOT_VERSION_OUTDATED, CLOCK_OFFSET, NAT_TRAVERSAL_ERROR, OS_END_OF_INSTALLATION_SUPPORT, OS_END_OF_SUPPORT, or OS_END_OF_LIFE] The error code.
- `description` (String) A detailed explanation of the error code.


<a id="nestedblock--agents--groups"></a>
### Nested Schema for `agents.groups`

Optional:

- `builtin` (Boolean) Shows whether you are using built-in (1) labels or user-created (2) labels. Built-in labels are read-only.
- `group_id` (Number) The unique ID of the label. This number is negative for built-in labels. Query the /groups/{id} endpoint to see a list of agents/tests with this label.
- `name` (String) The name of the label.
- `type` (String) [tests, agents, endpoint_tests or endpoint_agents] The type of label.



<a id="nestedblock--alert_rules"></a>
Expand Down
Loading

0 comments on commit 417b10f

Please sign in to comment.