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

Image Check by Name

Rule Details

Table 1 Rule details

Parameter

Description

Rule Name

allowed-images-by-name

Identifier

Image Check by Name

Description

If an ECS does not have one of the specified images attached, this ECS is non-compliant. Images are specified by name.

Tag

ecs

Trigger Type

Configuration change

Filter Type

ecs.cloudservers

Rule Parameters

imageNames: names of images. This rule allows partial match of image names.

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 images to create ECSs. Images are classified into public, private, Marketplace, and shared images. 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 the image of an ECS is fully or partially matched with one of the specified images by name, this ECS is compliant.
  • If the image of an ECS is not fully or partially matched with one of the specified images by name, this ECS is non-compliant.