ibm.StorageBlock
Explore with Pulumi AI
Create, delete, or update a block storage resource. For more information, about Block storage, see getting startecwith block storage.
Block storage can be accessed and mounted through a Multipath Input/Output Internet Small Computer System Interface (iSCSI) connection.
Example Usage
In the following example, you can create 20G of Endurance block storage with 10G snapshot capacity and 0.25 IOPS/GB.
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const test1 = new ibm.StorageBlock("test1", {
allowedIpAddresses: [
"10.40.98.193",
"10.40.98.200",
],
allowedVirtualGuestIds: [27699397],
capacity: 20,
datacenter: "dal05",
hourlyBilling: true,
iops: 0.25,
osFormatType: "Linux",
snapshotCapacity: 10,
type: "Endurance",
});
import pulumi
import pulumi_ibm as ibm
test1 = ibm.StorageBlock("test1",
allowed_ip_addresses=[
"10.40.98.193",
"10.40.98.200",
],
allowed_virtual_guest_ids=[27699397],
capacity=20,
datacenter="dal05",
hourly_billing=True,
iops=0.25,
os_format_type="Linux",
snapshot_capacity=10,
type="Endurance")
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.NewStorageBlock(ctx, "test1", &ibm.StorageBlockArgs{
AllowedIpAddresses: pulumi.StringArray{
pulumi.String("10.40.98.193"),
pulumi.String("10.40.98.200"),
},
AllowedVirtualGuestIds: pulumi.Float64Array{
pulumi.Float64(27699397),
},
Capacity: pulumi.Float64(20),
Datacenter: pulumi.String("dal05"),
HourlyBilling: pulumi.Bool(true),
Iops: pulumi.Float64(0.25),
OsFormatType: pulumi.String("Linux"),
SnapshotCapacity: pulumi.Float64(10),
Type: pulumi.String("Endurance"),
})
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 test1 = new Ibm.StorageBlock("test1", new()
{
AllowedIpAddresses = new[]
{
"10.40.98.193",
"10.40.98.200",
},
AllowedVirtualGuestIds = new[]
{
27699397,
},
Capacity = 20,
Datacenter = "dal05",
HourlyBilling = true,
Iops = 0.25,
OsFormatType = "Linux",
SnapshotCapacity = 10,
Type = "Endurance",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.StorageBlock;
import com.pulumi.ibm.StorageBlockArgs;
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) {
var test1 = new StorageBlock("test1", StorageBlockArgs.builder()
.allowedIpAddresses(
"10.40.98.193",
"10.40.98.200")
.allowedVirtualGuestIds(27699397)
.capacity(20)
.datacenter("dal05")
.hourlyBilling(true)
.iops(0.25)
.osFormatType("Linux")
.snapshotCapacity(10)
.type("Endurance")
.build());
}
}
resources:
test1:
type: ibm:StorageBlock
properties:
allowedIpAddresses:
- 10.40.98.193
- 10.40.98.200
# Optional fields
allowedVirtualGuestIds:
- 2.7699397e+07
capacity: 20
datacenter: dal05
hourlyBilling: true
iops: 0.25
osFormatType: Linux
snapshotCapacity: 10
type: Endurance
In the following example, you can create 20G of Performance block storage and 100 IOPS.
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const test2 = new ibm.StorageBlock("test2", {
allowedIpAddresses: [
"10.40.98.193",
"10.40.98.200",
],
allowedVirtualGuestIds: [27699397],
capacity: 20,
datacenter: "dal05",
hourlyBilling: true,
iops: 100,
osFormatType: "Linux",
type: "Performance",
});
import pulumi
import pulumi_ibm as ibm
test2 = ibm.StorageBlock("test2",
allowed_ip_addresses=[
"10.40.98.193",
"10.40.98.200",
],
allowed_virtual_guest_ids=[27699397],
capacity=20,
datacenter="dal05",
hourly_billing=True,
iops=100,
os_format_type="Linux",
type="Performance")
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.NewStorageBlock(ctx, "test2", &ibm.StorageBlockArgs{
AllowedIpAddresses: pulumi.StringArray{
pulumi.String("10.40.98.193"),
pulumi.String("10.40.98.200"),
},
AllowedVirtualGuestIds: pulumi.Float64Array{
pulumi.Float64(27699397),
},
Capacity: pulumi.Float64(20),
Datacenter: pulumi.String("dal05"),
HourlyBilling: pulumi.Bool(true),
Iops: pulumi.Float64(100),
OsFormatType: pulumi.String("Linux"),
Type: pulumi.String("Performance"),
})
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 test2 = new Ibm.StorageBlock("test2", new()
{
AllowedIpAddresses = new[]
{
"10.40.98.193",
"10.40.98.200",
},
AllowedVirtualGuestIds = new[]
{
27699397,
},
Capacity = 20,
Datacenter = "dal05",
HourlyBilling = true,
Iops = 100,
OsFormatType = "Linux",
Type = "Performance",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.StorageBlock;
import com.pulumi.ibm.StorageBlockArgs;
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) {
var test2 = new StorageBlock("test2", StorageBlockArgs.builder()
.allowedIpAddresses(
"10.40.98.193",
"10.40.98.200")
.allowedVirtualGuestIds(27699397)
.capacity(20)
.datacenter("dal05")
.hourlyBilling(true)
.iops(100)
.osFormatType("Linux")
.type("Performance")
.build());
}
}
resources:
test2:
type: ibm:StorageBlock
properties:
allowedIpAddresses:
- 10.40.98.193
- 10.40.98.200
# Optional fields
allowedVirtualGuestIds:
- 2.7699397e+07
capacity: 20
datacenter: dal05
hourlyBilling: true
iops: 100
osFormatType: Linux
type: Performance
Argument reference
Review the argument references that you can specify for your resource.
allowed_virtual_guest_ids
- (Optional, Array of Integers) The virtual guests that you want to give access to this instance. Virtual guests must be in the same data center as the block storage. You can also use this field to import the list of virtual guests that have access to this storage from theblock_storage_ids
argument in theibm.ComputeVmInstance
resource.allowed_hardware_ids
- (Optional, Array of Integers) The Bare Metal servers that you want to give access to this instance. Bare Metal servers must be in the same data center as the block storage. You can also use this field to import the list of Bare Metal servers that have access to this storage from theblock_storage_ids
argument in theibm.ComputeBareMetal
resource.allowed_ip_addresses
- (Optional, Array of string) The IP addresses that you want to give access to this instance. IP addresses must be in the same data center as the block storage.capacity
- (Required, Integer) The amount of storage capacity that you want to allocate, specified in gigabytes.datacenter
- (Required, Forces new resource, String) The data center where you want to provision the block storage instance.hourly_billing
- (Optional, Bool) Set true to enable hourly billing. Default value is false NoteHourly billing
is only available in updated data centers with improved capabilities. Refer to the link to get the updated list of data centers. See file storage locations.iops
- (Required, Float) The IOPS value for the storage. For supported values for endurance storage, see IBM Cloud Classic Infrastructure (SoftLayer).os_format_type
- (Required, Forces new resource, String) The OS type used to format the storage space. This OS type must match the OS type that connects to the LUN. Log in to the IBM Cloud Classic Infrastructure API to see available OS format types. Use your API as the password to log in. Log in and find the key calledname
.notes
- (Optional, String) A descriptive note that you want to associate with the block storage.snapshot_capacity
- (Optional, Forces new resource, Integer) The amount of snapshot capacity to allocate, specified in gigabytes.type
- (Required, Forces new resource, String)The type of the storage. Accepted values are Endurance and Performance.tags
- (Optional, Array of string) Tags associated with the storage block instance. NoteTags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
Create StorageBlock Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StorageBlock(name: string, args: StorageBlockArgs, opts?: CustomResourceOptions);
@overload
def StorageBlock(resource_name: str,
args: StorageBlockArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StorageBlock(resource_name: str,
opts: Optional[ResourceOptions] = None,
iops: Optional[float] = None,
os_format_type: Optional[str] = None,
type: Optional[str] = None,
capacity: Optional[float] = None,
datacenter: Optional[str] = None,
timeouts: Optional[StorageBlockTimeoutsArgs] = None,
hourly_billing: Optional[bool] = None,
allowed_hardware_ids: Optional[Sequence[float]] = None,
allowed_ip_addresses: Optional[Sequence[str]] = None,
snapshot_capacity: Optional[float] = None,
storage_block_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
notes: Optional[str] = None,
allowed_virtual_guest_ids: Optional[Sequence[float]] = None)
func NewStorageBlock(ctx *Context, name string, args StorageBlockArgs, opts ...ResourceOption) (*StorageBlock, error)
public StorageBlock(string name, StorageBlockArgs args, CustomResourceOptions? opts = null)
public StorageBlock(String name, StorageBlockArgs args)
public StorageBlock(String name, StorageBlockArgs args, CustomResourceOptions options)
type: ibm:StorageBlock
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 StorageBlockArgs
- 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 StorageBlockArgs
- 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 StorageBlockArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StorageBlockArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StorageBlockArgs
- 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 storageBlockResource = new Ibm.StorageBlock("storageBlockResource", new()
{
Iops = 0,
OsFormatType = "string",
Type = "string",
Capacity = 0,
Datacenter = "string",
Timeouts = new Ibm.Inputs.StorageBlockTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
HourlyBilling = false,
AllowedHardwareIds = new[]
{
0,
},
AllowedIpAddresses = new[]
{
"string",
},
SnapshotCapacity = 0,
StorageBlockId = "string",
Tags = new[]
{
"string",
},
Notes = "string",
AllowedVirtualGuestIds = new[]
{
0,
},
});
example, err := ibm.NewStorageBlock(ctx, "storageBlockResource", &ibm.StorageBlockArgs{
Iops: pulumi.Float64(0),
OsFormatType: pulumi.String("string"),
Type: pulumi.String("string"),
Capacity: pulumi.Float64(0),
Datacenter: pulumi.String("string"),
Timeouts: &ibm.StorageBlockTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
HourlyBilling: pulumi.Bool(false),
AllowedHardwareIds: pulumi.Float64Array{
pulumi.Float64(0),
},
AllowedIpAddresses: pulumi.StringArray{
pulumi.String("string"),
},
SnapshotCapacity: pulumi.Float64(0),
StorageBlockId: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Notes: pulumi.String("string"),
AllowedVirtualGuestIds: pulumi.Float64Array{
pulumi.Float64(0),
},
})
var storageBlockResource = new StorageBlock("storageBlockResource", StorageBlockArgs.builder()
.iops(0)
.osFormatType("string")
.type("string")
.capacity(0)
.datacenter("string")
.timeouts(StorageBlockTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.hourlyBilling(false)
.allowedHardwareIds(0)
.allowedIpAddresses("string")
.snapshotCapacity(0)
.storageBlockId("string")
.tags("string")
.notes("string")
.allowedVirtualGuestIds(0)
.build());
storage_block_resource = ibm.StorageBlock("storageBlockResource",
iops=0,
os_format_type="string",
type="string",
capacity=0,
datacenter="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
hourly_billing=False,
allowed_hardware_ids=[0],
allowed_ip_addresses=["string"],
snapshot_capacity=0,
storage_block_id="string",
tags=["string"],
notes="string",
allowed_virtual_guest_ids=[0])
const storageBlockResource = new ibm.StorageBlock("storageBlockResource", {
iops: 0,
osFormatType: "string",
type: "string",
capacity: 0,
datacenter: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
hourlyBilling: false,
allowedHardwareIds: [0],
allowedIpAddresses: ["string"],
snapshotCapacity: 0,
storageBlockId: "string",
tags: ["string"],
notes: "string",
allowedVirtualGuestIds: [0],
});
type: ibm:StorageBlock
properties:
allowedHardwareIds:
- 0
allowedIpAddresses:
- string
allowedVirtualGuestIds:
- 0
capacity: 0
datacenter: string
hourlyBilling: false
iops: 0
notes: string
osFormatType: string
snapshotCapacity: 0
storageBlockId: string
tags:
- string
timeouts:
create: string
delete: string
update: string
type: string
StorageBlock 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 StorageBlock resource accepts the following input properties:
- Capacity double
- Storage block size
- Datacenter string
- Datacenter name
- Iops double
- IOPS value required
- Os
Format stringType - OS formatr type
- Type string
- Storage block type
- Allowed
Hardware List<double>Ids - List of allowe hardware IDs
- Allowed
Ip List<string>Addresses - Allowed IP addresses
- Allowed
Virtual List<double>Guest Ids - List of allowed virtual guest IDs
- Hourly
Billing bool - Billing done hourly, if set to true
- Notes string
- Additional note info
- Snapshot
Capacity double - Snapshot capacity in GB
- Storage
Block stringId - (String) The unique identifier of the storage.
- List<string>
- List of tags associated with the resource
- Timeouts
Storage
Block Timeouts
- Capacity float64
- Storage block size
- Datacenter string
- Datacenter name
- Iops float64
- IOPS value required
- Os
Format stringType - OS formatr type
- Type string
- Storage block type
- Allowed
Hardware []float64Ids - List of allowe hardware IDs
- Allowed
Ip []stringAddresses - Allowed IP addresses
- Allowed
Virtual []float64Guest Ids - List of allowed virtual guest IDs
- Hourly
Billing bool - Billing done hourly, if set to true
- Notes string
- Additional note info
- Snapshot
Capacity float64 - Snapshot capacity in GB
- Storage
Block stringId - (String) The unique identifier of the storage.
- []string
- List of tags associated with the resource
- Timeouts
Storage
Block Timeouts Args
- capacity Double
- Storage block size
- datacenter String
- Datacenter name
- iops Double
- IOPS value required
- os
Format StringType - OS formatr type
- type String
- Storage block type
- allowed
Hardware List<Double>Ids - List of allowe hardware IDs
- allowed
Ip List<String>Addresses - Allowed IP addresses
- allowed
Virtual List<Double>Guest Ids - List of allowed virtual guest IDs
- hourly
Billing Boolean - Billing done hourly, if set to true
- notes String
- Additional note info
- snapshot
Capacity Double - Snapshot capacity in GB
- storage
Block StringId - (String) The unique identifier of the storage.
- List<String>
- List of tags associated with the resource
- timeouts
Storage
Block Timeouts
- capacity number
- Storage block size
- datacenter string
- Datacenter name
- iops number
- IOPS value required
- os
Format stringType - OS formatr type
- type string
- Storage block type
- allowed
Hardware number[]Ids - List of allowe hardware IDs
- allowed
Ip string[]Addresses - Allowed IP addresses
- allowed
Virtual number[]Guest Ids - List of allowed virtual guest IDs
- hourly
Billing boolean - Billing done hourly, if set to true
- notes string
- Additional note info
- snapshot
Capacity number - Snapshot capacity in GB
- storage
Block stringId - (String) The unique identifier of the storage.
- string[]
- List of tags associated with the resource
- timeouts
Storage
Block Timeouts
- capacity float
- Storage block size
- datacenter str
- Datacenter name
- iops float
- IOPS value required
- os_
format_ strtype - OS formatr type
- type str
- Storage block type
- allowed_
hardware_ Sequence[float]ids - List of allowe hardware IDs
- allowed_
ip_ Sequence[str]addresses - Allowed IP addresses
- allowed_
virtual_ Sequence[float]guest_ ids - List of allowed virtual guest IDs
- hourly_
billing bool - Billing done hourly, if set to true
- notes str
- Additional note info
- snapshot_
capacity float - Snapshot capacity in GB
- storage_
block_ strid - (String) The unique identifier of the storage.
- Sequence[str]
- List of tags associated with the resource
- timeouts
Storage
Block Timeouts Args
- capacity Number
- Storage block size
- datacenter String
- Datacenter name
- iops Number
- IOPS value required
- os
Format StringType - OS formatr type
- type String
- Storage block type
- allowed
Hardware List<Number>Ids - List of allowe hardware IDs
- allowed
Ip List<String>Addresses - Allowed IP addresses
- allowed
Virtual List<Number>Guest Ids - List of allowed virtual guest IDs
- hourly
Billing Boolean - Billing done hourly, if set to true
- notes String
- Additional note info
- snapshot
Capacity Number - Snapshot capacity in GB
- storage
Block StringId - (String) The unique identifier of the storage.
- List<String>
- List of tags associated with the resource
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the StorageBlock resource produces the following output properties:
- Allowed
Hardware List<StorageInfos Block Allowed Hardware Info> - (String) Deprecated please use
allowed_host_info
instead. - Allowed
Host List<StorageInfos Block Allowed Host Info> - (String) The user name, password, and host IQN of the hosts with access to the storage.
- Allowed
Virtual List<StorageGuest Infos Block Allowed Virtual Guest Info> - (String) Deprecated please use
allowed_host_info
instead. - Hostname string
- (String) The fully qualified domain name of the storage.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lunid string
- (String) The
LUN
ID of the storage device. - Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Name string - The name of the resource
- Target
Addresses List<string> - List of target Addresses
- Volumename string
- (String) The name of the storage volume.
- Allowed
Hardware []StorageInfos Block Allowed Hardware Info - (String) Deprecated please use
allowed_host_info
instead. - Allowed
Host []StorageInfos Block Allowed Host Info - (String) The user name, password, and host IQN of the hosts with access to the storage.
- Allowed
Virtual []StorageGuest Infos Block Allowed Virtual Guest Info - (String) Deprecated please use
allowed_host_info
instead. - Hostname string
- (String) The fully qualified domain name of the storage.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lunid string
- (String) The
LUN
ID of the storage device. - Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Name string - The name of the resource
- Target
Addresses []string - List of target Addresses
- Volumename string
- (String) The name of the storage volume.
- allowed
Hardware List<StorageInfos Block Allowed Hardware Info> - (String) Deprecated please use
allowed_host_info
instead. - allowed
Host List<StorageInfos Block Allowed Host Info> - (String) The user name, password, and host IQN of the hosts with access to the storage.
- allowed
Virtual List<StorageGuest Infos Block Allowed Virtual Guest Info> - (String) Deprecated please use
allowed_host_info
instead. - hostname String
- (String) The fully qualified domain name of the storage.
- id String
- The provider-assigned unique ID for this managed resource.
- lunid String
- (String) The
LUN
ID of the storage device. - resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Name String - The name of the resource
- target
Addresses List<String> - List of target Addresses
- volumename String
- (String) The name of the storage volume.
- allowed
Hardware StorageInfos Block Allowed Hardware Info[] - (String) Deprecated please use
allowed_host_info
instead. - allowed
Host StorageInfos Block Allowed Host Info[] - (String) The user name, password, and host IQN of the hosts with access to the storage.
- allowed
Virtual StorageGuest Infos Block Allowed Virtual Guest Info[] - (String) Deprecated please use
allowed_host_info
instead. - hostname string
- (String) The fully qualified domain name of the storage.
- id string
- The provider-assigned unique ID for this managed resource.
- lunid string
- (String) The
LUN
ID of the storage device. - resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Name string - The name of the resource
- target
Addresses string[] - List of target Addresses
- volumename string
- (String) The name of the storage volume.
- allowed_
hardware_ Sequence[Storageinfos Block Allowed Hardware Info] - (String) Deprecated please use
allowed_host_info
instead. - allowed_
host_ Sequence[Storageinfos Block Allowed Host Info] - (String) The user name, password, and host IQN of the hosts with access to the storage.
- allowed_
virtual_ Sequence[Storageguest_ infos Block Allowed Virtual Guest Info] - (String) Deprecated please use
allowed_host_info
instead. - hostname str
- (String) The fully qualified domain name of the storage.
- id str
- The provider-assigned unique ID for this managed resource.
- lunid str
- (String) The
LUN
ID of the storage device. - resource_
controller_ strurl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource_
name str - The name of the resource
- target_
addresses Sequence[str] - List of target Addresses
- volumename str
- (String) The name of the storage volume.
- allowed
Hardware List<Property Map>Infos - (String) Deprecated please use
allowed_host_info
instead. - allowed
Host List<Property Map>Infos - (String) The user name, password, and host IQN of the hosts with access to the storage.
- allowed
Virtual List<Property Map>Guest Infos - (String) Deprecated please use
allowed_host_info
instead. - hostname String
- (String) The fully qualified domain name of the storage.
- id String
- The provider-assigned unique ID for this managed resource.
- lunid String
- (String) The
LUN
ID of the storage device. - resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Name String - The name of the resource
- target
Addresses List<String> - List of target Addresses
- volumename String
- (String) The name of the storage volume.
Look up Existing StorageBlock Resource
Get an existing StorageBlock 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?: StorageBlockState, opts?: CustomResourceOptions): StorageBlock
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allowed_hardware_ids: Optional[Sequence[float]] = None,
allowed_hardware_infos: Optional[Sequence[StorageBlockAllowedHardwareInfoArgs]] = None,
allowed_host_infos: Optional[Sequence[StorageBlockAllowedHostInfoArgs]] = None,
allowed_ip_addresses: Optional[Sequence[str]] = None,
allowed_virtual_guest_ids: Optional[Sequence[float]] = None,
allowed_virtual_guest_infos: Optional[Sequence[StorageBlockAllowedVirtualGuestInfoArgs]] = None,
capacity: Optional[float] = None,
datacenter: Optional[str] = None,
hostname: Optional[str] = None,
hourly_billing: Optional[bool] = None,
iops: Optional[float] = None,
lunid: Optional[str] = None,
notes: Optional[str] = None,
os_format_type: Optional[str] = None,
resource_controller_url: Optional[str] = None,
resource_name: Optional[str] = None,
snapshot_capacity: Optional[float] = None,
storage_block_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
target_addresses: Optional[Sequence[str]] = None,
timeouts: Optional[StorageBlockTimeoutsArgs] = None,
type: Optional[str] = None,
volumename: Optional[str] = None) -> StorageBlock
func GetStorageBlock(ctx *Context, name string, id IDInput, state *StorageBlockState, opts ...ResourceOption) (*StorageBlock, error)
public static StorageBlock Get(string name, Input<string> id, StorageBlockState? state, CustomResourceOptions? opts = null)
public static StorageBlock get(String name, Output<String> id, StorageBlockState state, CustomResourceOptions options)
resources: _: type: ibm:StorageBlock 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.
- Allowed
Hardware List<double>Ids - List of allowe hardware IDs
- Allowed
Hardware List<StorageInfos Block Allowed Hardware Info> - (String) Deprecated please use
allowed_host_info
instead. - Allowed
Host List<StorageInfos Block Allowed Host Info> - (String) The user name, password, and host IQN of the hosts with access to the storage.
- Allowed
Ip List<string>Addresses - Allowed IP addresses
- Allowed
Virtual List<double>Guest Ids - List of allowed virtual guest IDs
- Allowed
Virtual List<StorageGuest Infos Block Allowed Virtual Guest Info> - (String) Deprecated please use
allowed_host_info
instead. - Capacity double
- Storage block size
- Datacenter string
- Datacenter name
- Hostname string
- (String) The fully qualified domain name of the storage.
- Hourly
Billing bool - Billing done hourly, if set to true
- Iops double
- IOPS value required
- Lunid string
- (String) The
LUN
ID of the storage device. - Notes string
- Additional note info
- Os
Format stringType - OS formatr type
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Name string - The name of the resource
- Snapshot
Capacity double - Snapshot capacity in GB
- Storage
Block stringId - (String) The unique identifier of the storage.
- List<string>
- List of tags associated with the resource
- Target
Addresses List<string> - List of target Addresses
- Timeouts
Storage
Block Timeouts - Type string
- Storage block type
- Volumename string
- (String) The name of the storage volume.
- Allowed
Hardware []float64Ids - List of allowe hardware IDs
- Allowed
Hardware []StorageInfos Block Allowed Hardware Info Args - (String) Deprecated please use
allowed_host_info
instead. - Allowed
Host []StorageInfos Block Allowed Host Info Args - (String) The user name, password, and host IQN of the hosts with access to the storage.
- Allowed
Ip []stringAddresses - Allowed IP addresses
- Allowed
Virtual []float64Guest Ids - List of allowed virtual guest IDs
- Allowed
Virtual []StorageGuest Infos Block Allowed Virtual Guest Info Args - (String) Deprecated please use
allowed_host_info
instead. - Capacity float64
- Storage block size
- Datacenter string
- Datacenter name
- Hostname string
- (String) The fully qualified domain name of the storage.
- Hourly
Billing bool - Billing done hourly, if set to true
- Iops float64
- IOPS value required
- Lunid string
- (String) The
LUN
ID of the storage device. - Notes string
- Additional note info
- Os
Format stringType - OS formatr type
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Name string - The name of the resource
- Snapshot
Capacity float64 - Snapshot capacity in GB
- Storage
Block stringId - (String) The unique identifier of the storage.
- []string
- List of tags associated with the resource
- Target
Addresses []string - List of target Addresses
- Timeouts
Storage
Block Timeouts Args - Type string
- Storage block type
- Volumename string
- (String) The name of the storage volume.
- allowed
Hardware List<Double>Ids - List of allowe hardware IDs
- allowed
Hardware List<StorageInfos Block Allowed Hardware Info> - (String) Deprecated please use
allowed_host_info
instead. - allowed
Host List<StorageInfos Block Allowed Host Info> - (String) The user name, password, and host IQN of the hosts with access to the storage.
- allowed
Ip List<String>Addresses - Allowed IP addresses
- allowed
Virtual List<Double>Guest Ids - List of allowed virtual guest IDs
- allowed
Virtual List<StorageGuest Infos Block Allowed Virtual Guest Info> - (String) Deprecated please use
allowed_host_info
instead. - capacity Double
- Storage block size
- datacenter String
- Datacenter name
- hostname String
- (String) The fully qualified domain name of the storage.
- hourly
Billing Boolean - Billing done hourly, if set to true
- iops Double
- IOPS value required
- lunid String
- (String) The
LUN
ID of the storage device. - notes String
- Additional note info
- os
Format StringType - OS formatr type
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Name String - The name of the resource
- snapshot
Capacity Double - Snapshot capacity in GB
- storage
Block StringId - (String) The unique identifier of the storage.
- List<String>
- List of tags associated with the resource
- target
Addresses List<String> - List of target Addresses
- timeouts
Storage
Block Timeouts - type String
- Storage block type
- volumename String
- (String) The name of the storage volume.
- allowed
Hardware number[]Ids - List of allowe hardware IDs
- allowed
Hardware StorageInfos Block Allowed Hardware Info[] - (String) Deprecated please use
allowed_host_info
instead. - allowed
Host StorageInfos Block Allowed Host Info[] - (String) The user name, password, and host IQN of the hosts with access to the storage.
- allowed
Ip string[]Addresses - Allowed IP addresses
- allowed
Virtual number[]Guest Ids - List of allowed virtual guest IDs
- allowed
Virtual StorageGuest Infos Block Allowed Virtual Guest Info[] - (String) Deprecated please use
allowed_host_info
instead. - capacity number
- Storage block size
- datacenter string
- Datacenter name
- hostname string
- (String) The fully qualified domain name of the storage.
- hourly
Billing boolean - Billing done hourly, if set to true
- iops number
- IOPS value required
- lunid string
- (String) The
LUN
ID of the storage device. - notes string
- Additional note info
- os
Format stringType - OS formatr type
- resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Name string - The name of the resource
- snapshot
Capacity number - Snapshot capacity in GB
- storage
Block stringId - (String) The unique identifier of the storage.
- string[]
- List of tags associated with the resource
- target
Addresses string[] - List of target Addresses
- timeouts
Storage
Block Timeouts - type string
- Storage block type
- volumename string
- (String) The name of the storage volume.
- allowed_
hardware_ Sequence[float]ids - List of allowe hardware IDs
- allowed_
hardware_ Sequence[Storageinfos Block Allowed Hardware Info Args] - (String) Deprecated please use
allowed_host_info
instead. - allowed_
host_ Sequence[Storageinfos Block Allowed Host Info Args] - (String) The user name, password, and host IQN of the hosts with access to the storage.
- allowed_
ip_ Sequence[str]addresses - Allowed IP addresses
- allowed_
virtual_ Sequence[float]guest_ ids - List of allowed virtual guest IDs
- allowed_
virtual_ Sequence[Storageguest_ infos Block Allowed Virtual Guest Info Args] - (String) Deprecated please use
allowed_host_info
instead. - capacity float
- Storage block size
- datacenter str
- Datacenter name
- hostname str
- (String) The fully qualified domain name of the storage.
- hourly_
billing bool - Billing done hourly, if set to true
- iops float
- IOPS value required
- lunid str
- (String) The
LUN
ID of the storage device. - notes str
- Additional note info
- os_
format_ strtype - OS formatr type
- resource_
controller_ strurl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource_
name str - The name of the resource
- snapshot_
capacity float - Snapshot capacity in GB
- storage_
block_ strid - (String) The unique identifier of the storage.
- Sequence[str]
- List of tags associated with the resource
- target_
addresses Sequence[str] - List of target Addresses
- timeouts
Storage
Block Timeouts Args - type str
- Storage block type
- volumename str
- (String) The name of the storage volume.
- allowed
Hardware List<Number>Ids - List of allowe hardware IDs
- allowed
Hardware List<Property Map>Infos - (String) Deprecated please use
allowed_host_info
instead. - allowed
Host List<Property Map>Infos - (String) The user name, password, and host IQN of the hosts with access to the storage.
- allowed
Ip List<String>Addresses - Allowed IP addresses
- allowed
Virtual List<Number>Guest Ids - List of allowed virtual guest IDs
- allowed
Virtual List<Property Map>Guest Infos - (String) Deprecated please use
allowed_host_info
instead. - capacity Number
- Storage block size
- datacenter String
- Datacenter name
- hostname String
- (String) The fully qualified domain name of the storage.
- hourly
Billing Boolean - Billing done hourly, if set to true
- iops Number
- IOPS value required
- lunid String
- (String) The
LUN
ID of the storage device. - notes String
- Additional note info
- os
Format StringType - OS formatr type
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Name String - The name of the resource
- snapshot
Capacity Number - Snapshot capacity in GB
- storage
Block StringId - (String) The unique identifier of the storage.
- List<String>
- List of tags associated with the resource
- target
Addresses List<String> - List of target Addresses
- timeouts Property Map
- type String
- Storage block type
- volumename String
- (String) The name of the storage volume.
Supporting Types
StorageBlockAllowedHardwareInfo, StorageBlockAllowedHardwareInfoArgs
StorageBlockAllowedHostInfo, StorageBlockAllowedHostInfoArgs
StorageBlockAllowedVirtualGuestInfo, StorageBlockAllowedVirtualGuestInfoArgs
StorageBlockTimeouts, StorageBlockTimeoutsArgs
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.