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

fortios.wanopt.Contentdeliverynetworkrule

Explore with Pulumi AI

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

    Configure WAN optimization content delivery network rules.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const trname = new fortios.wanopt.Contentdeliverynetworkrule("trname", {
        category: "vcache",
        hostDomainNameSuffixes: [{
            name: "kaf.com",
        }],
        requestCacheControl: "disable",
        responseCacheControl: "disable",
        responseExpires: "enable",
        status: "enable",
        textResponseVcache: "enable",
        updateserver: "disable",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    trname = fortios.wanopt.Contentdeliverynetworkrule("trname",
        category="vcache",
        host_domain_name_suffixes=[fortios.wanopt.ContentdeliverynetworkruleHostDomainNameSuffixArgs(
            name="kaf.com",
        )],
        request_cache_control="disable",
        response_cache_control="disable",
        response_expires="enable",
        status="enable",
        text_response_vcache="enable",
        updateserver="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.NewContentdeliverynetworkrule(ctx, "trname", &wanopt.ContentdeliverynetworkruleArgs{
    			Category: pulumi.String("vcache"),
    			HostDomainNameSuffixes: wanopt.ContentdeliverynetworkruleHostDomainNameSuffixArray{
    				&wanopt.ContentdeliverynetworkruleHostDomainNameSuffixArgs{
    					Name: pulumi.String("kaf.com"),
    				},
    			},
    			RequestCacheControl:  pulumi.String("disable"),
    			ResponseCacheControl: pulumi.String("disable"),
    			ResponseExpires:      pulumi.String("enable"),
    			Status:               pulumi.String("enable"),
    			TextResponseVcache:   pulumi.String("enable"),
    			Updateserver:         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.Contentdeliverynetworkrule("trname", new()
        {
            Category = "vcache",
            HostDomainNameSuffixes = new[]
            {
                new Fortios.Wanopt.Inputs.ContentdeliverynetworkruleHostDomainNameSuffixArgs
                {
                    Name = "kaf.com",
                },
            },
            RequestCacheControl = "disable",
            ResponseCacheControl = "disable",
            ResponseExpires = "enable",
            Status = "enable",
            TextResponseVcache = "enable",
            Updateserver = "disable",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.wanopt.Contentdeliverynetworkrule;
    import com.pulumi.fortios.wanopt.ContentdeliverynetworkruleArgs;
    import com.pulumi.fortios.wanopt.inputs.ContentdeliverynetworkruleHostDomainNameSuffixArgs;
    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 Contentdeliverynetworkrule("trname", ContentdeliverynetworkruleArgs.builder()
                .category("vcache")
                .hostDomainNameSuffixes(ContentdeliverynetworkruleHostDomainNameSuffixArgs.builder()
                    .name("kaf.com")
                    .build())
                .requestCacheControl("disable")
                .responseCacheControl("disable")
                .responseExpires("enable")
                .status("enable")
                .textResponseVcache("enable")
                .updateserver("disable")
                .build());
    
        }
    }
    
    resources:
      trname:
        type: fortios:wanopt:Contentdeliverynetworkrule
        properties:
          category: vcache
          hostDomainNameSuffixes:
            - name: kaf.com
          requestCacheControl: disable
          responseCacheControl: disable
          responseExpires: enable
          status: enable
          textResponseVcache: enable
          updateserver: disable
    

    Create Contentdeliverynetworkrule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Contentdeliverynetworkrule(name: string, args?: ContentdeliverynetworkruleArgs, opts?: CustomResourceOptions);
    @overload
    def Contentdeliverynetworkrule(resource_name: str,
                                   args: Optional[ContentdeliverynetworkruleArgs] = None,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Contentdeliverynetworkrule(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   category: Optional[str] = None,
                                   comment: Optional[str] = None,
                                   dynamic_sort_subtable: Optional[str] = None,
                                   get_all_tables: Optional[str] = None,
                                   host_domain_name_suffixes: Optional[Sequence[ContentdeliverynetworkruleHostDomainNameSuffixArgs]] = None,
                                   name: Optional[str] = None,
                                   request_cache_control: Optional[str] = None,
                                   response_cache_control: Optional[str] = None,
                                   response_expires: Optional[str] = None,
                                   rules: Optional[Sequence[ContentdeliverynetworkruleRuleArgs]] = None,
                                   status: Optional[str] = None,
                                   text_response_vcache: Optional[str] = None,
                                   updateserver: Optional[str] = None,
                                   vdomparam: Optional[str] = None)
    func NewContentdeliverynetworkrule(ctx *Context, name string, args *ContentdeliverynetworkruleArgs, opts ...ResourceOption) (*Contentdeliverynetworkrule, error)
    public Contentdeliverynetworkrule(string name, ContentdeliverynetworkruleArgs? args = null, CustomResourceOptions? opts = null)
    public Contentdeliverynetworkrule(String name, ContentdeliverynetworkruleArgs args)
    public Contentdeliverynetworkrule(String name, ContentdeliverynetworkruleArgs args, CustomResourceOptions options)
    
    type: fortios:wanopt:Contentdeliverynetworkrule
    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 ContentdeliverynetworkruleArgs
    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 ContentdeliverynetworkruleArgs
    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 ContentdeliverynetworkruleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContentdeliverynetworkruleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContentdeliverynetworkruleArgs
    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 contentdeliverynetworkruleResource = new Fortios.Wanopt.Contentdeliverynetworkrule("contentdeliverynetworkruleResource", new()
    {
        Category = "string",
        Comment = "string",
        DynamicSortSubtable = "string",
        GetAllTables = "string",
        HostDomainNameSuffixes = new[]
        {
            new Fortios.Wanopt.Inputs.ContentdeliverynetworkruleHostDomainNameSuffixArgs
            {
                Name = "string",
            },
        },
        Name = "string",
        RequestCacheControl = "string",
        ResponseCacheControl = "string",
        ResponseExpires = "string",
        Rules = new[]
        {
            new Fortios.Wanopt.Inputs.ContentdeliverynetworkruleRuleArgs
            {
                ContentId = new Fortios.Wanopt.Inputs.ContentdeliverynetworkruleRuleContentIdArgs
                {
                    EndDirection = "string",
                    EndSkip = 0,
                    EndStr = "string",
                    RangeStr = "string",
                    StartDirection = "string",
                    StartSkip = 0,
                    StartStr = "string",
                    Target = "string",
                },
                MatchEntries = new[]
                {
                    new Fortios.Wanopt.Inputs.ContentdeliverynetworkruleRuleMatchEntryArgs
                    {
                        Id = 0,
                        Patterns = new[]
                        {
                            new Fortios.Wanopt.Inputs.ContentdeliverynetworkruleRuleMatchEntryPatternArgs
                            {
                                String = "string",
                            },
                        },
                        Target = "string",
                    },
                },
                MatchMode = "string",
                Name = "string",
                SkipEntries = new[]
                {
                    new Fortios.Wanopt.Inputs.ContentdeliverynetworkruleRuleSkipEntryArgs
                    {
                        Id = 0,
                        Patterns = new[]
                        {
                            new Fortios.Wanopt.Inputs.ContentdeliverynetworkruleRuleSkipEntryPatternArgs
                            {
                                String = "string",
                            },
                        },
                        Target = "string",
                    },
                },
                SkipRuleMode = "string",
            },
        },
        Status = "string",
        TextResponseVcache = "string",
        Updateserver = "string",
        Vdomparam = "string",
    });
    
    example, err := wanopt.NewContentdeliverynetworkrule(ctx, "contentdeliverynetworkruleResource", &wanopt.ContentdeliverynetworkruleArgs{
    	Category:            pulumi.String("string"),
    	Comment:             pulumi.String("string"),
    	DynamicSortSubtable: pulumi.String("string"),
    	GetAllTables:        pulumi.String("string"),
    	HostDomainNameSuffixes: wanopt.ContentdeliverynetworkruleHostDomainNameSuffixArray{
    		&wanopt.ContentdeliverynetworkruleHostDomainNameSuffixArgs{
    			Name: pulumi.String("string"),
    		},
    	},
    	Name:                 pulumi.String("string"),
    	RequestCacheControl:  pulumi.String("string"),
    	ResponseCacheControl: pulumi.String("string"),
    	ResponseExpires:      pulumi.String("string"),
    	Rules: wanopt.ContentdeliverynetworkruleRuleArray{
    		&wanopt.ContentdeliverynetworkruleRuleArgs{
    			ContentId: &wanopt.ContentdeliverynetworkruleRuleContentIdArgs{
    				EndDirection:   pulumi.String("string"),
    				EndSkip:        pulumi.Int(0),
    				EndStr:         pulumi.String("string"),
    				RangeStr:       pulumi.String("string"),
    				StartDirection: pulumi.String("string"),
    				StartSkip:      pulumi.Int(0),
    				StartStr:       pulumi.String("string"),
    				Target:         pulumi.String("string"),
    			},
    			MatchEntries: wanopt.ContentdeliverynetworkruleRuleMatchEntryArray{
    				&wanopt.ContentdeliverynetworkruleRuleMatchEntryArgs{
    					Id: pulumi.Int(0),
    					Patterns: wanopt.ContentdeliverynetworkruleRuleMatchEntryPatternArray{
    						&wanopt.ContentdeliverynetworkruleRuleMatchEntryPatternArgs{
    							String: pulumi.String("string"),
    						},
    					},
    					Target: pulumi.String("string"),
    				},
    			},
    			MatchMode: pulumi.String("string"),
    			Name:      pulumi.String("string"),
    			SkipEntries: wanopt.ContentdeliverynetworkruleRuleSkipEntryArray{
    				&wanopt.ContentdeliverynetworkruleRuleSkipEntryArgs{
    					Id: pulumi.Int(0),
    					Patterns: wanopt.ContentdeliverynetworkruleRuleSkipEntryPatternArray{
    						&wanopt.ContentdeliverynetworkruleRuleSkipEntryPatternArgs{
    							String: pulumi.String("string"),
    						},
    					},
    					Target: pulumi.String("string"),
    				},
    			},
    			SkipRuleMode: pulumi.String("string"),
    		},
    	},
    	Status:             pulumi.String("string"),
    	TextResponseVcache: pulumi.String("string"),
    	Updateserver:       pulumi.String("string"),
    	Vdomparam:          pulumi.String("string"),
    })
    
    var contentdeliverynetworkruleResource = new Contentdeliverynetworkrule("contentdeliverynetworkruleResource", ContentdeliverynetworkruleArgs.builder()
        .category("string")
        .comment("string")
        .dynamicSortSubtable("string")
        .getAllTables("string")
        .hostDomainNameSuffixes(ContentdeliverynetworkruleHostDomainNameSuffixArgs.builder()
            .name("string")
            .build())
        .name("string")
        .requestCacheControl("string")
        .responseCacheControl("string")
        .responseExpires("string")
        .rules(ContentdeliverynetworkruleRuleArgs.builder()
            .contentId(ContentdeliverynetworkruleRuleContentIdArgs.builder()
                .endDirection("string")
                .endSkip(0)
                .endStr("string")
                .rangeStr("string")
                .startDirection("string")
                .startSkip(0)
                .startStr("string")
                .target("string")
                .build())
            .matchEntries(ContentdeliverynetworkruleRuleMatchEntryArgs.builder()
                .id(0)
                .patterns(ContentdeliverynetworkruleRuleMatchEntryPatternArgs.builder()
                    .string("string")
                    .build())
                .target("string")
                .build())
            .matchMode("string")
            .name("string")
            .skipEntries(ContentdeliverynetworkruleRuleSkipEntryArgs.builder()
                .id(0)
                .patterns(ContentdeliverynetworkruleRuleSkipEntryPatternArgs.builder()
                    .string("string")
                    .build())
                .target("string")
                .build())
            .skipRuleMode("string")
            .build())
        .status("string")
        .textResponseVcache("string")
        .updateserver("string")
        .vdomparam("string")
        .build());
    
    contentdeliverynetworkrule_resource = fortios.wanopt.Contentdeliverynetworkrule("contentdeliverynetworkruleResource",
        category="string",
        comment="string",
        dynamic_sort_subtable="string",
        get_all_tables="string",
        host_domain_name_suffixes=[fortios.wanopt.ContentdeliverynetworkruleHostDomainNameSuffixArgs(
            name="string",
        )],
        name="string",
        request_cache_control="string",
        response_cache_control="string",
        response_expires="string",
        rules=[fortios.wanopt.ContentdeliverynetworkruleRuleArgs(
            content_id=fortios.wanopt.ContentdeliverynetworkruleRuleContentIdArgs(
                end_direction="string",
                end_skip=0,
                end_str="string",
                range_str="string",
                start_direction="string",
                start_skip=0,
                start_str="string",
                target="string",
            ),
            match_entries=[fortios.wanopt.ContentdeliverynetworkruleRuleMatchEntryArgs(
                id=0,
                patterns=[fortios.wanopt.ContentdeliverynetworkruleRuleMatchEntryPatternArgs(
                    string="string",
                )],
                target="string",
            )],
            match_mode="string",
            name="string",
            skip_entries=[fortios.wanopt.ContentdeliverynetworkruleRuleSkipEntryArgs(
                id=0,
                patterns=[fortios.wanopt.ContentdeliverynetworkruleRuleSkipEntryPatternArgs(
                    string="string",
                )],
                target="string",
            )],
            skip_rule_mode="string",
        )],
        status="string",
        text_response_vcache="string",
        updateserver="string",
        vdomparam="string")
    
    const contentdeliverynetworkruleResource = new fortios.wanopt.Contentdeliverynetworkrule("contentdeliverynetworkruleResource", {
        category: "string",
        comment: "string",
        dynamicSortSubtable: "string",
        getAllTables: "string",
        hostDomainNameSuffixes: [{
            name: "string",
        }],
        name: "string",
        requestCacheControl: "string",
        responseCacheControl: "string",
        responseExpires: "string",
        rules: [{
            contentId: {
                endDirection: "string",
                endSkip: 0,
                endStr: "string",
                rangeStr: "string",
                startDirection: "string",
                startSkip: 0,
                startStr: "string",
                target: "string",
            },
            matchEntries: [{
                id: 0,
                patterns: [{
                    string: "string",
                }],
                target: "string",
            }],
            matchMode: "string",
            name: "string",
            skipEntries: [{
                id: 0,
                patterns: [{
                    string: "string",
                }],
                target: "string",
            }],
            skipRuleMode: "string",
        }],
        status: "string",
        textResponseVcache: "string",
        updateserver: "string",
        vdomparam: "string",
    });
    
    type: fortios:wanopt:Contentdeliverynetworkrule
    properties:
        category: string
        comment: string
        dynamicSortSubtable: string
        getAllTables: string
        hostDomainNameSuffixes:
            - name: string
        name: string
        requestCacheControl: string
        responseCacheControl: string
        responseExpires: string
        rules:
            - contentId:
                endDirection: string
                endSkip: 0
                endStr: string
                rangeStr: string
                startDirection: string
                startSkip: 0
                startStr: string
                target: string
              matchEntries:
                - id: 0
                  patterns:
                    - string: string
                  target: string
              matchMode: string
              name: string
              skipEntries:
                - id: 0
                  patterns:
                    - string: string
                  target: string
              skipRuleMode: string
        status: string
        textResponseVcache: string
        updateserver: string
        vdomparam: string
    

    Contentdeliverynetworkrule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Contentdeliverynetworkrule resource accepts the following input properties:

    Category string
    Content delivery network rule category. Valid values: vcache, youtube.
    Comment string
    Comment about this CDN-rule.
    DynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    HostDomainNameSuffixes List<Pulumiverse.Fortios.Wanopt.Inputs.ContentdeliverynetworkruleHostDomainNameSuffix>
    Suffix portion of the fully qualified domain name (eg. fortinet.com in "www.fortinet.com"). The structure of host_domain_name_suffix block is documented below.
    Name string
    Name of table.
    RequestCacheControl string
    Enable/disable HTTP request cache control. Valid values: enable, disable.
    ResponseCacheControl string
    Enable/disable HTTP response cache control. Valid values: enable, disable.
    ResponseExpires string
    Enable/disable HTTP response cache expires. Valid values: enable, disable.
    Rules List<Pulumiverse.Fortios.Wanopt.Inputs.ContentdeliverynetworkruleRule>
    WAN optimization content delivery network rule entries. The structure of rules block is documented below.
    Status string
    Enable/disable WAN optimization content delivery network rules. Valid values: enable, disable.
    TextResponseVcache string
    Enable/disable caching of text responses. Valid values: enable, disable.
    Updateserver string
    Enable/disable update server. 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.
    Category string
    Content delivery network rule category. Valid values: vcache, youtube.
    Comment string
    Comment about this CDN-rule.
    DynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    HostDomainNameSuffixes []ContentdeliverynetworkruleHostDomainNameSuffixArgs
    Suffix portion of the fully qualified domain name (eg. fortinet.com in "www.fortinet.com"). The structure of host_domain_name_suffix block is documented below.
    Name string
    Name of table.
    RequestCacheControl string
    Enable/disable HTTP request cache control. Valid values: enable, disable.
    ResponseCacheControl string
    Enable/disable HTTP response cache control. Valid values: enable, disable.
    ResponseExpires string
    Enable/disable HTTP response cache expires. Valid values: enable, disable.
    Rules []ContentdeliverynetworkruleRuleArgs
    WAN optimization content delivery network rule entries. The structure of rules block is documented below.
    Status string
    Enable/disable WAN optimization content delivery network rules. Valid values: enable, disable.
    TextResponseVcache string
    Enable/disable caching of text responses. Valid values: enable, disable.
    Updateserver string
    Enable/disable update server. 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.
    category String
    Content delivery network rule category. Valid values: vcache, youtube.
    comment String
    Comment about this CDN-rule.
    dynamicSortSubtable String
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    hostDomainNameSuffixes List<ContentdeliverynetworkruleHostDomainNameSuffix>
    Suffix portion of the fully qualified domain name (eg. fortinet.com in "www.fortinet.com"). The structure of host_domain_name_suffix block is documented below.
    name String
    Name of table.
    requestCacheControl String
    Enable/disable HTTP request cache control. Valid values: enable, disable.
    responseCacheControl String
    Enable/disable HTTP response cache control. Valid values: enable, disable.
    responseExpires String
    Enable/disable HTTP response cache expires. Valid values: enable, disable.
    rules List<ContentdeliverynetworkruleRule>
    WAN optimization content delivery network rule entries. The structure of rules block is documented below.
    status String
    Enable/disable WAN optimization content delivery network rules. Valid values: enable, disable.
    textResponseVcache String
    Enable/disable caching of text responses. Valid values: enable, disable.
    updateserver String
    Enable/disable update server. 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.
    category string
    Content delivery network rule category. Valid values: vcache, youtube.
    comment string
    Comment about this CDN-rule.
    dynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    getAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    hostDomainNameSuffixes ContentdeliverynetworkruleHostDomainNameSuffix[]
    Suffix portion of the fully qualified domain name (eg. fortinet.com in "www.fortinet.com"). The structure of host_domain_name_suffix block is documented below.
    name string
    Name of table.
    requestCacheControl string
    Enable/disable HTTP request cache control. Valid values: enable, disable.
    responseCacheControl string
    Enable/disable HTTP response cache control. Valid values: enable, disable.
    responseExpires string
    Enable/disable HTTP response cache expires. Valid values: enable, disable.
    rules ContentdeliverynetworkruleRule[]
    WAN optimization content delivery network rule entries. The structure of rules block is documented below.
    status string
    Enable/disable WAN optimization content delivery network rules. Valid values: enable, disable.
    textResponseVcache string
    Enable/disable caching of text responses. Valid values: enable, disable.
    updateserver string
    Enable/disable update server. 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.
    category str
    Content delivery network rule category. Valid values: vcache, youtube.
    comment str
    Comment about this CDN-rule.
    dynamic_sort_subtable str
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    get_all_tables str
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    host_domain_name_suffixes Sequence[ContentdeliverynetworkruleHostDomainNameSuffixArgs]
    Suffix portion of the fully qualified domain name (eg. fortinet.com in "www.fortinet.com"). The structure of host_domain_name_suffix block is documented below.
    name str
    Name of table.
    request_cache_control str
    Enable/disable HTTP request cache control. Valid values: enable, disable.
    response_cache_control str
    Enable/disable HTTP response cache control. Valid values: enable, disable.
    response_expires str
    Enable/disable HTTP response cache expires. Valid values: enable, disable.
    rules Sequence[ContentdeliverynetworkruleRuleArgs]
    WAN optimization content delivery network rule entries. The structure of rules block is documented below.
    status str
    Enable/disable WAN optimization content delivery network rules. Valid values: enable, disable.
    text_response_vcache str
    Enable/disable caching of text responses. Valid values: enable, disable.
    updateserver str
    Enable/disable update server. 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.
    category String
    Content delivery network rule category. Valid values: vcache, youtube.
    comment String
    Comment about this CDN-rule.
    dynamicSortSubtable String
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    hostDomainNameSuffixes List<Property Map>
    Suffix portion of the fully qualified domain name (eg. fortinet.com in "www.fortinet.com"). The structure of host_domain_name_suffix block is documented below.
    name String
    Name of table.
    requestCacheControl String
    Enable/disable HTTP request cache control. Valid values: enable, disable.
    responseCacheControl String
    Enable/disable HTTP response cache control. Valid values: enable, disable.
    responseExpires String
    Enable/disable HTTP response cache expires. Valid values: enable, disable.
    rules List<Property Map>
    WAN optimization content delivery network rule entries. The structure of rules block is documented below.
    status String
    Enable/disable WAN optimization content delivery network rules. Valid values: enable, disable.
    textResponseVcache String
    Enable/disable caching of text responses. Valid values: enable, disable.
    updateserver String
    Enable/disable update server. 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 Contentdeliverynetworkrule 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 Contentdeliverynetworkrule Resource

    Get an existing Contentdeliverynetworkrule 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?: ContentdeliverynetworkruleState, opts?: CustomResourceOptions): Contentdeliverynetworkrule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            category: Optional[str] = None,
            comment: Optional[str] = None,
            dynamic_sort_subtable: Optional[str] = None,
            get_all_tables: Optional[str] = None,
            host_domain_name_suffixes: Optional[Sequence[ContentdeliverynetworkruleHostDomainNameSuffixArgs]] = None,
            name: Optional[str] = None,
            request_cache_control: Optional[str] = None,
            response_cache_control: Optional[str] = None,
            response_expires: Optional[str] = None,
            rules: Optional[Sequence[ContentdeliverynetworkruleRuleArgs]] = None,
            status: Optional[str] = None,
            text_response_vcache: Optional[str] = None,
            updateserver: Optional[str] = None,
            vdomparam: Optional[str] = None) -> Contentdeliverynetworkrule
    func GetContentdeliverynetworkrule(ctx *Context, name string, id IDInput, state *ContentdeliverynetworkruleState, opts ...ResourceOption) (*Contentdeliverynetworkrule, error)
    public static Contentdeliverynetworkrule Get(string name, Input<string> id, ContentdeliverynetworkruleState? state, CustomResourceOptions? opts = null)
    public static Contentdeliverynetworkrule get(String name, Output<String> id, ContentdeliverynetworkruleState 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:
    Category string
    Content delivery network rule category. Valid values: vcache, youtube.
    Comment string
    Comment about this CDN-rule.
    DynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    HostDomainNameSuffixes List<Pulumiverse.Fortios.Wanopt.Inputs.ContentdeliverynetworkruleHostDomainNameSuffix>
    Suffix portion of the fully qualified domain name (eg. fortinet.com in "www.fortinet.com"). The structure of host_domain_name_suffix block is documented below.
    Name string
    Name of table.
    RequestCacheControl string
    Enable/disable HTTP request cache control. Valid values: enable, disable.
    ResponseCacheControl string
    Enable/disable HTTP response cache control. Valid values: enable, disable.
    ResponseExpires string
    Enable/disable HTTP response cache expires. Valid values: enable, disable.
    Rules List<Pulumiverse.Fortios.Wanopt.Inputs.ContentdeliverynetworkruleRule>
    WAN optimization content delivery network rule entries. The structure of rules block is documented below.
    Status string
    Enable/disable WAN optimization content delivery network rules. Valid values: enable, disable.
    TextResponseVcache string
    Enable/disable caching of text responses. Valid values: enable, disable.
    Updateserver string
    Enable/disable update server. 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.
    Category string
    Content delivery network rule category. Valid values: vcache, youtube.
    Comment string
    Comment about this CDN-rule.
    DynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    HostDomainNameSuffixes []ContentdeliverynetworkruleHostDomainNameSuffixArgs
    Suffix portion of the fully qualified domain name (eg. fortinet.com in "www.fortinet.com"). The structure of host_domain_name_suffix block is documented below.
    Name string
    Name of table.
    RequestCacheControl string
    Enable/disable HTTP request cache control. Valid values: enable, disable.
    ResponseCacheControl string
    Enable/disable HTTP response cache control. Valid values: enable, disable.
    ResponseExpires string
    Enable/disable HTTP response cache expires. Valid values: enable, disable.
    Rules []ContentdeliverynetworkruleRuleArgs
    WAN optimization content delivery network rule entries. The structure of rules block is documented below.
    Status string
    Enable/disable WAN optimization content delivery network rules. Valid values: enable, disable.
    TextResponseVcache string
    Enable/disable caching of text responses. Valid values: enable, disable.
    Updateserver string
    Enable/disable update server. 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.
    category String
    Content delivery network rule category. Valid values: vcache, youtube.
    comment String
    Comment about this CDN-rule.
    dynamicSortSubtable String
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    hostDomainNameSuffixes List<ContentdeliverynetworkruleHostDomainNameSuffix>
    Suffix portion of the fully qualified domain name (eg. fortinet.com in "www.fortinet.com"). The structure of host_domain_name_suffix block is documented below.
    name String
    Name of table.
    requestCacheControl String
    Enable/disable HTTP request cache control. Valid values: enable, disable.
    responseCacheControl String
    Enable/disable HTTP response cache control. Valid values: enable, disable.
    responseExpires String
    Enable/disable HTTP response cache expires. Valid values: enable, disable.
    rules List<ContentdeliverynetworkruleRule>
    WAN optimization content delivery network rule entries. The structure of rules block is documented below.
    status String
    Enable/disable WAN optimization content delivery network rules. Valid values: enable, disable.
    textResponseVcache String
    Enable/disable caching of text responses. Valid values: enable, disable.
    updateserver String
    Enable/disable update server. 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.
    category string
    Content delivery network rule category. Valid values: vcache, youtube.
    comment string
    Comment about this CDN-rule.
    dynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    getAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    hostDomainNameSuffixes ContentdeliverynetworkruleHostDomainNameSuffix[]
    Suffix portion of the fully qualified domain name (eg. fortinet.com in "www.fortinet.com"). The structure of host_domain_name_suffix block is documented below.
    name string
    Name of table.
    requestCacheControl string
    Enable/disable HTTP request cache control. Valid values: enable, disable.
    responseCacheControl string
    Enable/disable HTTP response cache control. Valid values: enable, disable.
    responseExpires string
    Enable/disable HTTP response cache expires. Valid values: enable, disable.
    rules ContentdeliverynetworkruleRule[]
    WAN optimization content delivery network rule entries. The structure of rules block is documented below.
    status string
    Enable/disable WAN optimization content delivery network rules. Valid values: enable, disable.
    textResponseVcache string
    Enable/disable caching of text responses. Valid values: enable, disable.
    updateserver string
    Enable/disable update server. 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.
    category str
    Content delivery network rule category. Valid values: vcache, youtube.
    comment str
    Comment about this CDN-rule.
    dynamic_sort_subtable str
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    get_all_tables str
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    host_domain_name_suffixes Sequence[ContentdeliverynetworkruleHostDomainNameSuffixArgs]
    Suffix portion of the fully qualified domain name (eg. fortinet.com in "www.fortinet.com"). The structure of host_domain_name_suffix block is documented below.
    name str
    Name of table.
    request_cache_control str
    Enable/disable HTTP request cache control. Valid values: enable, disable.
    response_cache_control str
    Enable/disable HTTP response cache control. Valid values: enable, disable.
    response_expires str
    Enable/disable HTTP response cache expires. Valid values: enable, disable.
    rules Sequence[ContentdeliverynetworkruleRuleArgs]
    WAN optimization content delivery network rule entries. The structure of rules block is documented below.
    status str
    Enable/disable WAN optimization content delivery network rules. Valid values: enable, disable.
    text_response_vcache str
    Enable/disable caching of text responses. Valid values: enable, disable.
    updateserver str
    Enable/disable update server. 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.
    category String
    Content delivery network rule category. Valid values: vcache, youtube.
    comment String
    Comment about this CDN-rule.
    dynamicSortSubtable String
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    hostDomainNameSuffixes List<Property Map>
    Suffix portion of the fully qualified domain name (eg. fortinet.com in "www.fortinet.com"). The structure of host_domain_name_suffix block is documented below.
    name String
    Name of table.
    requestCacheControl String
    Enable/disable HTTP request cache control. Valid values: enable, disable.
    responseCacheControl String
    Enable/disable HTTP response cache control. Valid values: enable, disable.
    responseExpires String
    Enable/disable HTTP response cache expires. Valid values: enable, disable.
    rules List<Property Map>
    WAN optimization content delivery network rule entries. The structure of rules block is documented below.
    status String
    Enable/disable WAN optimization content delivery network rules. Valid values: enable, disable.
    textResponseVcache String
    Enable/disable caching of text responses. Valid values: enable, disable.
    updateserver String
    Enable/disable update server. 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.

    Supporting Types

    ContentdeliverynetworkruleHostDomainNameSuffix, ContentdeliverynetworkruleHostDomainNameSuffixArgs

    Name string
    Suffix portion of the fully qualified domain name.
    Name string
    Suffix portion of the fully qualified domain name.
    name String
    Suffix portion of the fully qualified domain name.
    name string
    Suffix portion of the fully qualified domain name.
    name str
    Suffix portion of the fully qualified domain name.
    name String
    Suffix portion of the fully qualified domain name.

    ContentdeliverynetworkruleRule, ContentdeliverynetworkruleRuleArgs

    ContentId Pulumiverse.Fortios.Wanopt.Inputs.ContentdeliverynetworkruleRuleContentId
    Content ID settings. The structure of content_id block is documented below.
    MatchEntries List<Pulumiverse.Fortios.Wanopt.Inputs.ContentdeliverynetworkruleRuleMatchEntry>
    List of entries to match. The structure of match_entries block is documented below.
    MatchMode string
    Match criteria for collecting content ID. Valid values: all, any.
    Name string
    WAN optimization content delivery network rule name.
    SkipEntries List<Pulumiverse.Fortios.Wanopt.Inputs.ContentdeliverynetworkruleRuleSkipEntry>
    List of entries to skip. The structure of skip_entries block is documented below.
    SkipRuleMode string
    Skip mode when evaluating skip-rules. Valid values: all, any.
    ContentId ContentdeliverynetworkruleRuleContentId
    Content ID settings. The structure of content_id block is documented below.
    MatchEntries []ContentdeliverynetworkruleRuleMatchEntry
    List of entries to match. The structure of match_entries block is documented below.
    MatchMode string
    Match criteria for collecting content ID. Valid values: all, any.
    Name string
    WAN optimization content delivery network rule name.
    SkipEntries []ContentdeliverynetworkruleRuleSkipEntry
    List of entries to skip. The structure of skip_entries block is documented below.
    SkipRuleMode string
    Skip mode when evaluating skip-rules. Valid values: all, any.
    contentId ContentdeliverynetworkruleRuleContentId
    Content ID settings. The structure of content_id block is documented below.
    matchEntries List<ContentdeliverynetworkruleRuleMatchEntry>
    List of entries to match. The structure of match_entries block is documented below.
    matchMode String
    Match criteria for collecting content ID. Valid values: all, any.
    name String
    WAN optimization content delivery network rule name.
    skipEntries List<ContentdeliverynetworkruleRuleSkipEntry>
    List of entries to skip. The structure of skip_entries block is documented below.
    skipRuleMode String
    Skip mode when evaluating skip-rules. Valid values: all, any.
    contentId ContentdeliverynetworkruleRuleContentId
    Content ID settings. The structure of content_id block is documented below.
    matchEntries ContentdeliverynetworkruleRuleMatchEntry[]
    List of entries to match. The structure of match_entries block is documented below.
    matchMode string
    Match criteria for collecting content ID. Valid values: all, any.
    name string
    WAN optimization content delivery network rule name.
    skipEntries ContentdeliverynetworkruleRuleSkipEntry[]
    List of entries to skip. The structure of skip_entries block is documented below.
    skipRuleMode string
    Skip mode when evaluating skip-rules. Valid values: all, any.
    content_id ContentdeliverynetworkruleRuleContentId
    Content ID settings. The structure of content_id block is documented below.
    match_entries Sequence[ContentdeliverynetworkruleRuleMatchEntry]
    List of entries to match. The structure of match_entries block is documented below.
    match_mode str
    Match criteria for collecting content ID. Valid values: all, any.
    name str
    WAN optimization content delivery network rule name.
    skip_entries Sequence[ContentdeliverynetworkruleRuleSkipEntry]
    List of entries to skip. The structure of skip_entries block is documented below.
    skip_rule_mode str
    Skip mode when evaluating skip-rules. Valid values: all, any.
    contentId Property Map
    Content ID settings. The structure of content_id block is documented below.
    matchEntries List<Property Map>
    List of entries to match. The structure of match_entries block is documented below.
    matchMode String
    Match criteria for collecting content ID. Valid values: all, any.
    name String
    WAN optimization content delivery network rule name.
    skipEntries List<Property Map>
    List of entries to skip. The structure of skip_entries block is documented below.
    skipRuleMode String
    Skip mode when evaluating skip-rules. Valid values: all, any.

    ContentdeliverynetworkruleRuleContentId, ContentdeliverynetworkruleRuleContentIdArgs

    EndDirection string
    Search direction from end-str match. Valid values: forward, backward.
    EndSkip int
    Number of characters in URL to skip after end-str has been matched.
    EndStr string
    String from which to end search.
    RangeStr string
    Name of content ID within the start string and end string.
    StartDirection string
    Search direction from start-str match. Valid values: forward, backward.
    StartSkip int
    Number of characters in URL to skip after start-str has been matched.
    StartStr string
    String from which to start search.
    Target string
    Option in HTTP header or URL parameter to match. Valid values: path, parameter, referrer, youtube-map, youtube-id, youku-id, hls-manifest, dash-manifest, hls-fragment, dash-fragment.
    EndDirection string
    Search direction from end-str match. Valid values: forward, backward.
    EndSkip int
    Number of characters in URL to skip after end-str has been matched.
    EndStr string
    String from which to end search.
    RangeStr string
    Name of content ID within the start string and end string.
    StartDirection string
    Search direction from start-str match. Valid values: forward, backward.
    StartSkip int
    Number of characters in URL to skip after start-str has been matched.
    StartStr string
    String from which to start search.
    Target string
    Option in HTTP header or URL parameter to match. Valid values: path, parameter, referrer, youtube-map, youtube-id, youku-id, hls-manifest, dash-manifest, hls-fragment, dash-fragment.
    endDirection String
    Search direction from end-str match. Valid values: forward, backward.
    endSkip Integer
    Number of characters in URL to skip after end-str has been matched.
    endStr String
    String from which to end search.
    rangeStr String
    Name of content ID within the start string and end string.
    startDirection String
    Search direction from start-str match. Valid values: forward, backward.
    startSkip Integer
    Number of characters in URL to skip after start-str has been matched.
    startStr String
    String from which to start search.
    target String
    Option in HTTP header or URL parameter to match. Valid values: path, parameter, referrer, youtube-map, youtube-id, youku-id, hls-manifest, dash-manifest, hls-fragment, dash-fragment.
    endDirection string
    Search direction from end-str match. Valid values: forward, backward.
    endSkip number
    Number of characters in URL to skip after end-str has been matched.
    endStr string
    String from which to end search.
    rangeStr string
    Name of content ID within the start string and end string.
    startDirection string
    Search direction from start-str match. Valid values: forward, backward.
    startSkip number
    Number of characters in URL to skip after start-str has been matched.
    startStr string
    String from which to start search.
    target string
    Option in HTTP header or URL parameter to match. Valid values: path, parameter, referrer, youtube-map, youtube-id, youku-id, hls-manifest, dash-manifest, hls-fragment, dash-fragment.
    end_direction str
    Search direction from end-str match. Valid values: forward, backward.
    end_skip int
    Number of characters in URL to skip after end-str has been matched.
    end_str str
    String from which to end search.
    range_str str
    Name of content ID within the start string and end string.
    start_direction str
    Search direction from start-str match. Valid values: forward, backward.
    start_skip int
    Number of characters in URL to skip after start-str has been matched.
    start_str str
    String from which to start search.
    target str
    Option in HTTP header or URL parameter to match. Valid values: path, parameter, referrer, youtube-map, youtube-id, youku-id, hls-manifest, dash-manifest, hls-fragment, dash-fragment.
    endDirection String
    Search direction from end-str match. Valid values: forward, backward.
    endSkip Number
    Number of characters in URL to skip after end-str has been matched.
    endStr String
    String from which to end search.
    rangeStr String
    Name of content ID within the start string and end string.
    startDirection String
    Search direction from start-str match. Valid values: forward, backward.
    startSkip Number
    Number of characters in URL to skip after start-str has been matched.
    startStr String
    String from which to start search.
    target String
    Option in HTTP header or URL parameter to match. Valid values: path, parameter, referrer, youtube-map, youtube-id, youku-id, hls-manifest, dash-manifest, hls-fragment, dash-fragment.

    ContentdeliverynetworkruleRuleMatchEntry, ContentdeliverynetworkruleRuleMatchEntryArgs

    Id int
    Rule ID.
    Patterns List<Pulumiverse.Fortios.Wanopt.Inputs.ContentdeliverynetworkruleRuleMatchEntryPattern>
    Pattern string for matching target (Referrer or URL pattern, eg. "a", "ac", "a", "ace", and ""). The structure of pattern block is documented below.
    Target string
    Option in HTTP header or URL parameter to match. Valid values: path, parameter, referrer, youtube-map, youtube-id, youku-id.
    Id int
    Rule ID.
    Patterns []ContentdeliverynetworkruleRuleMatchEntryPattern
    Pattern string for matching target (Referrer or URL pattern, eg. "a", "ac", "a", "ace", and ""). The structure of pattern block is documented below.
    Target string
    Option in HTTP header or URL parameter to match. Valid values: path, parameter, referrer, youtube-map, youtube-id, youku-id.
    id Integer
    Rule ID.
    patterns List<ContentdeliverynetworkruleRuleMatchEntryPattern>
    Pattern string for matching target (Referrer or URL pattern, eg. "a", "ac", "a", "ace", and ""). The structure of pattern block is documented below.
    target String
    Option in HTTP header or URL parameter to match. Valid values: path, parameter, referrer, youtube-map, youtube-id, youku-id.
    id number
    Rule ID.
    patterns ContentdeliverynetworkruleRuleMatchEntryPattern[]
    Pattern string for matching target (Referrer or URL pattern, eg. "a", "ac", "a", "ace", and ""). The structure of pattern block is documented below.
    target string
    Option in HTTP header or URL parameter to match. Valid values: path, parameter, referrer, youtube-map, youtube-id, youku-id.
    id int
    Rule ID.
    patterns Sequence[ContentdeliverynetworkruleRuleMatchEntryPattern]
    Pattern string for matching target (Referrer or URL pattern, eg. "a", "ac", "a", "ace", and ""). The structure of pattern block is documented below.
    target str
    Option in HTTP header or URL parameter to match. Valid values: path, parameter, referrer, youtube-map, youtube-id, youku-id.
    id Number
    Rule ID.
    patterns List<Property Map>
    Pattern string for matching target (Referrer or URL pattern, eg. "a", "ac", "a", "ace", and ""). The structure of pattern block is documented below.
    target String
    Option in HTTP header or URL parameter to match. Valid values: path, parameter, referrer, youtube-map, youtube-id, youku-id.

    ContentdeliverynetworkruleRuleMatchEntryPattern, ContentdeliverynetworkruleRuleMatchEntryPatternArgs

    String string
    Pattern strings.
    String string
    Pattern strings.
    string String
    Pattern strings.
    string string
    Pattern strings.
    string str
    Pattern strings.
    string String
    Pattern strings.

    ContentdeliverynetworkruleRuleSkipEntry, ContentdeliverynetworkruleRuleSkipEntryArgs

    Id int
    Rule ID.
    Patterns List<Pulumiverse.Fortios.Wanopt.Inputs.ContentdeliverynetworkruleRuleSkipEntryPattern>
    Pattern string for matching target (Referrer or URL pattern, eg. "a", "ac", "a", "ace", and ""). The structure of pattern block is documented below.
    Target string
    Option in HTTP header or URL parameter to match. Valid values: path, parameter, referrer, youtube-map, youtube-id, youku-id.
    Id int
    Rule ID.
    Patterns []ContentdeliverynetworkruleRuleSkipEntryPattern
    Pattern string for matching target (Referrer or URL pattern, eg. "a", "ac", "a", "ace", and ""). The structure of pattern block is documented below.
    Target string
    Option in HTTP header or URL parameter to match. Valid values: path, parameter, referrer, youtube-map, youtube-id, youku-id.
    id Integer
    Rule ID.
    patterns List<ContentdeliverynetworkruleRuleSkipEntryPattern>
    Pattern string for matching target (Referrer or URL pattern, eg. "a", "ac", "a", "ace", and ""). The structure of pattern block is documented below.
    target String
    Option in HTTP header or URL parameter to match. Valid values: path, parameter, referrer, youtube-map, youtube-id, youku-id.
    id number
    Rule ID.
    patterns ContentdeliverynetworkruleRuleSkipEntryPattern[]
    Pattern string for matching target (Referrer or URL pattern, eg. "a", "ac", "a", "ace", and ""). The structure of pattern block is documented below.
    target string
    Option in HTTP header or URL parameter to match. Valid values: path, parameter, referrer, youtube-map, youtube-id, youku-id.
    id int
    Rule ID.
    patterns Sequence[ContentdeliverynetworkruleRuleSkipEntryPattern]
    Pattern string for matching target (Referrer or URL pattern, eg. "a", "ac", "a", "ace", and ""). The structure of pattern block is documented below.
    target str
    Option in HTTP header or URL parameter to match. Valid values: path, parameter, referrer, youtube-map, youtube-id, youku-id.
    id Number
    Rule ID.
    patterns List<Property Map>
    Pattern string for matching target (Referrer or URL pattern, eg. "a", "ac", "a", "ace", and ""). The structure of pattern block is documented below.
    target String
    Option in HTTP header or URL parameter to match. Valid values: path, parameter, referrer, youtube-map, youtube-id, youku-id.

    ContentdeliverynetworkruleRuleSkipEntryPattern, ContentdeliverynetworkruleRuleSkipEntryPatternArgs

    String string
    Pattern strings.
    String string
    Pattern strings.
    string String
    Pattern strings.
    string string
    Pattern strings.
    string str
    Pattern strings.
    string String
    Pattern strings.

    Import

    Wanopt ContentDeliveryNetworkRule can be imported using any of these accepted formats:

    $ pulumi import fortios:wanopt/contentdeliverynetworkrule:Contentdeliverynetworkrule labelname {{name}}
    

    If you do not want to import arguments of block:

    $ export “FORTIOS_IMPORT_TABLE”=“false”

    $ pulumi import fortios:wanopt/contentdeliverynetworkrule:Contentdeliverynetworkrule labelname {{name}}
    

    $ 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