diff --git a/docs/data-sources/agent.md b/docs/data-sources/agent.md
index 9d86948..c45f017 100644
--- a/docs/data-sources/agent.md
+++ b/docs/data-sources/agent.md
@@ -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.
diff --git a/docs/resources/agent_to_agent.md b/docs/resources/agent_to_agent.md
index 612e374..b384b42 100644
--- a/docs/resources/agent_to_agent.md
+++ b/docs/resources/agent_to_agent.md
@@ -77,69 +77,9 @@ resource "thousandeyes_agent_to_agent" "example_agent_to_agent_test" {
### 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.
-
-
-### 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.
-
-
-
-### 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.
-
-
-
-### 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.
-
diff --git a/docs/resources/agent_to_server.md b/docs/resources/agent_to_server.md
index 1456c1c..d09afa6 100644
--- a/docs/resources/agent_to_server.md
+++ b/docs/resources/agent_to_server.md
@@ -72,69 +72,9 @@ resource "thousandeyes_agent_to_server" "example_agent_to_server_test" {
### 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.
-
-
-### 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.
-
-
-
-### 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.
-
-
-
-### 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.
-
diff --git a/docs/resources/dns_server.md b/docs/resources/dns_server.md
index 8f71a26..94aaf40 100644
--- a/docs/resources/dns_server.md
+++ b/docs/resources/dns_server.md
@@ -76,69 +76,9 @@ resource "thousandeyes_dns_server" "example_dns_server_test" {
### 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.
-
-
-### 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.
-
-
-
-### 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.
-
-
-
-### 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.
-
diff --git a/docs/resources/dns_trace.md b/docs/resources/dns_trace.md
index f9239be..74adce5 100644
--- a/docs/resources/dns_trace.md
+++ b/docs/resources/dns_trace.md
@@ -46,69 +46,9 @@ This resource provides users with the ability to create a DNS trace test. This t
### 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.
-
-
-### 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.
-
-
-
-### 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.
-
-
-
-### 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.
-
diff --git a/docs/resources/dnssec.md b/docs/resources/dnssec.md
index 57e8de1..bea50d9 100644
--- a/docs/resources/dnssec.md
+++ b/docs/resources/dnssec.md
@@ -45,69 +45,9 @@ This resource allows you to create a DNSSEC test. This test type verifies the di
### 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.
-
-
-### 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.
-
-
-
-### 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.
-
-
-
-### 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.
-
diff --git a/docs/resources/ftp_server.md b/docs/resources/ftp_server.md
index 776331d..e34474a 100644
--- a/docs/resources/ftp_server.md
+++ b/docs/resources/ftp_server.md
@@ -60,69 +60,9 @@ This resource allows you to create an FTP server test. This test type verifies t
### 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.
-
-
-### 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.
-
-
-
-### 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.
-
-
-
-### 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.
-
diff --git a/docs/resources/http_server.md b/docs/resources/http_server.md
index 06cfec8..362da32 100644
--- a/docs/resources/http_server.md
+++ b/docs/resources/http_server.md
@@ -88,69 +88,9 @@ resource "thousandeyes_http_server" "example_http_server_test" {
### 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.
-
-
-### 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.
-
-
-
-### 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.
-
-
-
-### 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.
-
diff --git a/docs/resources/page_load.md b/docs/resources/page_load.md
index 8df2361..37074f1 100644
--- a/docs/resources/page_load.md
+++ b/docs/resources/page_load.md
@@ -89,69 +89,9 @@ resource "thousandeyes_page_load" "test" {
### 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.
-
-
-### 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.
-
-
-
-### 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.
-
-
-
-### 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.
-
diff --git a/docs/resources/sip_server.md b/docs/resources/sip_server.md
index 06c2700..72d95ed 100644
--- a/docs/resources/sip_server.md
+++ b/docs/resources/sip_server.md
@@ -76,69 +76,9 @@ resource "thousandeyes_sip_server" "example_sip_server_test" {
### 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.
-
-
-### 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.
-
-
-
-### 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.
-
-
-
-### 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.
-
diff --git a/docs/resources/voice.md b/docs/resources/voice.md
index c977ece..19f5c40 100644
--- a/docs/resources/voice.md
+++ b/docs/resources/voice.md
@@ -73,69 +73,9 @@ resource "thousandeyes_voice" "example_voice_test" {
### 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.
-
-
-### 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.
-
-
-
-### 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.
-
-
-
-### 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.
-
diff --git a/docs/resources/web_transaction.md b/docs/resources/web_transaction.md
index 264bfa4..1ab1105 100644
--- a/docs/resources/web_transaction.md
+++ b/docs/resources/web_transaction.md
@@ -71,69 +71,9 @@ This resource allows users to create a transaction test. This test type is a scr
### 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.
-
-
-### 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.
-
-
-
-### 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.
-
-
-
-### 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.
-
diff --git a/thousandeyes/data_source_thousandeyes_agent.go b/thousandeyes/data_source_thousandeyes_agent.go
index c3373ba..10ebeb1 100644
--- a/thousandeyes/data_source_thousandeyes_agent.go
+++ b/thousandeyes/data_source_thousandeyes_agent.go
@@ -14,20 +14,15 @@ func dataSourceThousandeyesAgent() *schema.Resource {
Schema: map[string]*schema.Schema{
"agent_name": {
- Type: schema.TypeString,
- Required: true,
+ Type: schema.TypeString,
+ Required: true,
Description: "The name of the agent.",
},
"agent_id": {
- Type: schema.TypeInt,
- Computed: true,
+ Type: schema.TypeInt,
+ Computed: true,
Description: "The unique ID of the agent.",
},
- "agent_type": {
- Type: schema.TypeString,
- Computed: true,
- Description: "The type of agent.",
- },
},
Description: "This data source allows you to define a ThousandEyes agent. For more information, see [Global Vantage Points](https://docs.thousandeyes.com/product-documentation/global-vantage-points).",
}
diff --git a/thousandeyes/resource_label.go b/thousandeyes/resource_label.go
index e2614e9..b8175e4 100644
--- a/thousandeyes/resource_label.go
+++ b/thousandeyes/resource_label.go
@@ -21,8 +21,21 @@ func resourceGroupLabel() *schema.Resource {
Description: "This resource allows you to create labels for ThousandEyes agents and test groups. Labels are used to quickly select an agent group or a test group, and apply them to a specific context (for example, applying a group of tests to an agent). For more information, see [Working with Labels](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/working-with-labels-for-agent-and-test-groups).",
}
resource.Schema["type"] = schemas["type-label"]
- resource.Schema["agents"] = schemas["agents-label"]
resource.Schema["tests"] = schemas["tests-label"]
+ resource.Schema["agents"] = &schema.Schema{
+ Type: schema.TypeSet,
+ Description: "The list of agents to use.",
+ Optional: true,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "agent_id": {
+ Type: schema.TypeInt,
+ Description: "The list of unique agent IDs that the label is applied to.",
+ Required: true,
+ },
+ },
+ },
+ }
return &resource
}
diff --git a/thousandeyes/schemas.go b/thousandeyes/schemas.go
index 369f993..d3e7bc9 100644
--- a/thousandeyes/schemas.go
+++ b/thousandeyes/schemas.go
@@ -54,224 +54,6 @@ var schemas = map[string]*schema.Schema{
"agent_id": {
Type: schema.TypeInt,
Description: "The unique ID for the ThousandEyes agent.",
- Optional: true,
- },
- "agent_name": {
- Type: schema.TypeString,
- Description: "The name of the agent.",
- Optional: true,
- },
- "agent_state": {
- Type: schema.TypeString,
- Description: "Defines whether the agent's status is online, offline, or disabled.",
- Optional: true,
- },
- "agent_type": {
- Type: schema.TypeString,
- Description: "The type of ThousandEyes agent. Default value is enterprise.",
- Computed: true,
- },
- "country_id": {
- Type: schema.TypeString,
- Description: "The two-digit ISO country code of the agent.",
- Optional: true,
- },
- "cluster_members": {
- Type: schema.TypeList,
- Description: "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.",
- Optional: true,
- Elem: &schema.Resource{
- Schema: map[string]*schema.Schema{
- "agent_state": {
- Type: schema.TypeString,
- Description: "Defines whether the agent's status is online, offline, or disabled.",
- Optional: true,
- },
- "ip_addresses": {
- Type: schema.TypeList,
- Description: "The array of ipAddress entries.",
- Optional: true,
- Elem: &schema.Schema{
- Type: schema.TypeString,
- },
- },
- "last_seen": {
- Type: schema.TypeString,
- Description: "The last time the agent connected with ThousandEyes. Uses UTC (yyyy-MM-dd hh:mm:ss).",
- Optional: true,
- },
- "member_id": {
- Type: schema.TypeInt,
- Description: "The unique ID of the cluster member.",
- Optional: true,
- },
- "name": {
- Type: schema.TypeString,
- Description: "The name of the cluster member.",
- Optional: true,
- },
- "network": {
- Type: schema.TypeString,
- Description: "The name of the autonomous system in which the Enterprise Agent is found (Enterprise Agents only).",
- Optional: true,
- },
- "prefix": {
- Type: schema.TypeString,
- Description: "The network prefix, in CIDR format (Enterprise Agents only).",
- Optional: true,
- },
- "public_ip_addresses": {
- Type: schema.TypeList,
- Description: "The array of public ipAddress entries.",
- Optional: true,
- Elem: &schema.Schema{
- Type: schema.TypeString,
- },
- },
- "target_for_tests": {
- Type: schema.TypeString,
- Description: "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.",
- Optional: true,
- },
- "utilization": {
- Type: schema.TypeInt,
- Description: "Shows the overall utilization percentage of a cluster member.",
- Optional: true,
- },
- },
- },
- },
- "created_date": {
- Type: schema.TypeString,
- Description: "The date the agent was created. Expressed in UTC (yyyy-MM-dd hh:mm:ss).",
- Optional: true,
- },
- "enabled": {
- Type: schema.TypeBool,
- Description: "Shows whether the agent is enabled or disabled.",
- Optional: true,
- },
- "error_details": {
- Type: schema.TypeList,
- Description: "If one or more errors present in the agent, the error details are shown for each as an array.",
- Optional: true,
- Elem: &schema.Resource{
- Schema: map[string]*schema.Schema{
- "code": {
- Type: schema.TypeString,
- Description: "[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.",
- Optional: true,
- },
- "description": {
- Type: schema.TypeString,
- Description: "A detailed explanation of the error code.",
- Optional: true,
- },
- },
- },
- },
- "groups": {
- Type: schema.TypeSet,
- Description: "An array of label objects.",
- Optional: true,
- Elem: &schema.Resource{
- Schema: map[string]*schema.Schema{
- "builtin": {
- Type: schema.TypeBool,
- Description: "Shows whether you are using built-in (1) labels or user-created (2) labels. Built-in labels are read-only.",
- Optional: true,
- },
- "group_id": {
- Type: schema.TypeInt,
- Description: "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.",
- Optional: true,
- },
- "name": {
- Type: schema.TypeString,
- Description: "The name of the label.",
- Optional: true,
- Default: "",
- },
- "type": {
- Type: schema.TypeString,
- Description: "[tests, agents, endpoint_tests or endpoint_agents] The type of label.",
- Optional: true,
- Default: "",
- },
- },
- },
- },
- "hostname": {
- Type: schema.TypeString,
- Description: "Fully qualified domain name of the agent.",
- Optional: true,
- },
- "ip_addresses": {
- Type: schema.TypeList,
- Description: "An array of the ipAddress entries.",
- Optional: true,
- Computed: true,
- Elem: &schema.Schema{
- Type: schema.TypeString,
- },
- },
- "ipv6_policy": {
- Type: schema.TypeString,
- Description: "[FORCE_IPV4, PREFER_IPV6 or FORCE_IPV6] The IP version policy.",
- Optional: true,
- },
- "keep_browser_cache": {
- Type: schema.TypeBool,
- Description: "Defines whether the browser cache should be kept. Either 1 for enabled or 0 for disabled.",
- Optional: true,
- },
- "last_seen": {
- Type: schema.TypeString,
- Description: "The last time the agent connected with ThousandEyes. Shown in UTC (yyyy-MM-dd hh:mm:ss).",
- Optional: true,
- },
- "location": {
- Type: schema.TypeString,
- Description: "The location of the agent.",
- Optional: true,
- },
- "network": {
- Type: schema.TypeString,
- Description: "The name of the autonomous system in which the agent is found.",
- Optional: true,
- },
- "prefix": {
- Type: schema.TypeString,
- Description: "The network prefix, expressed in CIDR format.",
- Optional: true,
- },
- "target_for_tests": {
- Type: schema.TypeString,
- Description: "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.",
- Optional: true,
- },
- "utilization": {
- Type: schema.TypeInt,
- Description: "Shows the overall utilization percentage.",
- Optional: true,
- },
- "verify_ssl_certificate": {
- Type: schema.TypeBool,
- Description: "Shows whether the SSL certificate needs to be verified. 1 for enabled and 0 for disabled.",
- Optional: true,
- },
- },
- },
- },
- "agents-label": {
- Type: schema.TypeSet,
- Description: "The list of agents to use.",
- Optional: true,
- Elem: &schema.Resource{
- Schema: map[string]*schema.Schema{
- "agent_id": {
- Type: schema.TypeInt,
- Description: "The list of unique agent IDs that the label is applied to.",
Required: true,
},
},