1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cloudstoragegateway
  5. GatewayCacheDisk
Alibaba Cloud v3.57.0 published on Saturday, Jun 15, 2024 by Pulumi

alicloud.cloudstoragegateway.GatewayCacheDisk

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.0 published on Saturday, Jun 15, 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.

    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)
    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.

    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",
    });
    
    example, err := cloudstoragegateway.NewGatewayCacheDisk(ctx, "gatewayCacheDiskResource", &cloudstoragegateway.GatewayCacheDiskArgs{
    	CacheDiskSizeInGb: pulumi.Int(0),
    	GatewayId:         pulumi.String("string"),
    	CacheDiskCategory: pulumi.String("string"),
    })
    
    var gatewayCacheDiskResource = new GatewayCacheDisk("gatewayCacheDiskResource", GatewayCacheDiskArgs.builder()
        .cacheDiskSizeInGb(0)
        .gatewayId("string")
        .cacheDiskCategory("string")
        .build());
    
    gateway_cache_disk_resource = alicloud.cloudstoragegateway.GatewayCacheDisk("gatewayCacheDiskResource",
        cache_disk_size_in_gb=0,
        gateway_id="string",
        cache_disk_category="string")
    
    const gatewayCacheDiskResource = new alicloud.cloudstoragegateway.GatewayCacheDisk("gatewayCacheDiskResource", {
        cacheDiskSizeInGb: 0,
        gatewayId: "string",
        cacheDiskCategory: "string",
    });
    
    type: alicloud:cloudstoragegateway:GatewayCacheDisk
    properties:
        cacheDiskCategory: string
        cacheDiskSizeInGb: 0
        gatewayId: 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
    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>
    

    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.57.0 published on Saturday, Jun 15, 2024 by Pulumi