get Local Disk
Retrieve information about a Storage Gateway local disk. The disk identifier is useful for adding the disk as a cache or upload buffer to a gateway.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.storagegateway.StoragegatewayFunctions;
import com.pulumi.aws.storagegateway.inputs.GetLocalDiskArgs;
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 test = StoragegatewayFunctions.getLocalDisk(GetLocalDiskArgs.builder()
.diskPath(aws_volume_attachment.test().device_name())
.gatewayArn(aws_storagegateway_gateway.test().arn())
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getLocalDisk.
Parameters
argument
A collection of arguments for invoking getLocalDisk.
suspend fun getLocalDisk(diskNode: String? = null, diskPath: String? = null, gatewayArn: String): GetLocalDiskResult
Return
A collection of values returned by getLocalDisk.
Parameters
disk Node
Device node of the local disk to retrieve. For example, /dev/sdb
.
disk Path
Device path of the local disk to retrieve. For example, /dev/xvdb
or /dev/nvme1n1
.
gateway Arn
ARN of the gateway.
See also
suspend fun getLocalDisk(argument: suspend GetLocalDiskPlainArgsBuilder.() -> Unit): GetLocalDiskResult
Return
A collection of values returned by getLocalDisk.
Parameters
argument
Builder for com.pulumi.aws.storagegateway.kotlin.inputs.GetLocalDiskPlainArgs.