Updated on 2025-08-25 GMT+08:00

Image Check

Rule Details

Table 1 Rule details

Parameter

Description

Rule Name

allowed-images-by-id

Identifier

Image Check

Description

If an ECS's image is not one of the specified images, this ECS is non-compliant.

Tag

ecs, ims

Trigger Type

Configuration change

Filter Type

ecs.cloudservers

Rule Parameters

listOfAllowedImages: allowed image IDs. The value must be an array with up to 10 elements.

Application Scenarios

An image is a template that contains an OS. It may also contain pre-installed public applications, such as a database, and a user's private applications. You can use public, private, shared, and KooGallery images to create ECSs. Public images are provided by the cloud platform, private images are created by users, and shared images are private images that other users shared with you. For details, see Image Overview.

Using specified images brings the following benefits:

  • Unified environment: Specifying unified images ensures that all servers run the same operating system and software version, reducing problems caused by environment differences.
  • Standardized deployment: Unified configuration and settings simplify the deployment process and improve efficiency.
  • Centralized management: Unified images are easy to update and maintain, reducing management complexity.
  • Security policies: Unified images facilitate consistent security policy and patch management, reducing security risks.
  • Compliance: Unified images help ensure that all servers comply with industry regulations and enterprise policies.
  • Reduced operations expenses: Unified images reduce the complexity and costs of operations and management.

Solution

Use one of the specified images to create ECSs. For details, see Creating an ECS from an Image.

Rule Logic

  • If an ECS is created from one of the specified images, this ECS is compliant.
  • If an ECS is not created from one of the specified images, this ECS is non-compliant.