meraki.networks.ApplianceContentFiltering
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = new meraki.networks.ApplianceContentFiltering("example", {
allowedUrlPatterns: [
"http://www.example.org",
"http://help.com.au",
],
blockedUrlCategories: [
"meraki:contentFiltering/category/1",
"meraki:contentFiltering/category/7",
],
blockedUrlPatterns: [
"http://www.example.com",
"http://www.betting.com",
],
networkId: "string",
urlCategoryListSize: "topSites",
});
export const merakiNetworksApplianceContentFilteringExample = example;
import pulumi
import pulumi_meraki as meraki
example = meraki.networks.ApplianceContentFiltering("example",
allowed_url_patterns=[
"http://www.example.org",
"http://help.com.au",
],
blocked_url_categories=[
"meraki:contentFiltering/category/1",
"meraki:contentFiltering/category/7",
],
blocked_url_patterns=[
"http://www.example.com",
"http://www.betting.com",
],
network_id="string",
url_category_list_size="topSites")
pulumi.export("merakiNetworksApplianceContentFilteringExample", example)
package main
import (
"github.com/pulumi/pulumi-meraki/sdk/go/meraki/networks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := networks.NewApplianceContentFiltering(ctx, "example", &networks.ApplianceContentFilteringArgs{
AllowedUrlPatterns: pulumi.StringArray{
pulumi.String("http://www.example.org"),
pulumi.String("http://help.com.au"),
},
BlockedUrlCategories: pulumi.StringArray{
pulumi.String("meraki:contentFiltering/category/1"),
pulumi.String("meraki:contentFiltering/category/7"),
},
BlockedUrlPatterns: pulumi.StringArray{
pulumi.String("http://www.example.com"),
pulumi.String("http://www.betting.com"),
},
NetworkId: pulumi.String("string"),
UrlCategoryListSize: pulumi.String("topSites"),
})
if err != nil {
return err
}
ctx.Export("merakiNetworksApplianceContentFilteringExample", example)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;
return await Deployment.RunAsync(() =>
{
var example = new Meraki.Networks.ApplianceContentFiltering("example", new()
{
AllowedUrlPatterns = new[]
{
"http://www.example.org",
"http://help.com.au",
},
BlockedUrlCategories = new[]
{
"meraki:contentFiltering/category/1",
"meraki:contentFiltering/category/7",
},
BlockedUrlPatterns = new[]
{
"http://www.example.com",
"http://www.betting.com",
},
NetworkId = "string",
UrlCategoryListSize = "topSites",
});
return new Dictionary<string, object?>
{
["merakiNetworksApplianceContentFilteringExample"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.networks.ApplianceContentFiltering;
import com.pulumi.meraki.networks.ApplianceContentFilteringArgs;
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 example = new ApplianceContentFiltering("example", ApplianceContentFilteringArgs.builder()
.allowedUrlPatterns(
"http://www.example.org",
"http://help.com.au")
.blockedUrlCategories(
"meraki:contentFiltering/category/1",
"meraki:contentFiltering/category/7")
.blockedUrlPatterns(
"http://www.example.com",
"http://www.betting.com")
.networkId("string")
.urlCategoryListSize("topSites")
.build());
ctx.export("merakiNetworksApplianceContentFilteringExample", example);
}
}
resources:
example:
type: meraki:networks:ApplianceContentFiltering
properties:
allowedUrlPatterns:
- http://www.example.org
- http://help.com.au
blockedUrlCategories:
- meraki:contentFiltering/category/1
- meraki:contentFiltering/category/7
blockedUrlPatterns:
- http://www.example.com
- http://www.betting.com
networkId: string
urlCategoryListSize: topSites
outputs:
merakiNetworksApplianceContentFilteringExample: ${example}
Create ApplianceContentFiltering Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApplianceContentFiltering(name: string, args: ApplianceContentFilteringArgs, opts?: CustomResourceOptions);
@overload
def ApplianceContentFiltering(resource_name: str,
args: ApplianceContentFilteringArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApplianceContentFiltering(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_id: Optional[str] = None,
allowed_url_patterns: Optional[Sequence[str]] = None,
blocked_url_categories: Optional[Sequence[str]] = None,
blocked_url_patterns: Optional[Sequence[str]] = None,
url_category_list_size: Optional[str] = None)
func NewApplianceContentFiltering(ctx *Context, name string, args ApplianceContentFilteringArgs, opts ...ResourceOption) (*ApplianceContentFiltering, error)
public ApplianceContentFiltering(string name, ApplianceContentFilteringArgs args, CustomResourceOptions? opts = null)
public ApplianceContentFiltering(String name, ApplianceContentFilteringArgs args)
public ApplianceContentFiltering(String name, ApplianceContentFilteringArgs args, CustomResourceOptions options)
type: meraki:networks:ApplianceContentFiltering
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 ApplianceContentFilteringArgs
- 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 ApplianceContentFilteringArgs
- 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 ApplianceContentFilteringArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplianceContentFilteringArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApplianceContentFilteringArgs
- 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 applianceContentFilteringResource = new Meraki.Networks.ApplianceContentFiltering("applianceContentFilteringResource", new()
{
NetworkId = "string",
AllowedUrlPatterns = new[]
{
"string",
},
BlockedUrlCategories = new[]
{
"string",
},
BlockedUrlPatterns = new[]
{
"string",
},
UrlCategoryListSize = "string",
});
example, err := networks.NewApplianceContentFiltering(ctx, "applianceContentFilteringResource", &networks.ApplianceContentFilteringArgs{
NetworkId: pulumi.String("string"),
AllowedUrlPatterns: pulumi.StringArray{
pulumi.String("string"),
},
BlockedUrlCategories: pulumi.StringArray{
pulumi.String("string"),
},
BlockedUrlPatterns: pulumi.StringArray{
pulumi.String("string"),
},
UrlCategoryListSize: pulumi.String("string"),
})
var applianceContentFilteringResource = new ApplianceContentFiltering("applianceContentFilteringResource", ApplianceContentFilteringArgs.builder()
.networkId("string")
.allowedUrlPatterns("string")
.blockedUrlCategories("string")
.blockedUrlPatterns("string")
.urlCategoryListSize("string")
.build());
appliance_content_filtering_resource = meraki.networks.ApplianceContentFiltering("applianceContentFilteringResource",
network_id="string",
allowed_url_patterns=["string"],
blocked_url_categories=["string"],
blocked_url_patterns=["string"],
url_category_list_size="string")
const applianceContentFilteringResource = new meraki.networks.ApplianceContentFiltering("applianceContentFilteringResource", {
networkId: "string",
allowedUrlPatterns: ["string"],
blockedUrlCategories: ["string"],
blockedUrlPatterns: ["string"],
urlCategoryListSize: "string",
});
type: meraki:networks:ApplianceContentFiltering
properties:
allowedUrlPatterns:
- string
blockedUrlCategories:
- string
blockedUrlPatterns:
- string
networkId: string
urlCategoryListSize: string
ApplianceContentFiltering 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 ApplianceContentFiltering resource accepts the following input properties:
- Network
Id string - networkId path parameter. Network ID
- Allowed
Url List<string>Patterns - A list of URL patterns that are allowed
- Blocked
Url List<string>Categories - A list of URL categories to block
- Blocked
Url List<string>Patterns - A list of URL patterns that are blocked
- Url
Category stringList Size - URL category list size which is either 'topSites' or 'fullList'
- Network
Id string - networkId path parameter. Network ID
- Allowed
Url []stringPatterns - A list of URL patterns that are allowed
- Blocked
Url []stringCategories - A list of URL categories to block
- Blocked
Url []stringPatterns - A list of URL patterns that are blocked
- Url
Category stringList Size - URL category list size which is either 'topSites' or 'fullList'
- network
Id String - networkId path parameter. Network ID
- allowed
Url List<String>Patterns - A list of URL patterns that are allowed
- blocked
Url List<String>Categories - A list of URL categories to block
- blocked
Url List<String>Patterns - A list of URL patterns that are blocked
- url
Category StringList Size - URL category list size which is either 'topSites' or 'fullList'
- network
Id string - networkId path parameter. Network ID
- allowed
Url string[]Patterns - A list of URL patterns that are allowed
- blocked
Url string[]Categories - A list of URL categories to block
- blocked
Url string[]Patterns - A list of URL patterns that are blocked
- url
Category stringList Size - URL category list size which is either 'topSites' or 'fullList'
- network_
id str - networkId path parameter. Network ID
- allowed_
url_ Sequence[str]patterns - A list of URL patterns that are allowed
- blocked_
url_ Sequence[str]categories - A list of URL categories to block
- blocked_
url_ Sequence[str]patterns - A list of URL patterns that are blocked
- url_
category_ strlist_ size - URL category list size which is either 'topSites' or 'fullList'
- network
Id String - networkId path parameter. Network ID
- allowed
Url List<String>Patterns - A list of URL patterns that are allowed
- blocked
Url List<String>Categories - A list of URL categories to block
- blocked
Url List<String>Patterns - A list of URL patterns that are blocked
- url
Category StringList Size - URL category list size which is either 'topSites' or 'fullList'
Outputs
All input properties are implicitly available as output properties. Additionally, the ApplianceContentFiltering resource produces the following output properties:
- Blocked
Url List<ApplianceCategories Responses Content Filtering Blocked Url Categories Response> - Id string
- The provider-assigned unique ID for this managed resource.
- Blocked
Url []ApplianceCategories Responses Content Filtering Blocked Url Categories Response - Id string
- The provider-assigned unique ID for this managed resource.
- blocked
Url List<ApplianceCategories Responses Content Filtering Blocked Url Categories Response> - id String
- The provider-assigned unique ID for this managed resource.
- blocked
Url ApplianceCategories Responses Content Filtering Blocked Url Categories Response[] - id string
- The provider-assigned unique ID for this managed resource.
- blocked_
url_ Sequence[Appliancecategories_ responses Content Filtering Blocked Url Categories Response] - id str
- The provider-assigned unique ID for this managed resource.
- blocked
Url List<Property Map>Categories Responses - id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ApplianceContentFiltering Resource
Get an existing ApplianceContentFiltering 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?: ApplianceContentFilteringState, opts?: CustomResourceOptions): ApplianceContentFiltering
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allowed_url_patterns: Optional[Sequence[str]] = None,
blocked_url_categories: Optional[Sequence[str]] = None,
blocked_url_categories_responses: Optional[Sequence[ApplianceContentFilteringBlockedUrlCategoriesResponseArgs]] = None,
blocked_url_patterns: Optional[Sequence[str]] = None,
network_id: Optional[str] = None,
url_category_list_size: Optional[str] = None) -> ApplianceContentFiltering
func GetApplianceContentFiltering(ctx *Context, name string, id IDInput, state *ApplianceContentFilteringState, opts ...ResourceOption) (*ApplianceContentFiltering, error)
public static ApplianceContentFiltering Get(string name, Input<string> id, ApplianceContentFilteringState? state, CustomResourceOptions? opts = null)
public static ApplianceContentFiltering get(String name, Output<String> id, ApplianceContentFilteringState 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.
- Allowed
Url List<string>Patterns - A list of URL patterns that are allowed
- Blocked
Url List<string>Categories - A list of URL categories to block
- Blocked
Url List<ApplianceCategories Responses Content Filtering Blocked Url Categories Response> - Blocked
Url List<string>Patterns - A list of URL patterns that are blocked
- Network
Id string - networkId path parameter. Network ID
- Url
Category stringList Size - URL category list size which is either 'topSites' or 'fullList'
- Allowed
Url []stringPatterns - A list of URL patterns that are allowed
- Blocked
Url []stringCategories - A list of URL categories to block
- Blocked
Url []ApplianceCategories Responses Content Filtering Blocked Url Categories Response Args - Blocked
Url []stringPatterns - A list of URL patterns that are blocked
- Network
Id string - networkId path parameter. Network ID
- Url
Category stringList Size - URL category list size which is either 'topSites' or 'fullList'
- allowed
Url List<String>Patterns - A list of URL patterns that are allowed
- blocked
Url List<String>Categories - A list of URL categories to block
- blocked
Url List<ApplianceCategories Responses Content Filtering Blocked Url Categories Response> - blocked
Url List<String>Patterns - A list of URL patterns that are blocked
- network
Id String - networkId path parameter. Network ID
- url
Category StringList Size - URL category list size which is either 'topSites' or 'fullList'
- allowed
Url string[]Patterns - A list of URL patterns that are allowed
- blocked
Url string[]Categories - A list of URL categories to block
- blocked
Url ApplianceCategories Responses Content Filtering Blocked Url Categories Response[] - blocked
Url string[]Patterns - A list of URL patterns that are blocked
- network
Id string - networkId path parameter. Network ID
- url
Category stringList Size - URL category list size which is either 'topSites' or 'fullList'
- allowed_
url_ Sequence[str]patterns - A list of URL patterns that are allowed
- blocked_
url_ Sequence[str]categories - A list of URL categories to block
- blocked_
url_ Sequence[Appliancecategories_ responses Content Filtering Blocked Url Categories Response Args] - blocked_
url_ Sequence[str]patterns - A list of URL patterns that are blocked
- network_
id str - networkId path parameter. Network ID
- url_
category_ strlist_ size - URL category list size which is either 'topSites' or 'fullList'
- allowed
Url List<String>Patterns - A list of URL patterns that are allowed
- blocked
Url List<String>Categories - A list of URL categories to block
- blocked
Url List<Property Map>Categories Responses - blocked
Url List<String>Patterns - A list of URL patterns that are blocked
- network
Id String - networkId path parameter. Network ID
- url
Category StringList Size - URL category list size which is either 'topSites' or 'fullList'
Supporting Types
ApplianceContentFilteringBlockedUrlCategoriesResponse, ApplianceContentFilteringBlockedUrlCategoriesResponseArgs
Import
$ pulumi import meraki:networks/applianceContentFiltering:ApplianceContentFiltering example "network_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
meraki
Terraform Provider.