1. Packages
  2. Ibm Provider
  3. API Docs
  4. getEnSmtpAllowedIps
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getEnSmtpAllowedIps

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    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:

    EnSmtpAllowedIpsId string
    Unique identifier for SMTP.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 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}/.
    InstanceId string
    Unique identifier for IBM Cloud Event Notifications instance.

    • Constraints: The maximum length is 256 characters. The minimum length is 10 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]/.
    Id string
    The unique identifier of the en_smtp_allowed_ips.
    EnSmtpAllowedIpsId string
    Unique identifier for SMTP.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 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}/.
    InstanceId string
    Unique identifier for IBM Cloud Event Notifications instance.

    • Constraints: The maximum length is 256 characters. The minimum length is 10 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]/.
    Id string
    The unique identifier of the en_smtp_allowed_ips.
    enSmtpAllowedIpsId String
    Unique identifier for SMTP.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 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}/.
    instanceId String
    Unique identifier for IBM Cloud Event Notifications instance.

    • Constraints: The maximum length is 256 characters. The minimum length is 10 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]/.
    id String
    The unique identifier of the en_smtp_allowed_ips.
    enSmtpAllowedIpsId string
    Unique identifier for SMTP.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 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}/.
    instanceId string
    Unique identifier for IBM Cloud Event Notifications instance.

    • Constraints: The maximum length is 256 characters. The minimum length is 10 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]/.
    id string
    The unique identifier of the en_smtp_allowed_ips.
    en_smtp_allowed_ips_id str
    Unique identifier for SMTP.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 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}/.
    instance_id str
    Unique identifier for IBM Cloud Event Notifications instance.

    • Constraints: The maximum length is 256 characters. The minimum length is 10 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]/.
    id str
    The unique identifier of the en_smtp_allowed_ips.
    enSmtpAllowedIpsId String
    Unique identifier for SMTP.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 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}/.
    instanceId String
    Unique identifier for IBM Cloud Event Notifications instance.

    • Constraints: The maximum length is 256 characters. The minimum length is 10 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]/.
    id String
    The unique identifier of the en_smtp_allowed_ips.

    getEnSmtpAllowedIps Result

    The following output properties are available:

    EnSmtpAllowedIpsId string
    Id string
    The unique identifier of the en_smtp_allowed_ips.
    InstanceId string
    Subnets List<string>
    (List) The SMTP allowed Ips.

    • Constraints: The list items must match regular expression /.*/. The maximum length is 100 items. The minimum length is 1 item.
    UpdatedAt string
    (String) Updated at.
    EnSmtpAllowedIpsId string
    Id string
    The unique identifier of the en_smtp_allowed_ips.
    InstanceId string
    Subnets []string
    (List) The SMTP allowed Ips.

    • Constraints: The list items must match regular expression /.*/. The maximum length is 100 items. The minimum length is 1 item.
    UpdatedAt string
    (String) Updated at.
    enSmtpAllowedIpsId String
    id String
    The unique identifier of the en_smtp_allowed_ips.
    instanceId String
    subnets List<String>
    (List) The SMTP allowed Ips.

    • Constraints: The list items must match regular expression /.*/. The maximum length is 100 items. The minimum length is 1 item.
    updatedAt String
    (String) Updated at.
    enSmtpAllowedIpsId string
    id string
    The unique identifier of the en_smtp_allowed_ips.
    instanceId string
    subnets string[]
    (List) The SMTP allowed Ips.

    • Constraints: The list items must match regular expression /.*/. The maximum length is 100 items. The minimum length is 1 item.
    updatedAt string
    (String) Updated at.
    en_smtp_allowed_ips_id str
    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 is 100 items. The minimum length is 1 item.
    updated_at str
    (String) Updated at.
    enSmtpAllowedIpsId String
    id String
    The unique identifier of the en_smtp_allowed_ips.
    instanceId String
    subnets List<String>
    (List) The SMTP allowed Ips.

    • Constraints: The list items must match regular expression /.*/. The maximum length is 100 items. The minimum length is 1 item.
    updatedAt 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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud