1. Packages
  2. Panos Provider
  3. API Docs
  4. InterfaceManagementProfile
panos 2.0.0 published on Tuesday, Apr 15, 2025 by paloaltonetworks

panos.InterfaceManagementProfile

Explore with Pulumi AI

panos logo
panos 2.0.0 published on Tuesday, Apr 15, 2025 by paloaltonetworks

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as panos from "@pulumi/panos";
    
    const exampleTemplate = new panos.Template("exampleTemplate", {
        location: {
            panorama: {},
        },
        description: "example template",
    });
    const exampleInterfaceManagementProfile = new panos.InterfaceManagementProfile("exampleInterfaceManagementProfile", {
        location: {
            template: {
                name: exampleTemplate.name,
            },
        },
        http: true,
        ping: true,
        permittedIps: [
            {
                name: "1.1.1.1",
            },
            {
                name: "2.2.2.2",
            },
        ],
    });
    
    import pulumi
    import pulumi_panos as panos
    
    example_template = panos.Template("exampleTemplate",
        location={
            "panorama": {},
        },
        description="example template")
    example_interface_management_profile = panos.InterfaceManagementProfile("exampleInterfaceManagementProfile",
        location={
            "template": {
                "name": example_template.name,
            },
        },
        http=True,
        ping=True,
        permitted_ips=[
            {
                "name": "1.1.1.1",
            },
            {
                "name": "2.2.2.2",
            },
        ])
    
    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 {
    		exampleTemplate, err := panos.NewTemplate(ctx, "exampleTemplate", &panos.TemplateArgs{
    			Location: &panos.TemplateLocationArgs{
    				Panorama: &panos.TemplateLocationPanoramaArgs{},
    			},
    			Description: pulumi.String("example template"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = panos.NewInterfaceManagementProfile(ctx, "exampleInterfaceManagementProfile", &panos.InterfaceManagementProfileArgs{
    			Location: &panos.InterfaceManagementProfileLocationArgs{
    				Template: &panos.InterfaceManagementProfileLocationTemplateArgs{
    					Name: exampleTemplate.Name,
    				},
    			},
    			Http: pulumi.Bool(true),
    			Ping: pulumi.Bool(true),
    			PermittedIps: panos.InterfaceManagementProfilePermittedIpArray{
    				&panos.InterfaceManagementProfilePermittedIpArgs{
    					Name: pulumi.String("1.1.1.1"),
    				},
    				&panos.InterfaceManagementProfilePermittedIpArgs{
    					Name: pulumi.String("2.2.2.2"),
    				},
    			},
    		})
    		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 exampleTemplate = new Panos.Template("exampleTemplate", new()
        {
            Location = new Panos.Inputs.TemplateLocationArgs
            {
                Panorama = null,
            },
            Description = "example template",
        });
    
        var exampleInterfaceManagementProfile = new Panos.InterfaceManagementProfile("exampleInterfaceManagementProfile", new()
        {
            Location = new Panos.Inputs.InterfaceManagementProfileLocationArgs
            {
                Template = new Panos.Inputs.InterfaceManagementProfileLocationTemplateArgs
                {
                    Name = exampleTemplate.Name,
                },
            },
            Http = true,
            Ping = true,
            PermittedIps = new[]
            {
                new Panos.Inputs.InterfaceManagementProfilePermittedIpArgs
                {
                    Name = "1.1.1.1",
                },
                new Panos.Inputs.InterfaceManagementProfilePermittedIpArgs
                {
                    Name = "2.2.2.2",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.panos.Template;
    import com.pulumi.panos.TemplateArgs;
    import com.pulumi.panos.inputs.TemplateLocationArgs;
    import com.pulumi.panos.inputs.TemplateLocationPanoramaArgs;
    import com.pulumi.panos.InterfaceManagementProfile;
    import com.pulumi.panos.InterfaceManagementProfileArgs;
    import com.pulumi.panos.inputs.InterfaceManagementProfileLocationArgs;
    import com.pulumi.panos.inputs.InterfaceManagementProfileLocationTemplateArgs;
    import com.pulumi.panos.inputs.InterfaceManagementProfilePermittedIpArgs;
    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 exampleTemplate = new Template("exampleTemplate", TemplateArgs.builder()
                .location(TemplateLocationArgs.builder()
                    .panorama()
                    .build())
                .description("example template")
                .build());
    
            var exampleInterfaceManagementProfile = new InterfaceManagementProfile("exampleInterfaceManagementProfile", InterfaceManagementProfileArgs.builder()
                .location(InterfaceManagementProfileLocationArgs.builder()
                    .template(InterfaceManagementProfileLocationTemplateArgs.builder()
                        .name(exampleTemplate.name())
                        .build())
                    .build())
                .http(true)
                .ping(true)
                .permittedIps(            
                    InterfaceManagementProfilePermittedIpArgs.builder()
                        .name("1.1.1.1")
                        .build(),
                    InterfaceManagementProfilePermittedIpArgs.builder()
                        .name("2.2.2.2")
                        .build())
                .build());
    
        }
    }
    
    resources:
      exampleInterfaceManagementProfile:
        type: panos:InterfaceManagementProfile
        properties:
          location:
            template:
              name: ${exampleTemplate.name}
          http: true
          ping: true
          permittedIps:
            - name: 1.1.1.1
            - name: 2.2.2.2
      exampleTemplate:
        type: panos:Template
        properties:
          location:
            panorama: {}
          description: example template
    

    Create InterfaceManagementProfile Resource

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

    Constructor syntax

    new InterfaceManagementProfile(name: string, args: InterfaceManagementProfileArgs, opts?: CustomResourceOptions);
    @overload
    def InterfaceManagementProfile(resource_name: str,
                                   args: InterfaceManagementProfileArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def InterfaceManagementProfile(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   location: Optional[InterfaceManagementProfileLocationArgs] = None,
                                   ping: Optional[bool] = None,
                                   https: Optional[bool] = None,
                                   http_ocsp: Optional[bool] = None,
                                   name: Optional[str] = None,
                                   permitted_ips: Optional[Sequence[InterfaceManagementProfilePermittedIpArgs]] = None,
                                   http: Optional[bool] = None,
                                   response_pages: Optional[bool] = None,
                                   snmp: Optional[bool] = None,
                                   ssh: Optional[bool] = None,
                                   telnet: Optional[bool] = None,
                                   userid_service: Optional[bool] = None,
                                   userid_syslog_listener_ssl: Optional[bool] = None,
                                   userid_syslog_listener_udp: Optional[bool] = None)
    func NewInterfaceManagementProfile(ctx *Context, name string, args InterfaceManagementProfileArgs, opts ...ResourceOption) (*InterfaceManagementProfile, error)
    public InterfaceManagementProfile(string name, InterfaceManagementProfileArgs args, CustomResourceOptions? opts = null)
    public InterfaceManagementProfile(String name, InterfaceManagementProfileArgs args)
    public InterfaceManagementProfile(String name, InterfaceManagementProfileArgs args, CustomResourceOptions options)
    
    type: panos:InterfaceManagementProfile
    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 InterfaceManagementProfileArgs
    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 InterfaceManagementProfileArgs
    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 InterfaceManagementProfileArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InterfaceManagementProfileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InterfaceManagementProfileArgs
    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 interfaceManagementProfileResource = new Panos.InterfaceManagementProfile("interfaceManagementProfileResource", new()
    {
        Location = new Panos.Inputs.InterfaceManagementProfileLocationArgs
        {
            Ngfw = new Panos.Inputs.InterfaceManagementProfileLocationNgfwArgs
            {
                NgfwDevice = "string",
            },
            Template = new Panos.Inputs.InterfaceManagementProfileLocationTemplateArgs
            {
                Name = "string",
                NgfwDevice = "string",
                PanoramaDevice = "string",
            },
            TemplateStack = new Panos.Inputs.InterfaceManagementProfileLocationTemplateStackArgs
            {
                Name = "string",
                NgfwDevice = "string",
                PanoramaDevice = "string",
            },
        },
        Ping = false,
        Https = false,
        HttpOcsp = false,
        Name = "string",
        PermittedIps = new[]
        {
            new Panos.Inputs.InterfaceManagementProfilePermittedIpArgs
            {
                Name = "string",
            },
        },
        Http = false,
        ResponsePages = false,
        Snmp = false,
        Ssh = false,
        Telnet = false,
        UseridService = false,
        UseridSyslogListenerSsl = false,
        UseridSyslogListenerUdp = false,
    });
    
    example, err := panos.NewInterfaceManagementProfile(ctx, "interfaceManagementProfileResource", &panos.InterfaceManagementProfileArgs{
    	Location: &panos.InterfaceManagementProfileLocationArgs{
    		Ngfw: &panos.InterfaceManagementProfileLocationNgfwArgs{
    			NgfwDevice: pulumi.String("string"),
    		},
    		Template: &panos.InterfaceManagementProfileLocationTemplateArgs{
    			Name:           pulumi.String("string"),
    			NgfwDevice:     pulumi.String("string"),
    			PanoramaDevice: pulumi.String("string"),
    		},
    		TemplateStack: &panos.InterfaceManagementProfileLocationTemplateStackArgs{
    			Name:           pulumi.String("string"),
    			NgfwDevice:     pulumi.String("string"),
    			PanoramaDevice: pulumi.String("string"),
    		},
    	},
    	Ping:     pulumi.Bool(false),
    	Https:    pulumi.Bool(false),
    	HttpOcsp: pulumi.Bool(false),
    	Name:     pulumi.String("string"),
    	PermittedIps: panos.InterfaceManagementProfilePermittedIpArray{
    		&panos.InterfaceManagementProfilePermittedIpArgs{
    			Name: pulumi.String("string"),
    		},
    	},
    	Http:                    pulumi.Bool(false),
    	ResponsePages:           pulumi.Bool(false),
    	Snmp:                    pulumi.Bool(false),
    	Ssh:                     pulumi.Bool(false),
    	Telnet:                  pulumi.Bool(false),
    	UseridService:           pulumi.Bool(false),
    	UseridSyslogListenerSsl: pulumi.Bool(false),
    	UseridSyslogListenerUdp: pulumi.Bool(false),
    })
    
    var interfaceManagementProfileResource = new InterfaceManagementProfile("interfaceManagementProfileResource", InterfaceManagementProfileArgs.builder()
        .location(InterfaceManagementProfileLocationArgs.builder()
            .ngfw(InterfaceManagementProfileLocationNgfwArgs.builder()
                .ngfwDevice("string")
                .build())
            .template(InterfaceManagementProfileLocationTemplateArgs.builder()
                .name("string")
                .ngfwDevice("string")
                .panoramaDevice("string")
                .build())
            .templateStack(InterfaceManagementProfileLocationTemplateStackArgs.builder()
                .name("string")
                .ngfwDevice("string")
                .panoramaDevice("string")
                .build())
            .build())
        .ping(false)
        .https(false)
        .httpOcsp(false)
        .name("string")
        .permittedIps(InterfaceManagementProfilePermittedIpArgs.builder()
            .name("string")
            .build())
        .http(false)
        .responsePages(false)
        .snmp(false)
        .ssh(false)
        .telnet(false)
        .useridService(false)
        .useridSyslogListenerSsl(false)
        .useridSyslogListenerUdp(false)
        .build());
    
    interface_management_profile_resource = panos.InterfaceManagementProfile("interfaceManagementProfileResource",
        location={
            "ngfw": {
                "ngfw_device": "string",
            },
            "template": {
                "name": "string",
                "ngfw_device": "string",
                "panorama_device": "string",
            },
            "template_stack": {
                "name": "string",
                "ngfw_device": "string",
                "panorama_device": "string",
            },
        },
        ping=False,
        https=False,
        http_ocsp=False,
        name="string",
        permitted_ips=[{
            "name": "string",
        }],
        http=False,
        response_pages=False,
        snmp=False,
        ssh=False,
        telnet=False,
        userid_service=False,
        userid_syslog_listener_ssl=False,
        userid_syslog_listener_udp=False)
    
    const interfaceManagementProfileResource = new panos.InterfaceManagementProfile("interfaceManagementProfileResource", {
        location: {
            ngfw: {
                ngfwDevice: "string",
            },
            template: {
                name: "string",
                ngfwDevice: "string",
                panoramaDevice: "string",
            },
            templateStack: {
                name: "string",
                ngfwDevice: "string",
                panoramaDevice: "string",
            },
        },
        ping: false,
        https: false,
        httpOcsp: false,
        name: "string",
        permittedIps: [{
            name: "string",
        }],
        http: false,
        responsePages: false,
        snmp: false,
        ssh: false,
        telnet: false,
        useridService: false,
        useridSyslogListenerSsl: false,
        useridSyslogListenerUdp: false,
    });
    
    type: panos:InterfaceManagementProfile
    properties:
        http: false
        httpOcsp: false
        https: false
        location:
            ngfw:
                ngfwDevice: string
            template:
                name: string
                ngfwDevice: string
                panoramaDevice: string
            templateStack:
                name: string
                ngfwDevice: string
                panoramaDevice: string
        name: string
        permittedIps:
            - name: string
        ping: false
        responsePages: false
        snmp: false
        ssh: false
        telnet: false
        useridService: false
        useridSyslogListenerSsl: false
        useridSyslogListenerUdp: false
    

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

    location Property Map
    The location of this object.
    http Boolean
    httpOcsp Boolean
    https Boolean
    name String
    permittedIps List<Property Map>
    ping Boolean
    responsePages Boolean
    snmp Boolean
    ssh Boolean
    telnet Boolean
    useridService Boolean
    useridSyslogListenerSsl Boolean
    useridSyslogListenerUdp Boolean

    Outputs

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

    Get an existing InterfaceManagementProfile 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?: InterfaceManagementProfileState, opts?: CustomResourceOptions): InterfaceManagementProfile
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            http: Optional[bool] = None,
            http_ocsp: Optional[bool] = None,
            https: Optional[bool] = None,
            location: Optional[InterfaceManagementProfileLocationArgs] = None,
            name: Optional[str] = None,
            permitted_ips: Optional[Sequence[InterfaceManagementProfilePermittedIpArgs]] = None,
            ping: Optional[bool] = None,
            response_pages: Optional[bool] = None,
            snmp: Optional[bool] = None,
            ssh: Optional[bool] = None,
            telnet: Optional[bool] = None,
            userid_service: Optional[bool] = None,
            userid_syslog_listener_ssl: Optional[bool] = None,
            userid_syslog_listener_udp: Optional[bool] = None) -> InterfaceManagementProfile
    func GetInterfaceManagementProfile(ctx *Context, name string, id IDInput, state *InterfaceManagementProfileState, opts ...ResourceOption) (*InterfaceManagementProfile, error)
    public static InterfaceManagementProfile Get(string name, Input<string> id, InterfaceManagementProfileState? state, CustomResourceOptions? opts = null)
    public static InterfaceManagementProfile get(String name, Output<String> id, InterfaceManagementProfileState state, CustomResourceOptions options)
    resources:  _:    type: panos:InterfaceManagementProfile    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:
    http Boolean
    httpOcsp Boolean
    https Boolean
    location Property Map
    The location of this object.
    name String
    permittedIps List<Property Map>
    ping Boolean
    responsePages Boolean
    snmp Boolean
    ssh Boolean
    telnet Boolean
    useridService Boolean
    useridSyslogListenerSsl Boolean
    useridSyslogListenerUdp Boolean

    Supporting Types

    InterfaceManagementProfileLocation, InterfaceManagementProfileLocationArgs

    Ngfw InterfaceManagementProfileLocationNgfw
    Located in a specific NGFW device
    Template InterfaceManagementProfileLocationTemplate
    Located in a specific template
    TemplateStack InterfaceManagementProfileLocationTemplateStack
    Located in a specific template stack
    Ngfw InterfaceManagementProfileLocationNgfw
    Located in a specific NGFW device
    Template InterfaceManagementProfileLocationTemplate
    Located in a specific template
    TemplateStack InterfaceManagementProfileLocationTemplateStack
    Located in a specific template stack
    ngfw InterfaceManagementProfileLocationNgfw
    Located in a specific NGFW device
    template InterfaceManagementProfileLocationTemplate
    Located in a specific template
    templateStack InterfaceManagementProfileLocationTemplateStack
    Located in a specific template stack
    ngfw InterfaceManagementProfileLocationNgfw
    Located in a specific NGFW device
    template InterfaceManagementProfileLocationTemplate
    Located in a specific template
    templateStack InterfaceManagementProfileLocationTemplateStack
    Located in a specific template stack
    ngfw InterfaceManagementProfileLocationNgfw
    Located in a specific NGFW device
    template InterfaceManagementProfileLocationTemplate
    Located in a specific template
    template_stack InterfaceManagementProfileLocationTemplateStack
    Located in a specific template stack
    ngfw Property Map
    Located in a specific NGFW device
    template Property Map
    Located in a specific template
    templateStack Property Map
    Located in a specific template stack

    InterfaceManagementProfileLocationNgfw, InterfaceManagementProfileLocationNgfwArgs

    NgfwDevice string
    The NGFW device
    NgfwDevice string
    The NGFW device
    ngfwDevice String
    The NGFW device
    ngfwDevice string
    The NGFW device
    ngfw_device str
    The NGFW device
    ngfwDevice String
    The NGFW device

    InterfaceManagementProfileLocationTemplate, InterfaceManagementProfileLocationTemplateArgs

    Name string
    Specific Panorama template
    NgfwDevice string
    The NGFW device
    PanoramaDevice string
    Specific Panorama device
    Name string
    Specific Panorama template
    NgfwDevice string
    The NGFW device
    PanoramaDevice string
    Specific Panorama device
    name String
    Specific Panorama template
    ngfwDevice String
    The NGFW device
    panoramaDevice String
    Specific Panorama device
    name string
    Specific Panorama template
    ngfwDevice string
    The NGFW device
    panoramaDevice string
    Specific Panorama device
    name str
    Specific Panorama template
    ngfw_device str
    The NGFW device
    panorama_device str
    Specific Panorama device
    name String
    Specific Panorama template
    ngfwDevice String
    The NGFW device
    panoramaDevice String
    Specific Panorama device

    InterfaceManagementProfileLocationTemplateStack, InterfaceManagementProfileLocationTemplateStackArgs

    Name string
    Specific Panorama template stack
    NgfwDevice string
    The NGFW device
    PanoramaDevice string
    Specific Panorama device
    Name string
    Specific Panorama template stack
    NgfwDevice string
    The NGFW device
    PanoramaDevice string
    Specific Panorama device
    name String
    Specific Panorama template stack
    ngfwDevice String
    The NGFW device
    panoramaDevice String
    Specific Panorama device
    name string
    Specific Panorama template stack
    ngfwDevice string
    The NGFW device
    panoramaDevice string
    Specific Panorama device
    name str
    Specific Panorama template stack
    ngfw_device str
    The NGFW device
    panorama_device str
    Specific Panorama device
    name String
    Specific Panorama template stack
    ngfwDevice String
    The NGFW device
    panoramaDevice String
    Specific Panorama device

    InterfaceManagementProfilePermittedIp, InterfaceManagementProfilePermittedIpArgs

    Name string
    Name string
    name String
    name string
    name str
    name String

    Package Details

    Repository
    panos paloaltonetworks/terraform-provider-panos
    License
    Notes
    This Pulumi package is based on the panos Terraform Provider.
    panos logo
    panos 2.0.0 published on Tuesday, Apr 15, 2025 by paloaltonetworks