InterfaceManagementProfile resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
const dcPostmanProfile = new scm.InterfaceManagementProfile("dc_postman_profile", {
name: "test_inf_mgmt_profile_1_update",
folder: "All",
permittedIps: [
{
name: "10.0.0.0/24",
},
{
name: "10.0.0.0/32",
},
],
http: true,
https: false,
telnet: false,
ssh: true,
ping: false,
httpOcsp: true,
useridService: true,
useridSyslogListenerSsl: true,
useridSyslogListenerUdp: true,
responsePages: false,
});
import pulumi
import pulumi_scm as scm
dc_postman_profile = scm.InterfaceManagementProfile("dc_postman_profile",
name="test_inf_mgmt_profile_1_update",
folder="All",
permitted_ips=[
{
"name": "10.0.0.0/24",
},
{
"name": "10.0.0.0/32",
},
],
http=True,
https=False,
telnet=False,
ssh=True,
ping=False,
http_ocsp=True,
userid_service=True,
userid_syslog_listener_ssl=True,
userid_syslog_listener_udp=True,
response_pages=False)
package main
import (
"github.com/pulumi/pulumi-scm/sdk/go/scm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scm.NewInterfaceManagementProfile(ctx, "dc_postman_profile", &scm.InterfaceManagementProfileArgs{
Name: pulumi.String("test_inf_mgmt_profile_1_update"),
Folder: pulumi.String("All"),
PermittedIps: scm.InterfaceManagementProfilePermittedIpArray{
&scm.InterfaceManagementProfilePermittedIpArgs{
Name: pulumi.String("10.0.0.0/24"),
},
&scm.InterfaceManagementProfilePermittedIpArgs{
Name: pulumi.String("10.0.0.0/32"),
},
},
Http: pulumi.Bool(true),
Https: pulumi.Bool(false),
Telnet: pulumi.Bool(false),
Ssh: pulumi.Bool(true),
Ping: pulumi.Bool(false),
HttpOcsp: pulumi.Bool(true),
UseridService: pulumi.Bool(true),
UseridSyslogListenerSsl: pulumi.Bool(true),
UseridSyslogListenerUdp: pulumi.Bool(true),
ResponsePages: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
var dcPostmanProfile = new Scm.InterfaceManagementProfile("dc_postman_profile", new()
{
Name = "test_inf_mgmt_profile_1_update",
Folder = "All",
PermittedIps = new[]
{
new Scm.Inputs.InterfaceManagementProfilePermittedIpArgs
{
Name = "10.0.0.0/24",
},
new Scm.Inputs.InterfaceManagementProfilePermittedIpArgs
{
Name = "10.0.0.0/32",
},
},
Http = true,
Https = false,
Telnet = false,
Ssh = true,
Ping = false,
HttpOcsp = true,
UseridService = true,
UseridSyslogListenerSsl = true,
UseridSyslogListenerUdp = true,
ResponsePages = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.InterfaceManagementProfile;
import com.pulumi.scm.InterfaceManagementProfileArgs;
import com.pulumi.scm.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 dcPostmanProfile = new InterfaceManagementProfile("dcPostmanProfile", InterfaceManagementProfileArgs.builder()
.name("test_inf_mgmt_profile_1_update")
.folder("All")
.permittedIps(
InterfaceManagementProfilePermittedIpArgs.builder()
.name("10.0.0.0/24")
.build(),
InterfaceManagementProfilePermittedIpArgs.builder()
.name("10.0.0.0/32")
.build())
.http(true)
.https(false)
.telnet(false)
.ssh(true)
.ping(false)
.httpOcsp(true)
.useridService(true)
.useridSyslogListenerSsl(true)
.useridSyslogListenerUdp(true)
.responsePages(false)
.build());
}
}
resources:
dcPostmanProfile:
type: scm:InterfaceManagementProfile
name: dc_postman_profile
properties:
name: test_inf_mgmt_profile_1_update
folder: All
permittedIps:
- name: 10.0.0.0/24
- name: 10.0.0.0/32
http: true
https: false
telnet: false
ssh: true
ping: false
httpOcsp: true
useridService: true
useridSyslogListenerSsl: true
useridSyslogListenerUdp: true
responsePages: false
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: Optional[InterfaceManagementProfileArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def InterfaceManagementProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
http: Optional[bool] = None,
http_ocsp: Optional[bool] = None,
https: Optional[bool] = None,
name: Optional[str] = None,
permitted_ips: Optional[Sequence[InterfaceManagementProfilePermittedIpArgs]] = None,
ping: Optional[bool] = None,
response_pages: Optional[bool] = None,
snippet: Optional[str] = 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 = null, CustomResourceOptions? opts = null)
public InterfaceManagementProfile(String name, InterfaceManagementProfileArgs args)
public InterfaceManagementProfile(String name, InterfaceManagementProfileArgs args, CustomResourceOptions options)
type: scm: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 Scm.InterfaceManagementProfile("interfaceManagementProfileResource", new()
{
Device = "string",
Folder = "string",
Http = false,
HttpOcsp = false,
Https = false,
Name = "string",
PermittedIps = new[]
{
new Scm.Inputs.InterfaceManagementProfilePermittedIpArgs
{
Name = "string",
},
},
Ping = false,
ResponsePages = false,
Snippet = "string",
Ssh = false,
Telnet = false,
UseridService = false,
UseridSyslogListenerSsl = false,
UseridSyslogListenerUdp = false,
});
example, err := scm.NewInterfaceManagementProfile(ctx, "interfaceManagementProfileResource", &scm.InterfaceManagementProfileArgs{
Device: pulumi.String("string"),
Folder: pulumi.String("string"),
Http: pulumi.Bool(false),
HttpOcsp: pulumi.Bool(false),
Https: pulumi.Bool(false),
Name: pulumi.String("string"),
PermittedIps: scm.InterfaceManagementProfilePermittedIpArray{
&scm.InterfaceManagementProfilePermittedIpArgs{
Name: pulumi.String("string"),
},
},
Ping: pulumi.Bool(false),
ResponsePages: pulumi.Bool(false),
Snippet: pulumi.String("string"),
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()
.device("string")
.folder("string")
.http(false)
.httpOcsp(false)
.https(false)
.name("string")
.permittedIps(InterfaceManagementProfilePermittedIpArgs.builder()
.name("string")
.build())
.ping(false)
.responsePages(false)
.snippet("string")
.ssh(false)
.telnet(false)
.useridService(false)
.useridSyslogListenerSsl(false)
.useridSyslogListenerUdp(false)
.build());
interface_management_profile_resource = scm.InterfaceManagementProfile("interfaceManagementProfileResource",
device="string",
folder="string",
http=False,
http_ocsp=False,
https=False,
name="string",
permitted_ips=[{
"name": "string",
}],
ping=False,
response_pages=False,
snippet="string",
ssh=False,
telnet=False,
userid_service=False,
userid_syslog_listener_ssl=False,
userid_syslog_listener_udp=False)
const interfaceManagementProfileResource = new scm.InterfaceManagementProfile("interfaceManagementProfileResource", {
device: "string",
folder: "string",
http: false,
httpOcsp: false,
https: false,
name: "string",
permittedIps: [{
name: "string",
}],
ping: false,
responsePages: false,
snippet: "string",
ssh: false,
telnet: false,
useridService: false,
useridSyslogListenerSsl: false,
useridSyslogListenerUdp: false,
});
type: scm:InterfaceManagementProfile
properties:
device: string
folder: string
http: false
httpOcsp: false
https: false
name: string
permittedIps:
- name: string
ping: false
responsePages: false
snippet: string
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:
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Http bool
- Allow HTTP?
- Http
Ocsp bool - Allow HTTP OCSP?
- Https bool
- Allow HTTPS?
- Name string
- Name
- Permitted
Ips List<InterfaceManagement Profile Permitted Ip> - Allowed IP address(es)
- Ping bool
- Allow ping?
- Response
Pages bool - Allow response pages?
- Snippet string
- The snippet in which the resource is defined
- Ssh bool
- Allow SSH?
- Telnet bool
- Allow telnet? Seriously, why would you do this?!?
- Userid
Service bool - Allow User-ID?
- Userid
Syslog boolListener Ssl - Allow User-ID syslog listener (SSL)?
- Userid
Syslog boolListener Udp - Allow User-ID syslog listener (UDP)?
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Http bool
- Allow HTTP?
- Http
Ocsp bool - Allow HTTP OCSP?
- Https bool
- Allow HTTPS?
- Name string
- Name
- Permitted
Ips []InterfaceManagement Profile Permitted Ip Args - Allowed IP address(es)
- Ping bool
- Allow ping?
- Response
Pages bool - Allow response pages?
- Snippet string
- The snippet in which the resource is defined
- Ssh bool
- Allow SSH?
- Telnet bool
- Allow telnet? Seriously, why would you do this?!?
- Userid
Service bool - Allow User-ID?
- Userid
Syslog boolListener Ssl - Allow User-ID syslog listener (SSL)?
- Userid
Syslog boolListener Udp - Allow User-ID syslog listener (UDP)?
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- http Boolean
- Allow HTTP?
- http
Ocsp Boolean - Allow HTTP OCSP?
- https Boolean
- Allow HTTPS?
- name String
- Name
- permitted
Ips List<InterfaceManagement Profile Permitted Ip> - Allowed IP address(es)
- ping Boolean
- Allow ping?
- response
Pages Boolean - Allow response pages?
- snippet String
- The snippet in which the resource is defined
- ssh Boolean
- Allow SSH?
- telnet Boolean
- Allow telnet? Seriously, why would you do this?!?
- userid
Service Boolean - Allow User-ID?
- userid
Syslog BooleanListener Ssl - Allow User-ID syslog listener (SSL)?
- userid
Syslog BooleanListener Udp - Allow User-ID syslog listener (UDP)?
- device string
- The device in which the resource is defined
- folder string
- The folder in which the resource is defined
- http boolean
- Allow HTTP?
- http
Ocsp boolean - Allow HTTP OCSP?
- https boolean
- Allow HTTPS?
- name string
- Name
- permitted
Ips InterfaceManagement Profile Permitted Ip[] - Allowed IP address(es)
- ping boolean
- Allow ping?
- response
Pages boolean - Allow response pages?
- snippet string
- The snippet in which the resource is defined
- ssh boolean
- Allow SSH?
- telnet boolean
- Allow telnet? Seriously, why would you do this?!?
- userid
Service boolean - Allow User-ID?
- userid
Syslog booleanListener Ssl - Allow User-ID syslog listener (SSL)?
- userid
Syslog booleanListener Udp - Allow User-ID syslog listener (UDP)?
- device str
- The device in which the resource is defined
- folder str
- The folder in which the resource is defined
- http bool
- Allow HTTP?
- http_
ocsp bool - Allow HTTP OCSP?
- https bool
- Allow HTTPS?
- name str
- Name
- permitted_
ips Sequence[InterfaceManagement Profile Permitted Ip Args] - Allowed IP address(es)
- ping bool
- Allow ping?
- response_
pages bool - Allow response pages?
- snippet str
- The snippet in which the resource is defined
- ssh bool
- Allow SSH?
- telnet bool
- Allow telnet? Seriously, why would you do this?!?
- userid_
service bool - Allow User-ID?
- userid_
syslog_ boollistener_ ssl - Allow User-ID syslog listener (SSL)?
- userid_
syslog_ boollistener_ udp - Allow User-ID syslog listener (UDP)?
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- http Boolean
- Allow HTTP?
- http
Ocsp Boolean - Allow HTTP OCSP?
- https Boolean
- Allow HTTPS?
- name String
- Name
- permitted
Ips List<Property Map> - Allowed IP address(es)
- ping Boolean
- Allow ping?
- response
Pages Boolean - Allow response pages?
- snippet String
- The snippet in which the resource is defined
- ssh Boolean
- Allow SSH?
- telnet Boolean
- Allow telnet? Seriously, why would you do this?!?
- userid
Service Boolean - Allow User-ID?
- userid
Syslog BooleanListener Ssl - Allow User-ID syslog listener (SSL)?
- userid
Syslog BooleanListener Udp - Allow User-ID syslog listener (UDP)?
Outputs
All input properties are implicitly available as output properties. Additionally, the InterfaceManagementProfile resource produces the following output properties:
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,
device: Optional[str] = None,
folder: Optional[str] = None,
http: Optional[bool] = None,
http_ocsp: Optional[bool] = None,
https: Optional[bool] = None,
name: Optional[str] = None,
permitted_ips: Optional[Sequence[InterfaceManagementProfilePermittedIpArgs]] = None,
ping: Optional[bool] = None,
response_pages: Optional[bool] = None,
snippet: Optional[str] = None,
ssh: Optional[bool] = None,
telnet: Optional[bool] = None,
tfid: Optional[str] = None,
userid_service: Optional[bool] = None,
userid_syslog_listener_ssl: Optional[bool] = None,
userid_syslog_listener_udp: Optional[bool] = None) -> InterfaceManagementProfilefunc 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: scm: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.
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Http bool
- Allow HTTP?
- Http
Ocsp bool - Allow HTTP OCSP?
- Https bool
- Allow HTTPS?
- Name string
- Name
- Permitted
Ips List<InterfaceManagement Profile Permitted Ip> - Allowed IP address(es)
- Ping bool
- Allow ping?
- Response
Pages bool - Allow response pages?
- Snippet string
- The snippet in which the resource is defined
- Ssh bool
- Allow SSH?
- Telnet bool
- Allow telnet? Seriously, why would you do this?!?
- Tfid string
- Userid
Service bool - Allow User-ID?
- Userid
Syslog boolListener Ssl - Allow User-ID syslog listener (SSL)?
- Userid
Syslog boolListener Udp - Allow User-ID syslog listener (UDP)?
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Http bool
- Allow HTTP?
- Http
Ocsp bool - Allow HTTP OCSP?
- Https bool
- Allow HTTPS?
- Name string
- Name
- Permitted
Ips []InterfaceManagement Profile Permitted Ip Args - Allowed IP address(es)
- Ping bool
- Allow ping?
- Response
Pages bool - Allow response pages?
- Snippet string
- The snippet in which the resource is defined
- Ssh bool
- Allow SSH?
- Telnet bool
- Allow telnet? Seriously, why would you do this?!?
- Tfid string
- Userid
Service bool - Allow User-ID?
- Userid
Syslog boolListener Ssl - Allow User-ID syslog listener (SSL)?
- Userid
Syslog boolListener Udp - Allow User-ID syslog listener (UDP)?
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- http Boolean
- Allow HTTP?
- http
Ocsp Boolean - Allow HTTP OCSP?
- https Boolean
- Allow HTTPS?
- name String
- Name
- permitted
Ips List<InterfaceManagement Profile Permitted Ip> - Allowed IP address(es)
- ping Boolean
- Allow ping?
- response
Pages Boolean - Allow response pages?
- snippet String
- The snippet in which the resource is defined
- ssh Boolean
- Allow SSH?
- telnet Boolean
- Allow telnet? Seriously, why would you do this?!?
- tfid String
- userid
Service Boolean - Allow User-ID?
- userid
Syslog BooleanListener Ssl - Allow User-ID syslog listener (SSL)?
- userid
Syslog BooleanListener Udp - Allow User-ID syslog listener (UDP)?
- device string
- The device in which the resource is defined
- folder string
- The folder in which the resource is defined
- http boolean
- Allow HTTP?
- http
Ocsp boolean - Allow HTTP OCSP?
- https boolean
- Allow HTTPS?
- name string
- Name
- permitted
Ips InterfaceManagement Profile Permitted Ip[] - Allowed IP address(es)
- ping boolean
- Allow ping?
- response
Pages boolean - Allow response pages?
- snippet string
- The snippet in which the resource is defined
- ssh boolean
- Allow SSH?
- telnet boolean
- Allow telnet? Seriously, why would you do this?!?
- tfid string
- userid
Service boolean - Allow User-ID?
- userid
Syslog booleanListener Ssl - Allow User-ID syslog listener (SSL)?
- userid
Syslog booleanListener Udp - Allow User-ID syslog listener (UDP)?
- device str
- The device in which the resource is defined
- folder str
- The folder in which the resource is defined
- http bool
- Allow HTTP?
- http_
ocsp bool - Allow HTTP OCSP?
- https bool
- Allow HTTPS?
- name str
- Name
- permitted_
ips Sequence[InterfaceManagement Profile Permitted Ip Args] - Allowed IP address(es)
- ping bool
- Allow ping?
- response_
pages bool - Allow response pages?
- snippet str
- The snippet in which the resource is defined
- ssh bool
- Allow SSH?
- telnet bool
- Allow telnet? Seriously, why would you do this?!?
- tfid str
- userid_
service bool - Allow User-ID?
- userid_
syslog_ boollistener_ ssl - Allow User-ID syslog listener (SSL)?
- userid_
syslog_ boollistener_ udp - Allow User-ID syslog listener (UDP)?
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- http Boolean
- Allow HTTP?
- http
Ocsp Boolean - Allow HTTP OCSP?
- https Boolean
- Allow HTTPS?
- name String
- Name
- permitted
Ips List<Property Map> - Allowed IP address(es)
- ping Boolean
- Allow ping?
- response
Pages Boolean - Allow response pages?
- snippet String
- The snippet in which the resource is defined
- ssh Boolean
- Allow SSH?
- telnet Boolean
- Allow telnet? Seriously, why would you do this?!?
- tfid String
- userid
Service Boolean - Allow User-ID?
- userid
Syslog BooleanListener Ssl - Allow User-ID syslog listener (SSL)?
- userid
Syslog BooleanListener Udp - Allow User-ID syslog listener (UDP)?
Supporting Types
InterfaceManagementProfilePermittedIp, InterfaceManagementProfilePermittedIpArgs
- Name string
- The allowed IP address or CIDR block.
- Name string
- The allowed IP address or CIDR block.
- name String
- The allowed IP address or CIDR block.
- name string
- The allowed IP address or CIDR block.
- name str
- The allowed IP address or CIDR block.
- name String
- The allowed IP address or CIDR block.
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
