Resource: pingaccess_application_resource
Provides a application resource.
Example Usage
resource "pingaccess_application_resource" "demo_application_resource" {
name = "demo_resource"
methods = [
"*",
]
path_patterns {
pattern = "/as/token.oauth2"
type = "WILDCARD"
}
path_patterns {
pattern = "%s"
type = "WILDCARD"
}
path_prefixes = [
"/as/token.oauth2",
"%s",
]
audit_level = "OFF"
anonymous = false
enabled = true
root_resource = false
application_id = pingaccess_application.demo_application.id
policy {
web {
type = "Rule"
id = pingaccess_rule.demo_rule_one.id
}
web {
type = "Rule"
id = pingaccess_rule.demo_rule_two.id
}
}
}
Argument Attributes
The following arguments are supported:
-
anonymous
- True if the resource is anonymous. -
application_id
- The id of the associated application. This field is read-only. -
audit_level
- ['ON' or 'OFF']: Indicates if audit logging is enabled for the resource. -
default_auth_type_override
- ['Web' or 'API']: For Web + API applications (dynamic) defaultAuthType selects the processing mode when a request: does not have a token (web session, OAuth bearer) or has both tokens. default_auth_type_override overrides the defaultAuthType at the application level for this resource. A value of null indicates the resource should not override the defaultAuthType. -
enabled
- True if the resource is enabled. -
methods
- An array of HTTP methods configured for the resource -
name
- The name of the resource -
path_patterns
- A list of one or more request path-matching patterns -
path_prefixes
- An array of path prefixes for the resource (DEPRECATED - to be removed in a future release; please use 'pathPatterns' instead) -
policy
- A map of policy items associated with the resource. The key is 'Web' or 'API' and the value is a list of PolicyItems. -
root_resource
- True if the resource is the root resource for the application -
unprotected
- True if the resource is unprotected.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- The application s's ID.
Import
PingAccess applications can be imported using the id, e.g.
$ terraform import pingaccess_application.demo_application 123