1. Packages
  2. Meraki Provider
  3. API Docs
  4. networks
  5. ApplianceContentFiltering
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi

meraki.networks.ApplianceContentFiltering

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi

    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:

    NetworkId string
    networkId path parameter. Network ID
    AllowedUrlPatterns List<string>
    A list of URL patterns that are allowed
    BlockedUrlCategories List<string>
    A list of URL categories to block
    BlockedUrlPatterns List<string>
    A list of URL patterns that are blocked
    UrlCategoryListSize string
    URL category list size which is either 'topSites' or 'fullList'
    NetworkId string
    networkId path parameter. Network ID
    AllowedUrlPatterns []string
    A list of URL patterns that are allowed
    BlockedUrlCategories []string
    A list of URL categories to block
    BlockedUrlPatterns []string
    A list of URL patterns that are blocked
    UrlCategoryListSize string
    URL category list size which is either 'topSites' or 'fullList'
    networkId String
    networkId path parameter. Network ID
    allowedUrlPatterns List<String>
    A list of URL patterns that are allowed
    blockedUrlCategories List<String>
    A list of URL categories to block
    blockedUrlPatterns List<String>
    A list of URL patterns that are blocked
    urlCategoryListSize String
    URL category list size which is either 'topSites' or 'fullList'
    networkId string
    networkId path parameter. Network ID
    allowedUrlPatterns string[]
    A list of URL patterns that are allowed
    blockedUrlCategories string[]
    A list of URL categories to block
    blockedUrlPatterns string[]
    A list of URL patterns that are blocked
    urlCategoryListSize string
    URL category list size which is either 'topSites' or 'fullList'
    network_id str
    networkId path parameter. Network ID
    allowed_url_patterns Sequence[str]
    A list of URL patterns that are allowed
    blocked_url_categories Sequence[str]
    A list of URL categories to block
    blocked_url_patterns Sequence[str]
    A list of URL patterns that are blocked
    url_category_list_size str
    URL category list size which is either 'topSites' or 'fullList'
    networkId String
    networkId path parameter. Network ID
    allowedUrlPatterns List<String>
    A list of URL patterns that are allowed
    blockedUrlCategories List<String>
    A list of URL categories to block
    blockedUrlPatterns List<String>
    A list of URL patterns that are blocked
    urlCategoryListSize String
    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:

    BlockedUrlCategoriesResponses List<ApplianceContentFilteringBlockedUrlCategoriesResponse>
    Id string
    The provider-assigned unique ID for this managed resource.
    BlockedUrlCategoriesResponses []ApplianceContentFilteringBlockedUrlCategoriesResponse
    Id string
    The provider-assigned unique ID for this managed resource.
    blockedUrlCategoriesResponses List<ApplianceContentFilteringBlockedUrlCategoriesResponse>
    id String
    The provider-assigned unique ID for this managed resource.
    blockedUrlCategoriesResponses ApplianceContentFilteringBlockedUrlCategoriesResponse[]
    id string
    The provider-assigned unique ID for this managed resource.
    blockedUrlCategoriesResponses List<Property Map>
    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.
    The following state arguments are supported:
    AllowedUrlPatterns List<string>
    A list of URL patterns that are allowed
    BlockedUrlCategories List<string>
    A list of URL categories to block
    BlockedUrlCategoriesResponses List<ApplianceContentFilteringBlockedUrlCategoriesResponse>
    BlockedUrlPatterns List<string>
    A list of URL patterns that are blocked
    NetworkId string
    networkId path parameter. Network ID
    UrlCategoryListSize string
    URL category list size which is either 'topSites' or 'fullList'
    AllowedUrlPatterns []string
    A list of URL patterns that are allowed
    BlockedUrlCategories []string
    A list of URL categories to block
    BlockedUrlCategoriesResponses []ApplianceContentFilteringBlockedUrlCategoriesResponseArgs
    BlockedUrlPatterns []string
    A list of URL patterns that are blocked
    NetworkId string
    networkId path parameter. Network ID
    UrlCategoryListSize string
    URL category list size which is either 'topSites' or 'fullList'
    allowedUrlPatterns List<String>
    A list of URL patterns that are allowed
    blockedUrlCategories List<String>
    A list of URL categories to block
    blockedUrlCategoriesResponses List<ApplianceContentFilteringBlockedUrlCategoriesResponse>
    blockedUrlPatterns List<String>
    A list of URL patterns that are blocked
    networkId String
    networkId path parameter. Network ID
    urlCategoryListSize String
    URL category list size which is either 'topSites' or 'fullList'
    allowedUrlPatterns string[]
    A list of URL patterns that are allowed
    blockedUrlCategories string[]
    A list of URL categories to block
    blockedUrlCategoriesResponses ApplianceContentFilteringBlockedUrlCategoriesResponse[]
    blockedUrlPatterns string[]
    A list of URL patterns that are blocked
    networkId string
    networkId path parameter. Network ID
    urlCategoryListSize string
    URL category list size which is either 'topSites' or 'fullList'
    allowed_url_patterns Sequence[str]
    A list of URL patterns that are allowed
    blocked_url_categories Sequence[str]
    A list of URL categories to block
    blocked_url_categories_responses Sequence[ApplianceContentFilteringBlockedUrlCategoriesResponseArgs]
    blocked_url_patterns Sequence[str]
    A list of URL patterns that are blocked
    network_id str
    networkId path parameter. Network ID
    url_category_list_size str
    URL category list size which is either 'topSites' or 'fullList'
    allowedUrlPatterns List<String>
    A list of URL patterns that are allowed
    blockedUrlCategories List<String>
    A list of URL categories to block
    blockedUrlCategoriesResponses List<Property Map>
    blockedUrlPatterns List<String>
    A list of URL patterns that are blocked
    networkId String
    networkId path parameter. Network ID
    urlCategoryListSize String
    URL category list size which is either 'topSites' or 'fullList'

    Supporting Types

    ApplianceContentFilteringBlockedUrlCategoriesResponse, ApplianceContentFilteringBlockedUrlCategoriesResponseArgs

    Id string
    Name string
    Id string
    Name string
    id String
    name String
    id string
    name string
    id str
    name str
    id String
    name String

    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.
    meraki logo
    Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi