Skip to content

Resource: pingaccess_virtualhost

Provides a virtualhost.

Example Usage

resource "pingaccess_virtualhost" "demo_virtualhost" {
  host = "localhost"
  port = 1234
}

Argument Attributes

The following arguments are supported:

  • access_validator_id - Non-zero if the application is protected by an Authorization Server. Only applies to applications of type API.
  • host - (Required) The host name for the Virtual Host.
  • port - (Required) The integer port number for the Virtual Host.
  • agent_resource_cache_ttl - (Optional) Indicates the number of seconds the Agent can cache resources for this application.
  • key_pair_id - (Optional) Key pair assigned to Virtual Host used by SNI, If no key pair is assigned to a virtual host, ENGINE HTTPS Listener key pair will be used.
  • trusted_certificate_group_id - (Optional) Trusted Certificate Group assigned to Virtual Host for client certificate authentication.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - The virtualhost's ID.

Import

PingAccess Virtualhosts can be imported using the id, e.g.

$ terraform import pingaccess_virtualhost.demo_virtualhost 123