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

ibm.getCodeEngineAllowedOutboundDestination

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 a code_engine_allowed_outbound_destination. 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 codeEngineAllowedOutboundDestination = ibm.getCodeEngineAllowedOutboundDestination({
        projectId: data.ibm_code_engine_project.code_engine_project.project_id,
        name: "my-allowed-outbound-destination",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    code_engine_allowed_outbound_destination = ibm.get_code_engine_allowed_outbound_destination(project_id=data["ibm_code_engine_project"]["code_engine_project"]["project_id"],
        name="my-allowed-outbound-destination")
    
    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.LookupCodeEngineAllowedOutboundDestination(ctx, &ibm.LookupCodeEngineAllowedOutboundDestinationArgs{
    			ProjectId: data.Ibm_code_engine_project.Code_engine_project.Project_id,
    			Name:      "my-allowed-outbound-destination",
    		}, 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 codeEngineAllowedOutboundDestination = Ibm.GetCodeEngineAllowedOutboundDestination.Invoke(new()
        {
            ProjectId = data.Ibm_code_engine_project.Code_engine_project.Project_id,
            Name = "my-allowed-outbound-destination",
        });
    
    });
    
    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.GetCodeEngineAllowedOutboundDestinationArgs;
    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 codeEngineAllowedOutboundDestination = IbmFunctions.getCodeEngineAllowedOutboundDestination(GetCodeEngineAllowedOutboundDestinationArgs.builder()
                .projectId(data.ibm_code_engine_project().code_engine_project().project_id())
                .name("my-allowed-outbound-destination")
                .build());
    
        }
    }
    
    variables:
      codeEngineAllowedOutboundDestination:
        fn::invoke:
          function: ibm:getCodeEngineAllowedOutboundDestination
          arguments:
            projectId: ${data.ibm_code_engine_project.code_engine_project.project_id}
            name: my-allowed-outbound-destination
    

    Using getCodeEngineAllowedOutboundDestination

    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 getCodeEngineAllowedOutboundDestination(args: GetCodeEngineAllowedOutboundDestinationArgs, opts?: InvokeOptions): Promise<GetCodeEngineAllowedOutboundDestinationResult>
    function getCodeEngineAllowedOutboundDestinationOutput(args: GetCodeEngineAllowedOutboundDestinationOutputArgs, opts?: InvokeOptions): Output<GetCodeEngineAllowedOutboundDestinationResult>
    def get_code_engine_allowed_outbound_destination(id: Optional[str] = None,
                                                     name: Optional[str] = None,
                                                     project_id: Optional[str] = None,
                                                     opts: Optional[InvokeOptions] = None) -> GetCodeEngineAllowedOutboundDestinationResult
    def get_code_engine_allowed_outbound_destination_output(id: Optional[pulumi.Input[str]] = None,
                                                     name: Optional[pulumi.Input[str]] = None,
                                                     project_id: Optional[pulumi.Input[str]] = None,
                                                     opts: Optional[InvokeOptions] = None) -> Output[GetCodeEngineAllowedOutboundDestinationResult]
    func LookupCodeEngineAllowedOutboundDestination(ctx *Context, args *LookupCodeEngineAllowedOutboundDestinationArgs, opts ...InvokeOption) (*LookupCodeEngineAllowedOutboundDestinationResult, error)
    func LookupCodeEngineAllowedOutboundDestinationOutput(ctx *Context, args *LookupCodeEngineAllowedOutboundDestinationOutputArgs, opts ...InvokeOption) LookupCodeEngineAllowedOutboundDestinationResultOutput

    > Note: This function is named LookupCodeEngineAllowedOutboundDestination in the Go SDK.

    public static class GetCodeEngineAllowedOutboundDestination 
    {
        public static Task<GetCodeEngineAllowedOutboundDestinationResult> InvokeAsync(GetCodeEngineAllowedOutboundDestinationArgs args, InvokeOptions? opts = null)
        public static Output<GetCodeEngineAllowedOutboundDestinationResult> Invoke(GetCodeEngineAllowedOutboundDestinationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCodeEngineAllowedOutboundDestinationResult> getCodeEngineAllowedOutboundDestination(GetCodeEngineAllowedOutboundDestinationArgs args, InvokeOptions options)
    public static Output<GetCodeEngineAllowedOutboundDestinationResult> getCodeEngineAllowedOutboundDestination(GetCodeEngineAllowedOutboundDestinationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getCodeEngineAllowedOutboundDestination:getCodeEngineAllowedOutboundDestination
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of your allowed outbound destination.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    ProjectId string
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    Id string
    The unique identifier of the code_engine_allowed_outbound_destination.
    Name string
    The name of your allowed outbound destination.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    ProjectId string
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    Id string
    The unique identifier of the code_engine_allowed_outbound_destination.
    name String
    The name of your allowed outbound destination.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    projectId String
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    id String
    The unique identifier of the code_engine_allowed_outbound_destination.
    name string
    The name of your allowed outbound destination.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    projectId string
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    id string
    The unique identifier of the code_engine_allowed_outbound_destination.
    name str
    The name of your allowed outbound destination.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    project_id str
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    id str
    The unique identifier of the code_engine_allowed_outbound_destination.
    name String
    The name of your allowed outbound destination.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z?$/.
    projectId String
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    id String
    The unique identifier of the code_engine_allowed_outbound_destination.

    getCodeEngineAllowedOutboundDestination Result

    The following output properties are available:

    CidrBlock string
    (String) The IPv4 address range.

    • Constraints: The maximum length is 18 characters. The minimum length is 0 characters. The value must match regular expression /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/.
    EntityTag string
    (String) The version of the allowed outbound destination, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    Id string
    The unique identifier of the code_engine_allowed_outbound_destination.
    Name string
    ProjectId string
    Type string
    (Forces new resource, String) Specify the type of the allowed outbound destination. Allowed types are: 'cidr_block'.

    • Constraints: The default value is cidr_block. Allowable values are: cidr_block. The value must match regular expression /^(cidr_block)$/.
    CidrBlock string
    (String) The IPv4 address range.

    • Constraints: The maximum length is 18 characters. The minimum length is 0 characters. The value must match regular expression /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/.
    EntityTag string
    (String) The version of the allowed outbound destination, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    Id string
    The unique identifier of the code_engine_allowed_outbound_destination.
    Name string
    ProjectId string
    Type string
    (Forces new resource, String) Specify the type of the allowed outbound destination. Allowed types are: 'cidr_block'.

    • Constraints: The default value is cidr_block. Allowable values are: cidr_block. The value must match regular expression /^(cidr_block)$/.
    cidrBlock String
    (String) The IPv4 address range.

    • Constraints: The maximum length is 18 characters. The minimum length is 0 characters. The value must match regular expression /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/.
    entityTag String
    (String) The version of the allowed outbound destination, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    id String
    The unique identifier of the code_engine_allowed_outbound_destination.
    name String
    projectId String
    type String
    (Forces new resource, String) Specify the type of the allowed outbound destination. Allowed types are: 'cidr_block'.

    • Constraints: The default value is cidr_block. Allowable values are: cidr_block. The value must match regular expression /^(cidr_block)$/.
    cidrBlock string
    (String) The IPv4 address range.

    • Constraints: The maximum length is 18 characters. The minimum length is 0 characters. The value must match regular expression /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/.
    entityTag string
    (String) The version of the allowed outbound destination, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    id string
    The unique identifier of the code_engine_allowed_outbound_destination.
    name string
    projectId string
    type string
    (Forces new resource, String) Specify the type of the allowed outbound destination. Allowed types are: 'cidr_block'.

    • Constraints: The default value is cidr_block. Allowable values are: cidr_block. The value must match regular expression /^(cidr_block)$/.
    cidr_block str
    (String) The IPv4 address range.

    • Constraints: The maximum length is 18 characters. The minimum length is 0 characters. The value must match regular expression /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/.
    entity_tag str
    (String) The version of the allowed outbound destination, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    id str
    The unique identifier of the code_engine_allowed_outbound_destination.
    name str
    project_id str
    type str
    (Forces new resource, String) Specify the type of the allowed outbound destination. Allowed types are: 'cidr_block'.

    • Constraints: The default value is cidr_block. Allowable values are: cidr_block. The value must match regular expression /^(cidr_block)$/.
    cidrBlock String
    (String) The IPv4 address range.

    • Constraints: The maximum length is 18 characters. The minimum length is 0 characters. The value must match regular expression /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/.
    entityTag String
    (String) The version of the allowed outbound destination, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    id String
    The unique identifier of the code_engine_allowed_outbound_destination.
    name String
    projectId String
    type String
    (Forces new resource, String) Specify the type of the allowed outbound destination. Allowed types are: 'cidr_block'.

    • Constraints: The default value is cidr_block. Allowable values are: cidr_block. The value must match regular expression /^(cidr_block)$/.

    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