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

ibm.getIsVpcs

Explore with Pulumi AI

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

    Retrieve information of an existing VPCs. 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.getIsVpcs({});
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_vpcs()
    
    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.GetIsVpcs(ctx, &ibm.GetIsVpcsArgs{}, 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.GetIsVpcs.Invoke();
    
    });
    
    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.GetIsVpcsArgs;
    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.getIsVpcs();
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsVpcs
          arguments: {}
    

    Using getIsVpcs

    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 getIsVpcs(args: GetIsVpcsArgs, opts?: InvokeOptions): Promise<GetIsVpcsResult>
    function getIsVpcsOutput(args: GetIsVpcsOutputArgs, opts?: InvokeOptions): Output<GetIsVpcsResult>
    def get_is_vpcs(classic_access: Optional[bool] = None,
                    id: Optional[str] = None,
                    resource_group: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetIsVpcsResult
    def get_is_vpcs_output(classic_access: Optional[pulumi.Input[bool]] = None,
                    id: Optional[pulumi.Input[str]] = None,
                    resource_group: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetIsVpcsResult]
    func GetIsVpcs(ctx *Context, args *GetIsVpcsArgs, opts ...InvokeOption) (*GetIsVpcsResult, error)
    func GetIsVpcsOutput(ctx *Context, args *GetIsVpcsOutputArgs, opts ...InvokeOption) GetIsVpcsResultOutput

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

    public static class GetIsVpcs 
    {
        public static Task<GetIsVpcsResult> InvokeAsync(GetIsVpcsArgs args, InvokeOptions? opts = null)
        public static Output<GetIsVpcsResult> Invoke(GetIsVpcsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsVpcsResult> getIsVpcs(GetIsVpcsArgs args, InvokeOptions options)
    public static Output<GetIsVpcsResult> getIsVpcs(GetIsVpcsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsVpcs:getIsVpcs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClassicAccess bool
    Indicates whether this VPC is connected to Classic Infrastructure.
    Id string
    (String) The ID of the subnet.
    ResourceGroup string
    The ID of the Resource group this flow log collector belongs to
    ClassicAccess bool
    Indicates whether this VPC is connected to Classic Infrastructure.
    Id string
    (String) The ID of the subnet.
    ResourceGroup string
    The ID of the Resource group this flow log collector belongs to
    classicAccess Boolean
    Indicates whether this VPC is connected to Classic Infrastructure.
    id String
    (String) The ID of the subnet.
    resourceGroup String
    The ID of the Resource group this flow log collector belongs to
    classicAccess boolean
    Indicates whether this VPC is connected to Classic Infrastructure.
    id string
    (String) The ID of the subnet.
    resourceGroup string
    The ID of the Resource group this flow log collector belongs to
    classic_access bool
    Indicates whether this VPC is connected to Classic Infrastructure.
    id str
    (String) The ID of the subnet.
    resource_group str
    The ID of the Resource group this flow log collector belongs to
    classicAccess Boolean
    Indicates whether this VPC is connected to Classic Infrastructure.
    id String
    (String) The ID of the subnet.
    resourceGroup String
    The ID of the Resource group this flow log collector belongs to

    getIsVpcs Result

    The following output properties are available:

    Id string
    (String) The ID of the subnet.
    Vpcs List<GetIsVpcsVpc>
    (List) List of all the VPCs.
    ClassicAccess bool
    (Bool) Indicates whether this VPC is connected to the Classic Infrastructure.
    ResourceGroup string
    (String) The resource group ID where the VPC created.
    Id string
    (String) The ID of the subnet.
    Vpcs []GetIsVpcsVpc
    (List) List of all the VPCs.
    ClassicAccess bool
    (Bool) Indicates whether this VPC is connected to the Classic Infrastructure.
    ResourceGroup string
    (String) The resource group ID where the VPC created.
    id String
    (String) The ID of the subnet.
    vpcs List<GetIsVpcsVpc>
    (List) List of all the VPCs.
    classicAccess Boolean
    (Bool) Indicates whether this VPC is connected to the Classic Infrastructure.
    resourceGroup String
    (String) The resource group ID where the VPC created.
    id string
    (String) The ID of the subnet.
    vpcs GetIsVpcsVpc[]
    (List) List of all the VPCs.
    classicAccess boolean
    (Bool) Indicates whether this VPC is connected to the Classic Infrastructure.
    resourceGroup string
    (String) The resource group ID where the VPC created.
    id str
    (String) The ID of the subnet.
    vpcs Sequence[GetIsVpcsVpc]
    (List) List of all the VPCs.
    classic_access bool
    (Bool) Indicates whether this VPC is connected to the Classic Infrastructure.
    resource_group str
    (String) The resource group ID where the VPC created.
    id String
    (String) The ID of the subnet.
    vpcs List<Property Map>
    (List) List of all the VPCs.
    classicAccess Boolean
    (Bool) Indicates whether this VPC is connected to the Classic Infrastructure.
    resourceGroup String
    (String) The resource group ID where the VPC created.

    Supporting Types

    GetIsVpcsVpc

    AccessTags List<string>
    (List) Access management tags associated for the volume.
    ClassicAccess bool
    Indicates whether this VPC is connected to Classic Infrastructure.
    Crn string
    (String) The CRN of the VPC.
    CseSourceAddresses List<GetIsVpcsVpcCseSourceAddress>
    (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="Required"> <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<GetIsVpcsVpcDn>
    (List) The DNS configuration for this VPC.
    HealthReasons List<GetIsVpcsVpcHealthReason>
    (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.
    Name string
    (String) The name of the subnet.
    ResourceControllerUrl string
    ResourceCrn string
    ResourceGroup string
    The ID of the Resource group this flow log collector belongs to
    ResourceGroupName string
    ResourceName string
    ResourceStatus string
    SecurityGroups List<GetIsVpcsVpcSecurityGroup>
    (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<GetIsVpcsVpcSubnet>
    (List) A list of subnets that are attached to a VPC.
    Tags List<string>
    (String) Tags associated with the instance.

    AccessTags []string
    (List) Access management tags associated for the volume.
    ClassicAccess bool
    Indicates whether this VPC is connected to Classic Infrastructure.
    Crn string
    (String) The CRN of the VPC.
    CseSourceAddresses []GetIsVpcsVpcCseSourceAddress
    (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="Required"> <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 []GetIsVpcsVpcDn
    (List) The DNS configuration for this VPC.
    HealthReasons []GetIsVpcsVpcHealthReason
    (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.
    Name string
    (String) The name of the subnet.
    ResourceControllerUrl string
    ResourceCrn string
    ResourceGroup string
    The ID of the Resource group this flow log collector belongs to
    ResourceGroupName string
    ResourceName string
    ResourceStatus string
    SecurityGroups []GetIsVpcsVpcSecurityGroup
    (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 []GetIsVpcsVpcSubnet
    (List) A list of subnets that are attached to a VPC.
    Tags []string
    (String) Tags associated with the instance.

    accessTags List<String>
    (List) Access management tags associated for the volume.
    classicAccess Boolean
    Indicates whether this VPC is connected to Classic Infrastructure.
    crn String
    (String) The CRN of the VPC.
    cseSourceAddresses List<GetIsVpcsVpcCseSourceAddress>
    (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="Required"> <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<GetIsVpcsVpcDn>
    (List) The DNS configuration for this VPC.
    healthReasons List<GetIsVpcsVpcHealthReason>
    (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.
    name String
    (String) The name of the subnet.
    resourceControllerUrl String
    resourceCrn String
    resourceGroup String
    The ID of the Resource group this flow log collector belongs to
    resourceGroupName String
    resourceName String
    resourceStatus String
    securityGroups List<GetIsVpcsVpcSecurityGroup>
    (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<GetIsVpcsVpcSubnet>
    (List) A list of subnets that are attached to a VPC.
    tags List<String>
    (String) Tags associated with the instance.

    accessTags string[]
    (List) Access management tags associated for the volume.
    classicAccess boolean
    Indicates whether this VPC is connected to Classic Infrastructure.
    crn string
    (String) The CRN of the VPC.
    cseSourceAddresses GetIsVpcsVpcCseSourceAddress[]
    (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="Required"> <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 GetIsVpcsVpcDn[]
    (List) The DNS configuration for this VPC.
    healthReasons GetIsVpcsVpcHealthReason[]
    (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.
    name string
    (String) The name of the subnet.
    resourceControllerUrl string
    resourceCrn string
    resourceGroup string
    The ID of the Resource group this flow log collector belongs to
    resourceGroupName string
    resourceName string
    resourceStatus string
    securityGroups GetIsVpcsVpcSecurityGroup[]
    (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 GetIsVpcsVpcSubnet[]
    (List) A list of subnets that are attached to a VPC.
    tags string[]
    (String) Tags associated with the instance.

    access_tags Sequence[str]
    (List) Access management tags associated for the volume.
    classic_access bool
    Indicates whether this VPC is connected to Classic Infrastructure.
    crn str
    (String) The CRN of the VPC.
    cse_source_addresses Sequence[GetIsVpcsVpcCseSourceAddress]
    (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="Required"> <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[GetIsVpcsVpcDn]
    (List) The DNS configuration for this VPC.
    health_reasons Sequence[GetIsVpcsVpcHealthReason]
    (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.
    name str
    (String) The name of the subnet.
    resource_controller_url str
    resource_crn str
    resource_group str
    The ID of the Resource group this flow log collector belongs to
    resource_group_name str
    resource_name str
    resource_status str
    security_groups Sequence[GetIsVpcsVpcSecurityGroup]
    (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[GetIsVpcsVpcSubnet]
    (List) A list of subnets that are attached to a VPC.
    tags Sequence[str]
    (String) Tags associated with the instance.

    accessTags List<String>
    (List) Access management tags associated for the volume.
    classicAccess Boolean
    Indicates whether this VPC is connected to Classic Infrastructure.
    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="Required"> <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.
    name String
    (String) The name of the subnet.
    resourceControllerUrl String
    resourceCrn String
    resourceGroup String
    The ID of the Resource group this flow log collector belongs to
    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.

    GetIsVpcsVpcCseSourceAddress

    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.

    GetIsVpcsVpcDn

    EnableHub bool
    (Boolean) Indicates whether this VPC is enabled as a DNS name resolution hub.
    ResolutionBindingCount double
    Resolvers List<GetIsVpcsVpcDnResolver>
    (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 []GetIsVpcsVpcDnResolver
    (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<GetIsVpcsVpcDnResolver>
    (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 GetIsVpcsVpcDnResolver[]
    (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[GetIsVpcsVpcDnResolver]
    (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.

    GetIsVpcsVpcDnResolver

    Configuration string
    ManualServers List<GetIsVpcsVpcDnResolverManualServer>
    (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<GetIsVpcsVpcDnResolverServer>
    Type string
    (String) The ICMP traffic type to allow.
    Vpcs List<GetIsVpcsVpcDnResolverVpc>
    (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 []GetIsVpcsVpcDnResolverManualServer
    (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 []GetIsVpcsVpcDnResolverServer
    Type string
    (String) The ICMP traffic type to allow.
    Vpcs []GetIsVpcsVpcDnResolverVpc
    (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<GetIsVpcsVpcDnResolverManualServer>
    (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<GetIsVpcsVpcDnResolverServer>
    type String
    (String) The ICMP traffic type to allow.
    vpcs List<GetIsVpcsVpcDnResolverVpc>
    (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 GetIsVpcsVpcDnResolverManualServer[]
    (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 GetIsVpcsVpcDnResolverServer[]
    type string
    (String) The ICMP traffic type to allow.
    vpcs GetIsVpcsVpcDnResolverVpc[]
    (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[GetIsVpcsVpcDnResolverManualServer]
    (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[GetIsVpcsVpcDnResolverServer]
    type str
    (String) The ICMP traffic type to allow.
    vpcs Sequence[GetIsVpcsVpcDnResolverVpc]
    (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.

    GetIsVpcsVpcDnResolverManualServer

    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

    GetIsVpcsVpcDnResolverServer

    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

    GetIsVpcsVpcDnResolverVpc

    Crn string
    (String) The CRN of the VPC.
    Deleteds List<GetIsVpcsVpcDnResolverVpcDeleted>
    Href string
    Id string
    (String) The ID of the subnet.
    Name string
    (String) The name of the subnet.
    Remotes List<GetIsVpcsVpcDnResolverVpcRemote>
    (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 []GetIsVpcsVpcDnResolverVpcDeleted
    Href string
    Id string
    (String) The ID of the subnet.
    Name string
    (String) The name of the subnet.
    Remotes []GetIsVpcsVpcDnResolverVpcRemote
    (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<GetIsVpcsVpcDnResolverVpcDeleted>
    href String
    id String
    (String) The ID of the subnet.
    name String
    (String) The name of the subnet.
    remotes List<GetIsVpcsVpcDnResolverVpcRemote>
    (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 GetIsVpcsVpcDnResolverVpcDeleted[]
    href string
    id string
    (String) The ID of the subnet.
    name string
    (String) The name of the subnet.
    remotes GetIsVpcsVpcDnResolverVpcRemote[]
    (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[GetIsVpcsVpcDnResolverVpcDeleted]
    href str
    id str
    (String) The ID of the subnet.
    name str
    (String) The name of the subnet.
    remotes Sequence[GetIsVpcsVpcDnResolverVpcRemote]
    (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
    (String) The name of the subnet.
    remotes List<Property Map>
    (String) The security group ID, an IP address, a CIDR block, or a single security group identifier.
    resourceType String

    GetIsVpcsVpcDnResolverVpcDeleted

    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.

    GetIsVpcsVpcDnResolverVpcRemote

    GetIsVpcsVpcDnResolverVpcRemoteAccount

    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

    GetIsVpcsVpcHealthReason

    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.

    GetIsVpcsVpcSecurityGroup

    GroupId string
    (String) Security group ID.
    GroupName string
    (String) Name of the security group.
    Rules List<GetIsVpcsVpcSecurityGroupRule>
    (String) Set of rules attached to a security group.
    GroupId string
    (String) Security group ID.
    GroupName string
    (String) Name of the security group.
    Rules []GetIsVpcsVpcSecurityGroupRule
    (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<GetIsVpcsVpcSecurityGroupRule>
    (String) Set of rules attached to a security group.
    groupId string
    (String) Security group ID.
    groupName string
    (String) Name of the security group.
    rules GetIsVpcsVpcSecurityGroupRule[]
    (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[GetIsVpcsVpcSecurityGroupRule]
    (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.

    GetIsVpcsVpcSecurityGroupRule

    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 either ipv4 or ipv6.
    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 either ipv4 or ipv6.
    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 either ipv4 or ipv6.
    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 either ipv4 or ipv6.
    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 either ipv4 or ipv6.
    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 either ipv4 or ipv6.
    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.

    GetIsVpcsVpcSubnet

    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
    (String) The name of the subnet.
    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
    (String) The name of the subnet.
    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
    (String) The name of the subnet.
    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
    (String) The name of the subnet.
    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
    (String) The name of the subnet.
    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
    (String) The name of the subnet.
    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