fortios.wanopt.Webcache
Explore with Pulumi AI
Configure global Web cache settings.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const trname = new fortios.wanopt.Webcache("trname", {
alwaysRevalidate: "disable",
cacheByDefault: "disable",
cacheCookie: "disable",
cacheExpired: "disable",
defaultTtl: 1440,
external: "disable",
freshFactor: 100,
hostValidate: "disable",
ignoreConditional: "disable",
ignoreIeReload: "enable",
ignoreIms: "disable",
ignorePnc: "disable",
maxObjectSize: 512000,
maxTtl: 7200,
minTtl: 5,
negRespTime: 0,
revalPnc: "disable",
});
import pulumi
import pulumiverse_fortios as fortios
trname = fortios.wanopt.Webcache("trname",
always_revalidate="disable",
cache_by_default="disable",
cache_cookie="disable",
cache_expired="disable",
default_ttl=1440,
external="disable",
fresh_factor=100,
host_validate="disable",
ignore_conditional="disable",
ignore_ie_reload="enable",
ignore_ims="disable",
ignore_pnc="disable",
max_object_size=512000,
max_ttl=7200,
min_ttl=5,
neg_resp_time=0,
reval_pnc="disable")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/wanopt"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := wanopt.NewWebcache(ctx, "trname", &wanopt.WebcacheArgs{
AlwaysRevalidate: pulumi.String("disable"),
CacheByDefault: pulumi.String("disable"),
CacheCookie: pulumi.String("disable"),
CacheExpired: pulumi.String("disable"),
DefaultTtl: pulumi.Int(1440),
External: pulumi.String("disable"),
FreshFactor: pulumi.Int(100),
HostValidate: pulumi.String("disable"),
IgnoreConditional: pulumi.String("disable"),
IgnoreIeReload: pulumi.String("enable"),
IgnoreIms: pulumi.String("disable"),
IgnorePnc: pulumi.String("disable"),
MaxObjectSize: pulumi.Int(512000),
MaxTtl: pulumi.Int(7200),
MinTtl: pulumi.Int(5),
NegRespTime: pulumi.Int(0),
RevalPnc: pulumi.String("disable"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumiverse.Fortios;
return await Deployment.RunAsync(() =>
{
var trname = new Fortios.Wanopt.Webcache("trname", new()
{
AlwaysRevalidate = "disable",
CacheByDefault = "disable",
CacheCookie = "disable",
CacheExpired = "disable",
DefaultTtl = 1440,
External = "disable",
FreshFactor = 100,
HostValidate = "disable",
IgnoreConditional = "disable",
IgnoreIeReload = "enable",
IgnoreIms = "disable",
IgnorePnc = "disable",
MaxObjectSize = 512000,
MaxTtl = 7200,
MinTtl = 5,
NegRespTime = 0,
RevalPnc = "disable",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.wanopt.Webcache;
import com.pulumi.fortios.wanopt.WebcacheArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var trname = new Webcache("trname", WebcacheArgs.builder()
.alwaysRevalidate("disable")
.cacheByDefault("disable")
.cacheCookie("disable")
.cacheExpired("disable")
.defaultTtl(1440)
.external("disable")
.freshFactor(100)
.hostValidate("disable")
.ignoreConditional("disable")
.ignoreIeReload("enable")
.ignoreIms("disable")
.ignorePnc("disable")
.maxObjectSize(512000)
.maxTtl(7200)
.minTtl(5)
.negRespTime(0)
.revalPnc("disable")
.build());
}
}
resources:
trname:
type: fortios:wanopt:Webcache
properties:
alwaysRevalidate: disable
cacheByDefault: disable
cacheCookie: disable
cacheExpired: disable
defaultTtl: 1440
external: disable
freshFactor: 100
hostValidate: disable
ignoreConditional: disable
ignoreIeReload: enable
ignoreIms: disable
ignorePnc: disable
maxObjectSize: 512000
maxTtl: 7200
minTtl: 5
negRespTime: 0
revalPnc: disable
Create Webcache Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Webcache(name: string, args?: WebcacheArgs, opts?: CustomResourceOptions);
@overload
def Webcache(resource_name: str,
args: Optional[WebcacheArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Webcache(resource_name: str,
opts: Optional[ResourceOptions] = None,
always_revalidate: Optional[str] = None,
cache_by_default: Optional[str] = None,
cache_cookie: Optional[str] = None,
cache_expired: Optional[str] = None,
default_ttl: Optional[int] = None,
external: Optional[str] = None,
fresh_factor: Optional[int] = None,
host_validate: Optional[str] = None,
ignore_conditional: Optional[str] = None,
ignore_ie_reload: Optional[str] = None,
ignore_ims: Optional[str] = None,
ignore_pnc: Optional[str] = None,
max_object_size: Optional[int] = None,
max_ttl: Optional[int] = None,
min_ttl: Optional[int] = None,
neg_resp_time: Optional[int] = None,
reval_pnc: Optional[str] = None,
vdomparam: Optional[str] = None)
func NewWebcache(ctx *Context, name string, args *WebcacheArgs, opts ...ResourceOption) (*Webcache, error)
public Webcache(string name, WebcacheArgs? args = null, CustomResourceOptions? opts = null)
public Webcache(String name, WebcacheArgs args)
public Webcache(String name, WebcacheArgs args, CustomResourceOptions options)
type: fortios:wanopt:Webcache
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WebcacheArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args WebcacheArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WebcacheArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WebcacheArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WebcacheArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var webcacheResource = new Fortios.Wanopt.Webcache("webcacheResource", new()
{
AlwaysRevalidate = "string",
CacheByDefault = "string",
CacheCookie = "string",
CacheExpired = "string",
DefaultTtl = 0,
External = "string",
FreshFactor = 0,
HostValidate = "string",
IgnoreConditional = "string",
IgnoreIeReload = "string",
IgnoreIms = "string",
IgnorePnc = "string",
MaxObjectSize = 0,
MaxTtl = 0,
MinTtl = 0,
NegRespTime = 0,
RevalPnc = "string",
Vdomparam = "string",
});
example, err := wanopt.NewWebcache(ctx, "webcacheResource", &wanopt.WebcacheArgs{
AlwaysRevalidate: pulumi.String("string"),
CacheByDefault: pulumi.String("string"),
CacheCookie: pulumi.String("string"),
CacheExpired: pulumi.String("string"),
DefaultTtl: pulumi.Int(0),
External: pulumi.String("string"),
FreshFactor: pulumi.Int(0),
HostValidate: pulumi.String("string"),
IgnoreConditional: pulumi.String("string"),
IgnoreIeReload: pulumi.String("string"),
IgnoreIms: pulumi.String("string"),
IgnorePnc: pulumi.String("string"),
MaxObjectSize: pulumi.Int(0),
MaxTtl: pulumi.Int(0),
MinTtl: pulumi.Int(0),
NegRespTime: pulumi.Int(0),
RevalPnc: pulumi.String("string"),
Vdomparam: pulumi.String("string"),
})
var webcacheResource = new Webcache("webcacheResource", WebcacheArgs.builder()
.alwaysRevalidate("string")
.cacheByDefault("string")
.cacheCookie("string")
.cacheExpired("string")
.defaultTtl(0)
.external("string")
.freshFactor(0)
.hostValidate("string")
.ignoreConditional("string")
.ignoreIeReload("string")
.ignoreIms("string")
.ignorePnc("string")
.maxObjectSize(0)
.maxTtl(0)
.minTtl(0)
.negRespTime(0)
.revalPnc("string")
.vdomparam("string")
.build());
webcache_resource = fortios.wanopt.Webcache("webcacheResource",
always_revalidate="string",
cache_by_default="string",
cache_cookie="string",
cache_expired="string",
default_ttl=0,
external="string",
fresh_factor=0,
host_validate="string",
ignore_conditional="string",
ignore_ie_reload="string",
ignore_ims="string",
ignore_pnc="string",
max_object_size=0,
max_ttl=0,
min_ttl=0,
neg_resp_time=0,
reval_pnc="string",
vdomparam="string")
const webcacheResource = new fortios.wanopt.Webcache("webcacheResource", {
alwaysRevalidate: "string",
cacheByDefault: "string",
cacheCookie: "string",
cacheExpired: "string",
defaultTtl: 0,
external: "string",
freshFactor: 0,
hostValidate: "string",
ignoreConditional: "string",
ignoreIeReload: "string",
ignoreIms: "string",
ignorePnc: "string",
maxObjectSize: 0,
maxTtl: 0,
minTtl: 0,
negRespTime: 0,
revalPnc: "string",
vdomparam: "string",
});
type: fortios:wanopt:Webcache
properties:
alwaysRevalidate: string
cacheByDefault: string
cacheCookie: string
cacheExpired: string
defaultTtl: 0
external: string
freshFactor: 0
hostValidate: string
ignoreConditional: string
ignoreIeReload: string
ignoreIms: string
ignorePnc: string
maxObjectSize: 0
maxTtl: 0
minTtl: 0
negRespTime: 0
revalPnc: string
vdomparam: string
Webcache Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Webcache resource accepts the following input properties:
- Always
Revalidate string - Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values:
enable
,disable
. - Cache
By stringDefault - Enable/disable caching content that lacks explicit caching policies from the server. Valid values:
enable
,disable
. - string
- Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values:
enable
,disable
. - Cache
Expired string - Enable/disable caching type-1 objects that are already expired on arrival. Valid values:
enable
,disable
. - Default
Ttl int - Default object expiry time (default = 1440 min (1 day); maximum = 5256000 min (10 years)). This only applies to those objects that do not have an expiry time set by the web server.
- External string
- Enable/disable external Web caching. Valid values:
enable
,disable
. - Fresh
Factor int - Frequency that the server is checked to see if any objects have expired (1 - 100, default = 100). The higher the fresh factor, the less often the checks occur.
- Host
Validate string - Enable/disable validating "Host:" with original server IP. Valid values:
enable
,disable
. - Ignore
Conditional string - Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values:
enable
,disable
. - Ignore
Ie stringReload - Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values:
enable
,disable
. - Ignore
Ims string - Enable/disable ignoring the if-modified-since (IMS) header. Valid values:
enable
,disable
. - Ignore
Pnc string - Enable/disable ignoring the pragma no-cache (PNC) header. Valid values:
enable
,disable
. - Max
Object intSize - Maximum cacheable object size in kB (1 - 2147483 kb (2GB). All objects that exceed this are delivered to the client but not stored in the web cache.
- Max
Ttl int - Maximum time an object can stay in the web cache without checking to see if it has expired on the server (default = 7200 min (5 days); maximum = 5256000 min (10 years)).
- Min
Ttl int - Minimum time an object can stay in the web cache without checking to see if it has expired on the server (default = 5 min; maximum = 5256000 (10 years)).
- Neg
Resp intTime - Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
- Reval
Pnc string - Enable/disable revalidation of pragma-no-cache (PNC) to address bandwidth concerns. Valid values:
enable
,disable
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Always
Revalidate string - Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values:
enable
,disable
. - Cache
By stringDefault - Enable/disable caching content that lacks explicit caching policies from the server. Valid values:
enable
,disable
. - string
- Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values:
enable
,disable
. - Cache
Expired string - Enable/disable caching type-1 objects that are already expired on arrival. Valid values:
enable
,disable
. - Default
Ttl int - Default object expiry time (default = 1440 min (1 day); maximum = 5256000 min (10 years)). This only applies to those objects that do not have an expiry time set by the web server.
- External string
- Enable/disable external Web caching. Valid values:
enable
,disable
. - Fresh
Factor int - Frequency that the server is checked to see if any objects have expired (1 - 100, default = 100). The higher the fresh factor, the less often the checks occur.
- Host
Validate string - Enable/disable validating "Host:" with original server IP. Valid values:
enable
,disable
. - Ignore
Conditional string - Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values:
enable
,disable
. - Ignore
Ie stringReload - Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values:
enable
,disable
. - Ignore
Ims string - Enable/disable ignoring the if-modified-since (IMS) header. Valid values:
enable
,disable
. - Ignore
Pnc string - Enable/disable ignoring the pragma no-cache (PNC) header. Valid values:
enable
,disable
. - Max
Object intSize - Maximum cacheable object size in kB (1 - 2147483 kb (2GB). All objects that exceed this are delivered to the client but not stored in the web cache.
- Max
Ttl int - Maximum time an object can stay in the web cache without checking to see if it has expired on the server (default = 7200 min (5 days); maximum = 5256000 min (10 years)).
- Min
Ttl int - Minimum time an object can stay in the web cache without checking to see if it has expired on the server (default = 5 min; maximum = 5256000 (10 years)).
- Neg
Resp intTime - Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
- Reval
Pnc string - Enable/disable revalidation of pragma-no-cache (PNC) to address bandwidth concerns. Valid values:
enable
,disable
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- always
Revalidate String - Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values:
enable
,disable
. - cache
By StringDefault - Enable/disable caching content that lacks explicit caching policies from the server. Valid values:
enable
,disable
. - String
- Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values:
enable
,disable
. - cache
Expired String - Enable/disable caching type-1 objects that are already expired on arrival. Valid values:
enable
,disable
. - default
Ttl Integer - Default object expiry time (default = 1440 min (1 day); maximum = 5256000 min (10 years)). This only applies to those objects that do not have an expiry time set by the web server.
- external String
- Enable/disable external Web caching. Valid values:
enable
,disable
. - fresh
Factor Integer - Frequency that the server is checked to see if any objects have expired (1 - 100, default = 100). The higher the fresh factor, the less often the checks occur.
- host
Validate String - Enable/disable validating "Host:" with original server IP. Valid values:
enable
,disable
. - ignore
Conditional String - Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values:
enable
,disable
. - ignore
Ie StringReload - Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values:
enable
,disable
. - ignore
Ims String - Enable/disable ignoring the if-modified-since (IMS) header. Valid values:
enable
,disable
. - ignore
Pnc String - Enable/disable ignoring the pragma no-cache (PNC) header. Valid values:
enable
,disable
. - max
Object IntegerSize - Maximum cacheable object size in kB (1 - 2147483 kb (2GB). All objects that exceed this are delivered to the client but not stored in the web cache.
- max
Ttl Integer - Maximum time an object can stay in the web cache without checking to see if it has expired on the server (default = 7200 min (5 days); maximum = 5256000 min (10 years)).
- min
Ttl Integer - Minimum time an object can stay in the web cache without checking to see if it has expired on the server (default = 5 min; maximum = 5256000 (10 years)).
- neg
Resp IntegerTime - Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
- reval
Pnc String - Enable/disable revalidation of pragma-no-cache (PNC) to address bandwidth concerns. Valid values:
enable
,disable
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- always
Revalidate string - Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values:
enable
,disable
. - cache
By stringDefault - Enable/disable caching content that lacks explicit caching policies from the server. Valid values:
enable
,disable
. - string
- Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values:
enable
,disable
. - cache
Expired string - Enable/disable caching type-1 objects that are already expired on arrival. Valid values:
enable
,disable
. - default
Ttl number - Default object expiry time (default = 1440 min (1 day); maximum = 5256000 min (10 years)). This only applies to those objects that do not have an expiry time set by the web server.
- external string
- Enable/disable external Web caching. Valid values:
enable
,disable
. - fresh
Factor number - Frequency that the server is checked to see if any objects have expired (1 - 100, default = 100). The higher the fresh factor, the less often the checks occur.
- host
Validate string - Enable/disable validating "Host:" with original server IP. Valid values:
enable
,disable
. - ignore
Conditional string - Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values:
enable
,disable
. - ignore
Ie stringReload - Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values:
enable
,disable
. - ignore
Ims string - Enable/disable ignoring the if-modified-since (IMS) header. Valid values:
enable
,disable
. - ignore
Pnc string - Enable/disable ignoring the pragma no-cache (PNC) header. Valid values:
enable
,disable
. - max
Object numberSize - Maximum cacheable object size in kB (1 - 2147483 kb (2GB). All objects that exceed this are delivered to the client but not stored in the web cache.
- max
Ttl number - Maximum time an object can stay in the web cache without checking to see if it has expired on the server (default = 7200 min (5 days); maximum = 5256000 min (10 years)).
- min
Ttl number - Minimum time an object can stay in the web cache without checking to see if it has expired on the server (default = 5 min; maximum = 5256000 (10 years)).
- neg
Resp numberTime - Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
- reval
Pnc string - Enable/disable revalidation of pragma-no-cache (PNC) to address bandwidth concerns. Valid values:
enable
,disable
. - vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- always_
revalidate str - Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values:
enable
,disable
. - cache_
by_ strdefault - Enable/disable caching content that lacks explicit caching policies from the server. Valid values:
enable
,disable
. - str
- Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values:
enable
,disable
. - cache_
expired str - Enable/disable caching type-1 objects that are already expired on arrival. Valid values:
enable
,disable
. - default_
ttl int - Default object expiry time (default = 1440 min (1 day); maximum = 5256000 min (10 years)). This only applies to those objects that do not have an expiry time set by the web server.
- external str
- Enable/disable external Web caching. Valid values:
enable
,disable
. - fresh_
factor int - Frequency that the server is checked to see if any objects have expired (1 - 100, default = 100). The higher the fresh factor, the less often the checks occur.
- host_
validate str - Enable/disable validating "Host:" with original server IP. Valid values:
enable
,disable
. - ignore_
conditional str - Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values:
enable
,disable
. - ignore_
ie_ strreload - Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values:
enable
,disable
. - ignore_
ims str - Enable/disable ignoring the if-modified-since (IMS) header. Valid values:
enable
,disable
. - ignore_
pnc str - Enable/disable ignoring the pragma no-cache (PNC) header. Valid values:
enable
,disable
. - max_
object_ intsize - Maximum cacheable object size in kB (1 - 2147483 kb (2GB). All objects that exceed this are delivered to the client but not stored in the web cache.
- max_
ttl int - Maximum time an object can stay in the web cache without checking to see if it has expired on the server (default = 7200 min (5 days); maximum = 5256000 min (10 years)).
- min_
ttl int - Minimum time an object can stay in the web cache without checking to see if it has expired on the server (default = 5 min; maximum = 5256000 (10 years)).
- neg_
resp_ inttime - Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
- reval_
pnc str - Enable/disable revalidation of pragma-no-cache (PNC) to address bandwidth concerns. Valid values:
enable
,disable
. - vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- always
Revalidate String - Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values:
enable
,disable
. - cache
By StringDefault - Enable/disable caching content that lacks explicit caching policies from the server. Valid values:
enable
,disable
. - String
- Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values:
enable
,disable
. - cache
Expired String - Enable/disable caching type-1 objects that are already expired on arrival. Valid values:
enable
,disable
. - default
Ttl Number - Default object expiry time (default = 1440 min (1 day); maximum = 5256000 min (10 years)). This only applies to those objects that do not have an expiry time set by the web server.
- external String
- Enable/disable external Web caching. Valid values:
enable
,disable
. - fresh
Factor Number - Frequency that the server is checked to see if any objects have expired (1 - 100, default = 100). The higher the fresh factor, the less often the checks occur.
- host
Validate String - Enable/disable validating "Host:" with original server IP. Valid values:
enable
,disable
. - ignore
Conditional String - Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values:
enable
,disable
. - ignore
Ie StringReload - Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values:
enable
,disable
. - ignore
Ims String - Enable/disable ignoring the if-modified-since (IMS) header. Valid values:
enable
,disable
. - ignore
Pnc String - Enable/disable ignoring the pragma no-cache (PNC) header. Valid values:
enable
,disable
. - max
Object NumberSize - Maximum cacheable object size in kB (1 - 2147483 kb (2GB). All objects that exceed this are delivered to the client but not stored in the web cache.
- max
Ttl Number - Maximum time an object can stay in the web cache without checking to see if it has expired on the server (default = 7200 min (5 days); maximum = 5256000 min (10 years)).
- min
Ttl Number - Minimum time an object can stay in the web cache without checking to see if it has expired on the server (default = 5 min; maximum = 5256000 (10 years)).
- neg
Resp NumberTime - Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
- reval
Pnc String - Enable/disable revalidation of pragma-no-cache (PNC) to address bandwidth concerns. Valid values:
enable
,disable
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Outputs
All input properties are implicitly available as output properties. Additionally, the Webcache resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Webcache Resource
Get an existing Webcache resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: WebcacheState, opts?: CustomResourceOptions): Webcache
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
always_revalidate: Optional[str] = None,
cache_by_default: Optional[str] = None,
cache_cookie: Optional[str] = None,
cache_expired: Optional[str] = None,
default_ttl: Optional[int] = None,
external: Optional[str] = None,
fresh_factor: Optional[int] = None,
host_validate: Optional[str] = None,
ignore_conditional: Optional[str] = None,
ignore_ie_reload: Optional[str] = None,
ignore_ims: Optional[str] = None,
ignore_pnc: Optional[str] = None,
max_object_size: Optional[int] = None,
max_ttl: Optional[int] = None,
min_ttl: Optional[int] = None,
neg_resp_time: Optional[int] = None,
reval_pnc: Optional[str] = None,
vdomparam: Optional[str] = None) -> Webcache
func GetWebcache(ctx *Context, name string, id IDInput, state *WebcacheState, opts ...ResourceOption) (*Webcache, error)
public static Webcache Get(string name, Input<string> id, WebcacheState? state, CustomResourceOptions? opts = null)
public static Webcache get(String name, Output<String> id, WebcacheState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Always
Revalidate string - Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values:
enable
,disable
. - Cache
By stringDefault - Enable/disable caching content that lacks explicit caching policies from the server. Valid values:
enable
,disable
. - string
- Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values:
enable
,disable
. - Cache
Expired string - Enable/disable caching type-1 objects that are already expired on arrival. Valid values:
enable
,disable
. - Default
Ttl int - Default object expiry time (default = 1440 min (1 day); maximum = 5256000 min (10 years)). This only applies to those objects that do not have an expiry time set by the web server.
- External string
- Enable/disable external Web caching. Valid values:
enable
,disable
. - Fresh
Factor int - Frequency that the server is checked to see if any objects have expired (1 - 100, default = 100). The higher the fresh factor, the less often the checks occur.
- Host
Validate string - Enable/disable validating "Host:" with original server IP. Valid values:
enable
,disable
. - Ignore
Conditional string - Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values:
enable
,disable
. - Ignore
Ie stringReload - Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values:
enable
,disable
. - Ignore
Ims string - Enable/disable ignoring the if-modified-since (IMS) header. Valid values:
enable
,disable
. - Ignore
Pnc string - Enable/disable ignoring the pragma no-cache (PNC) header. Valid values:
enable
,disable
. - Max
Object intSize - Maximum cacheable object size in kB (1 - 2147483 kb (2GB). All objects that exceed this are delivered to the client but not stored in the web cache.
- Max
Ttl int - Maximum time an object can stay in the web cache without checking to see if it has expired on the server (default = 7200 min (5 days); maximum = 5256000 min (10 years)).
- Min
Ttl int - Minimum time an object can stay in the web cache without checking to see if it has expired on the server (default = 5 min; maximum = 5256000 (10 years)).
- Neg
Resp intTime - Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
- Reval
Pnc string - Enable/disable revalidation of pragma-no-cache (PNC) to address bandwidth concerns. Valid values:
enable
,disable
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Always
Revalidate string - Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values:
enable
,disable
. - Cache
By stringDefault - Enable/disable caching content that lacks explicit caching policies from the server. Valid values:
enable
,disable
. - string
- Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values:
enable
,disable
. - Cache
Expired string - Enable/disable caching type-1 objects that are already expired on arrival. Valid values:
enable
,disable
. - Default
Ttl int - Default object expiry time (default = 1440 min (1 day); maximum = 5256000 min (10 years)). This only applies to those objects that do not have an expiry time set by the web server.
- External string
- Enable/disable external Web caching. Valid values:
enable
,disable
. - Fresh
Factor int - Frequency that the server is checked to see if any objects have expired (1 - 100, default = 100). The higher the fresh factor, the less often the checks occur.
- Host
Validate string - Enable/disable validating "Host:" with original server IP. Valid values:
enable
,disable
. - Ignore
Conditional string - Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values:
enable
,disable
. - Ignore
Ie stringReload - Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values:
enable
,disable
. - Ignore
Ims string - Enable/disable ignoring the if-modified-since (IMS) header. Valid values:
enable
,disable
. - Ignore
Pnc string - Enable/disable ignoring the pragma no-cache (PNC) header. Valid values:
enable
,disable
. - Max
Object intSize - Maximum cacheable object size in kB (1 - 2147483 kb (2GB). All objects that exceed this are delivered to the client but not stored in the web cache.
- Max
Ttl int - Maximum time an object can stay in the web cache without checking to see if it has expired on the server (default = 7200 min (5 days); maximum = 5256000 min (10 years)).
- Min
Ttl int - Minimum time an object can stay in the web cache without checking to see if it has expired on the server (default = 5 min; maximum = 5256000 (10 years)).
- Neg
Resp intTime - Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
- Reval
Pnc string - Enable/disable revalidation of pragma-no-cache (PNC) to address bandwidth concerns. Valid values:
enable
,disable
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- always
Revalidate String - Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values:
enable
,disable
. - cache
By StringDefault - Enable/disable caching content that lacks explicit caching policies from the server. Valid values:
enable
,disable
. - String
- Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values:
enable
,disable
. - cache
Expired String - Enable/disable caching type-1 objects that are already expired on arrival. Valid values:
enable
,disable
. - default
Ttl Integer - Default object expiry time (default = 1440 min (1 day); maximum = 5256000 min (10 years)). This only applies to those objects that do not have an expiry time set by the web server.
- external String
- Enable/disable external Web caching. Valid values:
enable
,disable
. - fresh
Factor Integer - Frequency that the server is checked to see if any objects have expired (1 - 100, default = 100). The higher the fresh factor, the less often the checks occur.
- host
Validate String - Enable/disable validating "Host:" with original server IP. Valid values:
enable
,disable
. - ignore
Conditional String - Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values:
enable
,disable
. - ignore
Ie StringReload - Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values:
enable
,disable
. - ignore
Ims String - Enable/disable ignoring the if-modified-since (IMS) header. Valid values:
enable
,disable
. - ignore
Pnc String - Enable/disable ignoring the pragma no-cache (PNC) header. Valid values:
enable
,disable
. - max
Object IntegerSize - Maximum cacheable object size in kB (1 - 2147483 kb (2GB). All objects that exceed this are delivered to the client but not stored in the web cache.
- max
Ttl Integer - Maximum time an object can stay in the web cache without checking to see if it has expired on the server (default = 7200 min (5 days); maximum = 5256000 min (10 years)).
- min
Ttl Integer - Minimum time an object can stay in the web cache without checking to see if it has expired on the server (default = 5 min; maximum = 5256000 (10 years)).
- neg
Resp IntegerTime - Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
- reval
Pnc String - Enable/disable revalidation of pragma-no-cache (PNC) to address bandwidth concerns. Valid values:
enable
,disable
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- always
Revalidate string - Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values:
enable
,disable
. - cache
By stringDefault - Enable/disable caching content that lacks explicit caching policies from the server. Valid values:
enable
,disable
. - string
- Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values:
enable
,disable
. - cache
Expired string - Enable/disable caching type-1 objects that are already expired on arrival. Valid values:
enable
,disable
. - default
Ttl number - Default object expiry time (default = 1440 min (1 day); maximum = 5256000 min (10 years)). This only applies to those objects that do not have an expiry time set by the web server.
- external string
- Enable/disable external Web caching. Valid values:
enable
,disable
. - fresh
Factor number - Frequency that the server is checked to see if any objects have expired (1 - 100, default = 100). The higher the fresh factor, the less often the checks occur.
- host
Validate string - Enable/disable validating "Host:" with original server IP. Valid values:
enable
,disable
. - ignore
Conditional string - Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values:
enable
,disable
. - ignore
Ie stringReload - Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values:
enable
,disable
. - ignore
Ims string - Enable/disable ignoring the if-modified-since (IMS) header. Valid values:
enable
,disable
. - ignore
Pnc string - Enable/disable ignoring the pragma no-cache (PNC) header. Valid values:
enable
,disable
. - max
Object numberSize - Maximum cacheable object size in kB (1 - 2147483 kb (2GB). All objects that exceed this are delivered to the client but not stored in the web cache.
- max
Ttl number - Maximum time an object can stay in the web cache without checking to see if it has expired on the server (default = 7200 min (5 days); maximum = 5256000 min (10 years)).
- min
Ttl number - Minimum time an object can stay in the web cache without checking to see if it has expired on the server (default = 5 min; maximum = 5256000 (10 years)).
- neg
Resp numberTime - Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
- reval
Pnc string - Enable/disable revalidation of pragma-no-cache (PNC) to address bandwidth concerns. Valid values:
enable
,disable
. - vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- always_
revalidate str - Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values:
enable
,disable
. - cache_
by_ strdefault - Enable/disable caching content that lacks explicit caching policies from the server. Valid values:
enable
,disable
. - str
- Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values:
enable
,disable
. - cache_
expired str - Enable/disable caching type-1 objects that are already expired on arrival. Valid values:
enable
,disable
. - default_
ttl int - Default object expiry time (default = 1440 min (1 day); maximum = 5256000 min (10 years)). This only applies to those objects that do not have an expiry time set by the web server.
- external str
- Enable/disable external Web caching. Valid values:
enable
,disable
. - fresh_
factor int - Frequency that the server is checked to see if any objects have expired (1 - 100, default = 100). The higher the fresh factor, the less often the checks occur.
- host_
validate str - Enable/disable validating "Host:" with original server IP. Valid values:
enable
,disable
. - ignore_
conditional str - Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values:
enable
,disable
. - ignore_
ie_ strreload - Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values:
enable
,disable
. - ignore_
ims str - Enable/disable ignoring the if-modified-since (IMS) header. Valid values:
enable
,disable
. - ignore_
pnc str - Enable/disable ignoring the pragma no-cache (PNC) header. Valid values:
enable
,disable
. - max_
object_ intsize - Maximum cacheable object size in kB (1 - 2147483 kb (2GB). All objects that exceed this are delivered to the client but not stored in the web cache.
- max_
ttl int - Maximum time an object can stay in the web cache without checking to see if it has expired on the server (default = 7200 min (5 days); maximum = 5256000 min (10 years)).
- min_
ttl int - Minimum time an object can stay in the web cache without checking to see if it has expired on the server (default = 5 min; maximum = 5256000 (10 years)).
- neg_
resp_ inttime - Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
- reval_
pnc str - Enable/disable revalidation of pragma-no-cache (PNC) to address bandwidth concerns. Valid values:
enable
,disable
. - vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- always
Revalidate String - Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values:
enable
,disable
. - cache
By StringDefault - Enable/disable caching content that lacks explicit caching policies from the server. Valid values:
enable
,disable
. - String
- Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values:
enable
,disable
. - cache
Expired String - Enable/disable caching type-1 objects that are already expired on arrival. Valid values:
enable
,disable
. - default
Ttl Number - Default object expiry time (default = 1440 min (1 day); maximum = 5256000 min (10 years)). This only applies to those objects that do not have an expiry time set by the web server.
- external String
- Enable/disable external Web caching. Valid values:
enable
,disable
. - fresh
Factor Number - Frequency that the server is checked to see if any objects have expired (1 - 100, default = 100). The higher the fresh factor, the less often the checks occur.
- host
Validate String - Enable/disable validating "Host:" with original server IP. Valid values:
enable
,disable
. - ignore
Conditional String - Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values:
enable
,disable
. - ignore
Ie StringReload - Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values:
enable
,disable
. - ignore
Ims String - Enable/disable ignoring the if-modified-since (IMS) header. Valid values:
enable
,disable
. - ignore
Pnc String - Enable/disable ignoring the pragma no-cache (PNC) header. Valid values:
enable
,disable
. - max
Object NumberSize - Maximum cacheable object size in kB (1 - 2147483 kb (2GB). All objects that exceed this are delivered to the client but not stored in the web cache.
- max
Ttl Number - Maximum time an object can stay in the web cache without checking to see if it has expired on the server (default = 7200 min (5 days); maximum = 5256000 min (10 years)).
- min
Ttl Number - Minimum time an object can stay in the web cache without checking to see if it has expired on the server (default = 5 min; maximum = 5256000 (10 years)).
- neg
Resp NumberTime - Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
- reval
Pnc String - Enable/disable revalidation of pragma-no-cache (PNC) to address bandwidth concerns. Valid values:
enable
,disable
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Import
Wanopt Webcache can be imported using any of these accepted formats:
$ pulumi import fortios:wanopt/webcache:Webcache labelname WanoptWebcache
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:wanopt/webcache:Webcache labelname WanoptWebcache
$ unset “FORTIOS_IMPORT_TABLE”
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.