Skip to content

ScanRuleProps

Properties for defining a ScanRule.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cr-scanrule

Initializer

using AlibabaCloud.SDK.ROS.CDK.Cr;
new ScanRuleProps {
    object InstanceId,
    object RepoTagFilterPattern,
    object RuleName,
    object ScanScope,
    object ScanType,
    object TriggerType,
    object Namespaces = null,
    object RepoNames = null
};

Properties

Name Type Description
InstanceId object Property instanceId: ACR Instance ID.
RepoTagFilterPattern object Property repoTagFilterPattern: The tag that triggers the scan matches the regular expression.
RuleName object Property ruleName: The scan rule name.
ScanScope object Property scanScope: The scan scope.
ScanType object Property scanType: The scan type.
TriggerType object Property triggerType: Trigger type.
Namespaces object Property namespaces: The list of namespaces.
RepoNames object Property repoNames: The list of repositories.* When the scan scope is NAMESPACE, this parameter must be empty. * When the scan scope is REPO, this parameter cannot be empty.

InstanceIdRequired

public object InstanceId { get; set; }
  • Type: object

Property instanceId: ACR Instance ID.


RepoTagFilterPatternRequired

public object RepoTagFilterPattern { get; set; }
  • Type: object

Property repoTagFilterPattern: The tag that triggers the scan matches the regular expression.


RuleNameRequired

public object RuleName { get; set; }
  • Type: object

Property ruleName: The scan rule name.


ScanScopeRequired

public object ScanScope { get; set; }
  • Type: object

Property scanScope: The scan scope.

Valid values: NAMESPACE: namespace. REPO: repository. INSTANCE: CR instance.


ScanTypeRequired

public object ScanType { get; set; }
  • Type: object

Property scanType: The scan type.

Valid values:

  • VUL: Products Cloud Security Scanner.
  • SBOM: Product Content Analysis.

TriggerTypeRequired

public object TriggerType { get; set; }
  • Type: object

Property triggerType: Trigger type.

Valid values:

  • AUTO: automatically trigger.
  • MANUAL: manually trigger.

NamespacesOptional

public object Namespaces { get; set; }
  • Type: object

Property namespaces: The list of namespaces.

  • When the scan scope is NAMESPACE, this parameter cannot be empty.
  • If the scan scope is REPO, you must specify a unique Namespace for this parameter.

RepoNamesOptional

public object RepoNames { get; set; }
  • Type: object

Property repoNames: The list of repositories.* When the scan scope is NAMESPACE, this parameter must be empty. * When the scan scope is REPO, this parameter cannot be empty.