fortios.wanopt.Cacheservice
Explore with Pulumi AI
Designate cache-service for wan-optimization and webcache.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const trname = new fortios.wanopt.Cacheservice("trname", {
acceptableConnections: "any",
collaboration: "disable",
deviceId: "default_dev_id",
preferScenario: "balance",
});
import pulumi
import pulumiverse_fortios as fortios
trname = fortios.wanopt.Cacheservice("trname",
acceptable_connections="any",
collaboration="disable",
device_id="default_dev_id",
prefer_scenario="balance")
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.NewCacheservice(ctx, "trname", &wanopt.CacheserviceArgs{
AcceptableConnections: pulumi.String("any"),
Collaboration: pulumi.String("disable"),
DeviceId: pulumi.String("default_dev_id"),
PreferScenario: pulumi.String("balance"),
})
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.Cacheservice("trname", new()
{
AcceptableConnections = "any",
Collaboration = "disable",
DeviceId = "default_dev_id",
PreferScenario = "balance",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.wanopt.Cacheservice;
import com.pulumi.fortios.wanopt.CacheserviceArgs;
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 Cacheservice("trname", CacheserviceArgs.builder()
.acceptableConnections("any")
.collaboration("disable")
.deviceId("default_dev_id")
.preferScenario("balance")
.build());
}
}
resources:
trname:
type: fortios:wanopt:Cacheservice
properties:
acceptableConnections: any
collaboration: disable
deviceId: default_dev_id
preferScenario: balance
Create Cacheservice Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Cacheservice(name: string, args?: CacheserviceArgs, opts?: CustomResourceOptions);
@overload
def Cacheservice(resource_name: str,
args: Optional[CacheserviceArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Cacheservice(resource_name: str,
opts: Optional[ResourceOptions] = None,
acceptable_connections: Optional[str] = None,
collaboration: Optional[str] = None,
device_id: Optional[str] = None,
dst_peers: Optional[Sequence[CacheserviceDstPeerArgs]] = None,
dynamic_sort_subtable: Optional[str] = None,
get_all_tables: Optional[str] = None,
prefer_scenario: Optional[str] = None,
src_peers: Optional[Sequence[CacheserviceSrcPeerArgs]] = None,
vdomparam: Optional[str] = None)
func NewCacheservice(ctx *Context, name string, args *CacheserviceArgs, opts ...ResourceOption) (*Cacheservice, error)
public Cacheservice(string name, CacheserviceArgs? args = null, CustomResourceOptions? opts = null)
public Cacheservice(String name, CacheserviceArgs args)
public Cacheservice(String name, CacheserviceArgs args, CustomResourceOptions options)
type: fortios:wanopt:Cacheservice
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 CacheserviceArgs
- 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 CacheserviceArgs
- 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 CacheserviceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CacheserviceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CacheserviceArgs
- 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 cacheserviceResource = new Fortios.Wanopt.Cacheservice("cacheserviceResource", new()
{
AcceptableConnections = "string",
Collaboration = "string",
DeviceId = "string",
DstPeers = new[]
{
new Fortios.Wanopt.Inputs.CacheserviceDstPeerArgs
{
AuthType = 0,
DeviceId = "string",
EncodeType = 0,
Ip = "string",
Priority = 0,
},
},
DynamicSortSubtable = "string",
GetAllTables = "string",
PreferScenario = "string",
SrcPeers = new[]
{
new Fortios.Wanopt.Inputs.CacheserviceSrcPeerArgs
{
AuthType = 0,
DeviceId = "string",
EncodeType = 0,
Ip = "string",
Priority = 0,
},
},
Vdomparam = "string",
});
example, err := wanopt.NewCacheservice(ctx, "cacheserviceResource", &wanopt.CacheserviceArgs{
AcceptableConnections: pulumi.String("string"),
Collaboration: pulumi.String("string"),
DeviceId: pulumi.String("string"),
DstPeers: wanopt.CacheserviceDstPeerArray{
&wanopt.CacheserviceDstPeerArgs{
AuthType: pulumi.Int(0),
DeviceId: pulumi.String("string"),
EncodeType: pulumi.Int(0),
Ip: pulumi.String("string"),
Priority: pulumi.Int(0),
},
},
DynamicSortSubtable: pulumi.String("string"),
GetAllTables: pulumi.String("string"),
PreferScenario: pulumi.String("string"),
SrcPeers: wanopt.CacheserviceSrcPeerArray{
&wanopt.CacheserviceSrcPeerArgs{
AuthType: pulumi.Int(0),
DeviceId: pulumi.String("string"),
EncodeType: pulumi.Int(0),
Ip: pulumi.String("string"),
Priority: pulumi.Int(0),
},
},
Vdomparam: pulumi.String("string"),
})
var cacheserviceResource = new Cacheservice("cacheserviceResource", CacheserviceArgs.builder()
.acceptableConnections("string")
.collaboration("string")
.deviceId("string")
.dstPeers(CacheserviceDstPeerArgs.builder()
.authType(0)
.deviceId("string")
.encodeType(0)
.ip("string")
.priority(0)
.build())
.dynamicSortSubtable("string")
.getAllTables("string")
.preferScenario("string")
.srcPeers(CacheserviceSrcPeerArgs.builder()
.authType(0)
.deviceId("string")
.encodeType(0)
.ip("string")
.priority(0)
.build())
.vdomparam("string")
.build());
cacheservice_resource = fortios.wanopt.Cacheservice("cacheserviceResource",
acceptable_connections="string",
collaboration="string",
device_id="string",
dst_peers=[fortios.wanopt.CacheserviceDstPeerArgs(
auth_type=0,
device_id="string",
encode_type=0,
ip="string",
priority=0,
)],
dynamic_sort_subtable="string",
get_all_tables="string",
prefer_scenario="string",
src_peers=[fortios.wanopt.CacheserviceSrcPeerArgs(
auth_type=0,
device_id="string",
encode_type=0,
ip="string",
priority=0,
)],
vdomparam="string")
const cacheserviceResource = new fortios.wanopt.Cacheservice("cacheserviceResource", {
acceptableConnections: "string",
collaboration: "string",
deviceId: "string",
dstPeers: [{
authType: 0,
deviceId: "string",
encodeType: 0,
ip: "string",
priority: 0,
}],
dynamicSortSubtable: "string",
getAllTables: "string",
preferScenario: "string",
srcPeers: [{
authType: 0,
deviceId: "string",
encodeType: 0,
ip: "string",
priority: 0,
}],
vdomparam: "string",
});
type: fortios:wanopt:Cacheservice
properties:
acceptableConnections: string
collaboration: string
deviceId: string
dstPeers:
- authType: 0
deviceId: string
encodeType: 0
ip: string
priority: 0
dynamicSortSubtable: string
getAllTables: string
preferScenario: string
srcPeers:
- authType: 0
deviceId: string
encodeType: 0
ip: string
priority: 0
vdomparam: string
Cacheservice 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 Cacheservice resource accepts the following input properties:
- Acceptable
Connections string - Set strategy when accepting cache collaboration connection. Valid values:
any
,peers
. - Collaboration string
- Enable/disable cache-collaboration between cache-service clusters. Valid values:
enable
,disable
. - Device
Id string - Set identifier for this cache device.
- Dst
Peers List<Pulumiverse.Fortios. Wanopt. Inputs. Cacheservice Dst Peer> - Modify cache-service destination peer list. The structure of
dst_peer
block is documented below. - Dynamic
Sort stringSubtable - 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 stringTables - 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.
- Prefer
Scenario string - Set the preferred cache behavior towards the balance between latency and hit-ratio. Valid values:
balance
,prefer-speed
,prefer-cache
. - Src
Peers List<Pulumiverse.Fortios. Wanopt. Inputs. Cacheservice Src Peer> - Modify cache-service source peer list. The structure of
src_peer
block is documented below. - 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.
- Acceptable
Connections string - Set strategy when accepting cache collaboration connection. Valid values:
any
,peers
. - Collaboration string
- Enable/disable cache-collaboration between cache-service clusters. Valid values:
enable
,disable
. - Device
Id string - Set identifier for this cache device.
- Dst
Peers []CacheserviceDst Peer Args - Modify cache-service destination peer list. The structure of
dst_peer
block is documented below. - Dynamic
Sort stringSubtable - 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 stringTables - 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.
- Prefer
Scenario string - Set the preferred cache behavior towards the balance between latency and hit-ratio. Valid values:
balance
,prefer-speed
,prefer-cache
. - Src
Peers []CacheserviceSrc Peer Args - Modify cache-service source peer list. The structure of
src_peer
block is documented below. - 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.
- acceptable
Connections String - Set strategy when accepting cache collaboration connection. Valid values:
any
,peers
. - collaboration String
- Enable/disable cache-collaboration between cache-service clusters. Valid values:
enable
,disable
. - device
Id String - Set identifier for this cache device.
- dst
Peers List<CacheserviceDst Peer> - Modify cache-service destination peer list. The structure of
dst_peer
block is documented below. - dynamic
Sort StringSubtable - 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 StringTables - 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.
- prefer
Scenario String - Set the preferred cache behavior towards the balance between latency and hit-ratio. Valid values:
balance
,prefer-speed
,prefer-cache
. - src
Peers List<CacheserviceSrc Peer> - Modify cache-service source peer list. The structure of
src_peer
block is documented below. - 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.
- acceptable
Connections string - Set strategy when accepting cache collaboration connection. Valid values:
any
,peers
. - collaboration string
- Enable/disable cache-collaboration between cache-service clusters. Valid values:
enable
,disable
. - device
Id string - Set identifier for this cache device.
- dst
Peers CacheserviceDst Peer[] - Modify cache-service destination peer list. The structure of
dst_peer
block is documented below. - dynamic
Sort stringSubtable - 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 stringTables - 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.
- prefer
Scenario string - Set the preferred cache behavior towards the balance between latency and hit-ratio. Valid values:
balance
,prefer-speed
,prefer-cache
. - src
Peers CacheserviceSrc Peer[] - Modify cache-service source peer list. The structure of
src_peer
block is documented below. - 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.
- acceptable_
connections str - Set strategy when accepting cache collaboration connection. Valid values:
any
,peers
. - collaboration str
- Enable/disable cache-collaboration between cache-service clusters. Valid values:
enable
,disable
. - device_
id str - Set identifier for this cache device.
- dst_
peers Sequence[CacheserviceDst Peer Args] - Modify cache-service destination peer list. The structure of
dst_peer
block is documented below. - dynamic_
sort_ strsubtable - 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_ strtables - 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.
- prefer_
scenario str - Set the preferred cache behavior towards the balance between latency and hit-ratio. Valid values:
balance
,prefer-speed
,prefer-cache
. - src_
peers Sequence[CacheserviceSrc Peer Args] - Modify cache-service source peer list. The structure of
src_peer
block is documented below. - 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.
- acceptable
Connections String - Set strategy when accepting cache collaboration connection. Valid values:
any
,peers
. - collaboration String
- Enable/disable cache-collaboration between cache-service clusters. Valid values:
enable
,disable
. - device
Id String - Set identifier for this cache device.
- dst
Peers List<Property Map> - Modify cache-service destination peer list. The structure of
dst_peer
block is documented below. - dynamic
Sort StringSubtable - 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 StringTables - 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.
- prefer
Scenario String - Set the preferred cache behavior towards the balance between latency and hit-ratio. Valid values:
balance
,prefer-speed
,prefer-cache
. - src
Peers List<Property Map> - Modify cache-service source peer list. The structure of
src_peer
block is documented below. - 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 Cacheservice 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 Cacheservice Resource
Get an existing Cacheservice 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?: CacheserviceState, opts?: CustomResourceOptions): Cacheservice
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acceptable_connections: Optional[str] = None,
collaboration: Optional[str] = None,
device_id: Optional[str] = None,
dst_peers: Optional[Sequence[CacheserviceDstPeerArgs]] = None,
dynamic_sort_subtable: Optional[str] = None,
get_all_tables: Optional[str] = None,
prefer_scenario: Optional[str] = None,
src_peers: Optional[Sequence[CacheserviceSrcPeerArgs]] = None,
vdomparam: Optional[str] = None) -> Cacheservice
func GetCacheservice(ctx *Context, name string, id IDInput, state *CacheserviceState, opts ...ResourceOption) (*Cacheservice, error)
public static Cacheservice Get(string name, Input<string> id, CacheserviceState? state, CustomResourceOptions? opts = null)
public static Cacheservice get(String name, Output<String> id, CacheserviceState 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.
- Acceptable
Connections string - Set strategy when accepting cache collaboration connection. Valid values:
any
,peers
. - Collaboration string
- Enable/disable cache-collaboration between cache-service clusters. Valid values:
enable
,disable
. - Device
Id string - Set identifier for this cache device.
- Dst
Peers List<Pulumiverse.Fortios. Wanopt. Inputs. Cacheservice Dst Peer> - Modify cache-service destination peer list. The structure of
dst_peer
block is documented below. - Dynamic
Sort stringSubtable - 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 stringTables - 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.
- Prefer
Scenario string - Set the preferred cache behavior towards the balance between latency and hit-ratio. Valid values:
balance
,prefer-speed
,prefer-cache
. - Src
Peers List<Pulumiverse.Fortios. Wanopt. Inputs. Cacheservice Src Peer> - Modify cache-service source peer list. The structure of
src_peer
block is documented below. - 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.
- Acceptable
Connections string - Set strategy when accepting cache collaboration connection. Valid values:
any
,peers
. - Collaboration string
- Enable/disable cache-collaboration between cache-service clusters. Valid values:
enable
,disable
. - Device
Id string - Set identifier for this cache device.
- Dst
Peers []CacheserviceDst Peer Args - Modify cache-service destination peer list. The structure of
dst_peer
block is documented below. - Dynamic
Sort stringSubtable - 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 stringTables - 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.
- Prefer
Scenario string - Set the preferred cache behavior towards the balance between latency and hit-ratio. Valid values:
balance
,prefer-speed
,prefer-cache
. - Src
Peers []CacheserviceSrc Peer Args - Modify cache-service source peer list. The structure of
src_peer
block is documented below. - 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.
- acceptable
Connections String - Set strategy when accepting cache collaboration connection. Valid values:
any
,peers
. - collaboration String
- Enable/disable cache-collaboration between cache-service clusters. Valid values:
enable
,disable
. - device
Id String - Set identifier for this cache device.
- dst
Peers List<CacheserviceDst Peer> - Modify cache-service destination peer list. The structure of
dst_peer
block is documented below. - dynamic
Sort StringSubtable - 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 StringTables - 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.
- prefer
Scenario String - Set the preferred cache behavior towards the balance between latency and hit-ratio. Valid values:
balance
,prefer-speed
,prefer-cache
. - src
Peers List<CacheserviceSrc Peer> - Modify cache-service source peer list. The structure of
src_peer
block is documented below. - 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.
- acceptable
Connections string - Set strategy when accepting cache collaboration connection. Valid values:
any
,peers
. - collaboration string
- Enable/disable cache-collaboration between cache-service clusters. Valid values:
enable
,disable
. - device
Id string - Set identifier for this cache device.
- dst
Peers CacheserviceDst Peer[] - Modify cache-service destination peer list. The structure of
dst_peer
block is documented below. - dynamic
Sort stringSubtable - 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 stringTables - 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.
- prefer
Scenario string - Set the preferred cache behavior towards the balance between latency and hit-ratio. Valid values:
balance
,prefer-speed
,prefer-cache
. - src
Peers CacheserviceSrc Peer[] - Modify cache-service source peer list. The structure of
src_peer
block is documented below. - 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.
- acceptable_
connections str - Set strategy when accepting cache collaboration connection. Valid values:
any
,peers
. - collaboration str
- Enable/disable cache-collaboration between cache-service clusters. Valid values:
enable
,disable
. - device_
id str - Set identifier for this cache device.
- dst_
peers Sequence[CacheserviceDst Peer Args] - Modify cache-service destination peer list. The structure of
dst_peer
block is documented below. - dynamic_
sort_ strsubtable - 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_ strtables - 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.
- prefer_
scenario str - Set the preferred cache behavior towards the balance between latency and hit-ratio. Valid values:
balance
,prefer-speed
,prefer-cache
. - src_
peers Sequence[CacheserviceSrc Peer Args] - Modify cache-service source peer list. The structure of
src_peer
block is documented below. - 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.
- acceptable
Connections String - Set strategy when accepting cache collaboration connection. Valid values:
any
,peers
. - collaboration String
- Enable/disable cache-collaboration between cache-service clusters. Valid values:
enable
,disable
. - device
Id String - Set identifier for this cache device.
- dst
Peers List<Property Map> - Modify cache-service destination peer list. The structure of
dst_peer
block is documented below. - dynamic
Sort StringSubtable - 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 StringTables - 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.
- prefer
Scenario String - Set the preferred cache behavior towards the balance between latency and hit-ratio. Valid values:
balance
,prefer-speed
,prefer-cache
. - src
Peers List<Property Map> - Modify cache-service source peer list. The structure of
src_peer
block is documented below. - 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
CacheserviceDstPeer, CacheserviceDstPeerArgs
- Auth
Type int - Set authentication type for this peer.
- Device
Id string - Device ID of this peer.
- Encode
Type int - Set encode type for this peer.
- Ip string
- Set cluster IP address of this peer.
- Priority int
- Set priority for this peer.
- Auth
Type int - Set authentication type for this peer.
- Device
Id string - Device ID of this peer.
- Encode
Type int - Set encode type for this peer.
- Ip string
- Set cluster IP address of this peer.
- Priority int
- Set priority for this peer.
- auth
Type Integer - Set authentication type for this peer.
- device
Id String - Device ID of this peer.
- encode
Type Integer - Set encode type for this peer.
- ip String
- Set cluster IP address of this peer.
- priority Integer
- Set priority for this peer.
- auth
Type number - Set authentication type for this peer.
- device
Id string - Device ID of this peer.
- encode
Type number - Set encode type for this peer.
- ip string
- Set cluster IP address of this peer.
- priority number
- Set priority for this peer.
- auth_
type int - Set authentication type for this peer.
- device_
id str - Device ID of this peer.
- encode_
type int - Set encode type for this peer.
- ip str
- Set cluster IP address of this peer.
- priority int
- Set priority for this peer.
- auth
Type Number - Set authentication type for this peer.
- device
Id String - Device ID of this peer.
- encode
Type Number - Set encode type for this peer.
- ip String
- Set cluster IP address of this peer.
- priority Number
- Set priority for this peer.
CacheserviceSrcPeer, CacheserviceSrcPeerArgs
- Auth
Type int - Set authentication type for this peer.
- Device
Id string - Device ID of this peer.
- Encode
Type int - Set encode type for this peer.
- Ip string
- Set cluster IP address of this peer.
- Priority int
- Set priority for this peer.
- Auth
Type int - Set authentication type for this peer.
- Device
Id string - Device ID of this peer.
- Encode
Type int - Set encode type for this peer.
- Ip string
- Set cluster IP address of this peer.
- Priority int
- Set priority for this peer.
- auth
Type Integer - Set authentication type for this peer.
- device
Id String - Device ID of this peer.
- encode
Type Integer - Set encode type for this peer.
- ip String
- Set cluster IP address of this peer.
- priority Integer
- Set priority for this peer.
- auth
Type number - Set authentication type for this peer.
- device
Id string - Device ID of this peer.
- encode
Type number - Set encode type for this peer.
- ip string
- Set cluster IP address of this peer.
- priority number
- Set priority for this peer.
- auth_
type int - Set authentication type for this peer.
- device_
id str - Device ID of this peer.
- encode_
type int - Set encode type for this peer.
- ip str
- Set cluster IP address of this peer.
- priority int
- Set priority for this peer.
- auth
Type Number - Set authentication type for this peer.
- device
Id String - Device ID of this peer.
- encode
Type Number - Set encode type for this peer.
- ip String
- Set cluster IP address of this peer.
- priority Number
- Set priority for this peer.
Import
Wanopt CacheService can be imported using any of these accepted formats:
$ pulumi import fortios:wanopt/cacheservice:Cacheservice labelname WanoptCacheService
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:wanopt/cacheservice:Cacheservice labelname WanoptCacheService
$ 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.