1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cloudstoragegateway
  5. GatewayCacheDisk
Alibaba Cloud v3.59.1 published on Thursday, Jul 25, 2024 by Pulumi

alicloud.cloudstoragegateway.GatewayCacheDisk

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.59.1 published on Thursday, Jul 25, 2024 by Pulumi

    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 since v1.144.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-example";
    const default = alicloud.cloudstoragegateway.getStocks({
        gatewayClass: "Standard",
    });
    const defaultNetwork = new alicloud.vpc.Network("default", {
        vpcName: name,
        cidrBlock: "172.16.0.0/16",
    });
    const defaultSwitch = new alicloud.vpc.Switch("default", {
        vpcId: defaultNetwork.id,
        cidrBlock: "172.16.0.0/24",
        zoneId: _default.then(_default => _default.stocks?.[0]?.zoneId),
        vswitchName: name,
    });
    const defaultStorageBundle = new alicloud.cloudstoragegateway.StorageBundle("default", {storageBundleName: name});
    const defaultGateway = new alicloud.cloudstoragegateway.Gateway("default", {
        description: name,
        gatewayClass: "Standard",
        type: "File",
        paymentType: "PayAsYouGo",
        vswitchId: defaultSwitch.id,
        releaseAfterExpiration: true,
        storageBundleId: defaultStorageBundle.id,
        location: "Cloud",
        gatewayName: name,
    });
    const defaultGatewayCacheDisk = new alicloud.cloudstoragegateway.GatewayCacheDisk("default", {
        gatewayId: defaultGateway.id,
        cacheDiskSizeInGb: 50,
        cacheDiskCategory: "cloud_efficiency",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example"
    default = alicloud.cloudstoragegateway.get_stocks(gateway_class="Standard")
    default_network = alicloud.vpc.Network("default",
        vpc_name=name,
        cidr_block="172.16.0.0/16")
    default_switch = alicloud.vpc.Switch("default",
        vpc_id=default_network.id,
        cidr_block="172.16.0.0/24",
        zone_id=default.stocks[0].zone_id,
        vswitch_name=name)
    default_storage_bundle = alicloud.cloudstoragegateway.StorageBundle("default", storage_bundle_name=name)
    default_gateway = alicloud.cloudstoragegateway.Gateway("default",
        description=name,
        gateway_class="Standard",
        type="File",
        payment_type="PayAsYouGo",
        vswitch_id=default_switch.id,
        release_after_expiration=True,
        storage_bundle_id=default_storage_bundle.id,
        location="Cloud",
        gateway_name=name)
    default_gateway_cache_disk = alicloud.cloudstoragegateway.GatewayCacheDisk("default",
        gateway_id=default_gateway.id,
        cache_disk_size_in_gb=50,
        cache_disk_category="cloud_efficiency")
    
    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"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := cloudstoragegateway.GetStocks(ctx, &cloudstoragegateway.GetStocksArgs{
    			GatewayClass: pulumi.StringRef("Standard"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
    			VpcId:       defaultNetwork.ID(),
    			CidrBlock:   pulumi.String("172.16.0.0/24"),
    			ZoneId:      pulumi.String(_default.Stocks[0].ZoneId),
    			VswitchName: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		defaultStorageBundle, err := cloudstoragegateway.NewStorageBundle(ctx, "default", &cloudstoragegateway.StorageBundleArgs{
    			StorageBundleName: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		defaultGateway, err := cloudstoragegateway.NewGateway(ctx, "default", &cloudstoragegateway.GatewayArgs{
    			Description:            pulumi.String(name),
    			GatewayClass:           pulumi.String("Standard"),
    			Type:                   pulumi.String("File"),
    			PaymentType:            pulumi.String("PayAsYouGo"),
    			VswitchId:              defaultSwitch.ID(),
    			ReleaseAfterExpiration: pulumi.Bool(true),
    			StorageBundleId:        defaultStorageBundle.ID(),
    			Location:               pulumi.String("Cloud"),
    			GatewayName:            pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cloudstoragegateway.NewGatewayCacheDisk(ctx, "default", &cloudstoragegateway.GatewayCacheDiskArgs{
    			GatewayId:         defaultGateway.ID(),
    			CacheDiskSizeInGb: pulumi.Int(50),
    			CacheDiskCategory: pulumi.String("cloud_efficiency"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf-example";
        var @default = AliCloud.CloudStorageGateway.GetStocks.Invoke(new()
        {
            GatewayClass = "Standard",
        });
    
        var defaultNetwork = new AliCloud.Vpc.Network("default", new()
        {
            VpcName = name,
            CidrBlock = "172.16.0.0/16",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
        {
            VpcId = defaultNetwork.Id,
            CidrBlock = "172.16.0.0/24",
            ZoneId = @default.Apply(@default => @default.Apply(getStocksResult => getStocksResult.Stocks[0]?.ZoneId)),
            VswitchName = name,
        });
    
        var defaultStorageBundle = new AliCloud.CloudStorageGateway.StorageBundle("default", new()
        {
            StorageBundleName = name,
        });
    
        var defaultGateway = new AliCloud.CloudStorageGateway.Gateway("default", new()
        {
            Description = name,
            GatewayClass = "Standard",
            Type = "File",
            PaymentType = "PayAsYouGo",
            VswitchId = defaultSwitch.Id,
            ReleaseAfterExpiration = true,
            StorageBundleId = defaultStorageBundle.Id,
            Location = "Cloud",
            GatewayName = name,
        });
    
        var defaultGatewayCacheDisk = new AliCloud.CloudStorageGateway.GatewayCacheDisk("default", new()
        {
            GatewayId = defaultGateway.Id,
            CacheDiskSizeInGb = 50,
            CacheDiskCategory = "cloud_efficiency",
        });
    
    });
    
    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 config = ctx.config();
            final var name = config.get("name").orElse("tf-example");
            final var default = CloudstoragegatewayFunctions.getStocks(GetStocksArgs.builder()
                .gatewayClass("Standard")
                .build());
    
            var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
                .vpcName(name)
                .cidrBlock("172.16.0.0/16")
                .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
                .vpcId(defaultNetwork.id())
                .cidrBlock("172.16.0.0/24")
                .zoneId(default_.stocks()[0].zoneId())
                .vswitchName(name)
                .build());
    
            var defaultStorageBundle = new StorageBundle("defaultStorageBundle", StorageBundleArgs.builder()
                .storageBundleName(name)
                .build());
    
            var defaultGateway = new Gateway("defaultGateway", GatewayArgs.builder()
                .description(name)
                .gatewayClass("Standard")
                .type("File")
                .paymentType("PayAsYouGo")
                .vswitchId(defaultSwitch.id())
                .releaseAfterExpiration(true)
                .storageBundleId(defaultStorageBundle.id())
                .location("Cloud")
                .gatewayName(name)
                .build());
    
            var defaultGatewayCacheDisk = new GatewayCacheDisk("defaultGatewayCacheDisk", GatewayCacheDiskArgs.builder()
                .gatewayId(defaultGateway.id())
                .cacheDiskSizeInGb(50)
                .cacheDiskCategory("cloud_efficiency")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf-example
    resources:
      defaultNetwork:
        type: alicloud:vpc:Network
        name: default
        properties:
          vpcName: ${name}
          cidrBlock: 172.16.0.0/16
      defaultSwitch:
        type: alicloud:vpc:Switch
        name: default
        properties:
          vpcId: ${defaultNetwork.id}
          cidrBlock: 172.16.0.0/24
          zoneId: ${default.stocks[0].zoneId}
          vswitchName: ${name}
      defaultStorageBundle:
        type: alicloud:cloudstoragegateway:StorageBundle
        name: default
        properties:
          storageBundleName: ${name}
      defaultGateway:
        type: alicloud:cloudstoragegateway:Gateway
        name: default
        properties:
          description: ${name}
          gatewayClass: Standard
          type: File
          paymentType: PayAsYouGo
          vswitchId: ${defaultSwitch.id}
          releaseAfterExpiration: true
          storageBundleId: ${defaultStorageBundle.id}
          location: Cloud
          gatewayName: ${name}
      defaultGatewayCacheDisk:
        type: alicloud:cloudstoragegateway:GatewayCacheDisk
        name: default
        properties:
          gatewayId: ${defaultGateway.id}
          cacheDiskSizeInGb: 50
          cacheDiskCategory: cloud_efficiency
    variables:
      default:
        fn::invoke:
          Function: alicloud:cloudstoragegateway:getStocks
          Arguments:
            gatewayClass: Standard
    

    Create GatewayCacheDisk Resource

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

    Constructor syntax

    new GatewayCacheDisk(name: string, args: GatewayCacheDiskArgs, opts?: CustomResourceOptions);
    @overload
    def GatewayCacheDisk(resource_name: str,
                         args: GatewayCacheDiskArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def GatewayCacheDisk(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         cache_disk_size_in_gb: Optional[int] = None,
                         gateway_id: Optional[str] = None,
                         cache_disk_category: Optional[str] = None,
                         performance_level: Optional[str] = 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.
    
    

    Parameters

    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.

    Constructor example

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

    var gatewayCacheDiskResource = new AliCloud.CloudStorageGateway.GatewayCacheDisk("gatewayCacheDiskResource", new()
    {
        CacheDiskSizeInGb = 0,
        GatewayId = "string",
        CacheDiskCategory = "string",
        PerformanceLevel = "string",
    });
    
    example, err := cloudstoragegateway.NewGatewayCacheDisk(ctx, "gatewayCacheDiskResource", &cloudstoragegateway.GatewayCacheDiskArgs{
    	CacheDiskSizeInGb: pulumi.Int(0),
    	GatewayId:         pulumi.String("string"),
    	CacheDiskCategory: pulumi.String("string"),
    	PerformanceLevel:  pulumi.String("string"),
    })
    
    var gatewayCacheDiskResource = new GatewayCacheDisk("gatewayCacheDiskResource", GatewayCacheDiskArgs.builder()
        .cacheDiskSizeInGb(0)
        .gatewayId("string")
        .cacheDiskCategory("string")
        .performanceLevel("string")
        .build());
    
    gateway_cache_disk_resource = alicloud.cloudstoragegateway.GatewayCacheDisk("gatewayCacheDiskResource",
        cache_disk_size_in_gb=0,
        gateway_id="string",
        cache_disk_category="string",
        performance_level="string")
    
    const gatewayCacheDiskResource = new alicloud.cloudstoragegateway.GatewayCacheDisk("gatewayCacheDiskResource", {
        cacheDiskSizeInGb: 0,
        gatewayId: "string",
        cacheDiskCategory: "string",
        performanceLevel: "string",
    });
    
    type: alicloud:cloudstoragegateway:GatewayCacheDisk
    properties:
        cacheDiskCategory: string
        cacheDiskSizeInGb: 0
        gatewayId: string
        performanceLevel: string
    

    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
    The capacity of the cache disk.
    GatewayId string
    The ID of the gateway.
    CacheDiskCategory string
    The type of the cache disk. Valid values: cloud_efficiency, cloud_ssd, cloud_essd. NOTE: From version 1.227.0, cache_disk_category can be set to cloud_essd.
    PerformanceLevel string
    The performance level (PL) of the Enterprise SSD (ESSD). Valid values: PL1, PL2, PL3. NOTE: If cache_disk_category is set to cloud_essd, performance_level is required.
    CacheDiskSizeInGb int
    The capacity of the cache disk.
    GatewayId string
    The ID of the gateway.
    CacheDiskCategory string
    The type of the cache disk. Valid values: cloud_efficiency, cloud_ssd, cloud_essd. NOTE: From version 1.227.0, cache_disk_category can be set to cloud_essd.
    PerformanceLevel string
    The performance level (PL) of the Enterprise SSD (ESSD). Valid values: PL1, PL2, PL3. NOTE: If cache_disk_category is set to cloud_essd, performance_level is required.
    cacheDiskSizeInGb Integer
    The capacity of the cache disk.
    gatewayId String
    The ID of the gateway.
    cacheDiskCategory String
    The type of the cache disk. Valid values: cloud_efficiency, cloud_ssd, cloud_essd. NOTE: From version 1.227.0, cache_disk_category can be set to cloud_essd.
    performanceLevel String
    The performance level (PL) of the Enterprise SSD (ESSD). Valid values: PL1, PL2, PL3. NOTE: If cache_disk_category is set to cloud_essd, performance_level is required.
    cacheDiskSizeInGb number
    The capacity of the cache disk.
    gatewayId string
    The ID of the gateway.
    cacheDiskCategory string
    The type of the cache disk. Valid values: cloud_efficiency, cloud_ssd, cloud_essd. NOTE: From version 1.227.0, cache_disk_category can be set to cloud_essd.
    performanceLevel string
    The performance level (PL) of the Enterprise SSD (ESSD). Valid values: PL1, PL2, PL3. NOTE: If cache_disk_category is set to cloud_essd, performance_level is required.
    cache_disk_size_in_gb int
    The capacity of the cache disk.
    gateway_id str
    The ID of the gateway.
    cache_disk_category str
    The type of the cache disk. Valid values: cloud_efficiency, cloud_ssd, cloud_essd. NOTE: From version 1.227.0, cache_disk_category can be set to cloud_essd.
    performance_level str
    The performance level (PL) of the Enterprise SSD (ESSD). Valid values: PL1, PL2, PL3. NOTE: If cache_disk_category is set to cloud_essd, performance_level is required.
    cacheDiskSizeInGb Number
    The capacity of the cache disk.
    gatewayId String
    The ID of the gateway.
    cacheDiskCategory String
    The type of the cache disk. Valid values: cloud_efficiency, cloud_ssd, cloud_essd. NOTE: From version 1.227.0, cache_disk_category can be set to cloud_essd.
    performanceLevel String
    The performance level (PL) of the Enterprise SSD (ESSD). Valid values: PL1, PL2, PL3. NOTE: If cache_disk_category is set to cloud_essd, performance_level is required.

    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 disk.
    Id string
    The provider-assigned unique ID for this managed resource.
    LocalFilePath string
    The path of the cache disk.
    Status int
    The status of the Gateway Cache Disk.
    CacheId string
    The ID of the cache disk.
    Id string
    The provider-assigned unique ID for this managed resource.
    LocalFilePath string
    The path of the cache disk.
    Status int
    The status of the Gateway Cache Disk.
    cacheId String
    The ID of the cache disk.
    id String
    The provider-assigned unique ID for this managed resource.
    localFilePath String
    The path of the cache disk.
    status Integer
    The status of the Gateway Cache Disk.
    cacheId string
    The ID of the cache disk.
    id string
    The provider-assigned unique ID for this managed resource.
    localFilePath string
    The path of the cache disk.
    status number
    The status of the Gateway Cache Disk.
    cache_id str
    The ID of the cache disk.
    id str
    The provider-assigned unique ID for this managed resource.
    local_file_path str
    The path of the cache disk.
    status int
    The status of the Gateway Cache Disk.
    cacheId String
    The ID of the cache disk.
    id String
    The provider-assigned unique ID for this managed resource.
    localFilePath String
    The path of the cache disk.
    status Number
    The status of the Gateway Cache Disk.

    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,
            performance_level: 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 type of the cache disk. Valid values: cloud_efficiency, cloud_ssd, cloud_essd. NOTE: From version 1.227.0, cache_disk_category can be set to cloud_essd.
    CacheDiskSizeInGb int
    The capacity of the cache disk.
    CacheId string
    The ID of the cache disk.
    GatewayId string
    The ID of the gateway.
    LocalFilePath string
    The path of the cache disk.
    PerformanceLevel string
    The performance level (PL) of the Enterprise SSD (ESSD). Valid values: PL1, PL2, PL3. NOTE: If cache_disk_category is set to cloud_essd, performance_level is required.
    Status int
    The status of the Gateway Cache Disk.
    CacheDiskCategory string
    The type of the cache disk. Valid values: cloud_efficiency, cloud_ssd, cloud_essd. NOTE: From version 1.227.0, cache_disk_category can be set to cloud_essd.
    CacheDiskSizeInGb int
    The capacity of the cache disk.
    CacheId string
    The ID of the cache disk.
    GatewayId string
    The ID of the gateway.
    LocalFilePath string
    The path of the cache disk.
    PerformanceLevel string
    The performance level (PL) of the Enterprise SSD (ESSD). Valid values: PL1, PL2, PL3. NOTE: If cache_disk_category is set to cloud_essd, performance_level is required.
    Status int
    The status of the Gateway Cache Disk.
    cacheDiskCategory String
    The type of the cache disk. Valid values: cloud_efficiency, cloud_ssd, cloud_essd. NOTE: From version 1.227.0, cache_disk_category can be set to cloud_essd.
    cacheDiskSizeInGb Integer
    The capacity of the cache disk.
    cacheId String
    The ID of the cache disk.
    gatewayId String
    The ID of the gateway.
    localFilePath String
    The path of the cache disk.
    performanceLevel String
    The performance level (PL) of the Enterprise SSD (ESSD). Valid values: PL1, PL2, PL3. NOTE: If cache_disk_category is set to cloud_essd, performance_level is required.
    status Integer
    The status of the Gateway Cache Disk.
    cacheDiskCategory string
    The type of the cache disk. Valid values: cloud_efficiency, cloud_ssd, cloud_essd. NOTE: From version 1.227.0, cache_disk_category can be set to cloud_essd.
    cacheDiskSizeInGb number
    The capacity of the cache disk.
    cacheId string
    The ID of the cache disk.
    gatewayId string
    The ID of the gateway.
    localFilePath string
    The path of the cache disk.
    performanceLevel string
    The performance level (PL) of the Enterprise SSD (ESSD). Valid values: PL1, PL2, PL3. NOTE: If cache_disk_category is set to cloud_essd, performance_level is required.
    status number
    The status of the Gateway Cache Disk.
    cache_disk_category str
    The type of the cache disk. Valid values: cloud_efficiency, cloud_ssd, cloud_essd. NOTE: From version 1.227.0, cache_disk_category can be set to cloud_essd.
    cache_disk_size_in_gb int
    The capacity of the cache disk.
    cache_id str
    The ID of the cache disk.
    gateway_id str
    The ID of the gateway.
    local_file_path str
    The path of the cache disk.
    performance_level str
    The performance level (PL) of the Enterprise SSD (ESSD). Valid values: PL1, PL2, PL3. NOTE: If cache_disk_category is set to cloud_essd, performance_level is required.
    status int
    The status of the Gateway Cache Disk.
    cacheDiskCategory String
    The type of the cache disk. Valid values: cloud_efficiency, cloud_ssd, cloud_essd. NOTE: From version 1.227.0, cache_disk_category can be set to cloud_essd.
    cacheDiskSizeInGb Number
    The capacity of the cache disk.
    cacheId String
    The ID of the cache disk.
    gatewayId String
    The ID of the gateway.
    localFilePath String
    The path of the cache disk.
    performanceLevel String
    The performance level (PL) of the Enterprise SSD (ESSD). Valid values: PL1, PL2, PL3. NOTE: If cache_disk_category is set to cloud_essd, performance_level is required.
    status Number
    The status of the Gateway Cache Disk.

    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>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.59.1 published on Thursday, Jul 25, 2024 by Pulumi