1. Packages
  2. Fortios
  3. API Docs
  4. wanopt
  5. Webcache
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

fortios.wanopt.Webcache

Explore with Pulumi AI

fortios logo
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

    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:

    AlwaysRevalidate string
    Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values: enable, disable.
    CacheByDefault string
    Enable/disable caching content that lacks explicit caching policies from the server. Valid values: enable, disable.
    CacheCookie string
    Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values: enable, disable.
    CacheExpired string
    Enable/disable caching type-1 objects that are already expired on arrival. Valid values: enable, disable.
    DefaultTtl 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.
    FreshFactor 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.
    HostValidate string
    Enable/disable validating "Host:" with original server IP. Valid values: enable, disable.
    IgnoreConditional string
    Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values: enable, disable.
    IgnoreIeReload string
    Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values: enable, disable.
    IgnoreIms string
    Enable/disable ignoring the if-modified-since (IMS) header. Valid values: enable, disable.
    IgnorePnc string
    Enable/disable ignoring the pragma no-cache (PNC) header. Valid values: enable, disable.
    MaxObjectSize int
    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.
    MaxTtl 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)).
    MinTtl 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)).
    NegRespTime int
    Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
    RevalPnc 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.
    AlwaysRevalidate string
    Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values: enable, disable.
    CacheByDefault string
    Enable/disable caching content that lacks explicit caching policies from the server. Valid values: enable, disable.
    CacheCookie string
    Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values: enable, disable.
    CacheExpired string
    Enable/disable caching type-1 objects that are already expired on arrival. Valid values: enable, disable.
    DefaultTtl 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.
    FreshFactor 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.
    HostValidate string
    Enable/disable validating "Host:" with original server IP. Valid values: enable, disable.
    IgnoreConditional string
    Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values: enable, disable.
    IgnoreIeReload string
    Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values: enable, disable.
    IgnoreIms string
    Enable/disable ignoring the if-modified-since (IMS) header. Valid values: enable, disable.
    IgnorePnc string
    Enable/disable ignoring the pragma no-cache (PNC) header. Valid values: enable, disable.
    MaxObjectSize int
    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.
    MaxTtl 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)).
    MinTtl 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)).
    NegRespTime int
    Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
    RevalPnc 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.
    alwaysRevalidate String
    Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values: enable, disable.
    cacheByDefault String
    Enable/disable caching content that lacks explicit caching policies from the server. Valid values: enable, disable.
    cacheCookie String
    Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values: enable, disable.
    cacheExpired String
    Enable/disable caching type-1 objects that are already expired on arrival. Valid values: enable, disable.
    defaultTtl 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.
    freshFactor 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.
    hostValidate String
    Enable/disable validating "Host:" with original server IP. Valid values: enable, disable.
    ignoreConditional String
    Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values: enable, disable.
    ignoreIeReload String
    Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values: enable, disable.
    ignoreIms String
    Enable/disable ignoring the if-modified-since (IMS) header. Valid values: enable, disable.
    ignorePnc String
    Enable/disable ignoring the pragma no-cache (PNC) header. Valid values: enable, disable.
    maxObjectSize Integer
    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.
    maxTtl 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)).
    minTtl 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)).
    negRespTime Integer
    Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
    revalPnc 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.
    alwaysRevalidate string
    Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values: enable, disable.
    cacheByDefault string
    Enable/disable caching content that lacks explicit caching policies from the server. Valid values: enable, disable.
    cacheCookie string
    Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values: enable, disable.
    cacheExpired string
    Enable/disable caching type-1 objects that are already expired on arrival. Valid values: enable, disable.
    defaultTtl 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.
    freshFactor 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.
    hostValidate string
    Enable/disable validating "Host:" with original server IP. Valid values: enable, disable.
    ignoreConditional string
    Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values: enable, disable.
    ignoreIeReload string
    Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values: enable, disable.
    ignoreIms string
    Enable/disable ignoring the if-modified-since (IMS) header. Valid values: enable, disable.
    ignorePnc string
    Enable/disable ignoring the pragma no-cache (PNC) header. Valid values: enable, disable.
    maxObjectSize number
    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.
    maxTtl 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)).
    minTtl 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)).
    negRespTime number
    Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
    revalPnc 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_default str
    Enable/disable caching content that lacks explicit caching policies from the server. Valid values: enable, disable.
    cache_cookie 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_reload str
    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_size int
    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_time int
    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.
    alwaysRevalidate String
    Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values: enable, disable.
    cacheByDefault String
    Enable/disable caching content that lacks explicit caching policies from the server. Valid values: enable, disable.
    cacheCookie String
    Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values: enable, disable.
    cacheExpired String
    Enable/disable caching type-1 objects that are already expired on arrival. Valid values: enable, disable.
    defaultTtl 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.
    freshFactor 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.
    hostValidate String
    Enable/disable validating "Host:" with original server IP. Valid values: enable, disable.
    ignoreConditional String
    Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values: enable, disable.
    ignoreIeReload String
    Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values: enable, disable.
    ignoreIms String
    Enable/disable ignoring the if-modified-since (IMS) header. Valid values: enable, disable.
    ignorePnc String
    Enable/disable ignoring the pragma no-cache (PNC) header. Valid values: enable, disable.
    maxObjectSize Number
    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.
    maxTtl 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)).
    minTtl 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)).
    negRespTime Number
    Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
    revalPnc 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.
    The following state arguments are supported:
    AlwaysRevalidate string
    Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values: enable, disable.
    CacheByDefault string
    Enable/disable caching content that lacks explicit caching policies from the server. Valid values: enable, disable.
    CacheCookie string
    Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values: enable, disable.
    CacheExpired string
    Enable/disable caching type-1 objects that are already expired on arrival. Valid values: enable, disable.
    DefaultTtl 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.
    FreshFactor 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.
    HostValidate string
    Enable/disable validating "Host:" with original server IP. Valid values: enable, disable.
    IgnoreConditional string
    Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values: enable, disable.
    IgnoreIeReload string
    Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values: enable, disable.
    IgnoreIms string
    Enable/disable ignoring the if-modified-since (IMS) header. Valid values: enable, disable.
    IgnorePnc string
    Enable/disable ignoring the pragma no-cache (PNC) header. Valid values: enable, disable.
    MaxObjectSize int
    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.
    MaxTtl 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)).
    MinTtl 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)).
    NegRespTime int
    Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
    RevalPnc 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.
    AlwaysRevalidate string
    Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values: enable, disable.
    CacheByDefault string
    Enable/disable caching content that lacks explicit caching policies from the server. Valid values: enable, disable.
    CacheCookie string
    Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values: enable, disable.
    CacheExpired string
    Enable/disable caching type-1 objects that are already expired on arrival. Valid values: enable, disable.
    DefaultTtl 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.
    FreshFactor 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.
    HostValidate string
    Enable/disable validating "Host:" with original server IP. Valid values: enable, disable.
    IgnoreConditional string
    Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values: enable, disable.
    IgnoreIeReload string
    Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values: enable, disable.
    IgnoreIms string
    Enable/disable ignoring the if-modified-since (IMS) header. Valid values: enable, disable.
    IgnorePnc string
    Enable/disable ignoring the pragma no-cache (PNC) header. Valid values: enable, disable.
    MaxObjectSize int
    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.
    MaxTtl 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)).
    MinTtl 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)).
    NegRespTime int
    Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
    RevalPnc 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.
    alwaysRevalidate String
    Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values: enable, disable.
    cacheByDefault String
    Enable/disable caching content that lacks explicit caching policies from the server. Valid values: enable, disable.
    cacheCookie String
    Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values: enable, disable.
    cacheExpired String
    Enable/disable caching type-1 objects that are already expired on arrival. Valid values: enable, disable.
    defaultTtl 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.
    freshFactor 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.
    hostValidate String
    Enable/disable validating "Host:" with original server IP. Valid values: enable, disable.
    ignoreConditional String
    Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values: enable, disable.
    ignoreIeReload String
    Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values: enable, disable.
    ignoreIms String
    Enable/disable ignoring the if-modified-since (IMS) header. Valid values: enable, disable.
    ignorePnc String
    Enable/disable ignoring the pragma no-cache (PNC) header. Valid values: enable, disable.
    maxObjectSize Integer
    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.
    maxTtl 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)).
    minTtl 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)).
    negRespTime Integer
    Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
    revalPnc 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.
    alwaysRevalidate string
    Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values: enable, disable.
    cacheByDefault string
    Enable/disable caching content that lacks explicit caching policies from the server. Valid values: enable, disable.
    cacheCookie string
    Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values: enable, disable.
    cacheExpired string
    Enable/disable caching type-1 objects that are already expired on arrival. Valid values: enable, disable.
    defaultTtl 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.
    freshFactor 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.
    hostValidate string
    Enable/disable validating "Host:" with original server IP. Valid values: enable, disable.
    ignoreConditional string
    Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values: enable, disable.
    ignoreIeReload string
    Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values: enable, disable.
    ignoreIms string
    Enable/disable ignoring the if-modified-since (IMS) header. Valid values: enable, disable.
    ignorePnc string
    Enable/disable ignoring the pragma no-cache (PNC) header. Valid values: enable, disable.
    maxObjectSize number
    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.
    maxTtl 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)).
    minTtl 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)).
    negRespTime number
    Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
    revalPnc 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_default str
    Enable/disable caching content that lacks explicit caching policies from the server. Valid values: enable, disable.
    cache_cookie 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_reload str
    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_size int
    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_time int
    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.
    alwaysRevalidate String
    Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client. Valid values: enable, disable.
    cacheByDefault String
    Enable/disable caching content that lacks explicit caching policies from the server. Valid values: enable, disable.
    cacheCookie String
    Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached. Valid values: enable, disable.
    cacheExpired String
    Enable/disable caching type-1 objects that are already expired on arrival. Valid values: enable, disable.
    defaultTtl 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.
    freshFactor 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.
    hostValidate String
    Enable/disable validating "Host:" with original server IP. Valid values: enable, disable.
    ignoreConditional String
    Enable/disable controlling the behavior of cache-control HTTP 1.1 header values. Valid values: enable, disable.
    ignoreIeReload String
    Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header. Valid values: enable, disable.
    ignoreIms String
    Enable/disable ignoring the if-modified-since (IMS) header. Valid values: enable, disable.
    ignorePnc String
    Enable/disable ignoring the pragma no-cache (PNC) header. Valid values: enable, disable.
    maxObjectSize Number
    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.
    maxTtl 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)).
    minTtl 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)).
    negRespTime Number
    Time in minutes to cache negative responses or errors (0 - 4294967295, default = 0 which means negative responses are not cached).
    revalPnc 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.
    fortios logo
    Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse