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

ibm.getIsClusterNetworkSubnetReservedIp

Explore with Pulumi AI

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

    Provides a read-only data source to retrieve information about a ClusterNetworkSubnetReservedIP. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const isClusterNetworkSubnetReservedIpInstance = ibm.getIsClusterNetworkSubnetReservedIp({
        clusterNetworkId: ibm_is_cluster_network.is_cluster_network_instance.id,
        clusterNetworkSubnetId: ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id,
        clusterNetworkSubnetReservedIpId: ibm_is_cluster_network_subnet_reserved_ip.is_cluster_network_subnet_reserved_ip_instance.cluster_network_subnet_reserved_ip_id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    is_cluster_network_subnet_reserved_ip_instance = ibm.get_is_cluster_network_subnet_reserved_ip(cluster_network_id=ibm_is_cluster_network["is_cluster_network_instance"]["id"],
        cluster_network_subnet_id=ibm_is_cluster_network_subnet["is_cluster_network_subnet_instance"]["cluster_network_subnet_id"],
        cluster_network_subnet_reserved_ip_id=ibm_is_cluster_network_subnet_reserved_ip["is_cluster_network_subnet_reserved_ip_instance"]["cluster_network_subnet_reserved_ip_id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.LookupIsClusterNetworkSubnetReservedIp(ctx, &ibm.LookupIsClusterNetworkSubnetReservedIpArgs{
    			ClusterNetworkId:                 ibm_is_cluster_network.Is_cluster_network_instance.Id,
    			ClusterNetworkSubnetId:           ibm_is_cluster_network_subnet.Is_cluster_network_subnet_instance.Cluster_network_subnet_id,
    			ClusterNetworkSubnetReservedIpId: ibm_is_cluster_network_subnet_reserved_ip.Is_cluster_network_subnet_reserved_ip_instance.Cluster_network_subnet_reserved_ip_id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var isClusterNetworkSubnetReservedIpInstance = Ibm.GetIsClusterNetworkSubnetReservedIp.Invoke(new()
        {
            ClusterNetworkId = ibm_is_cluster_network.Is_cluster_network_instance.Id,
            ClusterNetworkSubnetId = ibm_is_cluster_network_subnet.Is_cluster_network_subnet_instance.Cluster_network_subnet_id,
            ClusterNetworkSubnetReservedIpId = ibm_is_cluster_network_subnet_reserved_ip.Is_cluster_network_subnet_reserved_ip_instance.Cluster_network_subnet_reserved_ip_id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetIsClusterNetworkSubnetReservedIpArgs;
    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 isClusterNetworkSubnetReservedIpInstance = IbmFunctions.getIsClusterNetworkSubnetReservedIp(GetIsClusterNetworkSubnetReservedIpArgs.builder()
                .clusterNetworkId(ibm_is_cluster_network.is_cluster_network_instance().id())
                .clusterNetworkSubnetId(ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance().cluster_network_subnet_id())
                .clusterNetworkSubnetReservedIpId(ibm_is_cluster_network_subnet_reserved_ip.is_cluster_network_subnet_reserved_ip_instance().cluster_network_subnet_reserved_ip_id())
                .build());
    
        }
    }
    
    variables:
      isClusterNetworkSubnetReservedIpInstance:
        fn::invoke:
          function: ibm:getIsClusterNetworkSubnetReservedIp
          arguments:
            clusterNetworkId: ${ibm_is_cluster_network.is_cluster_network_instance.id}
            clusterNetworkSubnetId: ${ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id}
            clusterNetworkSubnetReservedIpId: ${ibm_is_cluster_network_subnet_reserved_ip.is_cluster_network_subnet_reserved_ip_instance.cluster_network_subnet_reserved_ip_id}
    

    Using getIsClusterNetworkSubnetReservedIp

    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 getIsClusterNetworkSubnetReservedIp(args: GetIsClusterNetworkSubnetReservedIpArgs, opts?: InvokeOptions): Promise<GetIsClusterNetworkSubnetReservedIpResult>
    function getIsClusterNetworkSubnetReservedIpOutput(args: GetIsClusterNetworkSubnetReservedIpOutputArgs, opts?: InvokeOptions): Output<GetIsClusterNetworkSubnetReservedIpResult>
    def get_is_cluster_network_subnet_reserved_ip(cluster_network_id: Optional[str] = None,
                                                  cluster_network_subnet_id: Optional[str] = None,
                                                  cluster_network_subnet_reserved_ip_id: Optional[str] = None,
                                                  id: Optional[str] = None,
                                                  opts: Optional[InvokeOptions] = None) -> GetIsClusterNetworkSubnetReservedIpResult
    def get_is_cluster_network_subnet_reserved_ip_output(cluster_network_id: Optional[pulumi.Input[str]] = None,
                                                  cluster_network_subnet_id: Optional[pulumi.Input[str]] = None,
                                                  cluster_network_subnet_reserved_ip_id: Optional[pulumi.Input[str]] = None,
                                                  id: Optional[pulumi.Input[str]] = None,
                                                  opts: Optional[InvokeOptions] = None) -> Output[GetIsClusterNetworkSubnetReservedIpResult]
    func LookupIsClusterNetworkSubnetReservedIp(ctx *Context, args *LookupIsClusterNetworkSubnetReservedIpArgs, opts ...InvokeOption) (*LookupIsClusterNetworkSubnetReservedIpResult, error)
    func LookupIsClusterNetworkSubnetReservedIpOutput(ctx *Context, args *LookupIsClusterNetworkSubnetReservedIpOutputArgs, opts ...InvokeOption) LookupIsClusterNetworkSubnetReservedIpResultOutput

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

    public static class GetIsClusterNetworkSubnetReservedIp 
    {
        public static Task<GetIsClusterNetworkSubnetReservedIpResult> InvokeAsync(GetIsClusterNetworkSubnetReservedIpArgs args, InvokeOptions? opts = null)
        public static Output<GetIsClusterNetworkSubnetReservedIpResult> Invoke(GetIsClusterNetworkSubnetReservedIpInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsClusterNetworkSubnetReservedIpResult> getIsClusterNetworkSubnetReservedIp(GetIsClusterNetworkSubnetReservedIpArgs args, InvokeOptions options)
    public static Output<GetIsClusterNetworkSubnetReservedIpResult> getIsClusterNetworkSubnetReservedIp(GetIsClusterNetworkSubnetReservedIpArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsClusterNetworkSubnetReservedIp:getIsClusterNetworkSubnetReservedIp
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterNetworkId string
    The cluster network identifier.
    ClusterNetworkSubnetId string
    The cluster network subnet identifier.
    ClusterNetworkSubnetReservedIpId string
    The cluster network subnet reserved IP identifier.
    Id string
    (String) The unique identifier for this cluster network interface.
    ClusterNetworkId string
    The cluster network identifier.
    ClusterNetworkSubnetId string
    The cluster network subnet identifier.
    ClusterNetworkSubnetReservedIpId string
    The cluster network subnet reserved IP identifier.
    Id string
    (String) The unique identifier for this cluster network interface.
    clusterNetworkId String
    The cluster network identifier.
    clusterNetworkSubnetId String
    The cluster network subnet identifier.
    clusterNetworkSubnetReservedIpId String
    The cluster network subnet reserved IP identifier.
    id String
    (String) The unique identifier for this cluster network interface.
    clusterNetworkId string
    The cluster network identifier.
    clusterNetworkSubnetId string
    The cluster network subnet identifier.
    clusterNetworkSubnetReservedIpId string
    The cluster network subnet reserved IP identifier.
    id string
    (String) The unique identifier for this cluster network interface.
    cluster_network_id str
    The cluster network identifier.
    cluster_network_subnet_id str
    The cluster network subnet identifier.
    cluster_network_subnet_reserved_ip_id str
    The cluster network subnet reserved IP identifier.
    id str
    (String) The unique identifier for this cluster network interface.
    clusterNetworkId String
    The cluster network identifier.
    clusterNetworkSubnetId String
    The cluster network subnet identifier.
    clusterNetworkSubnetReservedIpId String
    The cluster network subnet reserved IP identifier.
    id String
    (String) The unique identifier for this cluster network interface.

    getIsClusterNetworkSubnetReservedIp Result

    The following output properties are available:

    Address string
    (String) The IP address.If the address is pending allocation, the value will be 0.0.0.0.This property may expand to support IPv6 addresses in the future.
    AutoDelete bool
    (Boolean) Indicates whether this cluster network subnet reserved IP member will be automatically deleted when either target is deleted, or the cluster network subnet reserved IP is unbound.
    ClusterNetworkId string
    ClusterNetworkSubnetId string
    ClusterNetworkSubnetReservedIpId string
    CreatedAt string
    (String) The date and time that the cluster network subnet reserved IP was created.
    Href string
    (String) The URL for this cluster network interface.
    Id string
    (String) The unique identifier for this cluster network interface.
    LifecycleReasons List<GetIsClusterNetworkSubnetReservedIpLifecycleReason>
    (List) The reasons for the current lifecycle_state (if any). Nested schema for lifecycle_reasons:
    LifecycleState string
    (String) The lifecycle state of the cluster network subnet reserved IP.
    Name string
    (String) The name for this cluster network interface. The name is unique across all interfaces in the cluster network.
    Owner string
    (String) The owner of the cluster network subnet reserved IPThe enumerated values for this property mayexpand in the future.
    ResourceType string
    (String) The resource type.
    Targets List<GetIsClusterNetworkSubnetReservedIpTarget>
    (List) The target this cluster network subnet reserved IP is bound to.If absent, this cluster network subnet reserved IP is provider-owned or unbound. Nested schema for target:
    Address string
    (String) The IP address.If the address is pending allocation, the value will be 0.0.0.0.This property may expand to support IPv6 addresses in the future.
    AutoDelete bool
    (Boolean) Indicates whether this cluster network subnet reserved IP member will be automatically deleted when either target is deleted, or the cluster network subnet reserved IP is unbound.
    ClusterNetworkId string
    ClusterNetworkSubnetId string
    ClusterNetworkSubnetReservedIpId string
    CreatedAt string
    (String) The date and time that the cluster network subnet reserved IP was created.
    Href string
    (String) The URL for this cluster network interface.
    Id string
    (String) The unique identifier for this cluster network interface.
    LifecycleReasons []GetIsClusterNetworkSubnetReservedIpLifecycleReason
    (List) The reasons for the current lifecycle_state (if any). Nested schema for lifecycle_reasons:
    LifecycleState string
    (String) The lifecycle state of the cluster network subnet reserved IP.
    Name string
    (String) The name for this cluster network interface. The name is unique across all interfaces in the cluster network.
    Owner string
    (String) The owner of the cluster network subnet reserved IPThe enumerated values for this property mayexpand in the future.
    ResourceType string
    (String) The resource type.
    Targets []GetIsClusterNetworkSubnetReservedIpTarget
    (List) The target this cluster network subnet reserved IP is bound to.If absent, this cluster network subnet reserved IP is provider-owned or unbound. Nested schema for target:
    address String
    (String) The IP address.If the address is pending allocation, the value will be 0.0.0.0.This property may expand to support IPv6 addresses in the future.
    autoDelete Boolean
    (Boolean) Indicates whether this cluster network subnet reserved IP member will be automatically deleted when either target is deleted, or the cluster network subnet reserved IP is unbound.
    clusterNetworkId String
    clusterNetworkSubnetId String
    clusterNetworkSubnetReservedIpId String
    createdAt String
    (String) The date and time that the cluster network subnet reserved IP was created.
    href String
    (String) The URL for this cluster network interface.
    id String
    (String) The unique identifier for this cluster network interface.
    lifecycleReasons List<GetIsClusterNetworkSubnetReservedIpLifecycleReason>
    (List) The reasons for the current lifecycle_state (if any). Nested schema for lifecycle_reasons:
    lifecycleState String
    (String) The lifecycle state of the cluster network subnet reserved IP.
    name String
    (String) The name for this cluster network interface. The name is unique across all interfaces in the cluster network.
    owner String
    (String) The owner of the cluster network subnet reserved IPThe enumerated values for this property mayexpand in the future.
    resourceType String
    (String) The resource type.
    targets List<GetIsClusterNetworkSubnetReservedIpTarget>
    (List) The target this cluster network subnet reserved IP is bound to.If absent, this cluster network subnet reserved IP is provider-owned or unbound. Nested schema for target:
    address string
    (String) The IP address.If the address is pending allocation, the value will be 0.0.0.0.This property may expand to support IPv6 addresses in the future.
    autoDelete boolean
    (Boolean) Indicates whether this cluster network subnet reserved IP member will be automatically deleted when either target is deleted, or the cluster network subnet reserved IP is unbound.
    clusterNetworkId string
    clusterNetworkSubnetId string
    clusterNetworkSubnetReservedIpId string
    createdAt string
    (String) The date and time that the cluster network subnet reserved IP was created.
    href string
    (String) The URL for this cluster network interface.
    id string
    (String) The unique identifier for this cluster network interface.
    lifecycleReasons GetIsClusterNetworkSubnetReservedIpLifecycleReason[]
    (List) The reasons for the current lifecycle_state (if any). Nested schema for lifecycle_reasons:
    lifecycleState string
    (String) The lifecycle state of the cluster network subnet reserved IP.
    name string
    (String) The name for this cluster network interface. The name is unique across all interfaces in the cluster network.
    owner string
    (String) The owner of the cluster network subnet reserved IPThe enumerated values for this property mayexpand in the future.
    resourceType string
    (String) The resource type.
    targets GetIsClusterNetworkSubnetReservedIpTarget[]
    (List) The target this cluster network subnet reserved IP is bound to.If absent, this cluster network subnet reserved IP is provider-owned or unbound. Nested schema for target:
    address str
    (String) The IP address.If the address is pending allocation, the value will be 0.0.0.0.This property may expand to support IPv6 addresses in the future.
    auto_delete bool
    (Boolean) Indicates whether this cluster network subnet reserved IP member will be automatically deleted when either target is deleted, or the cluster network subnet reserved IP is unbound.
    cluster_network_id str
    cluster_network_subnet_id str
    cluster_network_subnet_reserved_ip_id str
    created_at str
    (String) The date and time that the cluster network subnet reserved IP was created.
    href str
    (String) The URL for this cluster network interface.
    id str
    (String) The unique identifier for this cluster network interface.
    lifecycle_reasons Sequence[GetIsClusterNetworkSubnetReservedIpLifecycleReason]
    (List) The reasons for the current lifecycle_state (if any). Nested schema for lifecycle_reasons:
    lifecycle_state str
    (String) The lifecycle state of the cluster network subnet reserved IP.
    name str
    (String) The name for this cluster network interface. The name is unique across all interfaces in the cluster network.
    owner str
    (String) The owner of the cluster network subnet reserved IPThe enumerated values for this property mayexpand in the future.
    resource_type str
    (String) The resource type.
    targets Sequence[GetIsClusterNetworkSubnetReservedIpTarget]
    (List) The target this cluster network subnet reserved IP is bound to.If absent, this cluster network subnet reserved IP is provider-owned or unbound. Nested schema for target:
    address String
    (String) The IP address.If the address is pending allocation, the value will be 0.0.0.0.This property may expand to support IPv6 addresses in the future.
    autoDelete Boolean
    (Boolean) Indicates whether this cluster network subnet reserved IP member will be automatically deleted when either target is deleted, or the cluster network subnet reserved IP is unbound.
    clusterNetworkId String
    clusterNetworkSubnetId String
    clusterNetworkSubnetReservedIpId String
    createdAt String
    (String) The date and time that the cluster network subnet reserved IP was created.
    href String
    (String) The URL for this cluster network interface.
    id String
    (String) The unique identifier for this cluster network interface.
    lifecycleReasons List<Property Map>
    (List) The reasons for the current lifecycle_state (if any). Nested schema for lifecycle_reasons:
    lifecycleState String
    (String) The lifecycle state of the cluster network subnet reserved IP.
    name String
    (String) The name for this cluster network interface. The name is unique across all interfaces in the cluster network.
    owner String
    (String) The owner of the cluster network subnet reserved IPThe enumerated values for this property mayexpand in the future.
    resourceType String
    (String) The resource type.
    targets List<Property Map>
    (List) The target this cluster network subnet reserved IP is bound to.If absent, this cluster network subnet reserved IP is provider-owned or unbound. Nested schema for target:

    Supporting Types

    GetIsClusterNetworkSubnetReservedIpLifecycleReason

    Code string
    (String) A reason code for this lifecycle state:- internal_error: internal error (contact IBM support)- resource_suspended_by_provider: The resource has been suspended (contact IBM support)The enumerated values for this property mayexpand in the future.
    Message string
    (String) An explanation of the reason for this lifecycle state.
    MoreInfo string
    (String) Link to documentation about deleted resources.
    Code string
    (String) A reason code for this lifecycle state:- internal_error: internal error (contact IBM support)- resource_suspended_by_provider: The resource has been suspended (contact IBM support)The enumerated values for this property mayexpand in the future.
    Message string
    (String) An explanation of the reason for this lifecycle state.
    MoreInfo string
    (String) Link to documentation about deleted resources.
    code String
    (String) A reason code for this lifecycle state:- internal_error: internal error (contact IBM support)- resource_suspended_by_provider: The resource has been suspended (contact IBM support)The enumerated values for this property mayexpand in the future.
    message String
    (String) An explanation of the reason for this lifecycle state.
    moreInfo String
    (String) Link to documentation about deleted resources.
    code string
    (String) A reason code for this lifecycle state:- internal_error: internal error (contact IBM support)- resource_suspended_by_provider: The resource has been suspended (contact IBM support)The enumerated values for this property mayexpand in the future.
    message string
    (String) An explanation of the reason for this lifecycle state.
    moreInfo string
    (String) Link to documentation about deleted resources.
    code str
    (String) A reason code for this lifecycle state:- internal_error: internal error (contact IBM support)- resource_suspended_by_provider: The resource has been suspended (contact IBM support)The enumerated values for this property mayexpand in the future.
    message str
    (String) An explanation of the reason for this lifecycle state.
    more_info str
    (String) Link to documentation about deleted resources.
    code String
    (String) A reason code for this lifecycle state:- internal_error: internal error (contact IBM support)- resource_suspended_by_provider: The resource has been suspended (contact IBM support)The enumerated values for this property mayexpand in the future.
    message String
    (String) An explanation of the reason for this lifecycle state.
    moreInfo String
    (String) Link to documentation about deleted resources.

    GetIsClusterNetworkSubnetReservedIpTarget

    Deleteds List<GetIsClusterNetworkSubnetReservedIpTargetDeleted>
    (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
    Href string
    (String) The URL for this cluster network interface.
    Id string
    (String) The unique identifier for this cluster network interface.
    Name string
    (String) The name for this cluster network interface. The name is unique across all interfaces in the cluster network.
    ResourceType string
    (String) The resource type.
    Deleteds []GetIsClusterNetworkSubnetReservedIpTargetDeleted
    (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
    Href string
    (String) The URL for this cluster network interface.
    Id string
    (String) The unique identifier for this cluster network interface.
    Name string
    (String) The name for this cluster network interface. The name is unique across all interfaces in the cluster network.
    ResourceType string
    (String) The resource type.
    deleteds List<GetIsClusterNetworkSubnetReservedIpTargetDeleted>
    (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
    href String
    (String) The URL for this cluster network interface.
    id String
    (String) The unique identifier for this cluster network interface.
    name String
    (String) The name for this cluster network interface. The name is unique across all interfaces in the cluster network.
    resourceType String
    (String) The resource type.
    deleteds GetIsClusterNetworkSubnetReservedIpTargetDeleted[]
    (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
    href string
    (String) The URL for this cluster network interface.
    id string
    (String) The unique identifier for this cluster network interface.
    name string
    (String) The name for this cluster network interface. The name is unique across all interfaces in the cluster network.
    resourceType string
    (String) The resource type.
    deleteds Sequence[GetIsClusterNetworkSubnetReservedIpTargetDeleted]
    (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
    href str
    (String) The URL for this cluster network interface.
    id str
    (String) The unique identifier for this cluster network interface.
    name str
    (String) The name for this cluster network interface. The name is unique across all interfaces in the cluster network.
    resource_type str
    (String) The resource type.
    deleteds List<Property Map>
    (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
    href String
    (String) The URL for this cluster network interface.
    id String
    (String) The unique identifier for this cluster network interface.
    name String
    (String) The name for this cluster network interface. The name is unique across all interfaces in the cluster network.
    resourceType String
    (String) The resource type.

    GetIsClusterNetworkSubnetReservedIpTargetDeleted

    MoreInfo string
    (String) Link to documentation about deleted resources.
    MoreInfo string
    (String) Link to documentation about deleted resources.
    moreInfo String
    (String) Link to documentation about deleted resources.
    moreInfo string
    (String) Link to documentation about deleted resources.
    more_info str
    (String) Link to documentation about deleted resources.
    moreInfo String
    (String) Link to documentation about deleted resources.

    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