1. Packages
  2. Packages
  3. Panos Provider
  4. API Docs
  5. CustomDataObject
Viewing docs for panos 2.0.11
published on Tuesday, Apr 28, 2026 by paloaltonetworks
Viewing docs for panos 2.0.11
published on Tuesday, Apr 28, 2026 by paloaltonetworks

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as panos from "@pulumi/panos";
    
    const example = new panos.DeviceGroup("example", {
        location: {
            panorama: {},
        },
        name: "example-dg",
    });
    const basic = new panos.CustomDataObject("basic", {
        location: {
            deviceGroup: {
                name: example.name,
            },
        },
        name: "basic",
        description: "test-description",
    });
    const fileProperties = new panos.CustomDataObject("file_properties", {
        location: {
            deviceGroup: {
                name: example.name,
            },
        },
        name: "file_properties",
        patternType: {
            fileProperties: {
                patterns: [{
                    name: "test-pattern",
                    fileType: "pdf",
                    fileProperty: "panav-rsp-pdf-dlp-author",
                    propertyValue: "author",
                }],
            },
        },
    });
    const predefined = new panos.CustomDataObject("predefined", {
        location: {
            deviceGroup: {
                name: example.name,
            },
        },
        name: "predefined",
        patternType: {
            predefined: {
                patterns: [
                    {
                        name: "ABA-Routing-Number",
                        fileTypes: ["xlsx"],
                    },
                    {
                        name: "credit-card-numbers",
                        fileTypes: ["text/html"],
                    },
                ],
            },
        },
    });
    const regex = new panos.CustomDataObject("regex", {
        location: {
            deviceGroup: {
                name: example.name,
            },
        },
        name: "regex",
        patternType: {
            regex: {
                patterns: [{
                    name: "test-pattern",
                    regex: "test-regex",
                }],
            },
        },
    });
    
    import pulumi
    import pulumi_panos as panos
    
    example = panos.DeviceGroup("example",
        location={
            "panorama": {},
        },
        name="example-dg")
    basic = panos.CustomDataObject("basic",
        location={
            "device_group": {
                "name": example.name,
            },
        },
        name="basic",
        description="test-description")
    file_properties = panos.CustomDataObject("file_properties",
        location={
            "device_group": {
                "name": example.name,
            },
        },
        name="file_properties",
        pattern_type={
            "file_properties": {
                "patterns": [{
                    "name": "test-pattern",
                    "file_type": "pdf",
                    "file_property": "panav-rsp-pdf-dlp-author",
                    "property_value": "author",
                }],
            },
        })
    predefined = panos.CustomDataObject("predefined",
        location={
            "device_group": {
                "name": example.name,
            },
        },
        name="predefined",
        pattern_type={
            "predefined": {
                "patterns": [
                    {
                        "name": "ABA-Routing-Number",
                        "file_types": ["xlsx"],
                    },
                    {
                        "name": "credit-card-numbers",
                        "file_types": ["text/html"],
                    },
                ],
            },
        })
    regex = panos.CustomDataObject("regex",
        location={
            "device_group": {
                "name": example.name,
            },
        },
        name="regex",
        pattern_type={
            "regex": {
                "patterns": [{
                    "name": "test-pattern",
                    "regex": "test-regex",
                }],
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/panos/v2/panos"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := panos.NewDeviceGroup(ctx, "example", &panos.DeviceGroupArgs{
    			Location: &panos.DeviceGroupLocationArgs{
    				Panorama: &panos.DeviceGroupLocationPanoramaArgs{},
    			},
    			Name: pulumi.String("example-dg"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = panos.NewCustomDataObject(ctx, "basic", &panos.CustomDataObjectArgs{
    			Location: &panos.CustomDataObjectLocationArgs{
    				DeviceGroup: &panos.CustomDataObjectLocationDeviceGroupArgs{
    					Name: example.Name,
    				},
    			},
    			Name:        pulumi.String("basic"),
    			Description: pulumi.String("test-description"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = panos.NewCustomDataObject(ctx, "file_properties", &panos.CustomDataObjectArgs{
    			Location: &panos.CustomDataObjectLocationArgs{
    				DeviceGroup: &panos.CustomDataObjectLocationDeviceGroupArgs{
    					Name: example.Name,
    				},
    			},
    			Name: pulumi.String("file_properties"),
    			PatternType: &panos.CustomDataObjectPatternTypeArgs{
    				FileProperties: &panos.CustomDataObjectPatternTypeFilePropertiesArgs{
    					Patterns: panos.CustomDataObjectPatternTypeFilePropertiesPatternArray{
    						&panos.CustomDataObjectPatternTypeFilePropertiesPatternArgs{
    							Name:          pulumi.String("test-pattern"),
    							FileType:      pulumi.String("pdf"),
    							FileProperty:  pulumi.String("panav-rsp-pdf-dlp-author"),
    							PropertyValue: pulumi.String("author"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = panos.NewCustomDataObject(ctx, "predefined", &panos.CustomDataObjectArgs{
    			Location: &panos.CustomDataObjectLocationArgs{
    				DeviceGroup: &panos.CustomDataObjectLocationDeviceGroupArgs{
    					Name: example.Name,
    				},
    			},
    			Name: pulumi.String("predefined"),
    			PatternType: &panos.CustomDataObjectPatternTypeArgs{
    				Predefined: &panos.CustomDataObjectPatternTypePredefinedArgs{
    					Patterns: panos.CustomDataObjectPatternTypePredefinedPatternArray{
    						&panos.CustomDataObjectPatternTypePredefinedPatternArgs{
    							Name: pulumi.String("ABA-Routing-Number"),
    							FileTypes: pulumi.StringArray{
    								pulumi.String("xlsx"),
    							},
    						},
    						&panos.CustomDataObjectPatternTypePredefinedPatternArgs{
    							Name: pulumi.String("credit-card-numbers"),
    							FileTypes: pulumi.StringArray{
    								pulumi.String("text/html"),
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = panos.NewCustomDataObject(ctx, "regex", &panos.CustomDataObjectArgs{
    			Location: &panos.CustomDataObjectLocationArgs{
    				DeviceGroup: &panos.CustomDataObjectLocationDeviceGroupArgs{
    					Name: example.Name,
    				},
    			},
    			Name: pulumi.String("regex"),
    			PatternType: &panos.CustomDataObjectPatternTypeArgs{
    				Regex: &panos.CustomDataObjectPatternTypeRegexArgs{
    					Patterns: panos.CustomDataObjectPatternTypeRegexPatternArray{
    						&panos.CustomDataObjectPatternTypeRegexPatternArgs{
    							Name:  pulumi.String("test-pattern"),
    							Regex: pulumi.String("test-regex"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Panos = Pulumi.Panos;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Panos.DeviceGroup("example", new()
        {
            Location = new Panos.Inputs.DeviceGroupLocationArgs
            {
                Panorama = null,
            },
            Name = "example-dg",
        });
    
        var basic = new Panos.CustomDataObject("basic", new()
        {
            Location = new Panos.Inputs.CustomDataObjectLocationArgs
            {
                DeviceGroup = new Panos.Inputs.CustomDataObjectLocationDeviceGroupArgs
                {
                    Name = example.Name,
                },
            },
            Name = "basic",
            Description = "test-description",
        });
    
        var fileProperties = new Panos.CustomDataObject("file_properties", new()
        {
            Location = new Panos.Inputs.CustomDataObjectLocationArgs
            {
                DeviceGroup = new Panos.Inputs.CustomDataObjectLocationDeviceGroupArgs
                {
                    Name = example.Name,
                },
            },
            Name = "file_properties",
            PatternType = new Panos.Inputs.CustomDataObjectPatternTypeArgs
            {
                FileProperties = new Panos.Inputs.CustomDataObjectPatternTypeFilePropertiesArgs
                {
                    Patterns = new[]
                    {
                        new Panos.Inputs.CustomDataObjectPatternTypeFilePropertiesPatternArgs
                        {
                            Name = "test-pattern",
                            FileType = "pdf",
                            FileProperty = "panav-rsp-pdf-dlp-author",
                            PropertyValue = "author",
                        },
                    },
                },
            },
        });
    
        var predefined = new Panos.CustomDataObject("predefined", new()
        {
            Location = new Panos.Inputs.CustomDataObjectLocationArgs
            {
                DeviceGroup = new Panos.Inputs.CustomDataObjectLocationDeviceGroupArgs
                {
                    Name = example.Name,
                },
            },
            Name = "predefined",
            PatternType = new Panos.Inputs.CustomDataObjectPatternTypeArgs
            {
                Predefined = new Panos.Inputs.CustomDataObjectPatternTypePredefinedArgs
                {
                    Patterns = new[]
                    {
                        new Panos.Inputs.CustomDataObjectPatternTypePredefinedPatternArgs
                        {
                            Name = "ABA-Routing-Number",
                            FileTypes = new[]
                            {
                                "xlsx",
                            },
                        },
                        new Panos.Inputs.CustomDataObjectPatternTypePredefinedPatternArgs
                        {
                            Name = "credit-card-numbers",
                            FileTypes = new[]
                            {
                                "text/html",
                            },
                        },
                    },
                },
            },
        });
    
        var regex = new Panos.CustomDataObject("regex", new()
        {
            Location = new Panos.Inputs.CustomDataObjectLocationArgs
            {
                DeviceGroup = new Panos.Inputs.CustomDataObjectLocationDeviceGroupArgs
                {
                    Name = example.Name,
                },
            },
            Name = "regex",
            PatternType = new Panos.Inputs.CustomDataObjectPatternTypeArgs
            {
                Regex = new Panos.Inputs.CustomDataObjectPatternTypeRegexArgs
                {
                    Patterns = new[]
                    {
                        new Panos.Inputs.CustomDataObjectPatternTypeRegexPatternArgs
                        {
                            Name = "test-pattern",
                            Regex = "test-regex",
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.panos.DeviceGroup;
    import com.pulumi.panos.DeviceGroupArgs;
    import com.pulumi.panos.inputs.DeviceGroupLocationArgs;
    import com.pulumi.panos.inputs.DeviceGroupLocationPanoramaArgs;
    import com.pulumi.panos.CustomDataObject;
    import com.pulumi.panos.CustomDataObjectArgs;
    import com.pulumi.panos.inputs.CustomDataObjectLocationArgs;
    import com.pulumi.panos.inputs.CustomDataObjectLocationDeviceGroupArgs;
    import com.pulumi.panos.inputs.CustomDataObjectPatternTypeArgs;
    import com.pulumi.panos.inputs.CustomDataObjectPatternTypeFilePropertiesArgs;
    import com.pulumi.panos.inputs.CustomDataObjectPatternTypePredefinedArgs;
    import com.pulumi.panos.inputs.CustomDataObjectPatternTypeRegexArgs;
    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 DeviceGroup("example", DeviceGroupArgs.builder()
                .location(DeviceGroupLocationArgs.builder()
                    .panorama(DeviceGroupLocationPanoramaArgs.builder()
                        .build())
                    .build())
                .name("example-dg")
                .build());
    
            var basic = new CustomDataObject("basic", CustomDataObjectArgs.builder()
                .location(CustomDataObjectLocationArgs.builder()
                    .deviceGroup(CustomDataObjectLocationDeviceGroupArgs.builder()
                        .name(example.name())
                        .build())
                    .build())
                .name("basic")
                .description("test-description")
                .build());
    
            var fileProperties = new CustomDataObject("fileProperties", CustomDataObjectArgs.builder()
                .location(CustomDataObjectLocationArgs.builder()
                    .deviceGroup(CustomDataObjectLocationDeviceGroupArgs.builder()
                        .name(example.name())
                        .build())
                    .build())
                .name("file_properties")
                .patternType(CustomDataObjectPatternTypeArgs.builder()
                    .fileProperties(CustomDataObjectPatternTypeFilePropertiesArgs.builder()
                        .patterns(CustomDataObjectPatternTypeFilePropertiesPatternArgs.builder()
                            .name("test-pattern")
                            .fileType("pdf")
                            .fileProperty("panav-rsp-pdf-dlp-author")
                            .propertyValue("author")
                            .build())
                        .build())
                    .build())
                .build());
    
            var predefined = new CustomDataObject("predefined", CustomDataObjectArgs.builder()
                .location(CustomDataObjectLocationArgs.builder()
                    .deviceGroup(CustomDataObjectLocationDeviceGroupArgs.builder()
                        .name(example.name())
                        .build())
                    .build())
                .name("predefined")
                .patternType(CustomDataObjectPatternTypeArgs.builder()
                    .predefined(CustomDataObjectPatternTypePredefinedArgs.builder()
                        .patterns(                    
                            CustomDataObjectPatternTypePredefinedPatternArgs.builder()
                                .name("ABA-Routing-Number")
                                .fileTypes("xlsx")
                                .build(),
                            CustomDataObjectPatternTypePredefinedPatternArgs.builder()
                                .name("credit-card-numbers")
                                .fileTypes("text/html")
                                .build())
                        .build())
                    .build())
                .build());
    
            var regex = new CustomDataObject("regex", CustomDataObjectArgs.builder()
                .location(CustomDataObjectLocationArgs.builder()
                    .deviceGroup(CustomDataObjectLocationDeviceGroupArgs.builder()
                        .name(example.name())
                        .build())
                    .build())
                .name("regex")
                .patternType(CustomDataObjectPatternTypeArgs.builder()
                    .regex(CustomDataObjectPatternTypeRegexArgs.builder()
                        .patterns(CustomDataObjectPatternTypeRegexPatternArgs.builder()
                            .name("test-pattern")
                            .regex("test-regex")
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: panos:DeviceGroup
        properties:
          location:
            panorama: {}
          name: example-dg
      basic:
        type: panos:CustomDataObject
        properties:
          location:
            deviceGroup:
              name: ${example.name}
          name: basic
          description: test-description
      fileProperties:
        type: panos:CustomDataObject
        name: file_properties
        properties:
          location:
            deviceGroup:
              name: ${example.name}
          name: file_properties
          patternType:
            fileProperties:
              patterns:
                - name: test-pattern
                  fileType: pdf
                  fileProperty: panav-rsp-pdf-dlp-author
                  propertyValue: author
      predefined:
        type: panos:CustomDataObject
        properties:
          location:
            deviceGroup:
              name: ${example.name}
          name: predefined
          patternType:
            predefined:
              patterns:
                - name: ABA-Routing-Number
                  fileTypes:
                    - xlsx
                - name: credit-card-numbers
                  fileTypes:
                    - text/html
      regex:
        type: panos:CustomDataObject
        properties:
          location:
            deviceGroup:
              name: ${example.name}
          name: regex
          patternType:
            regex:
              patterns:
                - name: test-pattern
                  regex: test-regex
    

    Create CustomDataObject Resource

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

    Constructor syntax

    new CustomDataObject(name: string, args: CustomDataObjectArgs, opts?: CustomResourceOptions);
    @overload
    def CustomDataObject(resource_name: str,
                         args: CustomDataObjectArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def CustomDataObject(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         location: Optional[CustomDataObjectLocationArgs] = None,
                         description: Optional[str] = None,
                         disable_override: Optional[str] = None,
                         name: Optional[str] = None,
                         pattern_type: Optional[CustomDataObjectPatternTypeArgs] = None)
    func NewCustomDataObject(ctx *Context, name string, args CustomDataObjectArgs, opts ...ResourceOption) (*CustomDataObject, error)
    public CustomDataObject(string name, CustomDataObjectArgs args, CustomResourceOptions? opts = null)
    public CustomDataObject(String name, CustomDataObjectArgs args)
    public CustomDataObject(String name, CustomDataObjectArgs args, CustomResourceOptions options)
    
    type: panos:CustomDataObject
    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 CustomDataObjectArgs
    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 CustomDataObjectArgs
    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 CustomDataObjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CustomDataObjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CustomDataObjectArgs
    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 customDataObjectResource = new Panos.CustomDataObject("customDataObjectResource", new()
    {
        Location = new Panos.Inputs.CustomDataObjectLocationArgs
        {
            DeviceGroup = new Panos.Inputs.CustomDataObjectLocationDeviceGroupArgs
            {
                Name = "string",
                PanoramaDevice = "string",
            },
            Shared = null,
            Vsys = new Panos.Inputs.CustomDataObjectLocationVsysArgs
            {
                Name = "string",
                NgfwDevice = "string",
            },
        },
        Description = "string",
        DisableOverride = "string",
        Name = "string",
        PatternType = new Panos.Inputs.CustomDataObjectPatternTypeArgs
        {
            FileProperties = new Panos.Inputs.CustomDataObjectPatternTypeFilePropertiesArgs
            {
                Patterns = new[]
                {
                    new Panos.Inputs.CustomDataObjectPatternTypeFilePropertiesPatternArgs
                    {
                        Name = "string",
                        FileProperty = "string",
                        FileType = "string",
                        PropertyValue = "string",
                    },
                },
            },
            Predefined = new Panos.Inputs.CustomDataObjectPatternTypePredefinedArgs
            {
                Patterns = new[]
                {
                    new Panos.Inputs.CustomDataObjectPatternTypePredefinedPatternArgs
                    {
                        Name = "string",
                        FileTypes = new[]
                        {
                            "string",
                        },
                    },
                },
            },
            Regex = new Panos.Inputs.CustomDataObjectPatternTypeRegexArgs
            {
                Patterns = new[]
                {
                    new Panos.Inputs.CustomDataObjectPatternTypeRegexPatternArgs
                    {
                        Name = "string",
                        FileTypes = new[]
                        {
                            "string",
                        },
                        Regex = "string",
                    },
                },
            },
        },
    });
    
    example, err := panos.NewCustomDataObject(ctx, "customDataObjectResource", &panos.CustomDataObjectArgs{
    	Location: &panos.CustomDataObjectLocationArgs{
    		DeviceGroup: &panos.CustomDataObjectLocationDeviceGroupArgs{
    			Name:           pulumi.String("string"),
    			PanoramaDevice: pulumi.String("string"),
    		},
    		Shared: &panos.CustomDataObjectLocationSharedArgs{},
    		Vsys: &panos.CustomDataObjectLocationVsysArgs{
    			Name:       pulumi.String("string"),
    			NgfwDevice: pulumi.String("string"),
    		},
    	},
    	Description:     pulumi.String("string"),
    	DisableOverride: pulumi.String("string"),
    	Name:            pulumi.String("string"),
    	PatternType: &panos.CustomDataObjectPatternTypeArgs{
    		FileProperties: &panos.CustomDataObjectPatternTypeFilePropertiesArgs{
    			Patterns: panos.CustomDataObjectPatternTypeFilePropertiesPatternArray{
    				&panos.CustomDataObjectPatternTypeFilePropertiesPatternArgs{
    					Name:          pulumi.String("string"),
    					FileProperty:  pulumi.String("string"),
    					FileType:      pulumi.String("string"),
    					PropertyValue: pulumi.String("string"),
    				},
    			},
    		},
    		Predefined: &panos.CustomDataObjectPatternTypePredefinedArgs{
    			Patterns: panos.CustomDataObjectPatternTypePredefinedPatternArray{
    				&panos.CustomDataObjectPatternTypePredefinedPatternArgs{
    					Name: pulumi.String("string"),
    					FileTypes: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    				},
    			},
    		},
    		Regex: &panos.CustomDataObjectPatternTypeRegexArgs{
    			Patterns: panos.CustomDataObjectPatternTypeRegexPatternArray{
    				&panos.CustomDataObjectPatternTypeRegexPatternArgs{
    					Name: pulumi.String("string"),
    					FileTypes: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    					Regex: pulumi.String("string"),
    				},
    			},
    		},
    	},
    })
    
    var customDataObjectResource = new CustomDataObject("customDataObjectResource", CustomDataObjectArgs.builder()
        .location(CustomDataObjectLocationArgs.builder()
            .deviceGroup(CustomDataObjectLocationDeviceGroupArgs.builder()
                .name("string")
                .panoramaDevice("string")
                .build())
            .shared(CustomDataObjectLocationSharedArgs.builder()
                .build())
            .vsys(CustomDataObjectLocationVsysArgs.builder()
                .name("string")
                .ngfwDevice("string")
                .build())
            .build())
        .description("string")
        .disableOverride("string")
        .name("string")
        .patternType(CustomDataObjectPatternTypeArgs.builder()
            .fileProperties(CustomDataObjectPatternTypeFilePropertiesArgs.builder()
                .patterns(CustomDataObjectPatternTypeFilePropertiesPatternArgs.builder()
                    .name("string")
                    .fileProperty("string")
                    .fileType("string")
                    .propertyValue("string")
                    .build())
                .build())
            .predefined(CustomDataObjectPatternTypePredefinedArgs.builder()
                .patterns(CustomDataObjectPatternTypePredefinedPatternArgs.builder()
                    .name("string")
                    .fileTypes("string")
                    .build())
                .build())
            .regex(CustomDataObjectPatternTypeRegexArgs.builder()
                .patterns(CustomDataObjectPatternTypeRegexPatternArgs.builder()
                    .name("string")
                    .fileTypes("string")
                    .regex("string")
                    .build())
                .build())
            .build())
        .build());
    
    custom_data_object_resource = panos.CustomDataObject("customDataObjectResource",
        location={
            "device_group": {
                "name": "string",
                "panorama_device": "string",
            },
            "shared": {},
            "vsys": {
                "name": "string",
                "ngfw_device": "string",
            },
        },
        description="string",
        disable_override="string",
        name="string",
        pattern_type={
            "file_properties": {
                "patterns": [{
                    "name": "string",
                    "file_property": "string",
                    "file_type": "string",
                    "property_value": "string",
                }],
            },
            "predefined": {
                "patterns": [{
                    "name": "string",
                    "file_types": ["string"],
                }],
            },
            "regex": {
                "patterns": [{
                    "name": "string",
                    "file_types": ["string"],
                    "regex": "string",
                }],
            },
        })
    
    const customDataObjectResource = new panos.CustomDataObject("customDataObjectResource", {
        location: {
            deviceGroup: {
                name: "string",
                panoramaDevice: "string",
            },
            shared: {},
            vsys: {
                name: "string",
                ngfwDevice: "string",
            },
        },
        description: "string",
        disableOverride: "string",
        name: "string",
        patternType: {
            fileProperties: {
                patterns: [{
                    name: "string",
                    fileProperty: "string",
                    fileType: "string",
                    propertyValue: "string",
                }],
            },
            predefined: {
                patterns: [{
                    name: "string",
                    fileTypes: ["string"],
                }],
            },
            regex: {
                patterns: [{
                    name: "string",
                    fileTypes: ["string"],
                    regex: "string",
                }],
            },
        },
    });
    
    type: panos:CustomDataObject
    properties:
        description: string
        disableOverride: string
        location:
            deviceGroup:
                name: string
                panoramaDevice: string
            shared: {}
            vsys:
                name: string
                ngfwDevice: string
        name: string
        patternType:
            fileProperties:
                patterns:
                    - fileProperty: string
                      fileType: string
                      name: string
                      propertyValue: string
            predefined:
                patterns:
                    - fileTypes:
                        - string
                      name: string
            regex:
                patterns:
                    - fileTypes:
                        - string
                      name: string
                      regex: string
    

    CustomDataObject 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 CustomDataObject resource accepts the following input properties:

    Location CustomDataObjectLocation
    The location of this object.
    Description string
    DisableOverride string
    disable object override in child device groups
    Name string
    PatternType CustomDataObjectPatternType
    Location CustomDataObjectLocationArgs
    The location of this object.
    Description string
    DisableOverride string
    disable object override in child device groups
    Name string
    PatternType CustomDataObjectPatternTypeArgs
    location CustomDataObjectLocation
    The location of this object.
    description String
    disableOverride String
    disable object override in child device groups
    name String
    patternType CustomDataObjectPatternType
    location CustomDataObjectLocation
    The location of this object.
    description string
    disableOverride string
    disable object override in child device groups
    name string
    patternType CustomDataObjectPatternType
    location CustomDataObjectLocationArgs
    The location of this object.
    description str
    disable_override str
    disable object override in child device groups
    name str
    pattern_type CustomDataObjectPatternTypeArgs
    location Property Map
    The location of this object.
    description String
    disableOverride String
    disable object override in child device groups
    name String
    patternType Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CustomDataObject 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 CustomDataObject Resource

    Get an existing CustomDataObject 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?: CustomDataObjectState, opts?: CustomResourceOptions): CustomDataObject
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            disable_override: Optional[str] = None,
            location: Optional[CustomDataObjectLocationArgs] = None,
            name: Optional[str] = None,
            pattern_type: Optional[CustomDataObjectPatternTypeArgs] = None) -> CustomDataObject
    func GetCustomDataObject(ctx *Context, name string, id IDInput, state *CustomDataObjectState, opts ...ResourceOption) (*CustomDataObject, error)
    public static CustomDataObject Get(string name, Input<string> id, CustomDataObjectState? state, CustomResourceOptions? opts = null)
    public static CustomDataObject get(String name, Output<String> id, CustomDataObjectState state, CustomResourceOptions options)
    resources:  _:    type: panos:CustomDataObject    get:      id: ${id}
    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:
    Description string
    DisableOverride string
    disable object override in child device groups
    Location CustomDataObjectLocation
    The location of this object.
    Name string
    PatternType CustomDataObjectPatternType
    Description string
    DisableOverride string
    disable object override in child device groups
    Location CustomDataObjectLocationArgs
    The location of this object.
    Name string
    PatternType CustomDataObjectPatternTypeArgs
    description String
    disableOverride String
    disable object override in child device groups
    location CustomDataObjectLocation
    The location of this object.
    name String
    patternType CustomDataObjectPatternType
    description string
    disableOverride string
    disable object override in child device groups
    location CustomDataObjectLocation
    The location of this object.
    name string
    patternType CustomDataObjectPatternType
    description str
    disable_override str
    disable object override in child device groups
    location CustomDataObjectLocationArgs
    The location of this object.
    name str
    pattern_type CustomDataObjectPatternTypeArgs
    description String
    disableOverride String
    disable object override in child device groups
    location Property Map
    The location of this object.
    name String
    patternType Property Map

    Supporting Types

    CustomDataObjectLocation, CustomDataObjectLocationArgs

    DeviceGroup CustomDataObjectLocationDeviceGroup
    Located in a specific Device Group
    Shared CustomDataObjectLocationShared
    Panorama shared object
    Vsys CustomDataObjectLocationVsys
    Located in a specific Virtual System
    DeviceGroup CustomDataObjectLocationDeviceGroup
    Located in a specific Device Group
    Shared CustomDataObjectLocationShared
    Panorama shared object
    Vsys CustomDataObjectLocationVsys
    Located in a specific Virtual System
    deviceGroup CustomDataObjectLocationDeviceGroup
    Located in a specific Device Group
    shared CustomDataObjectLocationShared
    Panorama shared object
    vsys CustomDataObjectLocationVsys
    Located in a specific Virtual System
    deviceGroup CustomDataObjectLocationDeviceGroup
    Located in a specific Device Group
    shared CustomDataObjectLocationShared
    Panorama shared object
    vsys CustomDataObjectLocationVsys
    Located in a specific Virtual System
    device_group CustomDataObjectLocationDeviceGroup
    Located in a specific Device Group
    shared CustomDataObjectLocationShared
    Panorama shared object
    vsys CustomDataObjectLocationVsys
    Located in a specific Virtual System
    deviceGroup Property Map
    Located in a specific Device Group
    shared Property Map
    Panorama shared object
    vsys Property Map
    Located in a specific Virtual System

    CustomDataObjectLocationDeviceGroup, CustomDataObjectLocationDeviceGroupArgs

    Name string
    Device Group name
    PanoramaDevice string
    Panorama device name
    Name string
    Device Group name
    PanoramaDevice string
    Panorama device name
    name String
    Device Group name
    panoramaDevice String
    Panorama device name
    name string
    Device Group name
    panoramaDevice string
    Panorama device name
    name str
    Device Group name
    panorama_device str
    Panorama device name
    name String
    Device Group name
    panoramaDevice String
    Panorama device name

    CustomDataObjectLocationVsys, CustomDataObjectLocationVsysArgs

    Name string
    The Virtual System name
    NgfwDevice string
    The NGFW device name
    Name string
    The Virtual System name
    NgfwDevice string
    The NGFW device name
    name String
    The Virtual System name
    ngfwDevice String
    The NGFW device name
    name string
    The Virtual System name
    ngfwDevice string
    The NGFW device name
    name str
    The Virtual System name
    ngfw_device str
    The NGFW device name
    name String
    The Virtual System name
    ngfwDevice String
    The NGFW device name

    CustomDataObjectPatternType, CustomDataObjectPatternTypeArgs

    CustomDataObjectPatternTypeFileProperties, CustomDataObjectPatternTypeFilePropertiesArgs

    CustomDataObjectPatternTypeFilePropertiesPattern, CustomDataObjectPatternTypeFilePropertiesPatternArgs

    Name string
    FileProperty string
    FileType string
    PropertyValue string
    Name string
    FileProperty string
    FileType string
    PropertyValue string
    name String
    fileProperty String
    fileType String
    propertyValue String
    name string
    fileProperty string
    fileType string
    propertyValue string
    name String
    fileProperty String
    fileType String
    propertyValue String

    CustomDataObjectPatternTypePredefined, CustomDataObjectPatternTypePredefinedArgs

    CustomDataObjectPatternTypePredefinedPattern, CustomDataObjectPatternTypePredefinedPatternArgs

    Name string
    FileTypes List<string>
    Name string
    FileTypes []string
    name String
    fileTypes List<String>
    name string
    fileTypes string[]
    name str
    file_types Sequence[str]
    name String
    fileTypes List<String>

    CustomDataObjectPatternTypeRegex, CustomDataObjectPatternTypeRegexArgs

    CustomDataObjectPatternTypeRegexPattern, CustomDataObjectPatternTypeRegexPatternArgs

    Name string
    FileTypes List<string>
    Regex string
    Name string
    FileTypes []string
    Regex string
    name String
    fileTypes List<String>
    regex String
    name string
    fileTypes string[]
    regex string
    name str
    file_types Sequence[str]
    regex str
    name String
    fileTypes List<String>
    regex String

    Package Details

    Repository
    panos paloaltonetworks/terraform-provider-panos
    License
    Notes
    This Pulumi package is based on the panos Terraform Provider.
    Viewing docs for panos 2.0.11
    published on Tuesday, Apr 28, 2026 by paloaltonetworks
      Try Pulumi Cloud free. Your team will thank you.