Skip to content

ScanRuleProps

Properties for defining a ScanRule.

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

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcr"
&alicloudroscdkcr.ScanRuleProps {
    InstanceId: interface{},
    RepoTagFilterPattern: interface{},
    RuleName: interface{},
    ScanScope: interface{},
    ScanType: interface{},
    TriggerType: interface{},
    Namespaces: interface{},
    RepoNames: interface{},
}

Properties

Name Type Description
InstanceId interface{} Property instanceId: ACR Instance ID.
RepoTagFilterPattern interface{} Property repoTagFilterPattern: The tag that triggers the scan matches the regular expression.
RuleName interface{} Property ruleName: The scan rule name.
ScanScope interface{} Property scanScope: The scan scope.
ScanType interface{} Property scanType: The scan type.
TriggerType interface{} Property triggerType: Trigger type.
Namespaces interface{} Property namespaces: The list of namespaces.
RepoNames interface{} 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

InstanceId interface{}
  • Type: interface{}

Property instanceId: ACR Instance ID.


RepoTagFilterPatternRequired

RepoTagFilterPattern interface{}
  • Type: interface{}

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


RuleNameRequired

RuleName interface{}
  • Type: interface{}

Property ruleName: The scan rule name.


ScanScopeRequired

ScanScope interface{}
  • Type: interface{}

Property scanScope: The scan scope.

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


ScanTypeRequired

ScanType interface{}
  • Type: interface{}

Property scanType: The scan type.

Valid values:

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

TriggerTypeRequired

TriggerType interface{}
  • Type: interface{}

Property triggerType: Trigger type.

Valid values:

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

NamespacesOptional

Namespaces interface{}
  • Type: interface{}

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

RepoNames interface{}
  • Type: interface{}

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.