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

ibm.IsSubnetReservedIp

Explore with Pulumi AI

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

    Create, update, or delete a subnet reserved IP. For more information, about associated reserved IP subnet, see reserved IP subnet.

    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) {
        }
    }
    
    {}
    

    Create IsSubnetReservedIp Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IsSubnetReservedIp(name: string, args: IsSubnetReservedIpArgs, opts?: CustomResourceOptions);
    @overload
    def IsSubnetReservedIp(resource_name: str,
                           args: IsSubnetReservedIpArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def IsSubnetReservedIp(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           subnet: Optional[str] = None,
                           address: Optional[str] = None,
                           auto_delete: Optional[bool] = None,
                           is_subnet_reserved_ip_id: Optional[str] = None,
                           name: Optional[str] = None,
                           target: Optional[str] = None,
                           target_crn: Optional[str] = None,
                           timeouts: Optional[IsSubnetReservedIpTimeoutsArgs] = None)
    func NewIsSubnetReservedIp(ctx *Context, name string, args IsSubnetReservedIpArgs, opts ...ResourceOption) (*IsSubnetReservedIp, error)
    public IsSubnetReservedIp(string name, IsSubnetReservedIpArgs args, CustomResourceOptions? opts = null)
    public IsSubnetReservedIp(String name, IsSubnetReservedIpArgs args)
    public IsSubnetReservedIp(String name, IsSubnetReservedIpArgs args, CustomResourceOptions options)
    
    type: ibm:IsSubnetReservedIp
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args IsSubnetReservedIpArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args IsSubnetReservedIpArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args IsSubnetReservedIpArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IsSubnetReservedIpArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IsSubnetReservedIpArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var isSubnetReservedIpResource = new Ibm.IsSubnetReservedIp("isSubnetReservedIpResource", new()
    {
        Subnet = "string",
        Address = "string",
        AutoDelete = false,
        IsSubnetReservedIpId = "string",
        Name = "string",
        Target = "string",
        TargetCrn = "string",
        Timeouts = new Ibm.Inputs.IsSubnetReservedIpTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
    });
    
    example, err := ibm.NewIsSubnetReservedIp(ctx, "isSubnetReservedIpResource", &ibm.IsSubnetReservedIpArgs{
    	Subnet:               pulumi.String("string"),
    	Address:              pulumi.String("string"),
    	AutoDelete:           pulumi.Bool(false),
    	IsSubnetReservedIpId: pulumi.String("string"),
    	Name:                 pulumi.String("string"),
    	Target:               pulumi.String("string"),
    	TargetCrn:            pulumi.String("string"),
    	Timeouts: &ibm.IsSubnetReservedIpTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    })
    
    var isSubnetReservedIpResource = new IsSubnetReservedIp("isSubnetReservedIpResource", IsSubnetReservedIpArgs.builder()
        .subnet("string")
        .address("string")
        .autoDelete(false)
        .isSubnetReservedIpId("string")
        .name("string")
        .target("string")
        .targetCrn("string")
        .timeouts(IsSubnetReservedIpTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .build());
    
    is_subnet_reserved_ip_resource = ibm.IsSubnetReservedIp("isSubnetReservedIpResource",
        subnet="string",
        address="string",
        auto_delete=False,
        is_subnet_reserved_ip_id="string",
        name="string",
        target="string",
        target_crn="string",
        timeouts={
            "create": "string",
            "delete": "string",
        })
    
    const isSubnetReservedIpResource = new ibm.IsSubnetReservedIp("isSubnetReservedIpResource", {
        subnet: "string",
        address: "string",
        autoDelete: false,
        isSubnetReservedIpId: "string",
        name: "string",
        target: "string",
        targetCrn: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
    });
    
    type: ibm:IsSubnetReservedIp
    properties:
        address: string
        autoDelete: false
        isSubnetReservedIpId: string
        name: string
        subnet: string
        target: string
        targetCrn: string
        timeouts:
            create: string
            delete: string
    

    IsSubnetReservedIp Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The IsSubnetReservedIp resource accepts the following input properties:

    Subnet string
    The subnet ID for the reserved IP.
    Address string
    The IP address to reserve, which must not already be reserved on the subnet. If unspecified, an available address on the subnet will automatically be selected.
    AutoDelete bool
    Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound. Must be false if the reserved IP is unbound.
    IsSubnetReservedIpId string
    (String) The combination of the subnet ID and reserved IP ID, separated by /.
    Name string

    The name for this reserved IP. The name must not be used by another reserved IP in the subnet. Names starting with ibm- are reserved for provider-owned resources, and are not allowed. If unspecified, the name will be a hyphenated list of randomly-selected words.

    NOTE: raise error if name is given with a prefix ibm- .

    Target string
    The target to bind this reserved IP to. The target must be in the same VPC. If unspecified, the reserved IP will be created unbound. The following targets are supported:

    • An endpoint gateway not already bound to a reserved IP in the subnet's zone.
    • A virtual network interface.
    TargetCrn string
    (String) The crn of the target for the reserved IP.
    Timeouts IsSubnetReservedIpTimeouts
    Subnet string
    The subnet ID for the reserved IP.
    Address string
    The IP address to reserve, which must not already be reserved on the subnet. If unspecified, an available address on the subnet will automatically be selected.
    AutoDelete bool
    Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound. Must be false if the reserved IP is unbound.
    IsSubnetReservedIpId string
    (String) The combination of the subnet ID and reserved IP ID, separated by /.
    Name string

    The name for this reserved IP. The name must not be used by another reserved IP in the subnet. Names starting with ibm- are reserved for provider-owned resources, and are not allowed. If unspecified, the name will be a hyphenated list of randomly-selected words.

    NOTE: raise error if name is given with a prefix ibm- .

    Target string
    The target to bind this reserved IP to. The target must be in the same VPC. If unspecified, the reserved IP will be created unbound. The following targets are supported:

    • An endpoint gateway not already bound to a reserved IP in the subnet's zone.
    • A virtual network interface.
    TargetCrn string
    (String) The crn of the target for the reserved IP.
    Timeouts IsSubnetReservedIpTimeoutsArgs
    subnet String
    The subnet ID for the reserved IP.
    address String
    The IP address to reserve, which must not already be reserved on the subnet. If unspecified, an available address on the subnet will automatically be selected.
    autoDelete Boolean
    Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound. Must be false if the reserved IP is unbound.
    isSubnetReservedIpId String
    (String) The combination of the subnet ID and reserved IP ID, separated by /.
    name String

    The name for this reserved IP. The name must not be used by another reserved IP in the subnet. Names starting with ibm- are reserved for provider-owned resources, and are not allowed. If unspecified, the name will be a hyphenated list of randomly-selected words.

    NOTE: raise error if name is given with a prefix ibm- .

    target String
    The target to bind this reserved IP to. The target must be in the same VPC. If unspecified, the reserved IP will be created unbound. The following targets are supported:

    • An endpoint gateway not already bound to a reserved IP in the subnet's zone.
    • A virtual network interface.
    targetCrn String
    (String) The crn of the target for the reserved IP.
    timeouts IsSubnetReservedIpTimeouts
    subnet string
    The subnet ID for the reserved IP.
    address string
    The IP address to reserve, which must not already be reserved on the subnet. If unspecified, an available address on the subnet will automatically be selected.
    autoDelete boolean
    Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound. Must be false if the reserved IP is unbound.
    isSubnetReservedIpId string
    (String) The combination of the subnet ID and reserved IP ID, separated by /.
    name string

    The name for this reserved IP. The name must not be used by another reserved IP in the subnet. Names starting with ibm- are reserved for provider-owned resources, and are not allowed. If unspecified, the name will be a hyphenated list of randomly-selected words.

    NOTE: raise error if name is given with a prefix ibm- .

    target string
    The target to bind this reserved IP to. The target must be in the same VPC. If unspecified, the reserved IP will be created unbound. The following targets are supported:

    • An endpoint gateway not already bound to a reserved IP in the subnet's zone.
    • A virtual network interface.
    targetCrn string
    (String) The crn of the target for the reserved IP.
    timeouts IsSubnetReservedIpTimeouts
    subnet str
    The subnet ID for the reserved IP.
    address str
    The IP address to reserve, which must not already be reserved on the subnet. If unspecified, an available address on the subnet will automatically be selected.
    auto_delete bool
    Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound. Must be false if the reserved IP is unbound.
    is_subnet_reserved_ip_id str
    (String) The combination of the subnet ID and reserved IP ID, separated by /.
    name str

    The name for this reserved IP. The name must not be used by another reserved IP in the subnet. Names starting with ibm- are reserved for provider-owned resources, and are not allowed. If unspecified, the name will be a hyphenated list of randomly-selected words.

    NOTE: raise error if name is given with a prefix ibm- .

    target str
    The target to bind this reserved IP to. The target must be in the same VPC. If unspecified, the reserved IP will be created unbound. The following targets are supported:

    • An endpoint gateway not already bound to a reserved IP in the subnet's zone.
    • A virtual network interface.
    target_crn str
    (String) The crn of the target for the reserved IP.
    timeouts IsSubnetReservedIpTimeoutsArgs
    subnet String
    The subnet ID for the reserved IP.
    address String
    The IP address to reserve, which must not already be reserved on the subnet. If unspecified, an available address on the subnet will automatically be selected.
    autoDelete Boolean
    Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound. Must be false if the reserved IP is unbound.
    isSubnetReservedIpId String
    (String) The combination of the subnet ID and reserved IP ID, separated by /.
    name String

    The name for this reserved IP. The name must not be used by another reserved IP in the subnet. Names starting with ibm- are reserved for provider-owned resources, and are not allowed. If unspecified, the name will be a hyphenated list of randomly-selected words.

    NOTE: raise error if name is given with a prefix ibm- .

    target String
    The target to bind this reserved IP to. The target must be in the same VPC. If unspecified, the reserved IP will be created unbound. The following targets are supported:

    • An endpoint gateway not already bound to a reserved IP in the subnet's zone.
    • A virtual network interface.
    targetCrn String
    (String) The crn of the target for the reserved IP.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IsSubnetReservedIp resource produces the following output properties:

    CreatedAt string
    (Timestamp) The date and time that the reserved IP was created.",
    Href string
    (String) The URL for this reserved IP.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleState string
    (String) The lifecycle state of the reserved IP. [ deleting, failed, pending, stable, suspended, updating, waiting ]
    Owner string
    (String) The owner of a reserved IP, defining whether it is managed by the user or the provider.
    ReservedIp string
    (String) The unique identifier for this reserved IP.
    ResourceType string
    (String) The resource type.
    CreatedAt string
    (Timestamp) The date and time that the reserved IP was created.",
    Href string
    (String) The URL for this reserved IP.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleState string
    (String) The lifecycle state of the reserved IP. [ deleting, failed, pending, stable, suspended, updating, waiting ]
    Owner string
    (String) The owner of a reserved IP, defining whether it is managed by the user or the provider.
    ReservedIp string
    (String) The unique identifier for this reserved IP.
    ResourceType string
    (String) The resource type.
    createdAt String
    (Timestamp) The date and time that the reserved IP was created.",
    href String
    (String) The URL for this reserved IP.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleState String
    (String) The lifecycle state of the reserved IP. [ deleting, failed, pending, stable, suspended, updating, waiting ]
    owner String
    (String) The owner of a reserved IP, defining whether it is managed by the user or the provider.
    reservedIp String
    (String) The unique identifier for this reserved IP.
    resourceType String
    (String) The resource type.
    createdAt string
    (Timestamp) The date and time that the reserved IP was created.",
    href string
    (String) The URL for this reserved IP.
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleState string
    (String) The lifecycle state of the reserved IP. [ deleting, failed, pending, stable, suspended, updating, waiting ]
    owner string
    (String) The owner of a reserved IP, defining whether it is managed by the user or the provider.
    reservedIp string
    (String) The unique identifier for this reserved IP.
    resourceType string
    (String) The resource type.
    created_at str
    (Timestamp) The date and time that the reserved IP was created.",
    href str
    (String) The URL for this reserved IP.
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_state str
    (String) The lifecycle state of the reserved IP. [ deleting, failed, pending, stable, suspended, updating, waiting ]
    owner str
    (String) The owner of a reserved IP, defining whether it is managed by the user or the provider.
    reserved_ip str
    (String) The unique identifier for this reserved IP.
    resource_type str
    (String) The resource type.
    createdAt String
    (Timestamp) The date and time that the reserved IP was created.",
    href String
    (String) The URL for this reserved IP.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleState String
    (String) The lifecycle state of the reserved IP. [ deleting, failed, pending, stable, suspended, updating, waiting ]
    owner String
    (String) The owner of a reserved IP, defining whether it is managed by the user or the provider.
    reservedIp String
    (String) The unique identifier for this reserved IP.
    resourceType String
    (String) The resource type.

    Look up Existing IsSubnetReservedIp Resource

    Get an existing IsSubnetReservedIp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: IsSubnetReservedIpState, opts?: CustomResourceOptions): IsSubnetReservedIp
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            address: Optional[str] = None,
            auto_delete: Optional[bool] = None,
            created_at: Optional[str] = None,
            href: Optional[str] = None,
            is_subnet_reserved_ip_id: Optional[str] = None,
            lifecycle_state: Optional[str] = None,
            name: Optional[str] = None,
            owner: Optional[str] = None,
            reserved_ip: Optional[str] = None,
            resource_type: Optional[str] = None,
            subnet: Optional[str] = None,
            target: Optional[str] = None,
            target_crn: Optional[str] = None,
            timeouts: Optional[IsSubnetReservedIpTimeoutsArgs] = None) -> IsSubnetReservedIp
    func GetIsSubnetReservedIp(ctx *Context, name string, id IDInput, state *IsSubnetReservedIpState, opts ...ResourceOption) (*IsSubnetReservedIp, error)
    public static IsSubnetReservedIp Get(string name, Input<string> id, IsSubnetReservedIpState? state, CustomResourceOptions? opts = null)
    public static IsSubnetReservedIp get(String name, Output<String> id, IsSubnetReservedIpState state, CustomResourceOptions options)
    resources:  _:    type: ibm:IsSubnetReservedIp    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Address string
    The IP address to reserve, which must not already be reserved on the subnet. If unspecified, an available address on the subnet will automatically be selected.
    AutoDelete bool
    Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound. Must be false if the reserved IP is unbound.
    CreatedAt string
    (Timestamp) The date and time that the reserved IP was created.",
    Href string
    (String) The URL for this reserved IP.
    IsSubnetReservedIpId string
    (String) The combination of the subnet ID and reserved IP ID, separated by /.
    LifecycleState string
    (String) The lifecycle state of the reserved IP. [ deleting, failed, pending, stable, suspended, updating, waiting ]
    Name string

    The name for this reserved IP. The name must not be used by another reserved IP in the subnet. Names starting with ibm- are reserved for provider-owned resources, and are not allowed. If unspecified, the name will be a hyphenated list of randomly-selected words.

    NOTE: raise error if name is given with a prefix ibm- .

    Owner string
    (String) The owner of a reserved IP, defining whether it is managed by the user or the provider.
    ReservedIp string
    (String) The unique identifier for this reserved IP.
    ResourceType string
    (String) The resource type.
    Subnet string
    The subnet ID for the reserved IP.
    Target string
    The target to bind this reserved IP to. The target must be in the same VPC. If unspecified, the reserved IP will be created unbound. The following targets are supported:

    • An endpoint gateway not already bound to a reserved IP in the subnet's zone.
    • A virtual network interface.
    TargetCrn string
    (String) The crn of the target for the reserved IP.
    Timeouts IsSubnetReservedIpTimeouts
    Address string
    The IP address to reserve, which must not already be reserved on the subnet. If unspecified, an available address on the subnet will automatically be selected.
    AutoDelete bool
    Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound. Must be false if the reserved IP is unbound.
    CreatedAt string
    (Timestamp) The date and time that the reserved IP was created.",
    Href string
    (String) The URL for this reserved IP.
    IsSubnetReservedIpId string
    (String) The combination of the subnet ID and reserved IP ID, separated by /.
    LifecycleState string
    (String) The lifecycle state of the reserved IP. [ deleting, failed, pending, stable, suspended, updating, waiting ]
    Name string

    The name for this reserved IP. The name must not be used by another reserved IP in the subnet. Names starting with ibm- are reserved for provider-owned resources, and are not allowed. If unspecified, the name will be a hyphenated list of randomly-selected words.

    NOTE: raise error if name is given with a prefix ibm- .

    Owner string
    (String) The owner of a reserved IP, defining whether it is managed by the user or the provider.
    ReservedIp string
    (String) The unique identifier for this reserved IP.
    ResourceType string
    (String) The resource type.
    Subnet string
    The subnet ID for the reserved IP.
    Target string
    The target to bind this reserved IP to. The target must be in the same VPC. If unspecified, the reserved IP will be created unbound. The following targets are supported:

    • An endpoint gateway not already bound to a reserved IP in the subnet's zone.
    • A virtual network interface.
    TargetCrn string
    (String) The crn of the target for the reserved IP.
    Timeouts IsSubnetReservedIpTimeoutsArgs
    address String
    The IP address to reserve, which must not already be reserved on the subnet. If unspecified, an available address on the subnet will automatically be selected.
    autoDelete Boolean
    Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound. Must be false if the reserved IP is unbound.
    createdAt String
    (Timestamp) The date and time that the reserved IP was created.",
    href String
    (String) The URL for this reserved IP.
    isSubnetReservedIpId String
    (String) The combination of the subnet ID and reserved IP ID, separated by /.
    lifecycleState String
    (String) The lifecycle state of the reserved IP. [ deleting, failed, pending, stable, suspended, updating, waiting ]
    name String

    The name for this reserved IP. The name must not be used by another reserved IP in the subnet. Names starting with ibm- are reserved for provider-owned resources, and are not allowed. If unspecified, the name will be a hyphenated list of randomly-selected words.

    NOTE: raise error if name is given with a prefix ibm- .

    owner String
    (String) The owner of a reserved IP, defining whether it is managed by the user or the provider.
    reservedIp String
    (String) The unique identifier for this reserved IP.
    resourceType String
    (String) The resource type.
    subnet String
    The subnet ID for the reserved IP.
    target String
    The target to bind this reserved IP to. The target must be in the same VPC. If unspecified, the reserved IP will be created unbound. The following targets are supported:

    • An endpoint gateway not already bound to a reserved IP in the subnet's zone.
    • A virtual network interface.
    targetCrn String
    (String) The crn of the target for the reserved IP.
    timeouts IsSubnetReservedIpTimeouts
    address string
    The IP address to reserve, which must not already be reserved on the subnet. If unspecified, an available address on the subnet will automatically be selected.
    autoDelete boolean
    Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound. Must be false if the reserved IP is unbound.
    createdAt string
    (Timestamp) The date and time that the reserved IP was created.",
    href string
    (String) The URL for this reserved IP.
    isSubnetReservedIpId string
    (String) The combination of the subnet ID and reserved IP ID, separated by /.
    lifecycleState string
    (String) The lifecycle state of the reserved IP. [ deleting, failed, pending, stable, suspended, updating, waiting ]
    name string

    The name for this reserved IP. The name must not be used by another reserved IP in the subnet. Names starting with ibm- are reserved for provider-owned resources, and are not allowed. If unspecified, the name will be a hyphenated list of randomly-selected words.

    NOTE: raise error if name is given with a prefix ibm- .

    owner string
    (String) The owner of a reserved IP, defining whether it is managed by the user or the provider.
    reservedIp string
    (String) The unique identifier for this reserved IP.
    resourceType string
    (String) The resource type.
    subnet string
    The subnet ID for the reserved IP.
    target string
    The target to bind this reserved IP to. The target must be in the same VPC. If unspecified, the reserved IP will be created unbound. The following targets are supported:

    • An endpoint gateway not already bound to a reserved IP in the subnet's zone.
    • A virtual network interface.
    targetCrn string
    (String) The crn of the target for the reserved IP.
    timeouts IsSubnetReservedIpTimeouts
    address str
    The IP address to reserve, which must not already be reserved on the subnet. If unspecified, an available address on the subnet will automatically be selected.
    auto_delete bool
    Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound. Must be false if the reserved IP is unbound.
    created_at str
    (Timestamp) The date and time that the reserved IP was created.",
    href str
    (String) The URL for this reserved IP.
    is_subnet_reserved_ip_id str
    (String) The combination of the subnet ID and reserved IP ID, separated by /.
    lifecycle_state str
    (String) The lifecycle state of the reserved IP. [ deleting, failed, pending, stable, suspended, updating, waiting ]
    name str

    The name for this reserved IP. The name must not be used by another reserved IP in the subnet. Names starting with ibm- are reserved for provider-owned resources, and are not allowed. If unspecified, the name will be a hyphenated list of randomly-selected words.

    NOTE: raise error if name is given with a prefix ibm- .

    owner str
    (String) The owner of a reserved IP, defining whether it is managed by the user or the provider.
    reserved_ip str
    (String) The unique identifier for this reserved IP.
    resource_type str
    (String) The resource type.
    subnet str
    The subnet ID for the reserved IP.
    target str
    The target to bind this reserved IP to. The target must be in the same VPC. If unspecified, the reserved IP will be created unbound. The following targets are supported:

    • An endpoint gateway not already bound to a reserved IP in the subnet's zone.
    • A virtual network interface.
    target_crn str
    (String) The crn of the target for the reserved IP.
    timeouts IsSubnetReservedIpTimeoutsArgs
    address String
    The IP address to reserve, which must not already be reserved on the subnet. If unspecified, an available address on the subnet will automatically be selected.
    autoDelete Boolean
    Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound. Must be false if the reserved IP is unbound.
    createdAt String
    (Timestamp) The date and time that the reserved IP was created.",
    href String
    (String) The URL for this reserved IP.
    isSubnetReservedIpId String
    (String) The combination of the subnet ID and reserved IP ID, separated by /.
    lifecycleState String
    (String) The lifecycle state of the reserved IP. [ deleting, failed, pending, stable, suspended, updating, waiting ]
    name String

    The name for this reserved IP. The name must not be used by another reserved IP in the subnet. Names starting with ibm- are reserved for provider-owned resources, and are not allowed. If unspecified, the name will be a hyphenated list of randomly-selected words.

    NOTE: raise error if name is given with a prefix ibm- .

    owner String
    (String) The owner of a reserved IP, defining whether it is managed by the user or the provider.
    reservedIp String
    (String) The unique identifier for this reserved IP.
    resourceType String
    (String) The resource type.
    subnet String
    The subnet ID for the reserved IP.
    target String
    The target to bind this reserved IP to. The target must be in the same VPC. If unspecified, the reserved IP will be created unbound. The following targets are supported:

    • An endpoint gateway not already bound to a reserved IP in the subnet's zone.
    • A virtual network interface.
    targetCrn String
    (String) The crn of the target for the reserved IP.
    timeouts Property Map

    Supporting Types

    IsSubnetReservedIpTimeouts, IsSubnetReservedIpTimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    The ibm_is_subnet_reserved_ip resource can be imported by using subnet ID and reserved IP ID separated by /.

    Syntax

    $ pulumi import ibm:index/isSubnetReservedIp:IsSubnetReservedIp example <subnet_ID>/<subnet_reserved_IP_ID>
    

    Example

    $ pulumi import ibm:index/isSubnetReservedIp:IsSubnetReservedIp example 0716-13315ad8-d355-4041-bb60-62342000423/0716-617de4d8-5e2f-4d4a-b0d6-1000023
    

    To learn more about importing existing cloud resources, see Importing 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