ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getEnSmtpAllowedIps
Explore with Pulumi AI
Provides a read-only data source to retrieve information about en_smtp_allowed_ips. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const enSmtpAllowedIps = ibm.getEnSmtpAllowedIps({
enSmtpAllowedIpsId: "en_smtp_allowed_ips_id",
instanceId: "instance_id",
});
import pulumi
import pulumi_ibm as ibm
en_smtp_allowed_ips = ibm.get_en_smtp_allowed_ips(en_smtp_allowed_ips_id="en_smtp_allowed_ips_id",
instance_id="instance_id")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.GetEnSmtpAllowedIps(ctx, &ibm.GetEnSmtpAllowedIpsArgs{
EnSmtpAllowedIpsId: "en_smtp_allowed_ips_id",
InstanceId: "instance_id",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var enSmtpAllowedIps = Ibm.GetEnSmtpAllowedIps.Invoke(new()
{
EnSmtpAllowedIpsId = "en_smtp_allowed_ips_id",
InstanceId = "instance_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetEnSmtpAllowedIpsArgs;
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) {
final var enSmtpAllowedIps = IbmFunctions.getEnSmtpAllowedIps(GetEnSmtpAllowedIpsArgs.builder()
.enSmtpAllowedIpsId("en_smtp_allowed_ips_id")
.instanceId("instance_id")
.build());
}
}
variables:
enSmtpAllowedIps:
fn::invoke:
function: ibm:getEnSmtpAllowedIps
arguments:
enSmtpAllowedIpsId: en_smtp_allowed_ips_id
instanceId: instance_id
Using getEnSmtpAllowedIps
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 getEnSmtpAllowedIps(args: GetEnSmtpAllowedIpsArgs, opts?: InvokeOptions): Promise<GetEnSmtpAllowedIpsResult>
function getEnSmtpAllowedIpsOutput(args: GetEnSmtpAllowedIpsOutputArgs, opts?: InvokeOptions): Output<GetEnSmtpAllowedIpsResult>
def get_en_smtp_allowed_ips(en_smtp_allowed_ips_id: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEnSmtpAllowedIpsResult
def get_en_smtp_allowed_ips_output(en_smtp_allowed_ips_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEnSmtpAllowedIpsResult]
func GetEnSmtpAllowedIps(ctx *Context, args *GetEnSmtpAllowedIpsArgs, opts ...InvokeOption) (*GetEnSmtpAllowedIpsResult, error)
func GetEnSmtpAllowedIpsOutput(ctx *Context, args *GetEnSmtpAllowedIpsOutputArgs, opts ...InvokeOption) GetEnSmtpAllowedIpsResultOutput
> Note: This function is named GetEnSmtpAllowedIps
in the Go SDK.
public static class GetEnSmtpAllowedIps
{
public static Task<GetEnSmtpAllowedIpsResult> InvokeAsync(GetEnSmtpAllowedIpsArgs args, InvokeOptions? opts = null)
public static Output<GetEnSmtpAllowedIpsResult> Invoke(GetEnSmtpAllowedIpsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEnSmtpAllowedIpsResult> getEnSmtpAllowedIps(GetEnSmtpAllowedIpsArgs args, InvokeOptions options)
public static Output<GetEnSmtpAllowedIpsResult> getEnSmtpAllowedIps(GetEnSmtpAllowedIpsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getEnSmtpAllowedIps:getEnSmtpAllowedIps
arguments:
# arguments dictionary
The following arguments are supported:
- En
Smtp stringAllowed Ips Id - Unique identifier for SMTP.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/
.
- Constraints: The maximum length is
- Instance
Id string - Unique identifier for IBM Cloud Event Notifications instance.
- Constraints: The maximum length is
256
characters. The minimum length is10
characters. The value must match regular expression/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/
.
- Constraints: The maximum length is
- Id string
- The unique identifier of the en_smtp_allowed_ips.
- En
Smtp stringAllowed Ips Id - Unique identifier for SMTP.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/
.
- Constraints: The maximum length is
- Instance
Id string - Unique identifier for IBM Cloud Event Notifications instance.
- Constraints: The maximum length is
256
characters. The minimum length is10
characters. The value must match regular expression/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/
.
- Constraints: The maximum length is
- Id string
- The unique identifier of the en_smtp_allowed_ips.
- en
Smtp StringAllowed Ips Id - Unique identifier for SMTP.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/
.
- Constraints: The maximum length is
- instance
Id String - Unique identifier for IBM Cloud Event Notifications instance.
- Constraints: The maximum length is
256
characters. The minimum length is10
characters. The value must match regular expression/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/
.
- Constraints: The maximum length is
- id String
- The unique identifier of the en_smtp_allowed_ips.
- en
Smtp stringAllowed Ips Id - Unique identifier for SMTP.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/
.
- Constraints: The maximum length is
- instance
Id string - Unique identifier for IBM Cloud Event Notifications instance.
- Constraints: The maximum length is
256
characters. The minimum length is10
characters. The value must match regular expression/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/
.
- Constraints: The maximum length is
- id string
- The unique identifier of the en_smtp_allowed_ips.
- en_
smtp_ strallowed_ ips_ id - Unique identifier for SMTP.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/
.
- Constraints: The maximum length is
- instance_
id str - Unique identifier for IBM Cloud Event Notifications instance.
- Constraints: The maximum length is
256
characters. The minimum length is10
characters. The value must match regular expression/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/
.
- Constraints: The maximum length is
- id str
- The unique identifier of the en_smtp_allowed_ips.
- en
Smtp StringAllowed Ips Id - Unique identifier for SMTP.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/
.
- Constraints: The maximum length is
- instance
Id String - Unique identifier for IBM Cloud Event Notifications instance.
- Constraints: The maximum length is
256
characters. The minimum length is10
characters. The value must match regular expression/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/
.
- Constraints: The maximum length is
- id String
- The unique identifier of the en_smtp_allowed_ips.
getEnSmtpAllowedIps Result
The following output properties are available:
- En
Smtp stringAllowed Ips Id - Id string
- The unique identifier of the en_smtp_allowed_ips.
- Instance
Id string - Subnets List<string>
- (List) The SMTP allowed Ips.
- Constraints: The list items must match regular expression
/.*/
. The maximum length is100
items. The minimum length is1
item.
- Constraints: The list items must match regular expression
- Updated
At string - (String) Updated at.
- En
Smtp stringAllowed Ips Id - Id string
- The unique identifier of the en_smtp_allowed_ips.
- Instance
Id string - Subnets []string
- (List) The SMTP allowed Ips.
- Constraints: The list items must match regular expression
/.*/
. The maximum length is100
items. The minimum length is1
item.
- Constraints: The list items must match regular expression
- Updated
At string - (String) Updated at.
- en
Smtp StringAllowed Ips Id - id String
- The unique identifier of the en_smtp_allowed_ips.
- instance
Id String - subnets List<String>
- (List) The SMTP allowed Ips.
- Constraints: The list items must match regular expression
/.*/
. The maximum length is100
items. The minimum length is1
item.
- Constraints: The list items must match regular expression
- updated
At String - (String) Updated at.
- en
Smtp stringAllowed Ips Id - id string
- The unique identifier of the en_smtp_allowed_ips.
- instance
Id string - subnets string[]
- (List) The SMTP allowed Ips.
- Constraints: The list items must match regular expression
/.*/
. The maximum length is100
items. The minimum length is1
item.
- Constraints: The list items must match regular expression
- updated
At string - (String) Updated at.
- en_
smtp_ strallowed_ ips_ id - id str
- The unique identifier of the en_smtp_allowed_ips.
- instance_
id str - subnets Sequence[str]
- (List) The SMTP allowed Ips.
- Constraints: The list items must match regular expression
/.*/
. The maximum length is100
items. The minimum length is1
item.
- Constraints: The list items must match regular expression
- updated_
at str - (String) Updated at.
- en
Smtp StringAllowed Ips Id - id String
- The unique identifier of the en_smtp_allowed_ips.
- instance
Id String - subnets List<String>
- (List) The SMTP allowed Ips.
- Constraints: The list items must match regular expression
/.*/
. The maximum length is100
items. The minimum length is1
item.
- Constraints: The list items must match regular expression
- updated
At String - (String) Updated at.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.