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

ibm.getIsVpc

Explore with Pulumi AI

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

    Retrieve information of an existing IBM Virtual Private cloud. For more information, about VPC, see getting started with Virtual Private Cloud (VPC).

    Note: VPC infrastructure services are a regional specific based endpoint, by default targets to us-south. Please make sure to target right region in the provider block as shown in the provider.tf file, if VPC service is created in region other than us-south.

    provider.tf

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const example = ibm.getIsVpc({
        name: "example-vpc",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_vpc(name="example-vpc")
    
    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.LookupIsVpc(ctx, &ibm.LookupIsVpcArgs{
    			Name: pulumi.StringRef("example-vpc"),
    		}, 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 example = Ibm.GetIsVpc.Invoke(new()
        {
            Name = "example-vpc",
        });
    
    });
    
    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.GetIsVpcArgs;
    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 example = IbmFunctions.getIsVpc(GetIsVpcArgs.builder()
                .name("example-vpc")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsVpc
          arguments:
            name: example-vpc
    

    Using getIsVpc

    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 getIsVpc(args: GetIsVpcArgs, opts?: InvokeOptions): Promise<GetIsVpcResult>
    function getIsVpcOutput(args: GetIsVpcOutputArgs, opts?: InvokeOptions): Output<GetIsVpcResult>
    def get_is_vpc(id: Optional[str] = None,
                   identifier: Optional[str] = None,
                   name: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetIsVpcResult
    def get_is_vpc_output(id: Optional[pulumi.Input[str]] = None,
                   identifier: Optional[pulumi.Input[str]] = None,
                   name: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetIsVpcResult]
    func LookupIsVpc(ctx *Context, args *LookupIsVpcArgs, opts ...InvokeOption) (*LookupIsVpcResult, error)
    func LookupIsVpcOutput(ctx *Context, args *LookupIsVpcOutputArgs, opts ...InvokeOption) LookupIsVpcResultOutput

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

    public static class GetIsVpc 
    {
        public static Task<GetIsVpcResult> InvokeAsync(GetIsVpcArgs args, InvokeOptions? opts = null)
        public static Output<GetIsVpcResult> Invoke(GetIsVpcInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsVpcResult> getIsVpc(GetIsVpcArgs args, InvokeOptions options)
    public static Output<GetIsVpcResult> getIsVpc(GetIsVpcArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsVpc:getIsVpc
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    (String) The ID of the subnet.
    Identifier string
    The id of the VPC.
    Name string
    The name of the VPC.
    Id string
    (String) The ID of the subnet.
    Identifier string
    The id of the VPC.
    Name string
    The name of the VPC.
    id String
    (String) The ID of the subnet.
    identifier String
    The id of the VPC.
    name String
    The name of the VPC.
    id string
    (String) The ID of the subnet.
    identifier string
    The id of the VPC.
    name string
    The name of the VPC.
    id str
    (String) The ID of the subnet.
    identifier str
    The id of the VPC.
    name str
    The name of the VPC.
    id String
    (String) The ID of the subnet.
    identifier String
    The id of the VPC.
    name String
    The name of the VPC.

    getIsVpc Result

    The following output properties are available:

    AccessTags List<string>
    (List) Access management tags associated for the volume.
    ClassicAccess bool
    (Bool) Indicates whether this VPC is connected to Classic Infrastructure.

    Deprecated: Deprecated

    Crn string
    (String) The CRN of the VPC.
    CseSourceAddresses List<GetIsVpcCseSourceAddress>
    List of Cloud Service Endpoints-A list of the cloud service endpoints that are associated with your VPC, including their source IP address and zone.
    DefaultAddressPrefixes Dictionary<string, string>
    (Map) A map of default address prefixes for each zone in the VPC. The keys are the zone names, and the values are the corresponding address prefixes. Example:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    

    return await Deployment.RunAsync(() => { });

    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    
    title=""> <span id="defaultnetworkacl_csharp">

    DefaultNetworkAcl string

    (String) The ID of the default network ACL.
    DefaultNetworkAclCrn string
    (String) The CRN of the default network ACL.
    DefaultNetworkAclName string
    (String) The name of the default network ACL.
    DefaultRoutingTable string
    (String) The unique identifier of the VPC default routing table.
    DefaultRoutingTableName string
    (String) The name of the default routing table.
    DefaultSecurityGroup string
    (String) The unique identifier of the VPC default security group.
    DefaultSecurityGroupCrn string
    (String) The CRN of the default security group.
    DefaultSecurityGroupName string
    (String) The name of the default security group.
    Dns List<GetIsVpcDn>
    (List) The DNS configuration for this VPC.
    HealthReasons List<GetIsVpcHealthReason>
    (List) The reasons for the current health_state (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered. Nested schema for health_reasons:
    HealthState string
    (String) The health of this resource.- ok: No abnormal behavior detected- degraded: Experiencing compromised performance, capacity, or connectivity- faulted: Completely unreachable, inoperative, or otherwise entirely incapacitated- inapplicable: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of failed or deleting will have a health state of inapplicable. A pending resource may also have this state.[degraded, faulted, inapplicable, ok]
    Id string
    (String) The ID of the subnet.
    ResourceControllerUrl string
    ResourceCrn string
    ResourceGroup string
    (String) The resource group ID where the VPC created.
    ResourceGroupName string
    ResourceName string
    ResourceStatus string
    SecurityGroups List<GetIsVpcSecurityGroup>
    (String) A list of security groups attached to VPC. The nested security group block has the following structure:
    Status string
    (String) The status of the subnet.
    Subnets List<GetIsVpcSubnet>
    (List) A list of subnets that are attached to a VPC.
    Tags List<string>
    (String) Tags associated with the instance.
    Identifier string
    Name string
    (String) The name of the subnet.

    AccessTags []string
    (List) Access management tags associated for the volume.
    ClassicAccess bool
    (Bool) Indicates whether this VPC is connected to Classic Infrastructure.

    Deprecated: Deprecated

    Crn string
    (String) The CRN of the VPC.
    CseSourceAddresses []GetIsVpcCseSourceAddress
    List of Cloud Service Endpoints-A list of the cloud service endpoints that are associated with your VPC, including their source IP address and zone.
    DefaultAddressPrefixes map[string]string
    (Map) A map of default address prefixes for each zone in the VPC. The keys are the zone names, and the values are the corresponding address prefixes. Example:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    

    return await Deployment.RunAsync(() => { });

    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    
    title=""> <span id="defaultnetworkacl_go">

    DefaultNetworkAcl string

    (String) The ID of the default network ACL.
    DefaultNetworkAclCrn string
    (String) The CRN of the default network ACL.
    DefaultNetworkAclName string
    (String) The name of the default network ACL.
    DefaultRoutingTable string
    (String) The unique identifier of the VPC default routing table.
    DefaultRoutingTableName string
    (String) The name of the default routing table.
    DefaultSecurityGroup string
    (String) The unique identifier of the VPC default security group.
    DefaultSecurityGroupCrn string
    (String) The CRN of the default security group.
    DefaultSecurityGroupName string
    (String) The name of the default security group.
    Dns []GetIsVpcDn
    (List) The DNS configuration for this VPC.
    HealthReasons []GetIsVpcHealthReason
    (List) The reasons for the current health_state (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered. Nested schema for health_reasons:
    HealthState string
    (String) The health of this resource.- ok: No abnormal behavior detected- degraded: Experiencing compromised performance, capacity, or connectivity- faulted: Completely unreachable, inoperative, or otherwise entirely incapacitated- inapplicable: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of failed or deleting will have a health state of inapplicable. A pending resource may also have this state.[degraded, faulted, inapplicable, ok]
    Id string
    (String) The ID of the subnet.
    ResourceControllerUrl string
    ResourceCrn string
    ResourceGroup string
    (String) The resource group ID where the VPC created.
    ResourceGroupName string
    ResourceName string
    ResourceStatus string
    SecurityGroups []GetIsVpcSecurityGroup
    (String) A list of security groups attached to VPC. The nested security group block has the following structure:
    Status string
    (String) The status of the subnet.
    Subnets []GetIsVpcSubnet
    (List) A list of subnets that are attached to a VPC.
    Tags []string
    (String) Tags associated with the instance.
    Identifier string
    Name string
    (String) The name of the subnet.

    accessTags List<String>
    (List) Access management tags associated for the volume.
    classicAccess Boolean
    (Bool) Indicates whether this VPC is connected to Classic Infrastructure.

    Deprecated: Deprecated

    crn String
    (String) The CRN of the VPC.
    cseSourceAddresses List<GetIsVpcCseSourceAddress>
    List of Cloud Service Endpoints-A list of the cloud service endpoints that are associated with your VPC, including their source IP address and zone.
    defaultAddressPrefixes Map<String,String>
    (Map) A map of default address prefixes for each zone in the VPC. The keys are the zone names, and the values are the corresponding address prefixes. Example:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    

    return await Deployment.RunAsync(() => { });

    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    
    title=""> <span id="defaultnetworkacl_java">

    defaultNetworkAcl String

    (String) The ID of the default network ACL.
    defaultNetworkAclCrn String
    (String) The CRN of the default network ACL.
    defaultNetworkAclName String
    (String) The name of the default network ACL.
    defaultRoutingTable String
    (String) The unique identifier of the VPC default routing table.
    defaultRoutingTableName String
    (String) The name of the default routing table.
    defaultSecurityGroup String
    (String) The unique identifier of the VPC default security group.
    defaultSecurityGroupCrn String
    (String) The CRN of the default security group.
    defaultSecurityGroupName String
    (String) The name of the default security group.
    dns List<GetIsVpcDn>
    (List) The DNS configuration for this VPC.
    healthReasons List<GetIsVpcHealthReason>
    (List) The reasons for the current health_state (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered. Nested schema for health_reasons:
    healthState String
    (String) The health of this resource.- ok: No abnormal behavior detected- degraded: Experiencing compromised performance, capacity, or connectivity- faulted: Completely unreachable, inoperative, or otherwise entirely incapacitated- inapplicable: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of failed or deleting will have a health state of inapplicable. A pending resource may also have this state.[degraded, faulted, inapplicable, ok]
    id String
    (String) The ID of the subnet.
    resourceControllerUrl String
    resourceCrn String
    resourceGroup String
    (String) The resource group ID where the VPC created.
    resourceGroupName String
    resourceName String
    resourceStatus String
    securityGroups List<GetIsVpcSecurityGroup>
    (String) A list of security groups attached to VPC. The nested security group block has the following structure:
    status String
    (String) The status of the subnet.
    subnets List<GetIsVpcSubnet>
    (List) A list of subnets that are attached to a VPC.
    tags List<String>
    (String) Tags associated with the instance.
    identifier String
    name String
    (String) The name of the subnet.

    accessTags string[]
    (List) Access management tags associated for the volume.
    classicAccess boolean
    (Bool) Indicates whether this VPC is connected to Classic Infrastructure.

    Deprecated: Deprecated

    crn string
    (String) The CRN of the VPC.
    cseSourceAddresses GetIsVpcCseSourceAddress[]
    List of Cloud Service Endpoints-A list of the cloud service endpoints that are associated with your VPC, including their source IP address and zone.
    defaultAddressPrefixes {[key: string]: string}
    (Map) A map of default address prefixes for each zone in the VPC. The keys are the zone names, and the values are the corresponding address prefixes. Example:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    

    return await Deployment.RunAsync(() => { });

    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    
    title=""> <span id="defaultnetworkacl_nodejs">

    defaultNetworkAcl string

    (String) The ID of the default network ACL.
    defaultNetworkAclCrn string
    (String) The CRN of the default network ACL.
    defaultNetworkAclName string
    (String) The name of the default network ACL.
    defaultRoutingTable string
    (String) The unique identifier of the VPC default routing table.
    defaultRoutingTableName string
    (String) The name of the default routing table.
    defaultSecurityGroup string
    (String) The unique identifier of the VPC default security group.
    defaultSecurityGroupCrn string
    (String) The CRN of the default security group.
    defaultSecurityGroupName string
    (String) The name of the default security group.
    dns GetIsVpcDn[]
    (List) The DNS configuration for this VPC.
    healthReasons GetIsVpcHealthReason[]
    (List) The reasons for the current health_state (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered. Nested schema for health_reasons:
    healthState string
    (String) The health of this resource.- ok: No abnormal behavior detected- degraded: Experiencing compromised performance, capacity, or connectivity- faulted: Completely unreachable, inoperative, or otherwise entirely incapacitated- inapplicable: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of failed or deleting will have a health state of inapplicable. A pending resource may also have this state.[degraded, faulted, inapplicable, ok]
    id string
    (String) The ID of the subnet.
    resourceControllerUrl string
    resourceCrn string
    resourceGroup string
    (String) The resource group ID where the VPC created.
    resourceGroupName string
    resourceName string
    resourceStatus string
    securityGroups GetIsVpcSecurityGroup[]
    (String) A list of security groups attached to VPC. The nested security group block has the following structure:
    status string
    (String) The status of the subnet.
    subnets GetIsVpcSubnet[]
    (List) A list of subnets that are attached to a VPC.
    tags string[]
    (String) Tags associated with the instance.
    identifier string
    name string
    (String) The name of the subnet.

    access_tags Sequence[str]
    (List) Access management tags associated for the volume.
    classic_access bool
    (Bool) Indicates whether this VPC is connected to Classic Infrastructure.

    Deprecated: Deprecated

    crn str
    (String) The CRN of the VPC.
    cse_source_addresses Sequence[GetIsVpcCseSourceAddress]
    List of Cloud Service Endpoints-A list of the cloud service endpoints that are associated with your VPC, including their source IP address and zone.
    default_address_prefixes Mapping[str, str]
    (Map) A map of default address prefixes for each zone in the VPC. The keys are the zone names, and the values are the corresponding address prefixes. Example:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    

    return await Deployment.RunAsync(() => { });

    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    
    title=""> <span id="default_network_acl_python">

    default_network_acl str

    (String) The ID of the default network ACL.
    default_network_acl_crn str
    (String) The CRN of the default network ACL.
    default_network_acl_name str
    (String) The name of the default network ACL.
    default_routing_table str
    (String) The unique identifier of the VPC default routing table.
    default_routing_table_name str
    (String) The name of the default routing table.
    default_security_group str
    (String) The unique identifier of the VPC default security group.
    default_security_group_crn str
    (String) The CRN of the default security group.
    default_security_group_name str
    (String) The name of the default security group.
    dns Sequence[GetIsVpcDn]
    (List) The DNS configuration for this VPC.
    health_reasons Sequence[GetIsVpcHealthReason]
    (List) The reasons for the current health_state (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered. Nested schema for health_reasons:
    health_state str
    (String) The health of this resource.- ok: No abnormal behavior detected- degraded: Experiencing compromised performance, capacity, or connectivity- faulted: Completely unreachable, inoperative, or otherwise entirely incapacitated- inapplicable: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of failed or deleting will have a health state of inapplicable. A pending resource may also have this state.[degraded, faulted, inapplicable, ok]
    id str
    (String) The ID of the subnet.
    resource_controller_url str
    resource_crn str
    resource_group str
    (String) The resource group ID where the VPC created.
    resource_group_name str
    resource_name str
    resource_status str
    security_groups Sequence[GetIsVpcSecurityGroup]
    (String) A list of security groups attached to VPC. The nested security group block has the following structure:
    status str
    (String) The status of the subnet.
    subnets Sequence[GetIsVpcSubnet]
    (List) A list of subnets that are attached to a VPC.
    tags Sequence[str]
    (String) Tags associated with the instance.
    identifier str
    name str
    (String) The name of the subnet.

    accessTags List<String>
    (List) Access management tags associated for the volume.
    classicAccess Boolean
    (Bool) Indicates whether this VPC is connected to Classic Infrastructure.

    Deprecated: Deprecated

    crn String
    (String) The CRN of the VPC.
    cseSourceAddresses List<Property Map>
    List of Cloud Service Endpoints-A list of the cloud service endpoints that are associated with your VPC, including their source IP address and zone.
    defaultAddressPrefixes Map<String>
    (Map) A map of default address prefixes for each zone in the VPC. The keys are the zone names, and the values are the corresponding address prefixes. Example:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    

    return await Deployment.RunAsync(() => { });

    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    
    title=""> <span id="defaultnetworkacl_yaml">

    defaultNetworkAcl String

    (String) The ID of the default network ACL.
    defaultNetworkAclCrn String
    (String) The CRN of the default network ACL.
    defaultNetworkAclName String
    (String) The name of the default network ACL.
    defaultRoutingTable String
    (String) The unique identifier of the VPC default routing table.
    defaultRoutingTableName String
    (String) The name of the default routing table.
    defaultSecurityGroup String
    (String) The unique identifier of the VPC default security group.
    defaultSecurityGroupCrn String
    (String) The CRN of the default security group.
    defaultSecurityGroupName String
    (String) The name of the default security group.
    dns List<Property Map>
    (List) The DNS configuration for this VPC.
    healthReasons List<Property Map>
    (List) The reasons for the current health_state (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered. Nested schema for health_reasons:
    healthState String
    (String) The health of this resource.- ok: No abnormal behavior detected- degraded: Experiencing compromised performance, capacity, or connectivity- faulted: Completely unreachable, inoperative, or otherwise entirely incapacitated- inapplicable: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of failed or deleting will have a health state of inapplicable. A pending resource may also have this state.[degraded, faulted, inapplicable, ok]
    id String
    (String) The ID of the subnet.
    resourceControllerUrl String
    resourceCrn String
    resourceGroup String
    (String) The resource group ID where the VPC created.
    resourceGroupName String
    resourceName String
    resourceStatus String
    securityGroups List<Property Map>
    (String) A list of security groups attached to VPC. The nested security group block has the following structure:
    status String
    (String) The status of the subnet.
    subnets List<Property Map>
    (List) A list of subnets that are attached to a VPC.
    tags List<String>
    (String) Tags associated with the instance.
    identifier String
    name String
    (String) The name of the subnet.

    Supporting Types

    GetIsVpcCseSourceAddress

    Address string
    (String) The IP address of the cloud service endpoint.
    ZoneName string
    (String) The zone where the cloud service endpoint is located.
    Address string
    (String) The IP address of the cloud service endpoint.
    ZoneName string
    (String) The zone where the cloud service endpoint is located.
    address String
    (String) The IP address of the cloud service endpoint.
    zoneName String
    (String) The zone where the cloud service endpoint is located.
    address string
    (String) The IP address of the cloud service endpoint.
    zoneName string
    (String) The zone where the cloud service endpoint is located.
    address str
    (String) The IP address of the cloud service endpoint.
    zone_name str
    (String) The zone where the cloud service endpoint is located.
    address String
    (String) The IP address of the cloud service endpoint.
    zoneName String
    (String) The zone where the cloud service endpoint is located.

    GetIsVpcDn

    EnableHub bool
    (Boolean) Indicates whether this VPC is enabled as a DNS name resolution hub.
    ResolutionBindingCount double
    Resolvers List<GetIsVpcDnResolver>
    (List) The zone list this backup policy plan will create snapshot clones in.
    EnableHub bool
    (Boolean) Indicates whether this VPC is enabled as a DNS name resolution hub.
    ResolutionBindingCount float64
    Resolvers []GetIsVpcDnResolver
    (List) The zone list this backup policy plan will create snapshot clones in.
    enableHub Boolean
    (Boolean) Indicates whether this VPC is enabled as a DNS name resolution hub.
    resolutionBindingCount Double
    resolvers List<GetIsVpcDnResolver>
    (List) The zone list this backup policy plan will create snapshot clones in.
    enableHub boolean
    (Boolean) Indicates whether this VPC is enabled as a DNS name resolution hub.
    resolutionBindingCount number
    resolvers GetIsVpcDnResolver[]
    (List) The zone list this backup policy plan will create snapshot clones in.
    enable_hub bool
    (Boolean) Indicates whether this VPC is enabled as a DNS name resolution hub.
    resolution_binding_count float
    resolvers Sequence[GetIsVpcDnResolver]
    (List) The zone list this backup policy plan will create snapshot clones in.
    enableHub Boolean
    (Boolean) Indicates whether this VPC is enabled as a DNS name resolution hub.
    resolutionBindingCount Number
    resolvers List<Property Map>
    (List) The zone list this backup policy plan will create snapshot clones in.

    GetIsVpcDnResolver

    Configuration string
    ManualServers List<GetIsVpcDnResolverManualServer>
    (Integer) The DNS servers to use for this VPC, replacing any existing servers. All the DNS servers must either: have a unique zone_affinity, or not have a zone_affinity.
    Servers List<GetIsVpcDnResolverServer>
    Type string
    (String) The ICMP traffic type to allow.
    Vpcs List<GetIsVpcDnResolverVpc>
    (String) The VPC to provide DNS server addresses for this VPC. The specified VPC must be configured with a DNS Services custom resolver and must be in one of this VPC's DNS resolution bindings.
    Configuration string
    ManualServers []GetIsVpcDnResolverManualServer
    (Integer) The DNS servers to use for this VPC, replacing any existing servers. All the DNS servers must either: have a unique zone_affinity, or not have a zone_affinity.
    Servers []GetIsVpcDnResolverServer
    Type string
    (String) The ICMP traffic type to allow.
    Vpcs []GetIsVpcDnResolverVpc
    (String) The VPC to provide DNS server addresses for this VPC. The specified VPC must be configured with a DNS Services custom resolver and must be in one of this VPC's DNS resolution bindings.
    configuration String
    manualServers List<GetIsVpcDnResolverManualServer>
    (Integer) The DNS servers to use for this VPC, replacing any existing servers. All the DNS servers must either: have a unique zone_affinity, or not have a zone_affinity.
    servers List<GetIsVpcDnResolverServer>
    type String
    (String) The ICMP traffic type to allow.
    vpcs List<GetIsVpcDnResolverVpc>
    (String) The VPC to provide DNS server addresses for this VPC. The specified VPC must be configured with a DNS Services custom resolver and must be in one of this VPC's DNS resolution bindings.
    configuration string
    manualServers GetIsVpcDnResolverManualServer[]
    (Integer) The DNS servers to use for this VPC, replacing any existing servers. All the DNS servers must either: have a unique zone_affinity, or not have a zone_affinity.
    servers GetIsVpcDnResolverServer[]
    type string
    (String) The ICMP traffic type to allow.
    vpcs GetIsVpcDnResolverVpc[]
    (String) The VPC to provide DNS server addresses for this VPC. The specified VPC must be configured with a DNS Services custom resolver and must be in one of this VPC's DNS resolution bindings.
    configuration str
    manual_servers Sequence[GetIsVpcDnResolverManualServer]
    (Integer) The DNS servers to use for this VPC, replacing any existing servers. All the DNS servers must either: have a unique zone_affinity, or not have a zone_affinity.
    servers Sequence[GetIsVpcDnResolverServer]
    type str
    (String) The ICMP traffic type to allow.
    vpcs Sequence[GetIsVpcDnResolverVpc]
    (String) The VPC to provide DNS server addresses for this VPC. The specified VPC must be configured with a DNS Services custom resolver and must be in one of this VPC's DNS resolution bindings.
    configuration String
    manualServers List<Property Map>
    (Integer) The DNS servers to use for this VPC, replacing any existing servers. All the DNS servers must either: have a unique zone_affinity, or not have a zone_affinity.
    servers List<Property Map>
    type String
    (String) The ICMP traffic type to allow.
    vpcs List<Property Map>
    (String) The VPC to provide DNS server addresses for this VPC. The specified VPC must be configured with a DNS Services custom resolver and must be in one of this VPC's DNS resolution bindings.

    GetIsVpcDnResolverManualServer

    Address string
    (String) The IP address of the cloud service endpoint.
    ZoneAffinity string
    Address string
    (String) The IP address of the cloud service endpoint.
    ZoneAffinity string
    address String
    (String) The IP address of the cloud service endpoint.
    zoneAffinity String
    address string
    (String) The IP address of the cloud service endpoint.
    zoneAffinity string
    address str
    (String) The IP address of the cloud service endpoint.
    zone_affinity str
    address String
    (String) The IP address of the cloud service endpoint.
    zoneAffinity String

    GetIsVpcDnResolverServer

    Address string
    (String) The IP address of the cloud service endpoint.
    ZoneAffinity string
    Address string
    (String) The IP address of the cloud service endpoint.
    ZoneAffinity string
    address String
    (String) The IP address of the cloud service endpoint.
    zoneAffinity String
    address string
    (String) The IP address of the cloud service endpoint.
    zoneAffinity string
    address str
    (String) The IP address of the cloud service endpoint.
    zone_affinity str
    address String
    (String) The IP address of the cloud service endpoint.
    zoneAffinity String

    GetIsVpcDnResolverVpc

    Crn string
    (String) The CRN of the VPC.
    Deleteds List<GetIsVpcDnResolverVpcDeleted>
    Href string
    Id string
    (String) The ID of the subnet.
    Name string
    The name of the VPC.
    Remotes List<GetIsVpcDnResolverVpcRemote>
    (String) The security group ID, an IP address, a CIDR block, or a single security group identifier.
    ResourceType string
    Crn string
    (String) The CRN of the VPC.
    Deleteds []GetIsVpcDnResolverVpcDeleted
    Href string
    Id string
    (String) The ID of the subnet.
    Name string
    The name of the VPC.
    Remotes []GetIsVpcDnResolverVpcRemote
    (String) The security group ID, an IP address, a CIDR block, or a single security group identifier.
    ResourceType string
    crn String
    (String) The CRN of the VPC.
    deleteds List<GetIsVpcDnResolverVpcDeleted>
    href String
    id String
    (String) The ID of the subnet.
    name String
    The name of the VPC.
    remotes List<GetIsVpcDnResolverVpcRemote>
    (String) The security group ID, an IP address, a CIDR block, or a single security group identifier.
    resourceType String
    crn string
    (String) The CRN of the VPC.
    deleteds GetIsVpcDnResolverVpcDeleted[]
    href string
    id string
    (String) The ID of the subnet.
    name string
    The name of the VPC.
    remotes GetIsVpcDnResolverVpcRemote[]
    (String) The security group ID, an IP address, a CIDR block, or a single security group identifier.
    resourceType string
    crn str
    (String) The CRN of the VPC.
    deleteds Sequence[GetIsVpcDnResolverVpcDeleted]
    href str
    id str
    (String) The ID of the subnet.
    name str
    The name of the VPC.
    remotes Sequence[GetIsVpcDnResolverVpcRemote]
    (String) The security group ID, an IP address, a CIDR block, or a single security group identifier.
    resource_type str
    crn String
    (String) The CRN of the VPC.
    deleteds List<Property Map>
    href String
    id String
    (String) The ID of the subnet.
    name String
    The name of the VPC.
    remotes List<Property Map>
    (String) The security group ID, an IP address, a CIDR block, or a single security group identifier.
    resourceType String

    GetIsVpcDnResolverVpcDeleted

    MoreInfo string
    (String) Link to documentation about the reason for this health state.
    MoreInfo string
    (String) Link to documentation about the reason for this health state.
    moreInfo String
    (String) Link to documentation about the reason for this health state.
    moreInfo string
    (String) Link to documentation about the reason for this health state.
    more_info str
    (String) Link to documentation about the reason for this health state.
    moreInfo String
    (String) Link to documentation about the reason for this health state.

    GetIsVpcDnResolverVpcRemote

    GetIsVpcDnResolverVpcRemoteAccount

    Id string
    (String) The ID of the subnet.
    ResourceType string
    Id string
    (String) The ID of the subnet.
    ResourceType string
    id String
    (String) The ID of the subnet.
    resourceType String
    id string
    (String) The ID of the subnet.
    resourceType string
    id str
    (String) The ID of the subnet.
    resource_type str
    id String
    (String) The ID of the subnet.
    resourceType String

    GetIsVpcHealthReason

    Code string
    (String) The ICMP traffic code to allow.
    Message string
    (String) An explanation of the reason for this health state.
    MoreInfo string
    (String) Link to documentation about the reason for this health state.
    Code string
    (String) The ICMP traffic code to allow.
    Message string
    (String) An explanation of the reason for this health state.
    MoreInfo string
    (String) Link to documentation about the reason for this health state.
    code String
    (String) The ICMP traffic code to allow.
    message String
    (String) An explanation of the reason for this health state.
    moreInfo String
    (String) Link to documentation about the reason for this health state.
    code string
    (String) The ICMP traffic code to allow.
    message string
    (String) An explanation of the reason for this health state.
    moreInfo string
    (String) Link to documentation about the reason for this health state.
    code str
    (String) The ICMP traffic code to allow.
    message str
    (String) An explanation of the reason for this health state.
    more_info str
    (String) Link to documentation about the reason for this health state.
    code String
    (String) The ICMP traffic code to allow.
    message String
    (String) An explanation of the reason for this health state.
    moreInfo String
    (String) Link to documentation about the reason for this health state.

    GetIsVpcSecurityGroup

    GroupId string
    (String) Security group ID.
    GroupName string
    (String) Name of the security group.
    Rules List<GetIsVpcSecurityGroupRule>
    (String) Set of rules attached to a security group.
    GroupId string
    (String) Security group ID.
    GroupName string
    (String) Name of the security group.
    Rules []GetIsVpcSecurityGroupRule
    (String) Set of rules attached to a security group.
    groupId String
    (String) Security group ID.
    groupName String
    (String) Name of the security group.
    rules List<GetIsVpcSecurityGroupRule>
    (String) Set of rules attached to a security group.
    groupId string
    (String) Security group ID.
    groupName string
    (String) Name of the security group.
    rules GetIsVpcSecurityGroupRule[]
    (String) Set of rules attached to a security group.
    group_id str
    (String) Security group ID.
    group_name str
    (String) Name of the security group.
    rules Sequence[GetIsVpcSecurityGroupRule]
    (String) Set of rules attached to a security group.
    groupId String
    (String) Security group ID.
    groupName String
    (String) Name of the security group.
    rules List<Property Map>
    (String) Set of rules attached to a security group.

    GetIsVpcSecurityGroupRule

    Code double
    (String) The ICMP traffic code to allow.
    Direction string
    (String) Direction of the traffic either inbound or outbound.
    IpVersion string
    (String) The IP version ipv4
    PortMax double
    (String) The inclusive upper bound of TCP port range.
    PortMin double
    (String) The inclusive lower bound of TCP port range.
    Protocol string
    Remote string
    (String) The security group ID, an IP address, a CIDR block, or a single security group identifier.
    RuleId string
    (String) ID of the rule.
    Type double
    (String) The ICMP traffic type to allow.
    Code float64
    (String) The ICMP traffic code to allow.
    Direction string
    (String) Direction of the traffic either inbound or outbound.
    IpVersion string
    (String) The IP version ipv4
    PortMax float64
    (String) The inclusive upper bound of TCP port range.
    PortMin float64
    (String) The inclusive lower bound of TCP port range.
    Protocol string
    Remote string
    (String) The security group ID, an IP address, a CIDR block, or a single security group identifier.
    RuleId string
    (String) ID of the rule.
    Type float64
    (String) The ICMP traffic type to allow.
    code Double
    (String) The ICMP traffic code to allow.
    direction String
    (String) Direction of the traffic either inbound or outbound.
    ipVersion String
    (String) The IP version ipv4
    portMax Double
    (String) The inclusive upper bound of TCP port range.
    portMin Double
    (String) The inclusive lower bound of TCP port range.
    protocol String
    remote String
    (String) The security group ID, an IP address, a CIDR block, or a single security group identifier.
    ruleId String
    (String) ID of the rule.
    type Double
    (String) The ICMP traffic type to allow.
    code number
    (String) The ICMP traffic code to allow.
    direction string
    (String) Direction of the traffic either inbound or outbound.
    ipVersion string
    (String) The IP version ipv4
    portMax number
    (String) The inclusive upper bound of TCP port range.
    portMin number
    (String) The inclusive lower bound of TCP port range.
    protocol string
    remote string
    (String) The security group ID, an IP address, a CIDR block, or a single security group identifier.
    ruleId string
    (String) ID of the rule.
    type number
    (String) The ICMP traffic type to allow.
    code float
    (String) The ICMP traffic code to allow.
    direction str
    (String) Direction of the traffic either inbound or outbound.
    ip_version str
    (String) The IP version ipv4
    port_max float
    (String) The inclusive upper bound of TCP port range.
    port_min float
    (String) The inclusive lower bound of TCP port range.
    protocol str
    remote str
    (String) The security group ID, an IP address, a CIDR block, or a single security group identifier.
    rule_id str
    (String) ID of the rule.
    type float
    (String) The ICMP traffic type to allow.
    code Number
    (String) The ICMP traffic code to allow.
    direction String
    (String) Direction of the traffic either inbound or outbound.
    ipVersion String
    (String) The IP version ipv4
    portMax Number
    (String) The inclusive upper bound of TCP port range.
    portMin Number
    (String) The inclusive lower bound of TCP port range.
    protocol String
    remote String
    (String) The security group ID, an IP address, a CIDR block, or a single security group identifier.
    ruleId String
    (String) ID of the rule.
    type Number
    (String) The ICMP traffic type to allow.

    GetIsVpcSubnet

    AvailableIpv4AddressCount double
    (Integer) The number of IPv4 addresses in the subnet that are available for you to be used.
    Id string
    (String) The ID of the subnet.
    Name string
    The name of the VPC.
    Status string
    (String) The status of the subnet.
    TotalIpv4AddressCount double
    (Integer) The total number of IPv4 addresses in the subnet.
    Zone string
    (String) The zone that the subnet belongs to.
    AvailableIpv4AddressCount float64
    (Integer) The number of IPv4 addresses in the subnet that are available for you to be used.
    Id string
    (String) The ID of the subnet.
    Name string
    The name of the VPC.
    Status string
    (String) The status of the subnet.
    TotalIpv4AddressCount float64
    (Integer) The total number of IPv4 addresses in the subnet.
    Zone string
    (String) The zone that the subnet belongs to.
    availableIpv4AddressCount Double
    (Integer) The number of IPv4 addresses in the subnet that are available for you to be used.
    id String
    (String) The ID of the subnet.
    name String
    The name of the VPC.
    status String
    (String) The status of the subnet.
    totalIpv4AddressCount Double
    (Integer) The total number of IPv4 addresses in the subnet.
    zone String
    (String) The zone that the subnet belongs to.
    availableIpv4AddressCount number
    (Integer) The number of IPv4 addresses in the subnet that are available for you to be used.
    id string
    (String) The ID of the subnet.
    name string
    The name of the VPC.
    status string
    (String) The status of the subnet.
    totalIpv4AddressCount number
    (Integer) The total number of IPv4 addresses in the subnet.
    zone string
    (String) The zone that the subnet belongs to.
    available_ipv4_address_count float
    (Integer) The number of IPv4 addresses in the subnet that are available for you to be used.
    id str
    (String) The ID of the subnet.
    name str
    The name of the VPC.
    status str
    (String) The status of the subnet.
    total_ipv4_address_count float
    (Integer) The total number of IPv4 addresses in the subnet.
    zone str
    (String) The zone that the subnet belongs to.
    availableIpv4AddressCount Number
    (Integer) The number of IPv4 addresses in the subnet that are available for you to be used.
    id String
    (String) The ID of the subnet.
    name String
    The name of the VPC.
    status String
    (String) The status of the subnet.
    totalIpv4AddressCount Number
    (Integer) The total number of IPv4 addresses in the subnet.
    zone String
    (String) The zone that the subnet belongs to.

    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