Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
scm.getInterfaceManagementProfile
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
InterfaceManagementProfile data source
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
// 1. Resource: Create the Interface Management Profile
// This block creates the profile with your specified configuration.
const testInfMgmtProfile = new scm.InterfaceManagementProfile("test_inf_mgmt_profile", {
name: "test_inf_mgmt_profile_ds_1",
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,
});
// --------------------------------------------------------------------------------
// 2. Data Source: Retrieve the Interface Management Profile by ID
// We use the resource's generated 'id' attribute to fetch the profile.
const singleProfileById = scm.getInterfaceManagementProfileOutput({
id: testInfMgmtProfile.id,
});
export const fetchedProfileName = singleProfileById.apply(singleProfileById => singleProfileById.name);
export const fetchedProfile = singleProfileById;
import pulumi
import pulumi_scm as scm
# 1. Resource: Create the Interface Management Profile
# This block creates the profile with your specified configuration.
test_inf_mgmt_profile = scm.InterfaceManagementProfile("test_inf_mgmt_profile",
name="test_inf_mgmt_profile_ds_1",
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)
# --------------------------------------------------------------------------------
# 2. Data Source: Retrieve the Interface Management Profile by ID
# We use the resource's generated 'id' attribute to fetch the profile.
single_profile_by_id = scm.get_interface_management_profile_output(id=test_inf_mgmt_profile.id)
pulumi.export("fetchedProfileName", single_profile_by_id.name)
pulumi.export("fetchedProfile", single_profile_by_id)
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 {
// 1. Resource: Create the Interface Management Profile
// This block creates the profile with your specified configuration.
testInfMgmtProfile, err := scm.NewInterfaceManagementProfile(ctx, "test_inf_mgmt_profile", &scm.InterfaceManagementProfileArgs{
Name: pulumi.String("test_inf_mgmt_profile_ds_1"),
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
}
// 2. Data Source: Retrieve the Interface Management Profile by ID
// We use the resource's generated 'id' attribute to fetch the profile.
singleProfileById := scm.LookupInterfaceManagementProfileOutput(ctx, scm.GetInterfaceManagementProfileOutputArgs{
Id: testInfMgmtProfile.ID(),
}, nil)
ctx.Export("fetchedProfileName", singleProfileById.ApplyT(func(singleProfileById scm.GetInterfaceManagementProfileResult) (*string, error) {
return &singleProfileById.Name, nil
}).(pulumi.StringPtrOutput))
ctx.Export("fetchedProfile", singleProfileById)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
// 1. Resource: Create the Interface Management Profile
// This block creates the profile with your specified configuration.
var testInfMgmtProfile = new Scm.InterfaceManagementProfile("test_inf_mgmt_profile", new()
{
Name = "test_inf_mgmt_profile_ds_1",
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,
});
// --------------------------------------------------------------------------------
// 2. Data Source: Retrieve the Interface Management Profile by ID
// We use the resource's generated 'id' attribute to fetch the profile.
var singleProfileById = Scm.GetInterfaceManagementProfile.Invoke(new()
{
Id = testInfMgmtProfile.Id,
});
return new Dictionary<string, object?>
{
["fetchedProfileName"] = singleProfileById.Apply(getInterfaceManagementProfileResult => getInterfaceManagementProfileResult.Name),
["fetchedProfile"] = singleProfileById,
};
});
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 com.pulumi.scm.ScmFunctions;
import com.pulumi.scm.inputs.GetInterfaceManagementProfileArgs;
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) {
// 1. Resource: Create the Interface Management Profile
// This block creates the profile with your specified configuration.
var testInfMgmtProfile = new InterfaceManagementProfile("testInfMgmtProfile", InterfaceManagementProfileArgs.builder()
.name("test_inf_mgmt_profile_ds_1")
.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());
// --------------------------------------------------------------------------------
// 2. Data Source: Retrieve the Interface Management Profile by ID
// We use the resource's generated 'id' attribute to fetch the profile.
final var singleProfileById = ScmFunctions.getInterfaceManagementProfile(GetInterfaceManagementProfileArgs.builder()
.id(testInfMgmtProfile.id())
.build());
ctx.export("fetchedProfileName", singleProfileById.applyValue(_singleProfileById -> _singleProfileById.name()));
ctx.export("fetchedProfile", singleProfileById);
}
}
resources:
# 1. Resource: Create the Interface Management Profile
# This block creates the profile with your specified configuration.
testInfMgmtProfile: # --------------------------------------------------------------------------------
type: scm:InterfaceManagementProfile
name: test_inf_mgmt_profile
properties:
name: test_inf_mgmt_profile_ds_1
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
variables:
# 2. Data Source: Retrieve the Interface Management Profile by ID
# We use the resource's generated 'id' attribute to fetch the profile.
singleProfileById: # --------------------------------------------------------------------------------
fn::invoke:
function: scm:getInterfaceManagementProfile
arguments:
id: ${testInfMgmtProfile.id}
outputs:
# 3. Output: Display a value from the fetched data source
fetchedProfileName: ${singleProfileById.name}
fetchedProfile: ${singleProfileById}
Using getInterfaceManagementProfile
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getInterfaceManagementProfile(args: GetInterfaceManagementProfileArgs, opts?: InvokeOptions): Promise<GetInterfaceManagementProfileResult>
function getInterfaceManagementProfileOutput(args: GetInterfaceManagementProfileOutputArgs, opts?: InvokeOptions): Output<GetInterfaceManagementProfileResult>def get_interface_management_profile(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInterfaceManagementProfileResult
def get_interface_management_profile_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInterfaceManagementProfileResult]func LookupInterfaceManagementProfile(ctx *Context, args *LookupInterfaceManagementProfileArgs, opts ...InvokeOption) (*LookupInterfaceManagementProfileResult, error)
func LookupInterfaceManagementProfileOutput(ctx *Context, args *LookupInterfaceManagementProfileOutputArgs, opts ...InvokeOption) LookupInterfaceManagementProfileResultOutput> Note: This function is named LookupInterfaceManagementProfile in the Go SDK.
public static class GetInterfaceManagementProfile
{
public static Task<GetInterfaceManagementProfileResult> InvokeAsync(GetInterfaceManagementProfileArgs args, InvokeOptions? opts = null)
public static Output<GetInterfaceManagementProfileResult> Invoke(GetInterfaceManagementProfileInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetInterfaceManagementProfileResult> getInterfaceManagementProfile(GetInterfaceManagementProfileArgs args, InvokeOptions options)
public static Output<GetInterfaceManagementProfileResult> getInterfaceManagementProfile(GetInterfaceManagementProfileArgs args, InvokeOptions options)
fn::invoke:
function: scm:index/getInterfaceManagementProfile:getInterfaceManagementProfile
arguments:
# arguments dictionaryThe following arguments are supported:
getInterfaceManagementProfile Result
The following output properties are available:
- 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?
- Id string
- UUID of the resource
- Name string
- Name
- Permitted
Ips List<GetInterface Management 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?
- Id string
- UUID of the resource
- Name string
- Name
- Permitted
Ips []GetInterface Management 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 Boolean
- Allow HTTP?
- http
Ocsp Boolean - Allow HTTP OCSP?
- https Boolean
- Allow HTTPS?
- id String
- UUID of the resource
- name String
- Name
- permitted
Ips List<GetInterface Management 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?
- id string
- UUID of the resource
- name string
- Name
- permitted
Ips GetInterface Management 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?
- id str
- UUID of the resource
- name str
- Name
- permitted_
ips Sequence[GetInterface Management Profile Permitted Ip] - 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?
- id String
- UUID of the resource
- 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
GetInterfaceManagementProfilePermittedIp
- 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.
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
