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:
- Cache
Disk intSize In Gb size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB.- Gateway
Id string The ID of the gateway.
- Cache
Disk stringCategory The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
.
- Cache
Disk intSize In Gb size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB.- Gateway
Id string The ID of the gateway.
- Cache
Disk stringCategory The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
.
- cache
Disk IntegerSize In Gb size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB.- gateway
Id String The ID of the gateway.
- cache
Disk StringCategory The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
.
- cache
Disk numberSize In Gb size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB.- gateway
Id string The ID of the gateway.
- cache
Disk stringCategory The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
.
- cache_
disk_ intsize_ in_ gb size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB.- gateway_
id str The ID of the gateway.
- cache_
disk_ strcategory The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
.
- cache
Disk NumberSize In Gb size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB.- gateway
Id String The ID of the gateway.
- cache
Disk StringCategory 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:
- Cache
Id string The ID of the cache.
- Id string
The provider-assigned unique ID for this managed resource.
- Local
File stringPath 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.
- Cache
Id string The ID of the cache.
- Id string
The provider-assigned unique ID for this managed resource.
- Local
File stringPath 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.
- cache
Id String The ID of the cache.
- id String
The provider-assigned unique ID for this managed resource.
- local
File StringPath 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.
- cache
Id string The ID of the cache.
- id string
The provider-assigned unique ID for this managed resource.
- local
File stringPath 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_ strpath 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.
- cache
Id String The ID of the cache.
- id String
The provider-assigned unique ID for this managed resource.
- local
File StringPath 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.
- Cache
Disk stringCategory The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
.- Cache
Disk intSize In Gb size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB.- Cache
Id string The ID of the cache.
- Gateway
Id string The ID of the gateway.
- Local
File stringPath 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.
- Cache
Disk stringCategory The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
.- Cache
Disk intSize In Gb size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB.- Cache
Id string The ID of the cache.
- Gateway
Id string The ID of the gateway.
- Local
File stringPath 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.
- cache
Disk StringCategory The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
.- cache
Disk IntegerSize In Gb size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB.- cache
Id String The ID of the cache.
- gateway
Id String The ID of the gateway.
- local
File StringPath 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.
- cache
Disk stringCategory The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
.- cache
Disk numberSize In Gb size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB.- cache
Id string The ID of the cache.
- gateway
Id string The ID of the gateway.
- local
File stringPath 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_ strcategory The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
.- cache_
disk_ intsize_ in_ gb size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB.- cache_
id str The ID of the cache.
- gateway_
id str The ID of the gateway.
- local_
file_ strpath 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.
- cache
Disk StringCategory The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
.- cache
Disk NumberSize In Gb size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB.- cache
Id String The ID of the cache.
- gateway
Id String The ID of the gateway.
- local
File StringPath 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.