alicloud.cloudstoragegateway.GatewayCacheDisk

Explore with Pulumi AI

Provides a Cloud Storage Gateway Gateway Cache Disk resource.

For information about Cloud Storage Gateway Gateway Cache Disk and how to use it, see What is Gateway Cache Disk.

NOTE: Available in v1.144.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var exampleStocks = AliCloud.CloudStorageGateway.GetStocks.Invoke(new()
    {
        GatewayClass = "Standard",
    });

    var vpc = new AliCloud.Vpc.Network("vpc", new()
    {
        VpcName = "example_value",
        CidrBlock = "172.16.0.0/12",
    });

    var exampleSwitch = new AliCloud.Vpc.Switch("exampleSwitch", new()
    {
        VpcId = vpc.Id,
        CidrBlock = "172.16.0.0/21",
        ZoneId = exampleStocks.Apply(getStocksResult => getStocksResult.Stocks[0]?.ZoneId),
        VswitchName = "example_value",
    });

    var exampleStorageBundle = new AliCloud.CloudStorageGateway.StorageBundle("exampleStorageBundle", new()
    {
        StorageBundleName = "example_value",
    });

    var exampleGateway = new AliCloud.CloudStorageGateway.Gateway("exampleGateway", new()
    {
        Description = "tf-acctestDesalone",
        GatewayClass = "Standard",
        Type = "File",
        PaymentType = "PayAsYouGo",
        VswitchId = exampleSwitch.Id,
        ReleaseAfterExpiration = true,
        PublicNetworkBandwidth = 10,
        StorageBundleId = exampleStorageBundle.Id,
        Location = "Cloud",
        GatewayName = "example_value",
    });

    var exampleGatewayCacheDisk = new AliCloud.CloudStorageGateway.GatewayCacheDisk("exampleGatewayCacheDisk", new()
    {
        CacheDiskCategory = "cloud_efficiency",
        GatewayId = alicloud_cloud_storage_gateway_gateways.Example.Id,
        CacheDiskSizeInGb = 50,
    });

});
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cloudstoragegateway"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleStocks, err := cloudstoragegateway.GetStocks(ctx, &cloudstoragegateway.GetStocksArgs{
			GatewayClass: pulumi.StringRef("Standard"),
		}, nil)
		if err != nil {
			return err
		}
		vpc, err := vpc.NewNetwork(ctx, "vpc", &vpc.NetworkArgs{
			VpcName:   pulumi.String("example_value"),
			CidrBlock: pulumi.String("172.16.0.0/12"),
		})
		if err != nil {
			return err
		}
		exampleSwitch, err := vpc.NewSwitch(ctx, "exampleSwitch", &vpc.SwitchArgs{
			VpcId:       vpc.ID(),
			CidrBlock:   pulumi.String("172.16.0.0/21"),
			ZoneId:      *pulumi.String(exampleStocks.Stocks[0].ZoneId),
			VswitchName: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		exampleStorageBundle, err := cloudstoragegateway.NewStorageBundle(ctx, "exampleStorageBundle", &cloudstoragegateway.StorageBundleArgs{
			StorageBundleName: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		_, err = cloudstoragegateway.NewGateway(ctx, "exampleGateway", &cloudstoragegateway.GatewayArgs{
			Description:            pulumi.String("tf-acctestDesalone"),
			GatewayClass:           pulumi.String("Standard"),
			Type:                   pulumi.String("File"),
			PaymentType:            pulumi.String("PayAsYouGo"),
			VswitchId:              exampleSwitch.ID(),
			ReleaseAfterExpiration: pulumi.Bool(true),
			PublicNetworkBandwidth: pulumi.Int(10),
			StorageBundleId:        exampleStorageBundle.ID(),
			Location:               pulumi.String("Cloud"),
			GatewayName:            pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		_, err = cloudstoragegateway.NewGatewayCacheDisk(ctx, "exampleGatewayCacheDisk", &cloudstoragegateway.GatewayCacheDiskArgs{
			CacheDiskCategory: pulumi.String("cloud_efficiency"),
			GatewayId:         pulumi.Any(alicloud_cloud_storage_gateway_gateways.Example.Id),
			CacheDiskSizeInGb: pulumi.Int(50),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cloudstoragegateway.CloudstoragegatewayFunctions;
import com.pulumi.alicloud.cloudstoragegateway.inputs.GetStocksArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.cloudstoragegateway.StorageBundle;
import com.pulumi.alicloud.cloudstoragegateway.StorageBundleArgs;
import com.pulumi.alicloud.cloudstoragegateway.Gateway;
import com.pulumi.alicloud.cloudstoragegateway.GatewayArgs;
import com.pulumi.alicloud.cloudstoragegateway.GatewayCacheDisk;
import com.pulumi.alicloud.cloudstoragegateway.GatewayCacheDiskArgs;
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 exampleStocks = CloudstoragegatewayFunctions.getStocks(GetStocksArgs.builder()
            .gatewayClass("Standard")
            .build());

        var vpc = new Network("vpc", NetworkArgs.builder()        
            .vpcName("example_value")
            .cidrBlock("172.16.0.0/12")
            .build());

        var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()        
            .vpcId(vpc.id())
            .cidrBlock("172.16.0.0/21")
            .zoneId(exampleStocks.applyValue(getStocksResult -> getStocksResult.stocks()[0].zoneId()))
            .vswitchName("example_value")
            .build());

        var exampleStorageBundle = new StorageBundle("exampleStorageBundle", StorageBundleArgs.builder()        
            .storageBundleName("example_value")
            .build());

        var exampleGateway = new Gateway("exampleGateway", GatewayArgs.builder()        
            .description("tf-acctestDesalone")
            .gatewayClass("Standard")
            .type("File")
            .paymentType("PayAsYouGo")
            .vswitchId(exampleSwitch.id())
            .releaseAfterExpiration(true)
            .publicNetworkBandwidth(10)
            .storageBundleId(exampleStorageBundle.id())
            .location("Cloud")
            .gatewayName("example_value")
            .build());

        var exampleGatewayCacheDisk = new GatewayCacheDisk("exampleGatewayCacheDisk", GatewayCacheDiskArgs.builder()        
            .cacheDiskCategory("cloud_efficiency")
            .gatewayId(alicloud_cloud_storage_gateway_gateways.example().id())
            .cacheDiskSizeInGb(50)
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

example_stocks = alicloud.cloudstoragegateway.get_stocks(gateway_class="Standard")
vpc = alicloud.vpc.Network("vpc",
    vpc_name="example_value",
    cidr_block="172.16.0.0/12")
example_switch = alicloud.vpc.Switch("exampleSwitch",
    vpc_id=vpc.id,
    cidr_block="172.16.0.0/21",
    zone_id=example_stocks.stocks[0].zone_id,
    vswitch_name="example_value")
example_storage_bundle = alicloud.cloudstoragegateway.StorageBundle("exampleStorageBundle", storage_bundle_name="example_value")
example_gateway = alicloud.cloudstoragegateway.Gateway("exampleGateway",
    description="tf-acctestDesalone",
    gateway_class="Standard",
    type="File",
    payment_type="PayAsYouGo",
    vswitch_id=example_switch.id,
    release_after_expiration=True,
    public_network_bandwidth=10,
    storage_bundle_id=example_storage_bundle.id,
    location="Cloud",
    gateway_name="example_value")
example_gateway_cache_disk = alicloud.cloudstoragegateway.GatewayCacheDisk("exampleGatewayCacheDisk",
    cache_disk_category="cloud_efficiency",
    gateway_id=alicloud_cloud_storage_gateway_gateways["example"]["id"],
    cache_disk_size_in_gb=50)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const exampleStocks = alicloud.cloudstoragegateway.getStocks({
    gatewayClass: "Standard",
});
const vpc = new alicloud.vpc.Network("vpc", {
    vpcName: "example_value",
    cidrBlock: "172.16.0.0/12",
});
const exampleSwitch = new alicloud.vpc.Switch("exampleSwitch", {
    vpcId: vpc.id,
    cidrBlock: "172.16.0.0/21",
    zoneId: exampleStocks.then(exampleStocks => exampleStocks.stocks?.[0]?.zoneId),
    vswitchName: "example_value",
});
const exampleStorageBundle = new alicloud.cloudstoragegateway.StorageBundle("exampleStorageBundle", {storageBundleName: "example_value"});
const exampleGateway = new alicloud.cloudstoragegateway.Gateway("exampleGateway", {
    description: "tf-acctestDesalone",
    gatewayClass: "Standard",
    type: "File",
    paymentType: "PayAsYouGo",
    vswitchId: exampleSwitch.id,
    releaseAfterExpiration: true,
    publicNetworkBandwidth: 10,
    storageBundleId: exampleStorageBundle.id,
    location: "Cloud",
    gatewayName: "example_value",
});
const exampleGatewayCacheDisk = new alicloud.cloudstoragegateway.GatewayCacheDisk("exampleGatewayCacheDisk", {
    cacheDiskCategory: "cloud_efficiency",
    gatewayId: alicloud_cloud_storage_gateway_gateways.example.id,
    cacheDiskSizeInGb: 50,
});
resources:
  vpc:
    type: alicloud:vpc:Network
    properties:
      vpcName: example_value
      cidrBlock: 172.16.0.0/12
  exampleSwitch:
    type: alicloud:vpc:Switch
    properties:
      vpcId: ${vpc.id}
      cidrBlock: 172.16.0.0/21
      zoneId: ${exampleStocks.stocks[0].zoneId}
      vswitchName: example_value
  exampleStorageBundle:
    type: alicloud:cloudstoragegateway:StorageBundle
    properties:
      storageBundleName: example_value
  exampleGateway:
    type: alicloud:cloudstoragegateway:Gateway
    properties:
      description: tf-acctestDesalone
      gatewayClass: Standard
      type: File
      paymentType: PayAsYouGo
      vswitchId: ${exampleSwitch.id}
      releaseAfterExpiration: true
      publicNetworkBandwidth: 10
      storageBundleId: ${exampleStorageBundle.id}
      location: Cloud
      gatewayName: example_value
  exampleGatewayCacheDisk:
    type: alicloud:cloudstoragegateway:GatewayCacheDisk
    properties:
      cacheDiskCategory: cloud_efficiency
      gatewayId: ${alicloud_cloud_storage_gateway_gateways.example.id}
      cacheDiskSizeInGb: 50
variables:
  exampleStocks:
    fn::invoke:
      Function: alicloud:cloudstoragegateway:getStocks
      Arguments:
        gatewayClass: Standard

Create GatewayCacheDisk Resource

new GatewayCacheDisk(name: string, args: GatewayCacheDiskArgs, opts?: CustomResourceOptions);
@overload
def GatewayCacheDisk(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     cache_disk_category: Optional[str] = None,
                     cache_disk_size_in_gb: Optional[int] = None,
                     gateway_id: Optional[str] = None)
@overload
def GatewayCacheDisk(resource_name: str,
                     args: GatewayCacheDiskArgs,
                     opts: Optional[ResourceOptions] = None)
func NewGatewayCacheDisk(ctx *Context, name string, args GatewayCacheDiskArgs, opts ...ResourceOption) (*GatewayCacheDisk, error)
public GatewayCacheDisk(string name, GatewayCacheDiskArgs args, CustomResourceOptions? opts = null)
public GatewayCacheDisk(String name, GatewayCacheDiskArgs args)
public GatewayCacheDisk(String name, GatewayCacheDiskArgs args, CustomResourceOptions options)
type: alicloud:cloudstoragegateway:GatewayCacheDisk
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args GatewayCacheDiskArgs
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 GatewayCacheDiskArgs
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 GatewayCacheDiskArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args GatewayCacheDiskArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args GatewayCacheDiskArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

GatewayCacheDisk Resource Properties

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

Inputs

The GatewayCacheDisk resource accepts the following input properties:

CacheDiskSizeInGb int

size of the cache disk. Unit: GB. The upper limit of the basic gateway cache disk is 1 TB (1024 GB), that of the standard gateway is 2 TB (2048 GB), and that of other gateway cache disks is 32 TB (32768 GB). The lower limit for the file gateway cache disk capacity is 40 GB, and the lower limit for the block gateway cache disk capacity is 20 GB.

GatewayId string

The ID of the gateway.

CacheDiskCategory string

The cache disk type. Valid values: cloud_efficiency, cloud_ssd.

CacheDiskSizeInGb int

size of the cache disk. Unit: GB. The upper limit of the basic gateway cache disk is 1 TB (1024 GB), that of the standard gateway is 2 TB (2048 GB), and that of other gateway cache disks is 32 TB (32768 GB). The lower limit for the file gateway cache disk capacity is 40 GB, and the lower limit for the block gateway cache disk capacity is 20 GB.

GatewayId string

The ID of the gateway.

CacheDiskCategory string

The cache disk type. Valid values: cloud_efficiency, cloud_ssd.

cacheDiskSizeInGb Integer

size of the cache disk. Unit: GB. The upper limit of the basic gateway cache disk is 1 TB (1024 GB), that of the standard gateway is 2 TB (2048 GB), and that of other gateway cache disks is 32 TB (32768 GB). The lower limit for the file gateway cache disk capacity is 40 GB, and the lower limit for the block gateway cache disk capacity is 20 GB.

gatewayId String

The ID of the gateway.

cacheDiskCategory String

The cache disk type. Valid values: cloud_efficiency, cloud_ssd.

cacheDiskSizeInGb number

size of the cache disk. Unit: GB. The upper limit of the basic gateway cache disk is 1 TB (1024 GB), that of the standard gateway is 2 TB (2048 GB), and that of other gateway cache disks is 32 TB (32768 GB). The lower limit for the file gateway cache disk capacity is 40 GB, and the lower limit for the block gateway cache disk capacity is 20 GB.

gatewayId string

The ID of the gateway.

cacheDiskCategory string

The cache disk type. Valid values: cloud_efficiency, cloud_ssd.

cache_disk_size_in_gb int

size of the cache disk. Unit: GB. The upper limit of the basic gateway cache disk is 1 TB (1024 GB), that of the standard gateway is 2 TB (2048 GB), and that of other gateway cache disks is 32 TB (32768 GB). The lower limit for the file gateway cache disk capacity is 40 GB, and the lower limit for the block gateway cache disk capacity is 20 GB.

gateway_id str

The ID of the gateway.

cache_disk_category str

The cache disk type. Valid values: cloud_efficiency, cloud_ssd.

cacheDiskSizeInGb Number

size of the cache disk. Unit: GB. The upper limit of the basic gateway cache disk is 1 TB (1024 GB), that of the standard gateway is 2 TB (2048 GB), and that of other gateway cache disks is 32 TB (32768 GB). The lower limit for the file gateway cache disk capacity is 40 GB, and the lower limit for the block gateway cache disk capacity is 20 GB.

gatewayId String

The ID of the gateway.

cacheDiskCategory String

The cache disk type. Valid values: cloud_efficiency, cloud_ssd.

Outputs

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

CacheId string

The ID of the cache.

Id string

The provider-assigned unique ID for this managed resource.

LocalFilePath string

The cache disk inside the device name.

Status int

The status of the resource. Valid values: 0, 1, 2. 0: Normal. 1: Is about to expire. 2: Has expired.

CacheId string

The ID of the cache.

Id string

The provider-assigned unique ID for this managed resource.

LocalFilePath string

The cache disk inside the device name.

Status int

The status of the resource. Valid values: 0, 1, 2. 0: Normal. 1: Is about to expire. 2: Has expired.

cacheId String

The ID of the cache.

id String

The provider-assigned unique ID for this managed resource.

localFilePath String

The cache disk inside the device name.

status Integer

The status of the resource. Valid values: 0, 1, 2. 0: Normal. 1: Is about to expire. 2: Has expired.

cacheId string

The ID of the cache.

id string

The provider-assigned unique ID for this managed resource.

localFilePath string

The cache disk inside the device name.

status number

The status of the resource. Valid values: 0, 1, 2. 0: Normal. 1: Is about to expire. 2: Has expired.

cache_id str

The ID of the cache.

id str

The provider-assigned unique ID for this managed resource.

local_file_path str

The cache disk inside the device name.

status int

The status of the resource. Valid values: 0, 1, 2. 0: Normal. 1: Is about to expire. 2: Has expired.

cacheId String

The ID of the cache.

id String

The provider-assigned unique ID for this managed resource.

localFilePath String

The cache disk inside the device name.

status Number

The status of the resource. Valid values: 0, 1, 2. 0: Normal. 1: Is about to expire. 2: Has expired.

Look up Existing GatewayCacheDisk Resource

Get an existing GatewayCacheDisk 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?: GatewayCacheDiskState, opts?: CustomResourceOptions): GatewayCacheDisk
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cache_disk_category: Optional[str] = None,
        cache_disk_size_in_gb: Optional[int] = None,
        cache_id: Optional[str] = None,
        gateway_id: Optional[str] = None,
        local_file_path: Optional[str] = None,
        status: Optional[int] = None) -> GatewayCacheDisk
func GetGatewayCacheDisk(ctx *Context, name string, id IDInput, state *GatewayCacheDiskState, opts ...ResourceOption) (*GatewayCacheDisk, error)
public static GatewayCacheDisk Get(string name, Input<string> id, GatewayCacheDiskState? state, CustomResourceOptions? opts = null)
public static GatewayCacheDisk get(String name, Output<String> id, GatewayCacheDiskState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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:
CacheDiskCategory string

The cache disk type. Valid values: cloud_efficiency, cloud_ssd.

CacheDiskSizeInGb int

size of the cache disk. Unit: GB. The upper limit of the basic gateway cache disk is 1 TB (1024 GB), that of the standard gateway is 2 TB (2048 GB), and that of other gateway cache disks is 32 TB (32768 GB). The lower limit for the file gateway cache disk capacity is 40 GB, and the lower limit for the block gateway cache disk capacity is 20 GB.

CacheId string

The ID of the cache.

GatewayId string

The ID of the gateway.

LocalFilePath string

The cache disk inside the device name.

Status int

The status of the resource. Valid values: 0, 1, 2. 0: Normal. 1: Is about to expire. 2: Has expired.

CacheDiskCategory string

The cache disk type. Valid values: cloud_efficiency, cloud_ssd.

CacheDiskSizeInGb int

size of the cache disk. Unit: GB. The upper limit of the basic gateway cache disk is 1 TB (1024 GB), that of the standard gateway is 2 TB (2048 GB), and that of other gateway cache disks is 32 TB (32768 GB). The lower limit for the file gateway cache disk capacity is 40 GB, and the lower limit for the block gateway cache disk capacity is 20 GB.

CacheId string

The ID of the cache.

GatewayId string

The ID of the gateway.

LocalFilePath string

The cache disk inside the device name.

Status int

The status of the resource. Valid values: 0, 1, 2. 0: Normal. 1: Is about to expire. 2: Has expired.

cacheDiskCategory String

The cache disk type. Valid values: cloud_efficiency, cloud_ssd.

cacheDiskSizeInGb Integer

size of the cache disk. Unit: GB. The upper limit of the basic gateway cache disk is 1 TB (1024 GB), that of the standard gateway is 2 TB (2048 GB), and that of other gateway cache disks is 32 TB (32768 GB). The lower limit for the file gateway cache disk capacity is 40 GB, and the lower limit for the block gateway cache disk capacity is 20 GB.

cacheId String

The ID of the cache.

gatewayId String

The ID of the gateway.

localFilePath String

The cache disk inside the device name.

status Integer

The status of the resource. Valid values: 0, 1, 2. 0: Normal. 1: Is about to expire. 2: Has expired.

cacheDiskCategory string

The cache disk type. Valid values: cloud_efficiency, cloud_ssd.

cacheDiskSizeInGb number

size of the cache disk. Unit: GB. The upper limit of the basic gateway cache disk is 1 TB (1024 GB), that of the standard gateway is 2 TB (2048 GB), and that of other gateway cache disks is 32 TB (32768 GB). The lower limit for the file gateway cache disk capacity is 40 GB, and the lower limit for the block gateway cache disk capacity is 20 GB.

cacheId string

The ID of the cache.

gatewayId string

The ID of the gateway.

localFilePath string

The cache disk inside the device name.

status number

The status of the resource. Valid values: 0, 1, 2. 0: Normal. 1: Is about to expire. 2: Has expired.

cache_disk_category str

The cache disk type. Valid values: cloud_efficiency, cloud_ssd.

cache_disk_size_in_gb int

size of the cache disk. Unit: GB. The upper limit of the basic gateway cache disk is 1 TB (1024 GB), that of the standard gateway is 2 TB (2048 GB), and that of other gateway cache disks is 32 TB (32768 GB). The lower limit for the file gateway cache disk capacity is 40 GB, and the lower limit for the block gateway cache disk capacity is 20 GB.

cache_id str

The ID of the cache.

gateway_id str

The ID of the gateway.

local_file_path str

The cache disk inside the device name.

status int

The status of the resource. Valid values: 0, 1, 2. 0: Normal. 1: Is about to expire. 2: Has expired.

cacheDiskCategory String

The cache disk type. Valid values: cloud_efficiency, cloud_ssd.

cacheDiskSizeInGb Number

size of the cache disk. Unit: GB. The upper limit of the basic gateway cache disk is 1 TB (1024 GB), that of the standard gateway is 2 TB (2048 GB), and that of other gateway cache disks is 32 TB (32768 GB). The lower limit for the file gateway cache disk capacity is 40 GB, and the lower limit for the block gateway cache disk capacity is 20 GB.

cacheId String

The ID of the cache.

gatewayId String

The ID of the gateway.

localFilePath String

The cache disk inside the device name.

status Number

The status of the resource. Valid values: 0, 1, 2. 0: Normal. 1: Is about to expire. 2: Has expired.

Import

Cloud Storage Gateway Gateway Cache Disk can be imported using the id, e.g.

 $ pulumi import alicloud:cloudstoragegateway/gatewayCacheDisk:GatewayCacheDisk example <gateway_id>:<cache_id>:<local_file_path>

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.