All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::ECI::ImageCaches

Last Updated:Feb 06, 2025

DATASOURCE::ECI::ImageCaches is used to query multiple image caches at a time.

Syntax

{
  "Type": "DATASOURCE::ECI::ImageCaches",
  "Properties": {
    "SnapshotId": String,
    "ResourceGroupId": String,
    "ImageCacheId": String,
    "ImageCacheName": String,
    "Limit": Integer,
    "RefreshOptions": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

SnapshotId

String

No

Yes

The ID of the snapshot that corresponds to the image cache.

None.

ResourceGroupId

String

No

Yes

The ID of the resource group to which the image caches belong.

None.

ImageCacheId

String

No

Yes

The ID of the image cache.

None.

ImageCacheName

String

No

Yes

The name of the image cache.

None.

Limit

Integer

No

Yes

The maximum number of entries to return.

None.

RefreshOptions

String

No

Yes

The refresh policy for data source resources when the stack is updated.

Valid values:

  • Never (default): does not refresh data source resources when the stack is updated.

  • Always: refreshes data source resources when the stack is updated.

Return values

Fn::GetAtt

  • ImageCacheIds: the IDs of the image caches.

  • ImageCaches: details of the image caches.

Property

Type

Description

Constraint

ImageCacheIds

List

The IDs of the image caches.

None.

ImageCaches

List

Details of the image caches.

None.

ResourceGroupId

String

The ID of the resource group to which the image caches belong.

None.

Events

List

The events of pulling an image to create the image cache.

None.

Images

List

The images that are contained in the image cache.

None.

ImageCacheId

String

The ID of the image cache.

None.

Progress

String

The progress of creating the snapshot that corresponds to the image cache.

None.

ContainerGroupId

String

The ID of the container group.

None.

SnapshotId

String

The ID of the snapshot that corresponds to the image cache.

None.

ImageCacheName

String

The name of the image cache.

None.

ExpireDateTime

String

The expiration time.

None.

Examples

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ImageCacheId:
    Description:
      en: ImageCacheId.
    Required: false
    Type: String
  ImageCacheName:
    Description:
      en: ImageCacheName.
    Required: false
    Type: String
  Limit:
    Description:
      en: Number of pages.
    Required: false
    Type: Number
  ResourceGroupId:
    AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
    Description:
      en: ResourceGroupId.
    Required: false
    Type: String
  SnapshotId:
    Description:
      en: SnapshotId.
    Required: false
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      ImageCacheId:
        Ref: ImageCacheId
      ImageCacheName:
        Ref: ImageCacheName
      Limit:
        Ref: Limit
      ResourceGroupId:
        Ref: ResourceGroupId
      SnapshotId:
        Ref: SnapshotId
    Type: DATASOURCE::ECI::ImageCaches
Outputs:
  ImageCacheIds:
    Description: The list of image cache IDs.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ImageCacheIds
  ImageCaches:
    Description: The list of image caches.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ImageCaches
                        
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "SnapshotId": {
      "Type": "String",
      "Description": {
        "en": "SnapshotId."
      },
      "Required": false
    },
    "ResourceGroupId": {
      "AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId",
      "Type": "String",
      "Description": {
        "en": "ResourceGroupId."
      },
      "Required": false
    },
    "ImageCacheId": {
      "Type": "String",
      "Description": {
        "en": "ImageCacheId."
      },
      "Required": false
    },
    "ImageCacheName": {
      "Type": "String",
      "Description": {
        "en": "ImageCacheName."
      },
      "Required": false
    },
    "Limit": {
      "Type": "Number",
      "Description": {
        "en": "Number of pages."
      },
      "Required": false
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::ECI::ImageCaches",
      "Properties": {
        "SnapshotId": {
          "Ref": "SnapshotId"
        },
        "ResourceGroupId": {
          "Ref": "ResourceGroupId"
        },
        "ImageCacheId": {
          "Ref": "ImageCacheId"
        },
        "ImageCacheName": {
          "Ref": "ImageCacheName"
        },
        "Limit": {
          "Ref": "Limit"
        }
      }
    }
  },
  "Outputs": {
    "ImageCacheIds": {
      "Description": "The list of image cache IDs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ImageCacheIds"
        ]
      }
    },
    "ImageCaches": {
      "Description": "The list of image caches.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ImageCaches"
        ]
      }
    }
  }
}