ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getIsClusterNetworkSubnetReservedIp
Explore with Pulumi AI
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:
- Cluster
Network stringId - The cluster network identifier.
- Cluster
Network stringSubnet Id - The cluster network subnet identifier.
- Cluster
Network stringSubnet Reserved Ip Id - The cluster network subnet reserved IP identifier.
- Id string
- (String) The unique identifier for this cluster network interface.
- Cluster
Network stringId - The cluster network identifier.
- Cluster
Network stringSubnet Id - The cluster network subnet identifier.
- Cluster
Network stringSubnet Reserved Ip Id - The cluster network subnet reserved IP identifier.
- Id string
- (String) The unique identifier for this cluster network interface.
- cluster
Network StringId - The cluster network identifier.
- cluster
Network StringSubnet Id - The cluster network subnet identifier.
- cluster
Network StringSubnet Reserved Ip Id - The cluster network subnet reserved IP identifier.
- id String
- (String) The unique identifier for this cluster network interface.
- cluster
Network stringId - The cluster network identifier.
- cluster
Network stringSubnet Id - The cluster network subnet identifier.
- cluster
Network stringSubnet Reserved Ip Id - The cluster network subnet reserved IP identifier.
- id string
- (String) The unique identifier for this cluster network interface.
- cluster_
network_ strid - The cluster network identifier.
- cluster_
network_ strsubnet_ id - The cluster network subnet identifier.
- cluster_
network_ strsubnet_ reserved_ ip_ id - The cluster network subnet reserved IP identifier.
- id str
- (String) The unique identifier for this cluster network interface.
- cluster
Network StringId - The cluster network identifier.
- cluster
Network StringSubnet Id - The cluster network subnet identifier.
- cluster
Network StringSubnet Reserved Ip Id - 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. - 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 stringId - Cluster
Network stringSubnet Id - Cluster
Network stringSubnet Reserved Ip Id - Created
At 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.
- Lifecycle
Reasons List<GetIs Cluster Network Subnet Reserved Ip Lifecycle Reason> - (List) The reasons for the current
lifecycle_state
(if any). Nested schema for lifecycle_reasons: - Lifecycle
State 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.
- Resource
Type string - (String) The resource type.
- Targets
List<Get
Is Cluster Network Subnet Reserved Ip Target> - (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. - 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 stringId - Cluster
Network stringSubnet Id - Cluster
Network stringSubnet Reserved Ip Id - Created
At 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.
- Lifecycle
Reasons []GetIs Cluster Network Subnet Reserved Ip Lifecycle Reason - (List) The reasons for the current
lifecycle_state
(if any). Nested schema for lifecycle_reasons: - Lifecycle
State 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.
- Resource
Type string - (String) The resource type.
- Targets
[]Get
Is Cluster Network Subnet Reserved Ip Target - (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. - auto
Delete 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. - cluster
Network StringId - cluster
Network StringSubnet Id - cluster
Network StringSubnet Reserved Ip Id - created
At 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.
- lifecycle
Reasons List<GetIs Cluster Network Subnet Reserved Ip Lifecycle Reason> - (List) The reasons for the current
lifecycle_state
(if any). Nested schema for lifecycle_reasons: - lifecycle
State 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.
- resource
Type String - (String) The resource type.
- targets
List<Get
Is Cluster Network Subnet Reserved Ip Target> - (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. - auto
Delete 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. - cluster
Network stringId - cluster
Network stringSubnet Id - cluster
Network stringSubnet Reserved Ip Id - created
At 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.
- lifecycle
Reasons GetIs Cluster Network Subnet Reserved Ip Lifecycle Reason[] - (List) The reasons for the current
lifecycle_state
(if any). Nested schema for lifecycle_reasons: - lifecycle
State 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.
- resource
Type string - (String) The resource type.
- targets
Get
Is Cluster Network Subnet Reserved Ip Target[] - (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_ strid - cluster_
network_ strsubnet_ id - cluster_
network_ strsubnet_ reserved_ ip_ id - 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[GetIs Cluster Network Subnet Reserved Ip Lifecycle Reason] - (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[Get
Is Cluster Network Subnet Reserved Ip Target] - (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. - auto
Delete 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. - cluster
Network StringId - cluster
Network StringSubnet Id - cluster
Network StringSubnet Reserved Ip Id - created
At 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.
- lifecycle
Reasons List<Property Map> - (List) The reasons for the current
lifecycle_state
(if any). Nested schema for lifecycle_reasons: - lifecycle
State 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.
- resource
Type 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.
- More
Info 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.
- More
Info 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.
- more
Info 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.
- more
Info 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.
- more
Info String - (String) Link to documentation about deleted resources.
GetIsClusterNetworkSubnetReservedIpTarget
- Deleteds
List<Get
Is Cluster Network Subnet Reserved Ip Target Deleted> - (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.
- Resource
Type string - (String) The resource type.
- Deleteds
[]Get
Is Cluster Network Subnet Reserved Ip Target Deleted - (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.
- Resource
Type string - (String) The resource type.
- deleteds
List<Get
Is Cluster Network Subnet Reserved Ip Target Deleted> - (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.
- resource
Type String - (String) The resource type.
- deleteds
Get
Is Cluster Network Subnet Reserved Ip Target Deleted[] - (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.
- resource
Type string - (String) The resource type.
- deleteds
Sequence[Get
Is Cluster Network Subnet Reserved Ip Target Deleted] - (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.
- resource
Type String - (String) The resource type.
GetIsClusterNetworkSubnetReservedIpTargetDeleted
- More
Info string - (String) Link to documentation about deleted resources.
- More
Info string - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
- more
Info string - (String) Link to documentation about deleted resources.
- more_
info str - (String) Link to documentation about deleted resources.
- more
Info 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.