fortios.system.Wccp
Explore with Pulumi AI
Configure WCCP.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const trname = new fortios.system.Wccp("trname", {
assignmentBucketFormat: "cisco-implementation",
assignmentDstaddrMask: "0.0.0.0",
assignmentMethod: "HASH",
assignmentSrcaddrMask: "0.0.23.65",
assignmentWeight: 0,
authentication: "disable",
cacheEngineMethod: "GRE",
cacheId: "1.1.1.1",
forwardMethod: "GRE",
groupAddress: "0.0.0.0",
primaryHash: "dst-ip",
priority: 0,
protocol: 0,
returnMethod: "GRE",
routerId: "1.1.1.1",
routerList: "\"1.0.0.0\" ",
serverType: "forward",
serviceId: "1",
serviceType: "auto",
});
import pulumi
import pulumiverse_fortios as fortios
trname = fortios.system.Wccp("trname",
assignment_bucket_format="cisco-implementation",
assignment_dstaddr_mask="0.0.0.0",
assignment_method="HASH",
assignment_srcaddr_mask="0.0.23.65",
assignment_weight=0,
authentication="disable",
cache_engine_method="GRE",
cache_id="1.1.1.1",
forward_method="GRE",
group_address="0.0.0.0",
primary_hash="dst-ip",
priority=0,
protocol=0,
return_method="GRE",
router_id="1.1.1.1",
router_list="\"1.0.0.0\" ",
server_type="forward",
service_id="1",
service_type="auto")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/system"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := system.NewWccp(ctx, "trname", &system.WccpArgs{
AssignmentBucketFormat: pulumi.String("cisco-implementation"),
AssignmentDstaddrMask: pulumi.String("0.0.0.0"),
AssignmentMethod: pulumi.String("HASH"),
AssignmentSrcaddrMask: pulumi.String("0.0.23.65"),
AssignmentWeight: pulumi.Int(0),
Authentication: pulumi.String("disable"),
CacheEngineMethod: pulumi.String("GRE"),
CacheId: pulumi.String("1.1.1.1"),
ForwardMethod: pulumi.String("GRE"),
GroupAddress: pulumi.String("0.0.0.0"),
PrimaryHash: pulumi.String("dst-ip"),
Priority: pulumi.Int(0),
Protocol: pulumi.Int(0),
ReturnMethod: pulumi.String("GRE"),
RouterId: pulumi.String("1.1.1.1"),
RouterList: pulumi.String("\"1.0.0.0\" "),
ServerType: pulumi.String("forward"),
ServiceId: pulumi.String("1"),
ServiceType: pulumi.String("auto"),
})
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.System.Wccp("trname", new()
{
AssignmentBucketFormat = "cisco-implementation",
AssignmentDstaddrMask = "0.0.0.0",
AssignmentMethod = "HASH",
AssignmentSrcaddrMask = "0.0.23.65",
AssignmentWeight = 0,
Authentication = "disable",
CacheEngineMethod = "GRE",
CacheId = "1.1.1.1",
ForwardMethod = "GRE",
GroupAddress = "0.0.0.0",
PrimaryHash = "dst-ip",
Priority = 0,
Protocol = 0,
ReturnMethod = "GRE",
RouterId = "1.1.1.1",
RouterList = "\"1.0.0.0\" ",
ServerType = "forward",
ServiceId = "1",
ServiceType = "auto",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.system.Wccp;
import com.pulumi.fortios.system.WccpArgs;
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 Wccp("trname", WccpArgs.builder()
.assignmentBucketFormat("cisco-implementation")
.assignmentDstaddrMask("0.0.0.0")
.assignmentMethod("HASH")
.assignmentSrcaddrMask("0.0.23.65")
.assignmentWeight(0)
.authentication("disable")
.cacheEngineMethod("GRE")
.cacheId("1.1.1.1")
.forwardMethod("GRE")
.groupAddress("0.0.0.0")
.primaryHash("dst-ip")
.priority(0)
.protocol(0)
.returnMethod("GRE")
.routerId("1.1.1.1")
.routerList("\"1.0.0.0\" ")
.serverType("forward")
.serviceId("1")
.serviceType("auto")
.build());
}
}
resources:
trname:
type: fortios:system:Wccp
properties:
assignmentBucketFormat: cisco-implementation
assignmentDstaddrMask: 0.0.0.0
assignmentMethod: HASH
assignmentSrcaddrMask: 0.0.23.65
assignmentWeight: 0
authentication: disable
cacheEngineMethod: GRE
cacheId: 1.1.1.1
forwardMethod: GRE
groupAddress: 0.0.0.0
primaryHash: dst-ip
priority: 0
protocol: 0
returnMethod: GRE
routerId: 1.1.1.1
routerList: '"1.0.0.0" '
serverType: forward
serviceId: '1'
serviceType: auto
Create Wccp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Wccp(name: string, args?: WccpArgs, opts?: CustomResourceOptions);
@overload
def Wccp(resource_name: str,
args: Optional[WccpArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Wccp(resource_name: str,
opts: Optional[ResourceOptions] = None,
assignment_bucket_format: Optional[str] = None,
assignment_dstaddr_mask: Optional[str] = None,
assignment_method: Optional[str] = None,
assignment_srcaddr_mask: Optional[str] = None,
assignment_weight: Optional[int] = None,
authentication: Optional[str] = None,
cache_engine_method: Optional[str] = None,
cache_id: Optional[str] = None,
forward_method: Optional[str] = None,
group_address: Optional[str] = None,
password: Optional[str] = None,
ports: Optional[str] = None,
ports_defined: Optional[str] = None,
primary_hash: Optional[str] = None,
priority: Optional[int] = None,
protocol: Optional[int] = None,
return_method: Optional[str] = None,
router_id: Optional[str] = None,
router_list: Optional[str] = None,
server_list: Optional[str] = None,
server_type: Optional[str] = None,
service_id: Optional[str] = None,
service_type: Optional[str] = None,
vdomparam: Optional[str] = None)
func NewWccp(ctx *Context, name string, args *WccpArgs, opts ...ResourceOption) (*Wccp, error)
public Wccp(string name, WccpArgs? args = null, CustomResourceOptions? opts = null)
type: fortios:system:Wccp
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 WccpArgs
- 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 WccpArgs
- 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 WccpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WccpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WccpArgs
- 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 wccpResource = new Fortios.System.Wccp("wccpResource", new()
{
AssignmentBucketFormat = "string",
AssignmentDstaddrMask = "string",
AssignmentMethod = "string",
AssignmentSrcaddrMask = "string",
AssignmentWeight = 0,
Authentication = "string",
CacheEngineMethod = "string",
CacheId = "string",
ForwardMethod = "string",
GroupAddress = "string",
Password = "string",
Ports = "string",
PortsDefined = "string",
PrimaryHash = "string",
Priority = 0,
Protocol = 0,
ReturnMethod = "string",
RouterId = "string",
RouterList = "string",
ServerList = "string",
ServerType = "string",
ServiceId = "string",
ServiceType = "string",
Vdomparam = "string",
});
example, err := system.NewWccp(ctx, "wccpResource", &system.WccpArgs{
AssignmentBucketFormat: pulumi.String("string"),
AssignmentDstaddrMask: pulumi.String("string"),
AssignmentMethod: pulumi.String("string"),
AssignmentSrcaddrMask: pulumi.String("string"),
AssignmentWeight: pulumi.Int(0),
Authentication: pulumi.String("string"),
CacheEngineMethod: pulumi.String("string"),
CacheId: pulumi.String("string"),
ForwardMethod: pulumi.String("string"),
GroupAddress: pulumi.String("string"),
Password: pulumi.String("string"),
Ports: pulumi.String("string"),
PortsDefined: pulumi.String("string"),
PrimaryHash: pulumi.String("string"),
Priority: pulumi.Int(0),
Protocol: pulumi.Int(0),
ReturnMethod: pulumi.String("string"),
RouterId: pulumi.String("string"),
RouterList: pulumi.String("string"),
ServerList: pulumi.String("string"),
ServerType: pulumi.String("string"),
ServiceId: pulumi.String("string"),
ServiceType: pulumi.String("string"),
Vdomparam: pulumi.String("string"),
})
var wccpResource = new Wccp("wccpResource", WccpArgs.builder()
.assignmentBucketFormat("string")
.assignmentDstaddrMask("string")
.assignmentMethod("string")
.assignmentSrcaddrMask("string")
.assignmentWeight(0)
.authentication("string")
.cacheEngineMethod("string")
.cacheId("string")
.forwardMethod("string")
.groupAddress("string")
.password("string")
.ports("string")
.portsDefined("string")
.primaryHash("string")
.priority(0)
.protocol(0)
.returnMethod("string")
.routerId("string")
.routerList("string")
.serverList("string")
.serverType("string")
.serviceId("string")
.serviceType("string")
.vdomparam("string")
.build());
wccp_resource = fortios.system.Wccp("wccpResource",
assignment_bucket_format="string",
assignment_dstaddr_mask="string",
assignment_method="string",
assignment_srcaddr_mask="string",
assignment_weight=0,
authentication="string",
cache_engine_method="string",
cache_id="string",
forward_method="string",
group_address="string",
password="string",
ports="string",
ports_defined="string",
primary_hash="string",
priority=0,
protocol=0,
return_method="string",
router_id="string",
router_list="string",
server_list="string",
server_type="string",
service_id="string",
service_type="string",
vdomparam="string")
const wccpResource = new fortios.system.Wccp("wccpResource", {
assignmentBucketFormat: "string",
assignmentDstaddrMask: "string",
assignmentMethod: "string",
assignmentSrcaddrMask: "string",
assignmentWeight: 0,
authentication: "string",
cacheEngineMethod: "string",
cacheId: "string",
forwardMethod: "string",
groupAddress: "string",
password: "string",
ports: "string",
portsDefined: "string",
primaryHash: "string",
priority: 0,
protocol: 0,
returnMethod: "string",
routerId: "string",
routerList: "string",
serverList: "string",
serverType: "string",
serviceId: "string",
serviceType: "string",
vdomparam: "string",
});
type: fortios:system:Wccp
properties:
assignmentBucketFormat: string
assignmentDstaddrMask: string
assignmentMethod: string
assignmentSrcaddrMask: string
assignmentWeight: 0
authentication: string
cacheEngineMethod: string
cacheId: string
forwardMethod: string
groupAddress: string
password: string
ports: string
portsDefined: string
primaryHash: string
priority: 0
protocol: 0
returnMethod: string
routerId: string
routerList: string
serverList: string
serverType: string
serviceId: string
serviceType: string
vdomparam: string
Wccp Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Wccp resource accepts the following input properties:
- Assignment
Bucket stringFormat - Assignment bucket format for the WCCP cache engine. Valid values:
wccp-v2
,cisco-implementation
. - Assignment
Dstaddr stringMask - Assignment destination address mask.
- Assignment
Method string - Hash key assignment preference. Valid values:
HASH
,MASK
,any
. - Assignment
Srcaddr stringMask - Assignment source address mask.
- Assignment
Weight int - Assignment of hash weight/ratio for the WCCP cache engine.
- Authentication string
- Enable/disable MD5 authentication. Valid values:
enable
,disable
. - Cache
Engine stringMethod - Method used to forward traffic to the routers or to return to the cache engine. Valid values:
GRE
,L2
. - Cache
Id string - IP address known to all routers. If the addresses are the same, use the default 0.0.0.0.
- Forward
Method string - Method used to forward traffic to the cache servers. Valid values:
GRE
,L2
,any
. - Group
Address string - IP multicast address used by the cache routers. For the FortiGate to ignore multicast WCCP traffic, use the default 0.0.0.0.
- Password string
- Password for MD5 authentication.
- Ports string
- Service ports.
- Ports
Defined string - Match method. Valid values:
source
,destination
. - Primary
Hash string - Hash method. Valid values:
src-ip
,dst-ip
,src-port
,dst-port
. - Priority int
- Service priority.
- Protocol int
- Service protocol.
- Return
Method string - Method used to decline a redirected packet and return it to the FortiGate. Valid values:
GRE
,L2
,any
. - Router
Id string - IP address known to all cache engines. If all cache engines connect to the same FortiGate interface, use the default 0.0.0.0.
- Router
List string - IP addresses of one or more WCCP routers.
- Server
List string - IP addresses and netmasks for up to four cache servers.
- Server
Type string - Cache server type. Valid values:
forward
,proxy
. - Service
Id string - Service ID.
- Service
Type string - WCCP service type used by the cache server for logical interception and redirection of traffic. Valid values:
auto
,standard
,dynamic
. - 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.
- Assignment
Bucket stringFormat - Assignment bucket format for the WCCP cache engine. Valid values:
wccp-v2
,cisco-implementation
. - Assignment
Dstaddr stringMask - Assignment destination address mask.
- Assignment
Method string - Hash key assignment preference. Valid values:
HASH
,MASK
,any
. - Assignment
Srcaddr stringMask - Assignment source address mask.
- Assignment
Weight int - Assignment of hash weight/ratio for the WCCP cache engine.
- Authentication string
- Enable/disable MD5 authentication. Valid values:
enable
,disable
. - Cache
Engine stringMethod - Method used to forward traffic to the routers or to return to the cache engine. Valid values:
GRE
,L2
. - Cache
Id string - IP address known to all routers. If the addresses are the same, use the default 0.0.0.0.
- Forward
Method string - Method used to forward traffic to the cache servers. Valid values:
GRE
,L2
,any
. - Group
Address string - IP multicast address used by the cache routers. For the FortiGate to ignore multicast WCCP traffic, use the default 0.0.0.0.
- Password string
- Password for MD5 authentication.
- Ports string
- Service ports.
- Ports
Defined string - Match method. Valid values:
source
,destination
. - Primary
Hash string - Hash method. Valid values:
src-ip
,dst-ip
,src-port
,dst-port
. - Priority int
- Service priority.
- Protocol int
- Service protocol.
- Return
Method string - Method used to decline a redirected packet and return it to the FortiGate. Valid values:
GRE
,L2
,any
. - Router
Id string - IP address known to all cache engines. If all cache engines connect to the same FortiGate interface, use the default 0.0.0.0.
- Router
List string - IP addresses of one or more WCCP routers.
- Server
List string - IP addresses and netmasks for up to four cache servers.
- Server
Type string - Cache server type. Valid values:
forward
,proxy
. - Service
Id string - Service ID.
- Service
Type string - WCCP service type used by the cache server for logical interception and redirection of traffic. Valid values:
auto
,standard
,dynamic
. - 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.
- assignment
Bucket StringFormat - Assignment bucket format for the WCCP cache engine. Valid values:
wccp-v2
,cisco-implementation
. - assignment
Dstaddr StringMask - Assignment destination address mask.
- assignment
Method String - Hash key assignment preference. Valid values:
HASH
,MASK
,any
. - assignment
Srcaddr StringMask - Assignment source address mask.
- assignment
Weight Integer - Assignment of hash weight/ratio for the WCCP cache engine.
- authentication String
- Enable/disable MD5 authentication. Valid values:
enable
,disable
. - cache
Engine StringMethod - Method used to forward traffic to the routers or to return to the cache engine. Valid values:
GRE
,L2
. - cache
Id String - IP address known to all routers. If the addresses are the same, use the default 0.0.0.0.
- forward
Method String - Method used to forward traffic to the cache servers. Valid values:
GRE
,L2
,any
. - group
Address String - IP multicast address used by the cache routers. For the FortiGate to ignore multicast WCCP traffic, use the default 0.0.0.0.
- password String
- Password for MD5 authentication.
- ports String
- Service ports.
- ports
Defined String - Match method. Valid values:
source
,destination
. - primary
Hash String - Hash method. Valid values:
src-ip
,dst-ip
,src-port
,dst-port
. - priority Integer
- Service priority.
- protocol Integer
- Service protocol.
- return
Method String - Method used to decline a redirected packet and return it to the FortiGate. Valid values:
GRE
,L2
,any
. - router
Id String - IP address known to all cache engines. If all cache engines connect to the same FortiGate interface, use the default 0.0.0.0.
- router
List String - IP addresses of one or more WCCP routers.
- server
List String - IP addresses and netmasks for up to four cache servers.
- server
Type String - Cache server type. Valid values:
forward
,proxy
. - service
Id String - Service ID.
- service
Type String - WCCP service type used by the cache server for logical interception and redirection of traffic. Valid values:
auto
,standard
,dynamic
. - 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.
- assignment
Bucket stringFormat - Assignment bucket format for the WCCP cache engine. Valid values:
wccp-v2
,cisco-implementation
. - assignment
Dstaddr stringMask - Assignment destination address mask.
- assignment
Method string - Hash key assignment preference. Valid values:
HASH
,MASK
,any
. - assignment
Srcaddr stringMask - Assignment source address mask.
- assignment
Weight number - Assignment of hash weight/ratio for the WCCP cache engine.
- authentication string
- Enable/disable MD5 authentication. Valid values:
enable
,disable
. - cache
Engine stringMethod - Method used to forward traffic to the routers or to return to the cache engine. Valid values:
GRE
,L2
. - cache
Id string - IP address known to all routers. If the addresses are the same, use the default 0.0.0.0.
- forward
Method string - Method used to forward traffic to the cache servers. Valid values:
GRE
,L2
,any
. - group
Address string - IP multicast address used by the cache routers. For the FortiGate to ignore multicast WCCP traffic, use the default 0.0.0.0.
- password string
- Password for MD5 authentication.
- ports string
- Service ports.
- ports
Defined string - Match method. Valid values:
source
,destination
. - primary
Hash string - Hash method. Valid values:
src-ip
,dst-ip
,src-port
,dst-port
. - priority number
- Service priority.
- protocol number
- Service protocol.
- return
Method string - Method used to decline a redirected packet and return it to the FortiGate. Valid values:
GRE
,L2
,any
. - router
Id string - IP address known to all cache engines. If all cache engines connect to the same FortiGate interface, use the default 0.0.0.0.
- router
List string - IP addresses of one or more WCCP routers.
- server
List string - IP addresses and netmasks for up to four cache servers.
- server
Type string - Cache server type. Valid values:
forward
,proxy
. - service
Id string - Service ID.
- service
Type string - WCCP service type used by the cache server for logical interception and redirection of traffic. Valid values:
auto
,standard
,dynamic
. - 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.
- assignment_
bucket_ strformat - Assignment bucket format for the WCCP cache engine. Valid values:
wccp-v2
,cisco-implementation
. - assignment_
dstaddr_ strmask - Assignment destination address mask.
- assignment_
method str - Hash key assignment preference. Valid values:
HASH
,MASK
,any
. - assignment_
srcaddr_ strmask - Assignment source address mask.
- assignment_
weight int - Assignment of hash weight/ratio for the WCCP cache engine.
- authentication str
- Enable/disable MD5 authentication. Valid values:
enable
,disable
. - cache_
engine_ strmethod - Method used to forward traffic to the routers or to return to the cache engine. Valid values:
GRE
,L2
. - cache_
id str - IP address known to all routers. If the addresses are the same, use the default 0.0.0.0.
- forward_
method str - Method used to forward traffic to the cache servers. Valid values:
GRE
,L2
,any
. - group_
address str - IP multicast address used by the cache routers. For the FortiGate to ignore multicast WCCP traffic, use the default 0.0.0.0.
- password str
- Password for MD5 authentication.
- ports str
- Service ports.
- ports_
defined str - Match method. Valid values:
source
,destination
. - primary_
hash str - Hash method. Valid values:
src-ip
,dst-ip
,src-port
,dst-port
. - priority int
- Service priority.
- protocol int
- Service protocol.
- return_
method str - Method used to decline a redirected packet and return it to the FortiGate. Valid values:
GRE
,L2
,any
. - router_
id str - IP address known to all cache engines. If all cache engines connect to the same FortiGate interface, use the default 0.0.0.0.
- router_
list str - IP addresses of one or more WCCP routers.
- server_
list str - IP addresses and netmasks for up to four cache servers.
- server_
type str - Cache server type. Valid values:
forward
,proxy
. - service_
id str - Service ID.
- service_
type str - WCCP service type used by the cache server for logical interception and redirection of traffic. Valid values:
auto
,standard
,dynamic
. - 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.
- assignment
Bucket StringFormat - Assignment bucket format for the WCCP cache engine. Valid values:
wccp-v2
,cisco-implementation
. - assignment
Dstaddr StringMask - Assignment destination address mask.
- assignment
Method String - Hash key assignment preference. Valid values:
HASH
,MASK
,any
. - assignment
Srcaddr StringMask - Assignment source address mask.
- assignment
Weight Number - Assignment of hash weight/ratio for the WCCP cache engine.
- authentication String
- Enable/disable MD5 authentication. Valid values:
enable
,disable
. - cache
Engine StringMethod - Method used to forward traffic to the routers or to return to the cache engine. Valid values:
GRE
,L2
. - cache
Id String - IP address known to all routers. If the addresses are the same, use the default 0.0.0.0.
- forward
Method String - Method used to forward traffic to the cache servers. Valid values:
GRE
,L2
,any
. - group
Address String - IP multicast address used by the cache routers. For the FortiGate to ignore multicast WCCP traffic, use the default 0.0.0.0.
- password String
- Password for MD5 authentication.
- ports String
- Service ports.
- ports
Defined String - Match method. Valid values:
source
,destination
. - primary
Hash String - Hash method. Valid values:
src-ip
,dst-ip
,src-port
,dst-port
. - priority Number
- Service priority.
- protocol Number
- Service protocol.
- return
Method String - Method used to decline a redirected packet and return it to the FortiGate. Valid values:
GRE
,L2
,any
. - router
Id String - IP address known to all cache engines. If all cache engines connect to the same FortiGate interface, use the default 0.0.0.0.
- router
List String - IP addresses of one or more WCCP routers.
- server
List String - IP addresses and netmasks for up to four cache servers.
- server
Type String - Cache server type. Valid values:
forward
,proxy
. - service
Id String - Service ID.
- service
Type String - WCCP service type used by the cache server for logical interception and redirection of traffic. Valid values:
auto
,standard
,dynamic
. - 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 Wccp 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 Wccp Resource
Get an existing Wccp 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?: WccpState, opts?: CustomResourceOptions): Wccp
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
assignment_bucket_format: Optional[str] = None,
assignment_dstaddr_mask: Optional[str] = None,
assignment_method: Optional[str] = None,
assignment_srcaddr_mask: Optional[str] = None,
assignment_weight: Optional[int] = None,
authentication: Optional[str] = None,
cache_engine_method: Optional[str] = None,
cache_id: Optional[str] = None,
forward_method: Optional[str] = None,
group_address: Optional[str] = None,
password: Optional[str] = None,
ports: Optional[str] = None,
ports_defined: Optional[str] = None,
primary_hash: Optional[str] = None,
priority: Optional[int] = None,
protocol: Optional[int] = None,
return_method: Optional[str] = None,
router_id: Optional[str] = None,
router_list: Optional[str] = None,
server_list: Optional[str] = None,
server_type: Optional[str] = None,
service_id: Optional[str] = None,
service_type: Optional[str] = None,
vdomparam: Optional[str] = None) -> Wccp
func GetWccp(ctx *Context, name string, id IDInput, state *WccpState, opts ...ResourceOption) (*Wccp, error)
public static Wccp Get(string name, Input<string> id, WccpState? state, CustomResourceOptions? opts = null)
public static Wccp get(String name, Output<String> id, WccpState 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.
- Assignment
Bucket stringFormat - Assignment bucket format for the WCCP cache engine. Valid values:
wccp-v2
,cisco-implementation
. - Assignment
Dstaddr stringMask - Assignment destination address mask.
- Assignment
Method string - Hash key assignment preference. Valid values:
HASH
,MASK
,any
. - Assignment
Srcaddr stringMask - Assignment source address mask.
- Assignment
Weight int - Assignment of hash weight/ratio for the WCCP cache engine.
- Authentication string
- Enable/disable MD5 authentication. Valid values:
enable
,disable
. - Cache
Engine stringMethod - Method used to forward traffic to the routers or to return to the cache engine. Valid values:
GRE
,L2
. - Cache
Id string - IP address known to all routers. If the addresses are the same, use the default 0.0.0.0.
- Forward
Method string - Method used to forward traffic to the cache servers. Valid values:
GRE
,L2
,any
. - Group
Address string - IP multicast address used by the cache routers. For the FortiGate to ignore multicast WCCP traffic, use the default 0.0.0.0.
- Password string
- Password for MD5 authentication.
- Ports string
- Service ports.
- Ports
Defined string - Match method. Valid values:
source
,destination
. - Primary
Hash string - Hash method. Valid values:
src-ip
,dst-ip
,src-port
,dst-port
. - Priority int
- Service priority.
- Protocol int
- Service protocol.
- Return
Method string - Method used to decline a redirected packet and return it to the FortiGate. Valid values:
GRE
,L2
,any
. - Router
Id string - IP address known to all cache engines. If all cache engines connect to the same FortiGate interface, use the default 0.0.0.0.
- Router
List string - IP addresses of one or more WCCP routers.
- Server
List string - IP addresses and netmasks for up to four cache servers.
- Server
Type string - Cache server type. Valid values:
forward
,proxy
. - Service
Id string - Service ID.
- Service
Type string - WCCP service type used by the cache server for logical interception and redirection of traffic. Valid values:
auto
,standard
,dynamic
. - 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.
- Assignment
Bucket stringFormat - Assignment bucket format for the WCCP cache engine. Valid values:
wccp-v2
,cisco-implementation
. - Assignment
Dstaddr stringMask - Assignment destination address mask.
- Assignment
Method string - Hash key assignment preference. Valid values:
HASH
,MASK
,any
. - Assignment
Srcaddr stringMask - Assignment source address mask.
- Assignment
Weight int - Assignment of hash weight/ratio for the WCCP cache engine.
- Authentication string
- Enable/disable MD5 authentication. Valid values:
enable
,disable
. - Cache
Engine stringMethod - Method used to forward traffic to the routers or to return to the cache engine. Valid values:
GRE
,L2
. - Cache
Id string - IP address known to all routers. If the addresses are the same, use the default 0.0.0.0.
- Forward
Method string - Method used to forward traffic to the cache servers. Valid values:
GRE
,L2
,any
. - Group
Address string - IP multicast address used by the cache routers. For the FortiGate to ignore multicast WCCP traffic, use the default 0.0.0.0.
- Password string
- Password for MD5 authentication.
- Ports string
- Service ports.
- Ports
Defined string - Match method. Valid values:
source
,destination
. - Primary
Hash string - Hash method. Valid values:
src-ip
,dst-ip
,src-port
,dst-port
. - Priority int
- Service priority.
- Protocol int
- Service protocol.
- Return
Method string - Method used to decline a redirected packet and return it to the FortiGate. Valid values:
GRE
,L2
,any
. - Router
Id string - IP address known to all cache engines. If all cache engines connect to the same FortiGate interface, use the default 0.0.0.0.
- Router
List string - IP addresses of one or more WCCP routers.
- Server
List string - IP addresses and netmasks for up to four cache servers.
- Server
Type string - Cache server type. Valid values:
forward
,proxy
. - Service
Id string - Service ID.
- Service
Type string - WCCP service type used by the cache server for logical interception and redirection of traffic. Valid values:
auto
,standard
,dynamic
. - 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.
- assignment
Bucket StringFormat - Assignment bucket format for the WCCP cache engine. Valid values:
wccp-v2
,cisco-implementation
. - assignment
Dstaddr StringMask - Assignment destination address mask.
- assignment
Method String - Hash key assignment preference. Valid values:
HASH
,MASK
,any
. - assignment
Srcaddr StringMask - Assignment source address mask.
- assignment
Weight Integer - Assignment of hash weight/ratio for the WCCP cache engine.
- authentication String
- Enable/disable MD5 authentication. Valid values:
enable
,disable
. - cache
Engine StringMethod - Method used to forward traffic to the routers or to return to the cache engine. Valid values:
GRE
,L2
. - cache
Id String - IP address known to all routers. If the addresses are the same, use the default 0.0.0.0.
- forward
Method String - Method used to forward traffic to the cache servers. Valid values:
GRE
,L2
,any
. - group
Address String - IP multicast address used by the cache routers. For the FortiGate to ignore multicast WCCP traffic, use the default 0.0.0.0.
- password String
- Password for MD5 authentication.
- ports String
- Service ports.
- ports
Defined String - Match method. Valid values:
source
,destination
. - primary
Hash String - Hash method. Valid values:
src-ip
,dst-ip
,src-port
,dst-port
. - priority Integer
- Service priority.
- protocol Integer
- Service protocol.
- return
Method String - Method used to decline a redirected packet and return it to the FortiGate. Valid values:
GRE
,L2
,any
. - router
Id String - IP address known to all cache engines. If all cache engines connect to the same FortiGate interface, use the default 0.0.0.0.
- router
List String - IP addresses of one or more WCCP routers.
- server
List String - IP addresses and netmasks for up to four cache servers.
- server
Type String - Cache server type. Valid values:
forward
,proxy
. - service
Id String - Service ID.
- service
Type String - WCCP service type used by the cache server for logical interception and redirection of traffic. Valid values:
auto
,standard
,dynamic
. - 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.
- assignment
Bucket stringFormat - Assignment bucket format for the WCCP cache engine. Valid values:
wccp-v2
,cisco-implementation
. - assignment
Dstaddr stringMask - Assignment destination address mask.
- assignment
Method string - Hash key assignment preference. Valid values:
HASH
,MASK
,any
. - assignment
Srcaddr stringMask - Assignment source address mask.
- assignment
Weight number - Assignment of hash weight/ratio for the WCCP cache engine.
- authentication string
- Enable/disable MD5 authentication. Valid values:
enable
,disable
. - cache
Engine stringMethod - Method used to forward traffic to the routers or to return to the cache engine. Valid values:
GRE
,L2
. - cache
Id string - IP address known to all routers. If the addresses are the same, use the default 0.0.0.0.
- forward
Method string - Method used to forward traffic to the cache servers. Valid values:
GRE
,L2
,any
. - group
Address string - IP multicast address used by the cache routers. For the FortiGate to ignore multicast WCCP traffic, use the default 0.0.0.0.
- password string
- Password for MD5 authentication.
- ports string
- Service ports.
- ports
Defined string - Match method. Valid values:
source
,destination
. - primary
Hash string - Hash method. Valid values:
src-ip
,dst-ip
,src-port
,dst-port
. - priority number
- Service priority.
- protocol number
- Service protocol.
- return
Method string - Method used to decline a redirected packet and return it to the FortiGate. Valid values:
GRE
,L2
,any
. - router
Id string - IP address known to all cache engines. If all cache engines connect to the same FortiGate interface, use the default 0.0.0.0.
- router
List string - IP addresses of one or more WCCP routers.
- server
List string - IP addresses and netmasks for up to four cache servers.
- server
Type string - Cache server type. Valid values:
forward
,proxy
. - service
Id string - Service ID.
- service
Type string - WCCP service type used by the cache server for logical interception and redirection of traffic. Valid values:
auto
,standard
,dynamic
. - 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.
- assignment_
bucket_ strformat - Assignment bucket format for the WCCP cache engine. Valid values:
wccp-v2
,cisco-implementation
. - assignment_
dstaddr_ strmask - Assignment destination address mask.
- assignment_
method str - Hash key assignment preference. Valid values:
HASH
,MASK
,any
. - assignment_
srcaddr_ strmask - Assignment source address mask.
- assignment_
weight int - Assignment of hash weight/ratio for the WCCP cache engine.
- authentication str
- Enable/disable MD5 authentication. Valid values:
enable
,disable
. - cache_
engine_ strmethod - Method used to forward traffic to the routers or to return to the cache engine. Valid values:
GRE
,L2
. - cache_
id str - IP address known to all routers. If the addresses are the same, use the default 0.0.0.0.
- forward_
method str - Method used to forward traffic to the cache servers. Valid values:
GRE
,L2
,any
. - group_
address str - IP multicast address used by the cache routers. For the FortiGate to ignore multicast WCCP traffic, use the default 0.0.0.0.
- password str
- Password for MD5 authentication.
- ports str
- Service ports.
- ports_
defined str - Match method. Valid values:
source
,destination
. - primary_
hash str - Hash method. Valid values:
src-ip
,dst-ip
,src-port
,dst-port
. - priority int
- Service priority.
- protocol int
- Service protocol.
- return_
method str - Method used to decline a redirected packet and return it to the FortiGate. Valid values:
GRE
,L2
,any
. - router_
id str - IP address known to all cache engines. If all cache engines connect to the same FortiGate interface, use the default 0.0.0.0.
- router_
list str - IP addresses of one or more WCCP routers.
- server_
list str - IP addresses and netmasks for up to four cache servers.
- server_
type str - Cache server type. Valid values:
forward
,proxy
. - service_
id str - Service ID.
- service_
type str - WCCP service type used by the cache server for logical interception and redirection of traffic. Valid values:
auto
,standard
,dynamic
. - 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.
- assignment
Bucket StringFormat - Assignment bucket format for the WCCP cache engine. Valid values:
wccp-v2
,cisco-implementation
. - assignment
Dstaddr StringMask - Assignment destination address mask.
- assignment
Method String - Hash key assignment preference. Valid values:
HASH
,MASK
,any
. - assignment
Srcaddr StringMask - Assignment source address mask.
- assignment
Weight Number - Assignment of hash weight/ratio for the WCCP cache engine.
- authentication String
- Enable/disable MD5 authentication. Valid values:
enable
,disable
. - cache
Engine StringMethod - Method used to forward traffic to the routers or to return to the cache engine. Valid values:
GRE
,L2
. - cache
Id String - IP address known to all routers. If the addresses are the same, use the default 0.0.0.0.
- forward
Method String - Method used to forward traffic to the cache servers. Valid values:
GRE
,L2
,any
. - group
Address String - IP multicast address used by the cache routers. For the FortiGate to ignore multicast WCCP traffic, use the default 0.0.0.0.
- password String
- Password for MD5 authentication.
- ports String
- Service ports.
- ports
Defined String - Match method. Valid values:
source
,destination
. - primary
Hash String - Hash method. Valid values:
src-ip
,dst-ip
,src-port
,dst-port
. - priority Number
- Service priority.
- protocol Number
- Service protocol.
- return
Method String - Method used to decline a redirected packet and return it to the FortiGate. Valid values:
GRE
,L2
,any
. - router
Id String - IP address known to all cache engines. If all cache engines connect to the same FortiGate interface, use the default 0.0.0.0.
- router
List String - IP addresses of one or more WCCP routers.
- server
List String - IP addresses and netmasks for up to four cache servers.
- server
Type String - Cache server type. Valid values:
forward
,proxy
. - service
Id String - Service ID.
- service
Type String - WCCP service type used by the cache server for logical interception and redirection of traffic. Valid values:
auto
,standard
,dynamic
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Import
System Wccp can be imported using any of these accepted formats:
$ pulumi import fortios:system/wccp:Wccp labelname {{service_id}}
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:system/wccp:Wccp labelname {{service_id}}
$ 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.